全部產品
Search
文件中心

Elastic Container Instance:CopyDataCache - 拷貝資料緩衝

更新時間:Oct 17, 2025

將資料緩衝從一個地區拷貝到另一個地區。

介面說明

資料緩衝不支援直接跨地區使用,通過本介面可以將資料緩衝從一個地區拷貝到另一個地區。該介面適用於以下情境:

  • 需要在多個地區使用資料緩衝,在 A 地區已有資料緩衝的情況,可以通過本介面快速拷貝到 B 地區。

  • 對於中國內地地區的使用者,建立資料緩衝時如果直接拉取國外地址的資料,可能會因為網路限制導致資料拉取過慢,此時可以先在非中國內地的地區(例如中國香港)建立資料緩衝,然後通過本介面拷貝到中國內地地區。

重要 拷貝資料緩衝的過程相當於複製快照,費用涉及複製過程產生的流量費用以及最終產生的資料緩衝的儲存費用。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

eci:CopyDataCache

create

*DataCache

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

  • eci:tag

請求參數

名稱

類型

必填

描述

樣本值

RegionId

string

已有資料緩衝所在地區。

cn-beijing

RegionId

string

已有資料緩衝所在地區。

cn-beijing

Bucket

string

資料緩衝 Bucket。

default

Path

string

資料緩衝路徑

/bucket-test

Name

string

資料緩衝名稱。

test

RetentionDays

integer

資料緩衝保留天數。

7

Tag

array<object>

資料緩衝標籤列表。

object

資料緩衝標籤列表。

Key

string

標籤鍵。

testkey

Value

string

標籤值。

testvalue

ResourceGroupId

string

資料緩衝所屬資源群組 。

rg-2df3isufhi38****

ClientToken

string

保證請求等冪性。從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。只支援 ASCII 字元,且不能超過 64 個字元。更多資訊,請參見如何保證等冪性

123e4567-e89b-12d3-a456-426655440000

DataCacheId

string

資料緩衝 ID。

edc-bp15l4vvys94oo******

DestinationRegionId

string

要拷貝到的目的地區。

cn-hangzhou

返回參數

名稱

類型

描述

樣本值

object

返回參數列表。

RequestId

string

請求 ID。

58EE0CB3-C864-5395-A4F7-24F425074839

DataCacheId

string

拷貝到新的地區後,產生的資料緩衝 ID。

edc-bp1423y6d7v7l6ua****

樣本

正常返回樣本

JSON格式

{
  "RequestId": "58EE0CB3-C864-5395-A4F7-24F425074839",
  "DataCacheId": "edc-bp1423y6d7v7l6ua****"
}

錯誤碼

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://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. 請確保帳號擁有ram:CreateServiceLinkedRole許可權。

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情