All URIs are relative to https://api.ionos.com/containerregistries
Method
HTTP request
Description
Delete /registries/{registryId}
Delete registry
Get /registries/{registryId}
Get a registry
Get /registries
List all container registries
Patch /registries/{registryId}
Update the properties of a registry
Post /registries
Create container registry
Put /registries/{registryId}
Create or replace a container registry
RegistriesDelete
var result =RegistriesDelete(ctx, registryId) .Execute()
Delete 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 configuration := ionoscloud.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") apiClient := ionoscloud.NewAPIClient(configuration) resp, err := apiClient.RegistriesApi.RegistriesDelete(context.Background(), registryId).Execute()if err !=nil { fmt.Fprintf(os.Stderr, "Error when calling `RegistriesApi.RegistriesDelete``: %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
Other Parameters
Other parameters are passed through a pointer to an apiRegistriesDeleteRequest 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 "RegistriesApiService.RegistriesDelete" 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 "RegistriesApiService.RegistriesFindById" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
var result RegistriesResponse=RegistriesGet(ctx) .FilterName(filterName) .Limit(limit) .PaginationToken(paginationToken) .Execute()
List all container registries
Example
packagemainimport ("context""fmt""os" ionoscloud "github.com/ionos-cloud/sdk-go-container-registry")funcmain() { filterName :="my-registry"// string | The registry name to search for (optional) limit := "limit_example" // string | The maximum number of elements to return (used together with pagination.token for pagination) (optional) (default to "100")
paginationToken := "eyJ2IjoibWV0YS5rOHMuaW8vdjEiLCJydiI6MTYzMjQ0OTk2ODAsInN0YXJ0IjoiM2RmYTc3YjctZGIwNS00MjMwLThmMjAtOGU3NjJlOTUxOTUzXHUwMDAwIn0" // string | An opaque token used to iterate the set of results (used together with limit for pagination) (optional)
configuration := ionoscloud.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL") apiClient := ionoscloud.NewAPIClient(configuration) resource, resp, err := apiClient.RegistriesApi.RegistriesGet(context.Background()).FilterName(filterName).Limit(limit).PaginationToken(paginationToken).Execute()
if err !=nil { fmt.Fprintf(os.Stderr, "Error when calling `RegistriesApi.RegistriesGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp) }// response from `RegistriesGet`: RegistriesResponse fmt.Fprintf(os.Stdout, "Response from `RegistriesApi.RegistriesGet`: %v\n", resource)}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to an apiRegistriesGetRequest struct via the builder pattern
Name
Type
Description
Notes
filterName
string
The registry name to search for
limit
string
The maximum number of elements to return (used together with pagination.token for pagination)
[default to "100"]
paginationToken
string
An opaque token used to iterate the set of results (used together with limit for pagination)
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "RegistriesApiService.RegistriesGet" 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 "RegistriesApiService.RegistriesPatch" 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 "RegistriesApiService.RegistriesPost" 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 "RegistriesApiService.RegistriesPut" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.