Copies a data cache from one region to another.
Operation description
Data caches cannot be directly used across regions. You can call this operation to copy a data cache from one region to another. This operation is applicable to the following scenarios:
You need to use a data cache in multiple regions. If a data cache already exists in Region A, you can call this operation to quickly copy it to Region B.
For users in the Chinese mainland regions, pulling data from overseas addresses when creating a data cache may be slow due to network restrictions. In this case, you can first create a data cache in a region outside the Chinese mainland (such as Hong Kong (China)), and then call this operation to copy it to a Chinese mainland region.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eci:CopyDataCache |
create |
*DataCache
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region where the existing data cache resides. |
cn-beijing |
| RegionId |
string |
Yes |
The bucket of the data cache. |
default |
| Bucket |
string |
No |
The path of the data cache. |
/bucket-test |
| Path |
string |
No |
The name of the data cache. |
test |
| Name |
string |
No |
The number of days to retain the data cache. |
7 |
| RetentionDays |
integer |
No |
The list of data cache tags. |
7 |
| Tag |
array<object> |
No |
The resource group to which the data cache belongs. |
rg-2df3isufhi38**** |
|
object |
No |
The tags of the data cache. |
||
| Key |
string |
No |
The tag key. |
testkey |
| Value |
string |
No |
The tag value. |
testvalue |
| ResourceGroupId |
string |
No |
Ensures the idempotence of the request. Generate a parameter value from your client to ensure uniqueness across different requests. The value can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence. |
123e4567-e89b-12d3-a456-426655440000 |
| ClientToken |
string |
No |
The ID of the data cache. |
edc-bp15l4vvys94oo****** |
| DataCacheId |
string |
Yes |
The destination region to which the data cache is copied. |
cn-hangzhou |
| DestinationRegionId |
string |
Yes |
The destination region to which you want to copy the data cache. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
58EE0CB3-C864-5395-A4F7-24F425074839 |
| DataCacheId |
string |
The ID of the data cache generated in the new region after the copy. |
edc-bp1423y6d7v7l6ua**** |
Examples
Success response
JSON format
{
"RequestId": "58EE0CB3-C864-5395-A4F7-24F425074839",
"DataCacheId": "edc-bp1423y6d7v7l6ua****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Account.Arrearage | Your account has an outstanding payment. | Your account has an outstanding payment. |
| 400 | DryRunOperation | Request validation has been passed with DryRun flag set. | Request validation has been passed with DryRun flag set. |
| 400 | InvalidParameter.CPU.Memory | The specified cpu and memory are not allowed | |
| 400 | IncorrectStatus | %s | The specified instance status is invalid. |
| 400 | ServiceNotEnabled | %s | The service on which this request depends has not been activated. Please activate and try again. |
| 400 | DiskVolume.NotSupport | The disk volume is not supported. | Disk volume does not support your structure. If you want to enable this function, contact us. |
| 400 | RamRole.NotSupport | The RAM role is not supported. | The RAM role is not supported. |
| 400 | ImageCache.IncorrectStatus | %s | The image cache is not in the correct state. |
| 400 | ImageCacheNotSupport | Image cache is not available for all users. If you want to enable this function, contact us. | Container image cache is currently not available to all users. Submit a ticket if you need to use the feature. |
| 400 | EipAddressPoolIpNotEnough | The ip address of specified PublicIpAddressPool is not enough. | The specified EIP public address pool does not have sufficient address resources. |
| 403 | OperationDenied.VswZoneMisMatch | The specified VSwitchId is not in the specified Zone. | |
| 403 | QuotaExceeded | %s quota exceeded. | |
| 403 | Zone.NotOnSale | The specified zone is not available for purchase. | The zone in which you want to create the instance is no longer available for purchase. Use a different zone, or the vSwitch of the specified VPC cannot be used in this zone. |
| 403 | Forbidden.RiskControl | This operation has been identified as an abnormal operation and cannot be processed. | This operation has been identified as abnormal and cannot be processed. |
| 403 | Forbidden.SubUser | The specified action is not available for you. | |
| 403 | Forbidden.OnlyForInvitedTest | Eci create action is only open to invited users during public beta. | |
| 403 | OperationDenied.SecurityGroupMisMatch | The specified VSwitchId and SecurityGroupId are not in the same VPC. | |
| 403 | InvalidVSwitchId.IpNotEnough | The specified VSwitch does not have enough IP addresses. | |
| 403 | Forbidden.UserBussinessStatus | This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again. | The operation is forbidden because the account has an overdue payment. Top up your account and try again. |
| 403 | Forbidden.UserNotRealNameAuthentication | This operation is not allowed, because you have not passed the real-name verification. | The operation is forbidden because the user has not completed real-name verification. |
| 403 | InvalidUser.PassRoleForbidden | The RAM user is not authorized to assume a RAM role. | The RAM user is not authorized to assume a RAM role. |
| 403 | OperationDenied.NoStock | Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://www.alibabacloud.com/help/document_detail/157290.html | |
| 403 | NoPermission | The RAM role AliyunECIContainerGroupRole does not belong to eci.aliyuncs.com. Please check and try again. | |
| 403 | SecurityRisk.3DVerification | We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email. | A security risk has been detected on your default credit or debit card. Verify your card by using the link in the email. |
| 403 | CreateServiceLinkedRole.Denied | Please make sure the account has ram:CreateServiceLinkedRole permission. | Please make sure the account has ram:CreateServiceLinkedRole permission. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.