- 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
Path parameters
| Parameters | |
|---|---|
| name | 
 Required. The name of the chronicle instance to create workspace token for. Format:  | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| { "expireTime": string, "workspaceCustomerId": string } | 
| Fields | |
|---|---|
| expireTime | 
 Required. The expiry time for the token. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:  | 
| workspaceCustomerId | 
 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.