CreateComputeCapacityReservation
POST {{baseUrl}}/computeCapacityReservations
Creates a new compute capacity reservation in the specified compartment and availability domain. Compute capacity reservations let you reserve instances in a compartment. When you launch an instance using this reservation, you are assured that you have enough space for your instance, and you won't get out of capacity errors. For more information, see Reserved Capacity.
Request Body
{"compartmentId"=>"{{compartment_ocid}}", "availabilityDomain"=>"Excepteur anim mollit pariatur", "displayName"=>"proident velit ipsum", "instanceReservationConfigs"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "isDefaultReservation"=>false}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | Unique identifier for the request. | |
If you need to contact Oracle about a particular request, please provide the request ID. | |||
opc-retry-token | string | 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). | |||
Content-Type | string | ||
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header | |
x-content-sha256 | string | (Required) Content sha256 for POST, PUT and PATCH operations |
RESPONSES
status: Created
{"id":"nisi sit ullamco","compartmentId":"quis magna","lifecycleState":"ACTIVE","timeCreated":"2021-05-10T10:50:59.742Z","availabilityDomain":"irure","definedTags":{},"displayName":"consectetur","freeformTags":{},"instanceReservationConfigs":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"isDefaultReservation":false,"reservedInstanceCount":94374881,"timeUpdated":"1988-08-05T21:19:27.840Z","usedInstanceCount":-94546989}