ArtifactsClient

class oci.artifacts.ArtifactsClient(config, **kwargs)

API covering the [Registry](/iaas/Content/Registry/Concepts/registryoverview.htm) services. Use this API to manage resources such as container images and repositories.

Methods

__init__(config, **kwargs) Creates a new service client
change_container_repository_compartment(…) Moves a container repository into a different compartment within the same tenancy.
create_container_image_signature(…) Upload a signature to an image.
create_container_repository(…) Create a new empty container repository.
delete_container_image(image_id, **kwargs) Delete a container image.
delete_container_image_signature(…) Delete a container image signature.
delete_container_repository(repository_id, …) Delete container repository.
get_container_configuration(compartment_id, …) Get container configuration.
get_container_image(image_id, **kwargs) Get container image metadata.
get_container_image_signature(…) Get container image signature metadata.
get_container_repository(repository_id, **kwargs) Get container repository.
list_container_image_signatures(…) List container image signatures in an image.
list_container_images(compartment_id, **kwargs) List container images in a compartment.
list_container_repositories(compartment_id, …) List container repositories in a compartment.
remove_container_version(image_id, …) Remove version from container image.
restore_container_image(image_id, …) Restore a container image.
update_container_configuration(…) Update container configuration.
update_container_repository(repository_id, …) Modify the properties of a container repository.
__init__(config, **kwargs)

Creates a new service client

Parameters:
  • config (dict) – Configuration keys and values as per SDK and Tool Configuration. The from_file() method can be used to load configuration from a file. Alternatively, a dict can be passed. You can validate_config the dict using validate_config()
  • service_endpoint (str) – (optional) The endpoint of the service to call using this client. For example https://iaas.us-ashburn-1.oraclecloud.com. If this keyword argument is not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit need to specify a service endpoint.
  • timeout (float or tuple(float, float)) – (optional) The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
  • signer (AbstractBaseSigner) –

    (optional) The signer to use when signing requests made by the service client. The default is to use a Signer based on the values provided in the config parameter.

    One use case for this parameter is for Instance Principals authentication by passing an instance of InstancePrincipalsSecurityTokenSigner as the value for this keyword argument

  • retry_strategy (obj) –

    (optional) A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. Retry strategies can also be applied at the operation level by passing a retry_strategy keyword argument as part of calling the operation. Any value provided at the operation level will override whatever is specified at the client level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

change_container_repository_compartment(repository_id, change_container_repository_compartment_details, **kwargs)

Moves a container repository into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.

Parameters:
  • repository_id (str) –

    (required) The OCID of the container repository.

    Example: ocid1.containerrepo.oc1..exampleuniqueID

  • change_container_repository_compartment_details (oci.artifacts.models.ChangeContainerRepositoryCompartmentDetails) – (required) Change container repository compartment details.
  • if_match (str) – (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
  • opc_request_id (str) – (optional) Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • opc_retry_token (str) – (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

Returns:

A Response object with data of type None

Return type:

Response

Example:

Click here to see an example of how to use change_container_repository_compartment API.

create_container_image_signature(create_container_image_signature_details, **kwargs)

Upload a signature to an image.

Parameters:
  • create_container_image_signature_details (oci.artifacts.models.CreateContainerImageSignatureDetails) – (required) Upload container image signature details
  • opc_request_id (str) – (optional) Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • opc_retry_token (str) – (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
  • if_match (str) – (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

Returns:

A Response object with data of type ContainerImageSignature

Return type:

Response

Example:

Click here to see an example of how to use create_container_image_signature API.

create_container_repository(create_container_repository_details, **kwargs)

Create a new empty container repository. Avoid entering confidential information.

Parameters:
  • create_container_repository_details (oci.artifacts.models.CreateContainerRepositoryDetails) – (required) Create container repository details.
  • opc_request_id (str) – (optional) Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • opc_retry_token (str) – (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

Returns:

A Response object with data of type ContainerRepository

Return type:

Response

Example:

Click here to see an example of how to use create_container_repository API.

delete_container_image(image_id, **kwargs)

Delete a container image.

Parameters:
  • image_id (str) –

    (required) The OCID of the container image.

    Example: ocid1.containerimage.oc1..exampleuniqueID

  • if_match (str) – (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
  • opc_request_id (str) – (optional) Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

Returns:

A Response object with data of type None

Return type:

Response

Example:

Click here to see an example of how to use delete_container_image API.

delete_container_image_signature(image_signature_id, **kwargs)

Delete a container image signature.

Parameters:
  • image_signature_id (str) –

    (required) The OCID of the container image signature.

    Example: ocid1.containersignature.oc1..exampleuniqueID

  • opc_request_id (str) – (optional) Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • if_match (str) – (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

Returns:

A Response object with data of type None

Return type:

Response

Example:

Click here to see an example of how to use delete_container_image_signature API.

delete_container_repository(repository_id, **kwargs)

Delete container repository.

Parameters:
  • repository_id (str) –

    (required) The OCID of the container repository.

    Example: ocid1.containerrepo.oc1..exampleuniqueID

  • if_match (str) – (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
  • opc_request_id (str) – (optional) Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

Returns:

A Response object with data of type None

Return type:

Response

Example:

Click here to see an example of how to use delete_container_repository API.

get_container_configuration(compartment_id, **kwargs)

Get container configuration.

Parameters:
  • compartment_id (str) –

    (required) The OCID of the compartment.

  • opc_request_id (str) – (optional) Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

Returns:

A Response object with data of type ContainerConfiguration

Return type:

Response

Example:

Click here to see an example of how to use get_container_configuration API.

get_container_image(image_id, **kwargs)

Get container image metadata.

Parameters:
  • image_id (str) –

    (required) The OCID of the container image.

    Example: ocid1.containerimage.oc1..exampleuniqueID

  • opc_request_id (str) – (optional) Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

Returns:

A Response object with data of type ContainerImage

Return type:

Response

Example:

Click here to see an example of how to use get_container_image API.

get_container_image_signature(image_signature_id, **kwargs)

Get container image signature metadata.

Parameters:
  • image_signature_id (str) –

    (required) The OCID of the container image signature.

    Example: ocid1.containersignature.oc1..exampleuniqueID

  • opc_request_id (str) – (optional) Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

Returns:

A Response object with data of type ContainerImageSignature

Return type:

Response

Example:

Click here to see an example of how to use get_container_image_signature API.

get_container_repository(repository_id, **kwargs)

Get container repository.

Parameters:
  • repository_id (str) –

    (required) The OCID of the container repository.

    Example: ocid1.containerrepo.oc1..exampleuniqueID

  • opc_request_id (str) – (optional) Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

Returns:

A Response object with data of type ContainerRepository

Return type:

Response

Example:

Click here to see an example of how to use get_container_repository API.

list_container_image_signatures(compartment_id, **kwargs)

List container image signatures in an image.

Parameters:
  • compartment_id (str) –

    (required) The OCID of the compartment.

  • compartment_id_in_subtree (bool) – (optional) When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are inspected depending on the the setting of accessLevel. Default is false. Can only be set to true when calling the API on the tenancy (root compartment).
  • image_id (str) – (optional) A filter to return a container image summary only for the specified container image OCID.
  • repository_id (str) – (optional) A filter to return container images only for the specified container repository OCID.
  • repository_name (str) –

    (optional) A filter to return container images or container image signatures that match the repository name.

    Example: foo or foo*

  • image_digest (str) –

    (optional) The digest of the container image.

    Example: sha256:e7d38b3517548a1c71e41bffe9c8ae6d6d29546ce46bf62159837aad072c90aa

  • display_name (str) – (optional) A filter to return only resources that match the given display name exactly.
  • kms_key_id (str) –

    (optional) The OCID of the kmsKeyVersionId used to sign the container image.

    Example: ocid1.keyversion.oc1..exampleuniqueID

  • kms_key_version_id (str) –

    (optional) The OCID of the kmsKeyVersionId used to sign the container image.

    Example: ocid1.keyversion.oc1..exampleuniqueID

  • signing_algorithm (str) –

    (optional) The algorithm to be used for signing. These are the only supported signing algorithms for container images.

    Allowed values are: “SHA_224_RSA_PKCS_PSS”, “SHA_256_RSA_PKCS_PSS”, “SHA_384_RSA_PKCS_PSS”, “SHA_512_RSA_PKCS_PSS”

  • limit (int) –

    (optional) For list pagination. The maximum number of results per page, or items to return in a paginated “List” call. For important details about how pagination works, see List Pagination.

    Example: 50

  • page (str) –

    (optional) For list pagination. The value of the opc-next-page response header from the previous “List” call. For important details about how pagination works, see List Pagination.

  • opc_request_id (str) – (optional) Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • sort_by (str) –

    (optional) The field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.

    Note: In general, some “List” operations (for example, ListInstances) let you optionally filter by availability domain if the scope of the resource type is within a single availability domain. If you call one of these “List” operations without specifying an availability domain, the resources are grouped by availability domain, then sorted.

    Allowed values are: “TIMECREATED”, “DISPLAYNAME”

  • sort_order (str) –

    (optional) The sort order to use, either ascending (ASC) or descending (DESC). The DISPLAYNAME sort order is case sensitive.

    Allowed values are: “ASC”, “DESC”

  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

Returns:

A Response object with data of type ContainerImageSignatureCollection

Return type:

Response

Example:

Click here to see an example of how to use list_container_image_signatures API.

list_container_images(compartment_id, **kwargs)

List container images in a compartment.

Parameters:
  • compartment_id (str) –

    (required) The OCID of the compartment.

  • compartment_id_in_subtree (bool) – (optional) When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are inspected depending on the the setting of accessLevel. Default is false. Can only be set to true when calling the API on the tenancy (root compartment).
  • display_name (str) – (optional) A filter to return only resources that match the given display name exactly.
  • image_id (str) – (optional) A filter to return a container image summary only for the specified container image OCID.
  • is_versioned (bool) – (optional) A filter to return container images based on whether there are any associated versions.
  • repository_id (str) – (optional) A filter to return container images only for the specified container repository OCID.
  • repository_name (str) –

    (optional) A filter to return container images or container image signatures that match the repository name.

    Example: foo or foo*

  • version (str) –

    (optional) A filter to return container images that match the version.

    Example: foo or foo*

  • lifecycle_state (str) – (optional) A filter to return only resources that match the given lifecycle state name exactly.
  • limit (int) –

    (optional) For list pagination. The maximum number of results per page, or items to return in a paginated “List” call. For important details about how pagination works, see List Pagination.

    Example: 50

  • page (str) –

    (optional) For list pagination. The value of the opc-next-page response header from the previous “List” call. For important details about how pagination works, see List Pagination.

  • opc_request_id (str) – (optional) Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • sort_by (str) –

    (optional) The field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.

    Note: In general, some “List” operations (for example, ListInstances) let you optionally filter by availability domain if the scope of the resource type is within a single availability domain. If you call one of these “List” operations without specifying an availability domain, the resources are grouped by availability domain, then sorted.

    Allowed values are: “TIMECREATED”, “DISPLAYNAME”

  • sort_order (str) –

    (optional) The sort order to use, either ascending (ASC) or descending (DESC). The DISPLAYNAME sort order is case sensitive.

    Allowed values are: “ASC”, “DESC”

  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

Returns:

A Response object with data of type ContainerImageCollection

Return type:

Response

Example:

Click here to see an example of how to use list_container_images API.

list_container_repositories(compartment_id, **kwargs)

List container repositories in a compartment.

Parameters:
  • compartment_id (str) –

    (required) The OCID of the compartment.

  • compartment_id_in_subtree (bool) – (optional) When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are inspected depending on the the setting of accessLevel. Default is false. Can only be set to true when calling the API on the tenancy (root compartment).
  • repository_id (str) – (optional) A filter to return container images only for the specified container repository OCID.
  • display_name (str) – (optional) A filter to return only resources that match the given display name exactly.
  • is_public (bool) – (optional) A filter to return resources that match the isPublic value.
  • lifecycle_state (str) – (optional) A filter to return only resources that match the given lifecycle state name exactly.
  • limit (int) –

    (optional) For list pagination. The maximum number of results per page, or items to return in a paginated “List” call. For important details about how pagination works, see List Pagination.

    Example: 50

  • page (str) –

    (optional) For list pagination. The value of the opc-next-page response header from the previous “List” call. For important details about how pagination works, see List Pagination.

  • opc_request_id (str) – (optional) Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • sort_by (str) –

    (optional) The field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.

    Note: In general, some “List” operations (for example, ListInstances) let you optionally filter by availability domain if the scope of the resource type is within a single availability domain. If you call one of these “List” operations without specifying an availability domain, the resources are grouped by availability domain, then sorted.

    Allowed values are: “TIMECREATED”, “DISPLAYNAME”

  • sort_order (str) –

    (optional) The sort order to use, either ascending (ASC) or descending (DESC). The DISPLAYNAME sort order is case sensitive.

    Allowed values are: “ASC”, “DESC”

  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

Returns:

A Response object with data of type ContainerRepositoryCollection

Return type:

Response

Example:

Click here to see an example of how to use list_container_repositories API.

remove_container_version(image_id, remove_container_version_details, **kwargs)

Remove version from container image.

Parameters:
  • image_id (str) –

    (required) The OCID of the container image.

    Example: ocid1.containerimage.oc1..exampleuniqueID

  • remove_container_version_details (oci.artifacts.models.RemoveContainerVersionDetails) – (required) Remove version details.
  • if_match (str) – (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
  • opc_request_id (str) – (optional) Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • opc_retry_token (str) – (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

Returns:

A Response object with data of type ContainerImage

Return type:

Response

Example:

Click here to see an example of how to use remove_container_version API.

restore_container_image(image_id, restore_container_image_details, **kwargs)

Restore a container image.

Parameters:
  • image_id (str) –

    (required) The OCID of the container image.

    Example: ocid1.containerimage.oc1..exampleuniqueID

  • restore_container_image_details (oci.artifacts.models.RestoreContainerImageDetails) – (required) Restore container image details.
  • if_match (str) – (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
  • opc_request_id (str) – (optional) Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • opc_retry_token (str) – (optional) A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

Returns:

A Response object with data of type ContainerImage

Return type:

Response

Example:

Click here to see an example of how to use restore_container_image API.

update_container_configuration(compartment_id, update_container_configuration_details, **kwargs)

Update container configuration.

Parameters:
  • compartment_id (str) –

    (required) The OCID of the compartment.

  • update_container_configuration_details (oci.artifacts.models.UpdateContainerConfigurationDetails) – (required) Update container configuration details.
  • if_match (str) – (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
  • opc_request_id (str) – (optional) Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

Returns:

A Response object with data of type ContainerConfiguration

Return type:

Response

Example:

Click here to see an example of how to use update_container_configuration API.

update_container_repository(repository_id, update_container_repository_details, **kwargs)

Modify the properties of a container repository. Avoid entering confidential information.

Parameters:
  • repository_id (str) –

    (required) The OCID of the container repository.

    Example: ocid1.containerrepo.oc1..exampleuniqueID

  • update_container_repository_details (oci.artifacts.models.UpdateContainerRepositoryDetails) – (required) Update container repository details.
  • if_match (str) – (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
  • opc_request_id (str) – (optional) Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
  • retry_strategy (obj) –

    (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

    This should be one of the strategies available in the retry module. A convenience DEFAULT_RETRY_STRATEGY is also available. The specifics of the default retry strategy are described here.

    To have this operation explicitly not perform any retries, pass an instance of NoneRetryStrategy.

Returns:

A Response object with data of type ContainerRepository

Return type:

Response

Example:

Click here to see an example of how to use update_container_repository API.