- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Full name: projects.locations.instances.generateWorkspaceConnectionToken
Generates a token that can be used to connect a workspace customer to a chronicle instance
HTTP request
POST https://chronicle.googleapis.com/v1alpha/{name}:generateWorkspaceConnectionToken
Path parameters
Parameters | |
---|---|
name |
Required. The name of the chronicle instance to create workspace token for. Format: projects/{project_id}/locations/{region}/instances/{instance} |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "expire_time": string, "workspace_customer_id": string } |
Fields | |
---|---|
expire_ |
Required. The expiry time for the token. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted.Examples: |
workspace_ |
Required. The workspace customer id for which the token should be crated |
Response body
Response with a workspace connection token.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "token": string } |
Fields | |
---|---|
token |
Required. The created token. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the name
resource:
chronicle.instances.generateWorkspaceConnectionToken
For more information, see the IAM documentation.