Tokens
Define access permissions to registry resources
This tag groups all operations for tokens.
The unique ID of the registry
^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
The first element (from the complete list of the elements) to include in the response (used together with limit for pagination)
0
The maximum number of elements to return (used together with offset for pagination)
100
GET /containerregistries/registries/{registryId}/tokens HTTP/1.1
Host: api.ionos.com
Authorization: Basic username:password
Accept: */*
{
"_links": {
"next": "text",
"previous": "text",
"self": "text"
},
"count": 1,
"href": "text",
"id": "text",
"items": [
{
"href": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"metadata": {
"createdBy": "text",
"createdByUserId": "text",
"createdDate": "2025-07-17T03:22:54.593Z",
"lastModifiedBy": "text",
"lastModifiedByUserId": "text",
"lastModifiedDate": "2025-07-17T03:22:54.593Z",
"state": "text"
},
"properties": {
"credentials": {
"password": "",
"username": "push-token"
},
"expiryDate": "2025-07-17T03:22:54.593Z",
"name": "push-token",
"scopes": [
{
"actions": [
"pull",
"push",
"delete"
],
"name": "*",
"type": "repository"
}
],
"status": "enabled"
},
"type": "text"
}
],
"limit": 1,
"offset": 1,
"total": 1,
"type": "text"
}
Create a token
password is only available once in the POST response
The unique ID of the registry
^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
POST /containerregistries/registries/{registryId}/tokens HTTP/1.1
Host: api.ionos.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 174
{
"properties": {
"expiryDate": "2025-07-17T03:22:54.593Z",
"name": "push-token",
"scopes": [
{
"actions": [
"pull",
"push",
"delete"
],
"name": "*",
"type": "repository"
}
],
"status": "enabled"
}
}
{
"href": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"metadata": {
"createdBy": "text",
"createdByUserId": "text",
"createdDate": "2025-07-17T03:22:54.593Z",
"lastModifiedBy": "text",
"lastModifiedByUserId": "text",
"lastModifiedDate": "2025-07-17T03:22:54.593Z",
"state": "text"
},
"properties": {
"credentials": {
"password": "",
"username": "push-token"
},
"expiryDate": "2025-07-17T03:22:54.593Z",
"name": "push-token",
"scopes": [
{
"actions": [
"pull",
"push",
"delete"
],
"name": "*",
"type": "repository"
}
],
"status": "enabled"
},
"type": "text"
}
Gets all information for a specific token used to access a container registry
The unique ID of the registry
^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
The unique ID of the token
^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
GET /containerregistries/registries/{registryId}/tokens/{tokenId} HTTP/1.1
Host: api.ionos.com
Authorization: Basic username:password
Accept: */*
{
"href": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"metadata": {
"createdBy": "text",
"createdByUserId": "text",
"createdDate": "2025-07-17T03:22:54.593Z",
"lastModifiedBy": "text",
"lastModifiedByUserId": "text",
"lastModifiedDate": "2025-07-17T03:22:54.593Z",
"state": "text"
},
"properties": {
"credentials": {
"password": "",
"username": "push-token"
},
"expiryDate": "2025-07-17T03:22:54.593Z",
"name": "push-token",
"scopes": [
{
"actions": [
"pull",
"push",
"delete"
],
"name": "*",
"type": "repository"
}
],
"status": "enabled"
},
"type": "text"
}
Create/replace a token
password is only available once in the create response
"name" cannot be changed
The unique ID of the registry
^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
The unique ID of the token
^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
PUT /containerregistries/registries/{registryId}/tokens/{tokenId} HTTP/1.1
Host: api.ionos.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 174
{
"properties": {
"expiryDate": "2025-07-17T03:22:54.593Z",
"name": "push-token",
"scopes": [
{
"actions": [
"pull",
"push",
"delete"
],
"name": "*",
"type": "repository"
}
],
"status": "enabled"
}
}
{
"href": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"metadata": {
"createdBy": "text",
"createdByUserId": "text",
"createdDate": "2025-07-17T03:22:54.593Z",
"lastModifiedBy": "text",
"lastModifiedByUserId": "text",
"lastModifiedDate": "2025-07-17T03:22:54.593Z",
"state": "text"
},
"properties": {
"credentials": {
"password": "",
"username": "push-token"
},
"expiryDate": "2025-07-17T03:22:54.593Z",
"name": "push-token",
"scopes": [
{
"actions": [
"pull",
"push",
"delete"
],
"name": "*",
"type": "repository"
}
],
"status": "enabled"
},
"type": "text"
}
The unique ID of the registry
^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
The unique ID of the token
^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
DELETE /containerregistries/registries/{registryId}/tokens/{tokenId} HTTP/1.1
Host: api.ionos.com
Authorization: Basic username:password
Accept: */*
No content
Update token properties, for example:
change status to 'enabled' or 'disabled'
change expiry date
The unique ID of the registry
^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
The unique ID of the token
^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
PATCH /containerregistries/registries/{registryId}/tokens/{tokenId} HTTP/1.1
Host: api.ionos.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 139
{
"expiryDate": "2025-07-17T03:22:54.593Z",
"scopes": [
{
"actions": [
"pull",
"push",
"delete"
],
"name": "*",
"type": "repository"
}
],
"status": "enabled"
}
{
"href": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"metadata": {
"createdBy": "text",
"createdByUserId": "text",
"createdDate": "2025-07-17T03:22:54.593Z",
"lastModifiedBy": "text",
"lastModifiedByUserId": "text",
"lastModifiedDate": "2025-07-17T03:22:54.593Z",
"state": "text"
},
"properties": {
"credentials": {
"password": "",
"username": "push-token"
},
"expiryDate": "2025-07-17T03:22:54.593Z",
"name": "push-token",
"scopes": [
{
"actions": [
"pull",
"push",
"delete"
],
"name": "*",
"type": "repository"
}
],
"status": "enabled"
},
"type": "text"
}
Was this helpful?