全部產品
Search
文件中心

:AttachCenChildInstance - 將網路執行個體載入到雲企業網執行個體中

更新時間:Dec 14, 2025

調用AttachCenChildInstance介面將網路執行個體載入到雲企業網執行個體中。

介面說明

雲企業網支援載入跨帳號的網路執行個體,在載入跨帳號的網路執行個體前,雲企業網執行個體需要先獲得跨帳號的網路執行個體授權:

  • 跨帳號專用網路執行個體授權,請參見 GrantInstanceToCen

  • 跨帳號雲串連網執行個體授權,請參見 GrantInstanceToCbn

  • 跨帳號邊界路由器執行個體授權功能預設不開放,如需使用,請聯絡客戶經理申請。

調試

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

調試

授權資訊

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

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

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

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

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

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

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

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

操作

存取層級

資源類型

條件關鍵字

關聯操作

cen:AttachCenChildInstance

update

*CenInstance

acs:cen:*:{#accountId}:ceninstance/{#ceninstanceId}

*virtualborderrouter

acs:vpc:*:{#accountId}:virtualborderrouter/{#virtualborderrouterId}

*VPC

acs:vpc:*:{#accountId}:vpc/{#vpcId}

請求參數

名稱

類型

必填

描述

樣本值

CenId

string

雲企業網執行個體的 ID。

cen-7qthudw0ll6jmc****

ChildInstanceId

string

指定待載入的網路執行個體的 ID。

vpc-bp18sth14qii3pnvx****

ChildInstanceType

string

網路執行個體的類型,取值:

  • VPC:專用網路。

  • VBR:邊界路由器。

  • CCN:雲串連網。

VPC

ChildInstanceRegionId

string

網路執行個體所在的地區。

您可以通過調用 DescribeRegions 介面擷取地區 ID。

cn-hangzhou

ChildInstanceOwnerId

integer

網路執行個體所屬的阿里雲帳號 ID(主帳號)。

說明

如果您要載入跨帳號的網路執行個體,本參數必填。

1688000000000000

返回參數

名稱

類型

描述

樣本值

object

RequestId

string

請求 ID。

A278B8A6-A5B8-4FDE-9F70-95F0F6A1D68A

樣本

正常返回樣本

JSON格式

{
  "RequestId": "A278B8A6-A5B8-4FDE-9F70-95F0F6A1D68A"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 Forbbiden.AttachChildInstanceAcrossBid Operation is invalid, please apply for cross-bid attaching.
400 IncorrectStatus.VpcSwitch Operation is failed because some virtual switch is modifying within the same VPC. 當前Vswitch的狀態不支援該操作,請稍後重試。
400 Forbbiden.CloudBoxVSwitchExist The operation is not allowed because of cloud box vswitch existed. 存在雲盒的vswitch,無法綁定
400 OperationFailed.InvalidVpcStatus Operation is failed because the child-instance is configuring.
400 OperationFailed.InvalidTransitRouter Operation failed because the transit router is not supported. 由於轉寄路由表不支援該操作,該操作失敗.
400 OperationUnsupported.CenFullLevel CEN full level does not support vpn bgp. Full模式的CEN不支援VPN Bpg。
400 IncorrectStatus.VpcRouteTable The VPC route table is not in a desired state. 該操作相關的VPC路由表不處於穩態,無法操作,請稍後重試。
400 InvalidOperation.VbrAttachedToEcr VBR has alreay attached to ECR. VBR已經綁定了ECR。
400 OperationUnsupported.VpcRoutePropagationSource The operation on this VPC route propagation source is not supported. 不支援對此VPC路由傳播源的操作。
400 InvalidStatus.ResourceStatus The resource is not in a valid state for the attachment operation. 當前資源狀態不支援該操作,請稍後重試。
400 IncorrectStatus.TransitRouter The status of TransitRouter is incorrect. 當前TransitRouter的狀態不支援該操作,請稍後重試。
400 IllegalParam.RegionId The specified RegionId is illegal. 參數中指定的Region不合法。
400 InvalidParameter Invalid parameter. 參數不合法。
400 Unauthorized The AccessKeyId is unauthorized. 帳號無許可權操作。
403 Forbidden.AttachChildInstance The attached VBR on some access device models are not supported. Please submit a ticket to continue using this VBR on CEN. 該VBR無法載入到雲企業網中,請提交工單進行處理。
404 Bid.NotFound Not found childInstance Bid by specified AliUid. bid不存在。
404 Operation.FailedAndTryAgain Fail to get customer label by the specified aliUid.
409 InvalidOperation.ChildInstanceRIAlreadyExist Operation is invalid because the child-instance has already been attached to Express Connect.
409 Forbbiden.AttachChildInstanceAcrossUid Operation is invalid because the child-instance is not authorized to CEN.
409 InvalidOperation.ChildInstanceAlreadyAttached Operation is invalid because the child-instance has already been attached to another CEN.
409 InvalidOperation.CenAlreadyAutoPubilshRouteToInstance Operation is invalid because other cen has already auto published route to this instance. 存在其他Cen向該執行個體傳播路由,無法支援當前操作。

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

變更歷史

更多資訊,參考變更詳情