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

KeyDatatypeRequiredDescription
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).
Content-Typestring
Datestring(Required) Current Date
Authorizationstring(Required) Signature Authentication on Authorization header
x-content-sha256string(Required) Content sha256 for POST, PUT and PATCH operations

RESPONSES

status: Created

{&quot;id&quot;:&quot;nisi sit ullamco&quot;,&quot;compartmentId&quot;:&quot;quis magna&quot;,&quot;lifecycleState&quot;:&quot;ACTIVE&quot;,&quot;timeCreated&quot;:&quot;2021-05-10T10:50:59.742Z&quot;,&quot;availabilityDomain&quot;:&quot;irure&quot;,&quot;definedTags&quot;:{},&quot;displayName&quot;:&quot;consectetur&quot;,&quot;freeformTags&quot;:{},&quot;instanceReservationConfigs&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;isDefaultReservation&quot;:false,&quot;reservedInstanceCount&quot;:94374881,&quot;timeUpdated&quot;:&quot;1988-08-05T21:19:27.840Z&quot;,&quot;usedInstanceCount&quot;:-94546989}