TokensApi
All URIs are relative to https://api.ionos.com/containerregistries
Method | HTTP request | Description |
---|---|---|
DELETE /registries/{registryId}/tokens/{tokenId} | Delete token | |
GET /registries/{registryId}/tokens/{tokenId} | Get token information | |
GET /registries/{registryId}/tokens | List all tokens for the container registry | |
PATCH /registries/{registryId}/tokens/{tokenId} | Update token | |
POST /registries/{registryId}/tokens | Create token | |
PUT /registries/{registryId}/tokens/{tokenId} | Create or replace token |
registriesTokensDelete
registriesTokensDelete(registryId, tokenId)
Delete token
Examples
Parameters
Name | Type | Description | Notes |
---|---|---|---|
registryId | The unique ID of the registry | [default to undefined] | |
tokenId | The unique ID of the token | [default to undefined] |
Return type
nil (empty response body)
Authorization
basicAuth, tokenAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
registriesTokensFindById
registriesTokensFindById(registryId, tokenId)
Get token information
Gets all information for a specific token used to access a container registry
Examples
Parameters
Name | Type | Description | Notes |
---|---|---|---|
registryId | The unique ID of the registry | [default to undefined] | |
tokenId | The unique ID of the token | [default to undefined] |
Return type
Authorization
basicAuth, tokenAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
registriesTokensGet
registriesTokensGet(registryId, opts)
List all tokens for the container registry
Examples
Parameters
Name | Type | Description | Notes |
---|---|---|---|
registryId | The unique ID of the registry | [default to undefined] | |
offset | string | The first element (from the complete list of the elements) to include in the response (used together with limit for pagination) | [optional][default to '0'] |
limit | string | The maximum number of elements to return (used together with offset for pagination) | [optional][default to '100'] |
Return type
Authorization
basicAuth, tokenAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
registriesTokensPatch
registriesTokensPatch(registryId, tokenId, patchTokenInput)
Update token
Update token properties, for example: - change status to 'enabled' or 'disabled' - change expiry date
Examples
Parameters
Name | Type | Description | Notes |
---|---|---|---|
registryId | The unique ID of the registry | [default to undefined] | |
tokenId | The unique ID of the token | [default to undefined] | |
patchTokenInput |
Return type
Authorization
basicAuth, tokenAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
registriesTokensPost
registriesTokensPost(registryId, postTokenInput)
Create token
Create a token - password is only available once in the POST response
Examples
Parameters
Name | Type | Description | Notes |
---|---|---|---|
registryId | The unique ID of the registry | [default to undefined] | |
postTokenInput |
Return type
Authorization
basicAuth, tokenAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
registriesTokensPut
registriesTokensPut(registryId, tokenId, putTokenInput)
Create or replace token
Create/replace a token - password is only available once in the create response - "name" cannot be changed
Examples
Parameters
Name | Type | Description | Notes |
---|---|---|---|
registryId | The unique ID of the registry | [default to undefined] | |
tokenId | string | The unique ID of the token | [default to undefined] |
putTokenInput |
Return type
Authorization
basicAuth, tokenAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
Last updated