v1

latestOpenAPI 3.0.02026-08-064311,0881.3 MB
tokensLibraryManagement

Create a token.

Create a token in the token library.

post/v1/tokens

Request body

namestring required

Name of the token.

descriptionstring

Description of the token.

statusstring required

Status of the token. Can be Active, or Inactive.

typestring required

Type of the token. Valid values: 1) CollectorRegistration

Example request

{
  "name": "token-name",
  "description": "token description: for test.",
  "status": "Active",
  "type": "CollectorRegistration"
}

Response

The token has been created.

idstring required

Identifier of the token.

namestring required

Name of the token.

descriptionstring required

Description of the token.

statusstring required

Status of the token. Can be Active, or Inactive.

typestring required

Type of the token. Valid values: 1) CollectorRegistrationTokenResponse

versioninteger required

Version of the token.

createdAtstring date-time required

Creation timestamp in UTC in RFC3339 format.

createdBystring required

Identifier of the user who created the resource.

modifiedAtstring date-time required

Last modification timestamp in UTC.

modifiedBystring required

Identifier of the user who last modified the resource.

Example response

{
  "name": "token-name",
  "description": "token description: for test.",
  "status": "Active",
  "type": "CollectorRegistrationTokenResponse"
}