Get a list of Containers in a compartment

get

/20210415/containers

Returns a list of containers in a compartment.

Request

Supported Media Types
Query Parameters
  • The availability domain of the pod shape.
  • Minimum Length: 1
    Maximum Length: 255
    The OCID of the compartment.
  • The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the container instance.
  • Minimum Length: 1
    Maximum Length: 255
    The displayName of a resource.
    Default Value: none
  • A filter to only return resources that match the given lifecycle state.
  • Minimum Value: 1
    Maximum Value: 1000
    For list pagination. The maximum number of results per page, or items to return in a paginated List call. 1 is the minimum, 1000 is the maximum.
    Default Value: 100
  • Minimum Length: 1
    Maximum Length: 512
    For list pagination. The value of the opc-next-page response header from the previous List call.
    Default Value: 0
  • The optional field to sort the results by.
    Allowed Values: [ "TIMECREATED", "NAME" ]
  • The sort order to use, either ascending (ASC) or descending (DESC).
    Default Value: ASC
    Allowed Values: [ "ASC", "DESC" ]
Header Parameters
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Back to Top

Response

Supported Media Types

200 Response

The list was retrieved.
Headers
  • Pagination of a list of items. When paging through a list, if this header appears in the response, then a partial list might have been returned. Include this value as the `page` parameter for the subsequent GET request to get the next batch of items.
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : ContainerCollection
Type: object
A list of containers.
Show Source
Nested Schema : items
Type: array
Minimum Number of Items: 1
Maximum Number of Items: 10
List of containers.
Show Source
Nested Schema : ContainerSummary
Type: object
Summary information about a container.
Show Source
  • Minimum Length: 1
    Maximum Length: 255
    The availability domain where the container instance that hosts this container runs.
  • Minimum Length: 1
    Maximum Length: 255
    The compartment [OCID](/iaas/Content/General/Concepts/identifiers.htm).
  • Minimum Length: 1
    Maximum Length: 255
    The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the container instance on which the container is running.
  • definedTags
    Additional Properties Allowed: additionalProperties
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace": {"bar-key": "value"}}`.
  • Minimum Length: 1
    Maximum Length: 255
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
  • Minimum Length: 1
    Maximum Length: 255
    The fault domain where the container instance that hosts the container runs.
  • freeformTags
    Additional Properties Allowed: additionalProperties
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
  • Minimum Length: 1
    Maximum Length: 255
    The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the container.
  • Minimum Length: 1
    Maximum Length: 1024
    A URL identifying the image that the container runs in, such as docker.io/library/busybox:latest. If you do not provide a tag, the tag will default to latest. If no registry is provided, will default the registry to public docker hub `docker.io/library`. The registry used for container image must be reachable over the Container Instance's VNIC.
  • Determines whether the container will have access to the container instance resource principal. This method utilizes resource principal version 2.2. For information on how to use the exposed resource principal elements, see https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#sdk_authentication_methods_resource_principal.
  • A message that describes the current state of the container in more detail. Can be used to provide actionable information.
  • The current state of the container.
  • ContainerResourceConfig
    The resource configuration for a container. The resource configuration determines the amount of resources allocated to the container and the maximum allowed resources for a container.
  • SecurityContext
    Discriminator: securityContextType
    Security context for container.
  • systemTags
    Additional Properties Allowed: additionalProperties
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`.
  • The time the the container was created in the format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339).
  • The time the container was updated in the format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339).
Nested Schema : definedTags
Type: object
Additional Properties Allowed
Show Source
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace": {"bar-key": "value"}}`.
Nested Schema : freeformTags
Type: object
Additional Properties Allowed
Show Source
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
Nested Schema : ContainerResourceConfig
Type: object
The resource configuration for a container. The resource configuration determines the amount of resources allocated to the container and the maximum allowed resources for a container.
Show Source
  • Minimum Value: 0
    Default Value: oracle.doceng.json.BetterJsonNull@6f49d153
    The maximum amount of memory that can be consumed by the container's process. If you do not set a value, then the process may use all available memory on the instance.
  • Minimum Value: 0
    Default Value: oracle.doceng.json.BetterJsonNull@4339baec
    The maximum amount of CPUs that can be consumed by the container's process. If you do not set a value, then the process may use all available CPU resources on the container instance. CPU usage is defined in terms of logical CPUs. This means that the maximum possible value on an E3 ContainerInstance with 1 OCPU is 2.0.
Nested Schema : SecurityContext
Type: object
Discriminator: securityContextType
Security context for container.
Show Source
Nested Schema : systemTags
Type: object
Additional Properties Allowed
Show Source
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`.
Nested Schema : additionalProperties
Type: object
Additional Properties Allowed
Show Source
Key-value pair representing predefined tags' keys and values scoped to a namespace. Example: `{"bar-key": "value"}`.
Nested Schema : additionalProperties
Type: object
The value of the tag. Only string, integer, and boolean types are supported.
Nested Schema : additionalProperties
Type: object
Additional Properties Allowed
Show Source
Key-value pair representing system tags' keys and values scoped to a namespace. Example: `{"bar-key": "value"}`
Nested Schema : additionalProperties
Type: object
The value of the tag. Only string, integer, and boolean types are supported.

400 Response

Bad Request
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source
  • A short error code that defines the error, meant for programmatic parsing. See [API Errors](https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
  • A human-readable error string.

401 Response

Unauthorized
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source
  • A short error code that defines the error, meant for programmatic parsing. See [API Errors](https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
  • A human-readable error string.

404 Response

Not Found
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source
  • A short error code that defines the error, meant for programmatic parsing. See [API Errors](https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
  • A human-readable error string.

429 Response

Too Many Requests
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source
  • A short error code that defines the error, meant for programmatic parsing. See [API Errors](https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
  • A human-readable error string.

500 Response

Internal Server Error
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source
  • A short error code that defines the error, meant for programmatic parsing. See [API Errors](https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
  • A human-readable error string.

Default Response

Unknown Error
Headers
  • Unique Oracle-assigned identifier for the request. If you must contact Oracle about a particular request, then provide the request identifier.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source
  • A short error code that defines the error, meant for programmatic parsing. See [API Errors](https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm).
  • A human-readable error string.
Back to Top