Move multiple resources at once to a different compartment.

POST {{baseUrl}}/compartments/:compartmentId/actions/bulkMoveResources

Moves multiple resources from one compartment to another. All resources must be in the same compartment. This API can only be invoked from the tenancy's home region. To move resources, you must have the appropriate permissions to move the resource in both the source and target compartments. This operation creates a WorkRequest. Use the GetWorkRequest API to monitor the status of the bulk action.

Request Body

{"resources"=>[{"identifier"=>"ut voluptate officia nisi nostrud", "entityType"=>"Lorem incididunt sit officia Ut"}, {"identifier"=>"id enim", "entityType"=>"aliqua ut"}], "targetCompartmentId"=>"ocid1.compartment.oc1...."}

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringUnique Oracle-assigned 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 (e.g., 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