AttachCenChildInstance - 将网络实例加载到云企业网实例中

调用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

错误码

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向该实例传播路由,无法支持当前操作。

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

变更历史

更多信息,参考变更详情