Method: instances.generateWorkspaceConnectionToken

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

string

Required. The name of the chronicle instance to create workspace token for. Format: projects/{projectId}/locations/{location}/instances/{instance}

Request body

The request body contains data with the following structure:

JSON representation
{
 "expireTime": string,
 "workspaceCustomerId": string
}
Fields
expireTime

string (Timestamp format)

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: "2014年10月02日T15:01:23Z", "2014年10月02日T15:01:23.045123456Z" or "2014年10月02日T15:01:23+05:30".

workspaceCustomerId

string

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

string

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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年09月22日 UTC.