UpdateDataCache - 更新数据缓存

更新一个数据缓存。

调试

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

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

eci:UpdateDataCache

update

*DataCache

acs:eci:{#regionId}:{#accountId}:datacache/{#datacacheId}

  • eci:tag

请求参数

名称

类型

必填

描述

示例值

RegionId

string

地域 ID。

cn-hangzhou

RegionId

string

地域 ID。

cn-hangzhou

DataCacheId

string

数据缓存 ID。

edc-bp1a7n7uawwwol******

SecurityGroupId

string

安全组 ID。

sg-2ze81zoc3yl7a3we****

VSwitchId

string

交换机 ID。

vsw-2ze23nqzig8inprou****

Bucket

string

数据缓存 Bucket。默认为 default。

default

Name

string

数据缓存名称。

test

Size

integer

数据缓存大小。

20

DataSource

object

数据源信息。

Type

string

数据源类型。取值范围:

  • URL

  • NAS

  • OSS

  • SNAPSHOT

URL

Options

object

数据源的配置参数。

string

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

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

RetentionDays

integer

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

7

ResourceGroupId

string

资源组 ID。

rg-acfmzw2jz2z****

Tag

array<object>

标签列表。

object

标签列表。

Key

string

标签键。

testkey

Value

string

标签值。

testvalue

ClientToken

string

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

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

EipInstanceId

string

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

eip-2zedsm5mfl3uhdj2d****

EipCreateParam

object

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

Bandwidth

integer

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

10

CommonBandwidthPackage

string

绑定已有的共享带宽包。

cbwp-2zeukbj916scmj51m****

InternetChargeType

string

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

  • PayByBandwidth:按带宽计费

  • PayByTraffic:按流量计费

PayByTraffic

PublicIpAddressPoolId

string

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

pippool-bp187arfugi543y1s****

ISP

string

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

  • BGP(默认值):BGP(多线)线路

  • BGP_PRO:BGP(多线)精品线路

BGP

返回参数

名称

类型

描述

示例值

object

RequestId

string

请求 ID。

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

示例

正常返回示例

JSON格式

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

错误码

HTTP status code

错误码

错误信息

描述

400 Account.Arrearage Your account has an outstanding payment. 账号已经欠费。
400 DryRunOperation Request validation has been passed with DryRun flag set. 此次DryRun预检请求合格。
400 InvalidParameter.CPU.Memory The specified cpu and memory are not allowed
400 IncorrectStatus %s 指定的实例状态不正确。
400 ServiceNotEnabled %s 该次请求所依赖的服务没有开通,请开通后再试。
400 DiskVolume.NotSupport The disk volume is not supported. 云盘卷暂不支持,如有需要请联系我们。
400 RamRole.NotSupport The RAM role is not supported. ram实例角色不支持。
400 ImageCache.IncorrectStatus %s 镜像缓存当前的状态不对。
400 ImageCacheNotSupport Image cache is not available for all users. If you want to enable this function, contact us. 镜像缓存功能还未全网开放,如果有需要请联系我们。
400 EipAddressPoolIpNotEnough The ip address of specified PublicIpAddressPool is not enough. 指定的eip公网地址池地址资源不足。
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. 创建实例的可用区已经关闭售卖,请更换其他可用区。或者无法在该可用区使用指定 VPC 的虚拟交换机。
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. 子账号用户没有权限使用RAM实例角色。
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://help.aliyun.com/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. 请确保账号拥有ram:CreateServiceLinkedRole权限。

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

变更历史

更多信息,参考变更详情