image_shape_compatibility_entries
Creates, updates, deletes, gets or lists an image_shape_compatibility_entries resource.
Overview​
| Name | image_shape_compatibility_entries |
| Type | Resource |
| Id | oci.compute.image_shape_compatibility_entries |
Fields​
The following fields are returned by SELECT queries:
- get
- list
The image shape compatibility entry was retrieved.
| Name | Datatype | Description |
|---|---|---|
imageId | string | The image OCID. |
memoryConstraints | object | For a flexible image and shape, the amount of memory supported for instances that use this image. |
ocpuConstraints | object | OCPU options for an image and shape. |
shape | string | The shape name. |
Summary information for a compatible image and shape.
| Name | Datatype | Description |
|---|---|---|
imageId | string | The image [OCID](/iaas/Content/General/Concepts/identifiers.htm). |
memoryConstraints | object | For a flexible image and shape, the amount of memory supported for instances that use this image. |
ocpuConstraints | object | OCPU options for an image and shape. |
shape | string | The shape name. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | imageId, shapeName, region | opc-request-id | Retrieves an image shape compatibility entry. |
list | select | imageId, region | limit, page, opc-request-id | Lists the compatible shapes for the specified image. |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
imageId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the image. |
region | string | OCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION) |
shapeName | string | Shape name. |
limit | integer | 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](/iaas/Content/API/Concepts/usingapi.htm#nine). Example: 50 |
opc-request-id | string | Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. |
page | string | 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](/iaas/Content/API/Concepts/usingapi.htm#nine). |
SELECT examples​
- get
- list
Retrieves an image shape compatibility entry.
SELECT
imageId,
memoryConstraints,
ocpuConstraints,
shape
FROM oci.compute.image_shape_compatibility_entries
WHERE imageId = '{{ imageId }}' -- required
AND shapeName = '{{ shapeName }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;
Lists the compatible shapes for the specified image.
SELECT
imageId,
memoryConstraints,
ocpuConstraints,
shape
FROM oci.compute.image_shape_compatibility_entries
WHERE imageId = '{{ imageId }}' -- required
AND region = '{{ region }}' -- required
AND limit = '{{ limit }}'
AND page = '{{ page }}'
AND opc-request-id = '{{ opc-request-id }}'
;