v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1338139174.7 KB
projects

Create a user creds.

post/v1/{+parent}/userCreds

Path parameters

parentstring required

Required. A parent name of the form projects/{project_id}/databases/{database_id}

Query parameters

userCredsIdstring

Required. The ID to use for the user creds, which will become the final component of the user creds's resource name. This value should be 4-63 characters. Valid characters are /a-z-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.

Request body

namestring

Identifier. The resource name of the UserCreds. Format: projects/{project}/databases/{database}/userCreds/{user_creds}

createTimestring google-datetime

Output only. The time the user creds were created.

securePasswordstring

Output only. The plaintext server-generated password for the user creds. Only populated in responses for CreateUserCreds and ResetUserPassword.

state'STATE_UNSPECIFIED' | 'ENABLED' | 'DISABLED'

Output only. Whether the user creds are enabled or disabled. Defaults to ENABLED on creation.

updateTimestring google-datetime

Output only. The time the user creds were last updated.

Response

Successful response