Migrating Resources
Function
This API is used to associate resources with another vault and migrate the resource backups to that destination vault.
URI
POST /v3/{project_id}/vaults/{vault_id}/migrateresources
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
|
|
vault_id |
Yes |
String |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
No |
String |
User token. Obtained by calling the corresponding IAM API. If the request is successfully processed, the value of X-Subject-Token included in the response header is the token value. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
destination_vault_id |
Yes |
String |
Destination vault |
|
resource_ids |
Yes |
Array of strings |
ID of the resource to be migrated |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
migrated_resources |
Array of strings |
Example Requests
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.
Last Article: Vault
Next Article: Application Cases
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.