Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::CEN::TransitRouterGrantAttachment

Última atualização: Jun 27, 2026

Concede permissões a um transit router em uma instância de rede.

Sintaxe

{
  "Type": "ALIYUN::CEN::TransitRouterGrantAttachment",
  "Properties": {
    "CenOwnerId": Integer,
    "CenId": String,
    "InstanceId": String,
    "InstanceType": String,
    "OrderType": String
  }
}

Propriedades

Nome da propriedade

Tipo

Obrigatório

Atualizável

Descrição

Restrições

CenOwnerId

Integer

Sim

Não

ID da conta Alibaba Cloud proprietária da instância CEN.

Nenhuma

CenId

String

Sim

Não

ID da instância CEN à qual o transit router pertence.

Nenhuma

InstanceId

String

Sim

Não

ID da instância de rede.

Nenhuma

InstanceType

String

Sim

Não

Tipo da instância de rede.

Valores válidos:

  • VPC: instância VPC.

  • ExpressConnect: instância de Virtual Border Router (VBR).

  • VPN: conexão IPsec.

  • ECR: instância de Express Connect Router (ECR).

OrderType

String

Não

Não

Responsável pelo pagamento da instância de rede.

Valores válidos:

  • PayByCenOwner: o proprietário da instância CEN paga pela instância de rede.

  • PayByResourceOwner: o proprietário da instância de rede paga pela própria instância.

Valores de retorno

Fn::GetAtt

Nenhum

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InstanceId:
    Type: String
    Description:
      en: The ID of the network instance.
    Required: true
  CenOwnerId:
    Type: Number
    Description:
      en: The Alibaba Cloud account ID (main account ID) of the CEN instance owner.
    Required: true
  CenId:
    Type: String
    Description:
      en: The ID of the Cloud Enterprise Network (CEN) instance.
    Required: true
  InstanceType:
    Type: String
    Description:
      en: |-
        The type of the network instance. Valid values:
        - VPC: Virtual Private Cloud instance.
        - ExpressConnect: Virtual Border Router (VBR) instance.
        - VPN: IPsec connection.
        - ECR: ECR instance.
    AllowedValues:
      - VPC
      - ExpressConnect
      - VPN
      - ECR
    Required: true
Resources:
  TransitRouterGrantAttachment:
    Type: ALIYUN::CEN::TransitRouterGrantAttachment
    Properties:
      InstanceId:
        Ref: InstanceId
      CenOwnerId:
        Ref: CenOwnerId
      CenId:
        Ref: CenId
      InstanceType:
        Ref: InstanceType
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the network instance."
      },
      "Required": true
    },
    "CenOwnerId": {
      "Type": "Number",
      "Description": {
        "en": "The Alibaba Cloud account ID (main account ID) of the CEN instance owner."
      },
      "Required": true
    },
    "CenId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the Cloud Enterprise Network (CEN) instance."
      },
      "Required": true
    },
    "InstanceType": {
      "Type": "String",
      "Description": {
        "en": "The type of the network instance. Valid values:\n- VPC: Virtual Private Cloud instance.\n- ExpressConnect: Virtual Border Router (VBR) instance.\n- VPN: IPsec connection.\n- ECR: ECR instance."
      },
      "AllowedValues": [
        "VPC",
        "ExpressConnect",
        "VPN",
        "ECR"
      ],
      "Required": true
    }
  },
  "Resources": {
    "TransitRouterGrantAttachment": {
      "Type": "ALIYUN::CEN::TransitRouterGrantAttachment",
      "Properties": {
        "InstanceId": {
          "Ref": "InstanceId"
        },
        "CenOwnerId": {
          "Ref": "CenOwnerId"
        },
        "CenId": {
          "Ref": "CenId"
        },
        "InstanceType": {
          "Ref": "InstanceType"
        }
      }
    }
  }
}