UpdateInstance

PUT {{baseUrl}}/instances/:instanceId

Updates certain fields on the specified instance. Fields that are not provided in the request will not be updated. Avoid entering confidential information.

Changes to metadata fields will be reflected in the instance metadata service (this may take up to a minute).

The OCID of the instance remains the same.

Request Body

{"agentConfig"=>{"areAllPluginsDisabled"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "isManagementDisabled"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "isMonitoringDisabled"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "pluginsConfig"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "availabilityConfig"=>{"isLiveMigrationPreferred"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "recoveryAction"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "capacityReservationId"=>"irure magna", "displayName"=>"Ut do dolor", "faultDomain"=>"nostrud laborum pariatur do", "instanceOptions"=>{"areLegacyImdsEndpointsDisabled"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "launchOptions"=>{"bootVolumeType"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "isPvEncryptionInTransitEnabled"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "networkType"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "shape"=>"consequat", "shapeConfig"=>{"baselineOcpuUtilization"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "memoryInGBs"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "ocpus"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}}

HEADERS

KeyDatatypeRequiredDescription
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).
if-matchstringFor optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match
parameter to the value of the etag from a previous GET or POST response for that resource. The resource
will be updated or deleted only if the etag you provide matches the resource's current etag value.
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: OK

{&quot;id&quot;:&quot;sit dolor&quot;,&quot;compartmentId&quot;:&quot;et esse&quot;,&quot;shape&quot;:&quot;sunt veniam&quot;,&quot;region&quot;:&quot;laboris&quot;,&quot;availabilityDomain&quot;:&quot;dolor&quot;,&quot;lifecycleState&quot;:&quot;TERMINATED&quot;,&quot;timeCreated&quot;:&quot;2006-02-03T20:50:31.716Z&quot;,&quot;agentConfig&quot;:{&quot;areAllPluginsDisabled&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;isManagementDisabled&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;isMonitoringDisabled&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;pluginsConfig&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;availabilityConfig&quot;:{&quot;isLiveMigrationPreferred&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;recoveryAction&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;capacityReservationId&quot;:&quot;occaecat sint id&quot;,&quot;dedicatedVmHostId&quot;:&quot;ipsum dolor incididunt sit ex&quot;,&quot;definedTags&quot;:{},&quot;displayName&quot;:&quot;consequat aliquip magna ullamco&quot;,&quot;extendedMetadata&quot;:{},&quot;faultDomain&quot;:&quot;incididunt esse&quot;,&quot;freeformTags&quot;:{},&quot;imageId&quot;:&quot;dolor nulla consequat ipsum&quot;,&quot;instanceOptions&quot;:{&quot;areLegacyImdsEndpointsDisabled&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;ipxeScript&quot;:&quot;anim magna&quot;,&quot;launchMode&quot;:&quot;CUSTOM&quot;,&quot;launchOptions&quot;:{&quot;bootVolumeType&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;firmware&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;isConsistentVolumeNamingEnabled&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;isPvEncryptionInTransitEnabled&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;networkType&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;remoteDataVolumeType&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;metadata&quot;:{},&quot;platformConfig&quot;:{&quot;type&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;isMeasuredBootEnabled&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;isSecureBootEnabled&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;isTrustedPlatformModuleEnabled&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;preemptibleInstanceConfig&quot;:{&quot;preemptionAction&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;shapeConfig&quot;:{&quot;baselineOcpuUtilization&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;gpuDescription&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;gpus&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;localDiskDescription&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;localDisks&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;localDisksTotalSizeInGBs&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;maxVnicAttachments&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;memoryInGBs&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;networkingBandwidthInGbps&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;ocpus&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;processorDescription&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;sourceDetails&quot;:{&quot;sourceType&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;timeMaintenanceRebootDue&quot;:&quot;1973-07-06T14:36:00.263Z&quot;}