Migrating Resources
Function
This API is used to associate resources with another vault and migrate the resource backups to that destination vault.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
URI
POST /v3/{project_id}/vaults/{vault_id}/migrateresources
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
vault_id |
Yes |
String |
Vault ID. For details about how to obtain the vault ID, see Obtaining a Vault ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
No |
String |
User token The token can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
destination_vault_id |
Yes |
String |
Destination vault ID. For details about how to obtain the vault ID, see Obtaining a Vault ID, where project_id must be set to the project ID of the destination region. |
resource_ids |
Yes |
Array of strings |
IDs of resources to be migrated. Use commas (,) to separate multiple resource IDs. The resource IDs are in UUID format. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
migrated_resources |
Array of strings |
List of migrated resources |
Example Requests
Migrating resources as well as their backups to a different vault
POST https://{endpoint}/v3/f841e01fd2b14e7fa41b6ae7aa6b0594/vaults/79bd9daa-884f-4f84-b8fe-235d58cd927d/migrateresources { "resource_ids" : [ "abcdde3f-e0e3-403a-b690-fc259dd70008" ], "destination_vault_id" : "fe578a6c-d1a8-4790-bd52-5954af4d446c" }
Example Responses
Status code: 200
OK
{ "migrated_resources" : [ "fe578a6c-d1a8-4790-bd52-5954af4d446c" ] }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot