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
var result =RegistriesTokensDelete(ctx, registryId, tokenId) .Execute()
Delete token
Example
packagemainimport ("context""fmt""os" ionoscloud "github.com/ionos-cloud/sdk-go-container-registry")funcmain() { registryId :="38400000-8cf0-11bd-b23e-10b96e4ef00d"// string | The unique ID of the registry tokenId :="38400000-8cf0-11bd-b23e-10b96e4ef00d"// string | The unique ID of the token configuration := ionoscloud.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") apiClient := ionoscloud.NewAPIClient(configuration) resp, err := apiClient.TokensApi.RegistriesTokensDelete(context.Background(), registryId, tokenId).Execute()if err !=nil { fmt.Fprintf(os.Stderr, "Error when calling `TokensApi.RegistriesTokensDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) }}
Path Parameters
Name
Type
Description
Notes
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
registryId
string
The unique ID of the registry
tokenId
string
The unique ID of the token
Other Parameters
Other parameters are passed through a pointer to an apiRegistriesTokensDeleteRequest struct via the builder pattern
Return type
(empty response body)
HTTP request headers
Content-Type: Not defined
Accept: application/json
URLs Configuration per Operation
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "TokensApiService.RegistriesTokensDelete" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "TokensApiService.RegistriesTokensFindById" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
var result TokensResponse=RegistriesTokensGet(ctx, registryId) .Offset(offset) .Limit(limit) .Execute()
List all tokens for the container registry
Example
packagemainimport ("context""fmt""os" ionoscloud "github.com/ionos-cloud/sdk-go-container-registry")funcmain() { registryId :="38400000-8cf0-11bd-b23e-10b96e4ef00d"// string | The unique ID of the registry offset :="offset_example"// 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 :="limit_example"// string | The maximum number of elements to return (used together with offset for pagination) (optional) (default to "100") configuration := ionoscloud.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") apiClient := ionoscloud.NewAPIClient(configuration) resource, resp, err := apiClient.TokensApi.RegistriesTokensGet(context.Background(), registryId).Offset(offset).Limit(limit).Execute()if err !=nil { fmt.Fprintf(os.Stderr, "Error when calling `TokensApi.RegistriesTokensGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) }// response from `RegistriesTokensGet`: TokensResponse fmt.Fprintf(os.Stdout, "Response from `TokensApi.RegistriesTokensGet`: %v\n", resource)}
Path Parameters
Name
Type
Description
Notes
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
registryId
string
The unique ID of the registry
Other Parameters
Other parameters are passed through a pointer to an apiRegistriesTokensGetRequest struct via the builder pattern
Name
Type
Description
Notes
offset
string
The first element (from the complete list of the elements) to include in the response (used together with limit for pagination)
[default to "0"]
limit
string
The maximum number of elements to return (used together with offset for pagination)
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "TokensApiService.RegistriesTokensGet" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "TokensApiService.RegistriesTokensPatch" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "TokensApiService.RegistriesTokensPost" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "TokensApiService.RegistriesTokensPut" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.