Create a service account
POST /tenancy/account/{accountId}/service-account
Creates a service account on a specified account.
Token usage: BlueXP user token.
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
accountId |
string |
path |
True |
|
authorization |
string |
header |
True |
Authorization JWT access token |
X-User-Token |
string |
header |
False |
User JWT access token |
X-Service-Request-Id |
string |
header |
False |
Request identifier |
Request Body
Name | Type | Required | Description |
---|---|---|---|
serviceAccountName |
string |
True |
Service account name |
rolePublicId |
string |
True |
Service account role |
workspacePublicIds |
array[string] |
False |
Service account workspaces |
Response
Status: 200, Default response
Name | Type | Required | Description |
---|---|---|---|
clientId |
string |
False |
|
clientSecret |
string |
False |
|
publicId |
string |
False |
Definitions
See Definitions
body
Name | Type | Required | Description |
---|---|---|---|
serviceAccountName |
string |
True |
Service account name |
rolePublicId |
string |
True |
Service account role |
workspacePublicIds |
array[string] |
False |
Service account workspaces |