RegistriesApi
All URIs are relative to https://api.ionos.com/containerregistries
RegistriesDelete
var result = RegistriesDelete(ctx, registryId)
.Execute()Delete registry
Example
package main
import (
"context"
"fmt"
"os"
containerregistry "github.com/ionos-cloud/sdk-go-bundle/products/containerregistry"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
registryId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The unique ID of the registry
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := containerregistry.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
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
Name
Type
Description
Notes
Return type
(empty response body)
HTTP request headers
Content-Type: Not defined
Accept: application/json
RegistriesFindById
Get a registry
Example
Path Parameters
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 apiRegistriesFindByIdRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
RegistriesGet
List all container registries
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to an apiRegistriesGetRequest struct via the builder pattern
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)
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
RegistriesPatch
Update the properties of a registry
Example
Path Parameters
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 apiRegistriesPatchRequest struct via the builder pattern
Return type
HTTP request headers
Content-Type: application/json
Accept: application/json
RegistriesPost
Create container registry
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to an apiRegistriesPostRequest struct via the builder pattern
Return type
HTTP request headers
Content-Type: application/json
Accept: application/json
RegistriesPut
Create or replace a container registry
Example
Path Parameters
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 apiRegistriesPutRequest struct via the builder pattern
Return type
HTTP request headers
Content-Type: application/json
Accept: application/json
Last updated
