Skip to main content

ApiSecret

Detailed information about an API secret, including its secret and its scope

idinteger<int32>required

The entity identifier

Possible values: >= 0

Example: 123
creationDateinteger<int64>required

The entity creation date

Example: 1761384334302
namestringrequired

The entity name

Possible values: non-empty and <= 128 characters

Example: My entity name
commentstring

The entity comment

Possible values: non-empty and <= 1024 characters

Example: My comment on the entity
typeApiSecretTyperequired

The secret type

Possible values: [key, token]

Example: key
expirationDateinteger<int64>

The entity expiration date

Example: 1761385316688
scopestring

The secret scope

Possible values: non-empty and <= 64 characters

Example: image:read,repository:read
valuestringrequired

The secret value

Possible values: non-empty and <= 64 characters

Example: Z&Q78&fqkPq
ApiSecret
{
"id": 123,
"creationDate": 1761384334302,
"name": "My entity name",
"comment": "My comment on the entity",
"type": "key",
"expirationDate": 1761385316688,
"scope": "image:read,repository:read",
"value": "Z&Q78&fqkPq"
}