Skip to main content

Create a service account

Contributors

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

Example request
{
  "serviceAccountName": "string",
  "rolePublicId": "string",
  "workspacePublicIds": [
    "string"
  ]
}

Response

Status: 200, Default response
Name Type Required Description

clientId

string

False

clientSecret

string

False

publicId

string

False

Example response
{
  "clientId": "string",
  "clientSecret": "string",
  "publicId": "string"
}

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

Close
Try it out

Sign in with your NetApp Cloud Central credentials.

Try this API

Parameters

Headers

Body

Code

Response