All URIs are relative to https://api.ionos.com/containerregistries
Method
HTTP request
Description
registries_delete
registries_delete(registry_id)
Delete registry
Examples
require'time'require'ionoscloud-container-registry'# setup authorizationIonoscloudContainerRegistry.configure do|config|# Configure HTTP basic authorization: basicAuth config.username ='YOUR USERNAME' config.password ='YOUR PASSWORD'# Configure API key authorization: tokenAuth config.api_key['Authorization'] ='YOUR API KEY'# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)# config.api_key_prefix['Authorization'] = 'Bearer'endapi_instance =IonoscloudContainerRegistry::RegistriesApi.newregistry_id =TODO# String | The unique ID of the registrybegin# Delete registry api_instance.registries_delete(registry_id)rescueIonoscloudContainerRegistry::ApiError=> eputs"Error when calling RegistriesApi->registries_delete: #{e}"end
Using the registries_delete_with_http_info variant
This returns an Array which contains the response data (nil in this case), status code and headers.
Get all information for a specific container registry
Examples
require'time'require'ionoscloud-container-registry'# setup authorizationIonoscloudContainerRegistry.configure do|config|# Configure HTTP basic authorization: basicAuth config.username ='YOUR USERNAME' config.password ='YOUR PASSWORD'# Configure API key authorization: tokenAuth config.api_key['Authorization'] ='YOUR API KEY'# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)# config.api_key_prefix['Authorization'] = 'Bearer'endapi_instance =IonoscloudContainerRegistry::RegistriesApi.newregistry_id =TODO# String | The unique ID of the registrybegin# Get a registry result = api_instance.registries_find_by_id(registry_id)p resultrescueIonoscloudContainerRegistry::ApiError=> eputs"Error when calling RegistriesApi->registries_find_by_id: #{e}"end
Using the registries_find_by_id_with_http_info variant
This returns an Array which contains the response data, status code and headers.
List all managed container registries for your account
Examples
require'time'require'ionoscloud-container-registry'# setup authorizationIonoscloudContainerRegistry.configure do|config|# Configure HTTP basic authorization: basicAuth config.username ='YOUR USERNAME' config.password ='YOUR PASSWORD'# Configure API key authorization: tokenAuth config.api_key['Authorization'] ='YOUR API KEY'# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)# config.api_key_prefix['Authorization'] = 'Bearer'endapi_instance =IonoscloudContainerRegistry::RegistriesApi.newopts = { filter_name: 'my-registry',# String | The registry name to search for limit: 'limit_example', # String | The maximum number of elements to return (used together with nextPageToken for pagination)
next_page_token: 'next_page_token_example' # String | The next page from the complete list of elements (used together with limit for pagination)
}begin# List all container registries result = api_instance.registries_get(opts)p resultrescueIonoscloudContainerRegistry::ApiError=> eputs"Error when calling RegistriesApi->registries_get: #{e}"end
Using the registries_get_with_http_info variant
This returns an Array which contains the response data, status code and headers.
Update the properties of a registry - "garbageCollectionSchedule" time and days of the week for runs
Examples
require'time'require'ionoscloud-container-registry'# setup authorizationIonoscloudContainerRegistry.configure do|config|# Configure HTTP basic authorization: basicAuth config.username ='YOUR USERNAME' config.password ='YOUR PASSWORD'# Configure API key authorization: tokenAuth config.api_key['Authorization'] ='YOUR API KEY'# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)# config.api_key_prefix['Authorization'] = 'Bearer'endapi_instance =IonoscloudContainerRegistry::RegistriesApi.newregistry_id =TODO# String | The unique ID of the registrypatch_registry_input =IonoscloudContainerRegistry::PatchRegistryInput.new# PatchRegistryInput | begin# Update the properties of a registry result = api_instance.registries_patch(registry_id, patch_registry_input)p resultrescueIonoscloudContainerRegistry::ApiError=> eputs"Error when calling RegistriesApi->registries_patch: #{e}"end
Using the registries_patch_with_http_info variant
This returns an Array which contains the response data, status code and headers.
Create a registry to hold container images or OCI compliant artifacts - "name" must have passed validation - "location" must be one of the available location IDs - "garbageCollectionSchedule" time and days of the week for runs
Examples
require'time'require'ionoscloud-container-registry'# setup authorizationIonoscloudContainerRegistry.configure do|config|# Configure HTTP basic authorization: basicAuth config.username ='YOUR USERNAME' config.password ='YOUR PASSWORD'# Configure API key authorization: tokenAuth config.api_key['Authorization'] ='YOUR API KEY'# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)# config.api_key_prefix['Authorization'] = 'Bearer'endapi_instance =IonoscloudContainerRegistry::RegistriesApi.newpost_registry_input = IonoscloudContainerRegistry::PostRegistryInput.new({properties: IonoscloudContainerRegistry::PostRegistryProperties.new({location: 'de/txl', name: 'my-registry'})}) # PostRegistryInput |
begin# Create container registry result = api_instance.registries_post(post_registry_input)p resultrescueIonoscloudContainerRegistry::ApiError=> eputs"Error when calling RegistriesApi->registries_post: #{e}"end
Using the registries_post_with_http_info variant
This returns an Array which contains the response data, status code and headers.
Create/replace a registry to hold container images or OCI compliant artifacts On create - "name" must have passed validation - "location" must be one of the available location IDs On update - "name" cannot be changed - "location" cannot be changed On create or update - "garbageCollectionSchedule": time and days of the week for runs
Examples
require'time'require'ionoscloud-container-registry'# setup authorizationIonoscloudContainerRegistry.configure do|config|# Configure HTTP basic authorization: basicAuth config.username ='YOUR USERNAME' config.password ='YOUR PASSWORD'# Configure API key authorization: tokenAuth config.api_key['Authorization'] ='YOUR API KEY'# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)# config.api_key_prefix['Authorization'] = 'Bearer'endapi_instance =IonoscloudContainerRegistry::RegistriesApi.newregistry_id =TODO# String | The unique ID of the registryput_registry_input = IonoscloudContainerRegistry::PutRegistryInput.new({properties: IonoscloudContainerRegistry::PostRegistryProperties.new({location: 'de/txl', name: 'my-registry'})}) # PutRegistryInput |
begin# Create or replace a container registry result = api_instance.registries_put(registry_id, put_registry_input)p resultrescueIonoscloudContainerRegistry::ApiError=> eputs"Error when calling RegistriesApi->registries_put: #{e}"end
Using the registries_put_with_http_info variant
This returns an Array which contains the response data, status code and headers.