POST v1/bunits/{bunitId}/datacenters/{dataCenterId}/spservers/{spServerId}/credentials?userId={userId}

Add a new set of server credentials to a server and a user's keychain.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
bunitId integer

Required

dataCenterId integer

Required

spServerId integer

Required

userId integer

Required

Body Parameters

ServerCredentials
NameDescriptionTypeAdditional information
Name A read-only friendly name for the credentials that matches the server name.
string

Read-only.

Username A username for the server.
string

Required.

Password A password for the server.
string

Required.

Passwords are never exposed through the API.

TotpSecretKey Secret key used to generate TOTP codes
string

None.

HasTotpSecretKey The TOTP secret key is not available through the API
so to indicate that one exists this bool is set accordingly
boolean

None.

AccessToken API access to the server can be done with an access-token instead of username and password
Beware that access-tokens may expire
string

None.

HasAccessToken The acccess token is not available through the API
so to indicate that one exists this bool is set accordingly
boolean

None.

Server The server to which the credentials work.
SpServer

Included when retrieving the keychain for a user resource.

SpPlusServer The server to which the credentials work.
SpPlusServer

Included when retrieving the keychain for a user resource.

RubrikServer The server to which the credentials work.
RubrikServer

Included when retrieving the keychain for a user resource.

User The user whose credentials it is. The user is always null for the server's default credentials.
User

Included when retrieving credentials for a server resource.

Id A unique ID for the object.
integer

Read-only.

CreatedDate Time and date the object was created.
date

Read-only.

ArchivedDate Time and date the object was or is going to be archived.

Unarchived objects have no value in ArchivedDate
date

Read-only.

Request Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

Response Information

Resource Description

ServerCredentials
NameDescriptionTypeAdditional information
Name A read-only friendly name for the credentials that matches the server name.
string

Read-only.

Username A username for the server.
string

Required.

Password A password for the server.
string

Required.

Passwords are never exposed through the API.

TotpSecretKey Secret key used to generate TOTP codes
string

None.

HasTotpSecretKey The TOTP secret key is not available through the API
so to indicate that one exists this bool is set accordingly
boolean

None.

AccessToken API access to the server can be done with an access-token instead of username and password
Beware that access-tokens may expire
string

None.

HasAccessToken The acccess token is not available through the API
so to indicate that one exists this bool is set accordingly
boolean

None.

Server The server to which the credentials work.
SpServer

Included when retrieving the keychain for a user resource.

SpPlusServer The server to which the credentials work.
SpPlusServer

Included when retrieving the keychain for a user resource.

RubrikServer The server to which the credentials work.
RubrikServer

Included when retrieving the keychain for a user resource.

User The user whose credentials it is. The user is always null for the server's default credentials.
User

Included when retrieving credentials for a server resource.

Id A unique ID for the object.
integer

Read-only.

CreatedDate Time and date the object was created.
date

Read-only.

ArchivedDate Time and date the object was or is going to be archived.

Unarchived objects have no value in ArchivedDate
date

Read-only.

Response Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.