文档

UpdateDataCache - 更新数据缓存

更新时间:

更新一个数据缓存。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
RegionIdstring

地域 ID。

cn-hangzhou
DataCacheIdstring

数据缓存 ID。

edc-bp1a7n7uawwwol******
SecurityGroupIdstring

安全组 ID。

sg-2ze81zoc3yl7a3we****
VSwitchIdstring

交换机 ID。

vsw-2ze23nqzig8inprou****
Bucketstring

数据缓存 Bucket。默认为 default。

default
Namestring

数据缓存名称。

test
Sizeinteger

数据缓存大小。

20
DataSourceobject

数据源信息。

Typestring

数据源类型。取值范围:

  • URL
  • NAS
  • OSS
  • SNAPSHOT
URL
Optionsobject

数据源的配置参数。

string

数据源的配置参数。不同类型数据源要传入的参数不同。各类型数据源及其配置参数说明,请参见创建数据缓存

{ "#10#repoSource": "HuggingFace/Model", "#6#repoId": "stabilityai/stable-diffusion-2-1" }
RetentionDaysinteger

保留天数。过期会被清理。默认不过期。

7
ResourceGroupIdstring

资源组 ID。

rg-acfmzw2jz2z****
Tagobject []

标签列表。

Keystring

标签键。

testkey
Valuestring

标签值。

testvalue
ClientTokenstring

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持 ASCII 字符,且不能超过 64 个字符。更多信息,请参见如何保证幂等性

2f22dc16-cad0-4d3f-87e5-91e604756547
EipInstanceIdstring

弹性公网 IP。如果 VPC 没有配置 NAT 网关,可以绑定弹性公网 IP,以便拉取公网数据。

eip-2zedsm5mfl3uhdj2d****
EipCreateParamobject

创建一个弹性公网 IP(EIP)并绑定。 如果 VPC 没有配置 NAT 网关,可以绑定 EIP,以便拉取公网数据。

Bandwidthinteger

EIP 带宽。单位为 Mbps。默认为 5 Mbps。

10
CommonBandwidthPackagestring

绑定已有的共享带宽包。

cbwp-2zeukbj916scmj51m****
InternetChargeTypestring

EIP 的计量方式。取值范围:

  • PayByBandwidth:按带宽计费
  • PayByTraffic:按流量计费
PayByTraffic
PublicIpAddressPoolIdstring

IP 地址池 ID。 EIP 将从该 IP 地址池中分配。 IP 地址池功能默认不开放。如需使用,请在配额中心申请 IP 地址池功能权益配额。

pippool-bp187arfugi543y1s****
ISPstring

EIP 的线路类型。取值范围:

  • BGP(默认值):BGP(多线)线路
  • BGP_PRO:BGP(多线)精品线路
BGP

返回参数

名称类型描述示例值
object
RequestIdstring

请求 ID。

BD8BBB43-8E05-5F46-89A9-2512D8A324A2

示例

正常返回示例

JSON格式

{
  "RequestId": "BD8BBB43-8E05-5F46-89A9-2512D8A324A2"
}

错误码

HTTP status code错误码错误信息描述
400Account.ArrearageYour account has an outstanding payment.账号已经欠费。
400DryRunOperationRequest validation has been passed with DryRun flag set.此次DryRun预检请求合格。
400InvalidParameter.CPU.MemoryThe specified cpu and memory are not allowed-
400IncorrectStatus%s指定的实例状态不正确。
400ServiceNotEnabled%s该次请求所依赖的服务没有开通,请开通后再试。
400DiskVolume.NotSupportThe disk volume is not supported.云盘卷暂不支持,如有需要请联系我们。
400RamRole.NotSupportThe RAM role is not supported.ram实例角色不支持。
400ImageCache.IncorrectStatus%s镜像缓存当前的状态不对。
400ImageCacheNotSupportImage cache is not available for all users. If you want to enable this function, contact us.镜像缓存功能还未全网开放,如果有需要请联系我们。
400EipAddressPoolIpNotEnoughThe ip address of specified PublicIpAddressPool is not enough.指定的eip公网地址池地址资源不足。
403OperationDenied.VswZoneMisMatchThe specified VSwitchId is not in the specified Zone.-
403QuotaExceeded%s quota exceeded.用户允许创建的实例已经超过限制。
403Zone.NotOnSaleThe specified zone is not available for purchase.创建实例的可用区已经关闭售卖,请更换其他可用区。或者无法在该可用区使用指定 VPC 的虚拟交换机。
403Forbidden.RiskControlThis operation has been identified as an abnormal operation and cannot be processed.此操作已被确定为一个操作异常,无法处理。
403Forbidden.SubUserThe specified action is not available for you.当前用户无法执行该操作。
403Forbidden.OnlyForInvitedTestEci create action is only open to invited users during public beta.Eci公测阶段只对受邀的用户开放。
403OperationDenied.SecurityGroupMisMatchThe specified VSwitchId and SecurityGroupId are not in the same VPC.指定的交换机和安全组不在同一个VPC下。
403InvalidVSwitchId.IpNotEnoughThe specified VSwitch does not have enough IP addresses.-
403Forbidden.UserBussinessStatusThis operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.用户处于欠费状态不允许创建,请充值后再尝试。
403Forbidden.UserNotRealNameAuthenticationThis operation is not allowed, because you have not passed the real-name verification.操作被禁止,因为用户还未进行实名认证。
403InvalidUser.PassRoleForbiddenThe RAM user is not authorized to assume a RAM role.子账号用户没有权限使用RAM实例角色。
403OperationDenied.NoStockSales 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://help.aliyun.com/document_detail/157290.html-
403NoPermissionThe RAM role AliyunECIContainerGroupRole does not belong to eci.aliyuncs.com. Please check and try again.-
403SecurityRisk.3DVerificationWe have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.我们检测到您的默认信用卡或借记卡存在安全风险。请通过电子邮件中的链接进行验证。
403CreateServiceLinkedRole.DeniedPlease make sure the account has ram:CreateServiceLinkedRole permission.请确保账号拥有ram:CreateServiceLinkedRole权限。

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (1)
文档反馈