Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.09 KB

File metadata and controls

21 lines (16 loc) · 1.09 KB

Temporal Cloud Ops API Usage Example

Temporal Cloud Ops API

Uses Temporal's API Protobufs and a Gradle plugin to compile at build time.

Running the example:

  • Create an API key in Temporal Cloud first. See the API docs above for instructions.
  • Set a TEMPORAL_CLOUD_API_KEY environment variable to your API key.
  • To create a new namespace, set a TEMPORAL_CA_CERT_CONTENTS to your CA certificate contents.
    • You can trigger a namespace creation by appending /create-namespace to your url
    • See createNamespace() in controllers/TestController.kt for defaults used to create the namespace
  • To set permissions for a namespace, you can click the Read / Write / Admin links next to each user.
    • Set a TEMPORAL_NAMESPACE environment variable to the namespace you want to set permissions for (example: default.acctid).
  • Run the server:
./gradlew -q bootRun -PmainClass=com.example.demo.DemoApplicationKt

Then visit http://localhost:8080/ to see a list of users and namespaces for your Temporal Cloud account.