Skip to main content

compute_capacity_reports

Creates, updates, deletes, gets or lists a compute_capacity_reports resource.

Overview​

Namecompute_capacity_reports
TypeResource
Idoci.compute.compute_capacity_reports

Fields​

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertregion, compartmentId, availabilityDomain, shapeAvailabilitiesopc-request-id, opc-retry-tokenGenerates a report of the host capacity within an availability domain that is available for you<br />to create compute instances. Host capacity is the physical infrastructure that resources such as compute<br />instances run on.<br /><br />Use the capacity report to determine whether sufficient capacity is available for a shape before<br />you create an instance or change the shape of an instance.<br />

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.

NameDatatypeDescription
regionstringOCI 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)
opc-request-idstringUnique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
opc-retry-tokenstringA 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).

INSERT examples​

Generates a report of the host capacity within an availability domain that is available for you<br />to create compute instances. Host capacity is the physical infrastructure that resources such as compute<br />instances run on.<br /><br />Use the capacity report to determine whether sufficient capacity is available for a shape before<br />you create an instance or change the shape of an instance.<br />

INSERT INTO oci.compute.compute_capacity_reports (
availabilityDomain,
compartmentId,
shapeAvailabilities,
region,
opc-request-id,
opc-retry-token
)
SELECT
'{{ availabilityDomain }}' /* required */,
'{{ compartmentId }}' /* required */,
'{{ shapeAvailabilities }}' /* required */,
'{{ region }}',
'{{ opc-request-id }}',
'{{ opc-retry-token }}'
RETURNING
availabilityDomain,
compartmentId,
shapeAvailabilities,
timeCreated
;