Pushes credentials to a running workstation on behalf of a user. Once complete, supported credential types (applicationDefaultCredentials) are made available to processes running in the user container.
HTTP request
POST https://workstations.googleapis.com/v1beta/{workstation=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}:pushCredentials
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
workstation |
Required. Name of the workstation for which the credentials should be pushed. |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{
"applicationDefaultCredentials": {
object ( |
| Fields | |
|---|---|
applicationDefaultCredentials |
Optional. Credentials used by Cloud Client Libraries, Google API Client Libraries, and other tooling within the user container. For more information, see https://cloud.google.com/docs/authentication/application-default-credentials |
Response body
If successful, the response body contains an instance of Operation.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
OAuthToken
Represents an OAuth 2.0 access token and its associated metadata.
| JSON representation |
|---|
{ "email": string, "scopes": string, "accessToken": string, "expireTime": string, "expiresIn": string } |
| Fields | |
|---|---|
email |
Optional. The email address associated with the OAuth 2.0 access token. |
scopes |
Optional. The scopes associated with the OAuth 2.0 access token. See https://developers.google.com/identity/protocols/oauth2/scopes for more information. |
accessToken |
Required. The OAuth 2.0 access token value. |
expireTime |
Optional. The time the OAuth access token will expire. This should be the time the access token was generated plus the expiresIn offset returned from the Access Token Response. Only one of 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: |
expiresIn |
Optional. The lifetime duration of the access token. Only one of A duration in seconds with up to nine fractional digits, ending with ' |