Create service account in project
Creates a service account in an organization or a project.
Creates a service account in an organization or a project.
bearerAuthorizationBearer <token>An access token, or an API key.
project*stringThe project's ID.
^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$application/json- body
accountId*stringA readable name, unique within the organization or project that owns the account: 6 to 30 lowercase letters, digits or hyphens, starting with a letter. It never changes.
^[a-z][a-z0-9-]{4,28}[a-z0-9]$description?stringWhat the account is for.
length <= 1000displayName?stringName shown in user interfaces.
length <= 100Created
application/json- response
accountId*stringA readable name, unique within the organization or project that owns the account.
createTime*stringWhen the account was created.
date-timedescription*stringWhat the account is for.
displayName*stringName shown in user interfaces.
name*stringResource name, projects/{project_id}/serviceAccounts/{service_account_id} for a project's account or organizations/{organization_id}/serviceAccounts/{service_account_id} for an organization's own. It never changes.
state*stringLifecycle state: the keys of an ACTIVE account work, and a DISABLED one's are refused.
"ACTIVE""DISABLED"updateTime*stringWhen the account was last updated.
date-timecurl -X POST 'https://api.kosem.ai/v1/projects/string/serviceAccounts' \
-H 'Content-Type: application/json' \
-d '{
"accountId": "string"
}'{
"accountId": "string",
"createTime": "2019-08-24T14:15:22Z",
"description": "string",
"displayName": "string",
"name": "string",
"state": "ACTIVE",
"updateTime": "2019-08-24T14:15:22Z"
}