Updates a data cache.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eci:UpdateDataCache |
update |
*DataCache
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| DataCacheId |
string |
No |
The data cache ID. |
edc-bp1a7n7uawwwol****** |
| SecurityGroupId |
string |
No |
The security group ID. |
sg-2ze81zoc3yl7a3we**** |
| VSwitchId |
string |
No |
The vSwitch ID. |
vsw-2ze23nqzig8inprou**** |
| Bucket |
string |
No |
The bucket of the data cache. The default value is default. |
default |
| Name |
string |
No |
The name of the data cache. |
test |
| Size |
integer |
No |
The size of the data cache. |
20 |
| DataSource |
object |
No |
The information about the data source. |
|
| Type |
string |
No |
The type of the data source. Valid values:
|
URL |
| Options |
object |
No |
The configuration parameters of the data source. |
|
|
string |
No |
The configuration parameters of the data source. The parameters that you must specify vary based on the data source type. For more information about the data source types and their parameters, see Create a data cache. |
{ "#10#repoSource": "HuggingFace/Model", "#6#repoId": "stabilityai/stable-diffusion-2-1" } |
|
| RetentionDays |
integer |
No |
The number of days to retain the data cache. The data cache is cleared after it expires. By default, the data cache does not expire. |
7 |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-acfmzw2jz2z**** |
| Tag |
array<object> |
No |
The list of tags. |
|
|
object |
No |
The list of tags. |
||
| Key |
string |
No |
The tag key. |
testkey |
| Value |
string |
No |
The tag value. |
testvalue |
| ClientToken |
string |
No |
A client token. You can use the client to generate a token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence. |
2f22dc16-cad0-4d3f-87e5-91e604756547 |
| EipInstanceId |
string |
No |
The elastic IP address (EIP). If no NAT gateway is configured for the virtual private cloud (VPC), you can attach an EIP to the data cache to pull data from the Internet. |
eip-2zedsm5mfl3uhdj2d**** |
| EipCreateParam |
object |
No |
Creates and attaches an EIP. If no NAT gateway is configured for the VPC, you can attach an EIP to the data cache to pull data from the Internet. |
|
| Bandwidth |
integer |
No |
The bandwidth of the EIP. Unit: Mbps. The default value is 5. |
10 |
| CommonBandwidthPackage |
string |
No |
Specifies an existing Internet Shared Bandwidth package to attach. |
cbwp-2zeukbj916scmj51m**** |
| InternetChargeType |
string |
No |
The billing method of the EIP. Valid values:
|
PayByTraffic |
| PublicIpAddressPoolId |
string |
No |
The ID of the IP address pool. The EIP is allocated from the IP address pool. By default, the IP address pool feature is unavailable. To use this feature, apply for the privilege in Quota Center. |
pippool-bp187arfugi543y1s**** |
| ISP |
string |
No |
The line type of the EIP. Valid values:
|
BGP |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
BD8BBB43-8E05-5F46-89A9-2512D8A324A2 |
Examples
Success response
JSON format
{
"RequestId": "BD8BBB43-8E05-5F46-89A9-2512D8A324A2"
}
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 | |
| 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 | |
| 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. | |
| 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. | |
| 403 | Forbidden.RiskControl | This operation has been identified as an abnormal operation 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. | |
| 403 | Forbidden.UserNotRealNameAuthentication | This operation is not allowed, because you have not passed the 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. | |
| 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.