RepositoriesApi
All URIs are relative to https://api.ionos.com/containerregistries
Delete /registries/{registryId}/repositories/{repositoryName}
Delete repository
Get /registries/{registryId}/repositories/{repositoryName}
Retrieve Repository
RegistriesRepositoriesDelete
var result = RegistriesRepositoriesDelete(ctx, registryId, repositoryName)
.Execute()Delete repository
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
repositoryName := "my-service" // string | The name of the repository
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := containerregistry.NewAPIClient(configuration)
resp, err := apiClient.RepositoriesApi.RegistriesRepositoriesDelete(context.Background(), registryId, repositoryName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RepositoriesApi.RegistriesRepositoriesDelete``: %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
repositoryName
string
The name of the repository
Other Parameters
Other parameters are passed through a pointer to an apiRegistriesRepositoriesDeleteRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
(empty response body)
HTTP request headers
Content-Type: Not defined
Accept: Not defined
RegistriesRepositoriesFindByName
Retrieve Repository
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
registryId
string
The ID (UUID) of the Registry.
repositoryName
string
The Name of the Repository.
Other Parameters
Other parameters are passed through a pointer to an apiRegistriesRepositoriesFindByNameRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
RegistriesRepositoriesGet
Retrieve all Repositories
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
registryId
string
The ID (UUID) of the Registry.
Other Parameters
Other parameters are passed through a pointer to an apiRegistriesRepositoriesGetRequest struct via the builder pattern
offset
int32
The first element (of the total list of elements) to include in the response. Use together with limit for pagination.
[default to 0]
limit
int32
The maximum number of elements to return. Use together with offset for pagination.
[default to 100]
filterName
string
Filter resources by name.
filterVulnerabilitySeverity
string
Filter resources by vulnerability severity.
orderBy
string
The field to order the results by. If not provided, the results will be ordered by the default field.
[default to "-lastPush"]
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
Last updated
