Anexa uma instância de rede a uma instância do Cloud Enterprise Network (CEN).
Descrição da operação
O CEN permite que você anexe uma instância de rede pertencente a outra conta da Alibaba Cloud à sua instância CEN. Antes de anexar a instância de rede, o CEN deve obter permissões para acessar a instância de rede que pertence a outra conta da Alibaba Cloud.
Para obter mais informações sobre como conceder permissões ao CEN para redes privadas virtuais (VPCs) que pertencem a outra conta da Alibaba Cloud, consulte GrantInstanceToCen.
Para obter mais informações sobre como conceder permissões ao CEN para instâncias do Cloud Connect Network (CCN) que pertencem a outra conta da Alibaba Cloud, consulte GrantInstanceToCbn.
Por padrão, você não pode conceder permissões a uma instância CEN para roteadores de borda virtual (VBRs) que pertencem a outra conta da Alibaba Cloud. Se precisar usar esse recurso, entre em contato com o gerente da sua conta.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
cen:AttachCenChildInstance |
update |
*CenInstance
*virtualborderrouter
*VPC
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| CenId |
string |
Sim |
O ID da instância CEN. |
cen-7qthudw0ll6jmc**** |
| ChildInstanceId |
string |
Sim |
O ID da instância de rede que você deseja anexar à instância CEN. |
vpc-bp18sth14qii3pnvx**** |
| ChildInstanceType |
string |
Sim |
O tipo da instância de rede. Valores válidos:
|
VPC |
| ChildInstanceRegionId |
string |
Sim |
O ID da região na qual a instância de rede está implantada. Você pode chamar a operação DescribeRegions para consultar a lista de regiões mais recente. |
cn-hangzhou |
| ChildInstanceOwnerId |
integer |
Não |
O ID da conta da Alibaba Cloud à qual a instância de rede pertence. Nota
Se a instância de rede e a instância CEN pertencerem a contas diferentes da Alibaba Cloud, este parâmetro é obrigatório. |
1688000000000000 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
A278B8A6-A5B8-4FDE-9F70-95F0F6A1D68A |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "A278B8A6-A5B8-4FDE-9F70-95F0F6A1D68A"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 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. | The error message returned because the status of the vSwitch does not support this operation. Try again later. |
| 400 | Forbbiden.CloudBoxVSwitchExist | The operation is not allowed because of cloud box vswitch existed. | The error message returned because the specified vSwitch is associated with a CloudBox. You cannot associate with the 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. | Operation failed because the transit router is not supported. |
| 400 | OperationUnsupported.CenFullLevel | CEN full level does not support vpn bgp. | The error message returned because CEN instances in FULL mode do not support BGP for VPN gateways. |
| 400 | IncorrectStatus.VpcRouteTable | The VPC route table is not in a desired state. | The error message returned because the VPC route table is in an unstable state. Try again later. |
| 400 | InvalidOperation.VbrAttachedToEcr | VBR has alreay attached to ECR. | VBR has alreay attached to ECR. |
| 400 | OperationUnsupported.VpcRoutePropagationSource | The operation on this VPC route propagation source is not supported. | The operation on this VPC route propagation source is not supported. |
| 400 | InvalidStatus.ResourceStatus | The resource is not in a valid state for the attachment operation. | The error message returned because the status of the specified resource does not support this operation. Try again later. |
| 400 | IncorrectStatus.TransitRouter | The status of TransitRouter is incorrect. | The error message returned because the status of the transit router does not support this operation. Try again later. |
| 400 | IllegalParam.RegionId | The specified RegionId is illegal. | The error message returned because the specified region is invalid. |
| 400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
| 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. | The attached VBR on some access device models are not supported. Please submit a ticket to continue using this VBR on CEN. |
| 404 | Bid.NotFound | Not found childInstance Bid by specified AliUid. | The error message returned because the BID does not exist. |
| 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. | The error message returned because this operation is not supported when one or more other CEN instance can advertise routes to the specified instance. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.