Method: projects.locations.oauthClients.credentials.create

Creates a new OauthClientCredential.

HTTP request

POST https://iam.googleapis.com/v1/{parent=projects/*/locations/*/oauthClients/*}/credentials

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource to create the OAuth client Credential in.

Query parameters

Parameters
oauthClientCredentialId

string

Required. The ID to use for the OAuth client credential, which becomes the final component of the resource name. This value should be 4-32 characters, and may contain the characters [a-z0-9-]. The prefix gcp- is reserved for use by Google, and may not be specified.

Request body

The request body contains an instance of OauthClientCredential.

Response body

If successful, the response body contains a newly created instance of OauthClientCredential.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/iam

For more information, see the Authentication Overview.