Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::ENS::Network

Última atualização: Jun 27, 2026

O recurso ALIYUN::ENS::Network cria uma Virtual Private Cloud (VPC) em um nó do Edge Node Service (ENS).

Sintaxe

{
  "Type": "ALIYUN::ENS::Network",
  "Properties": {
    "NetworkName": String,
    "Description": String,
    "CidrBlock": String,
    "EnsRegionId": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

NetworkName

String

Não

Sim

Nome da VPC.

Requisitos:

  • De 2 a 128 caracteres.

  • Deve começar com uma letra e não pode iniciar com http:// ou https://.

  • Pode conter letras, dígitos, dois-pontos (:), sublinhados (_) e hifens (-).

Description

String

Não

Sim

Descrição da VPC.

De 2 a 256 caracteres. Deve começar com uma letra e não pode iniciar com http:// ou https://.

CidrBlock

String

Sim

Não

Bloco CIDR da VPC.

Valores válidos e respectivas sub-redes:

  • 10.0.0.0/8 (padrão)

  • 172.16.0.0/12

  • 192.168.0.0/16

EnsRegionId

String

Sim

Não

ID do nó ENS.

Nenhuma.

Valores de retorno

Fn::GetAtt

NetworkId: ID da VPC.

Exemplos

  • YAML formato

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      CidrBlock:
        Description:
          en: 'The CIDR block of the network. You can use one of the following CIDR blocks
            or their subnets as the CIDR block of the network:
    
            10.0.0.0/8 (default)
    
            172.16.0.0/12
    
            192.168.0.0/16'
        Required: true
        Type: String
      Description:
        AssociationProperty: TextArea
        Description:
          en: 'The description of the network.
    
            The description must be 2 to 256 characters in length. It must start with
            a letter but cannot start with http:// or https://.'
        Required: false
        Type: String
      EnsRegionId:
        Description:
          en: The ID of the edge node.
        Required: true
        Type: String
      NetworkName:
        Description:
          en: 'The name of the network. The name must meet the following requirements:
    
            The name must be 2 to 128 characters in length.
    
            The name must start with a letter but cannot start with http:// or https://.
    
            The name can contain letters, digits, colons (:), underscores (_), and hyphens
            (-).'
        Required: false
        Type: String
    Resources:
      Network:
        Properties:
          CidrBlock:
            Ref: CidrBlock
          Description:
            Ref: Description
          EnsRegionId:
            Ref: EnsRegionId
          NetworkName:
            Ref: NetworkName
        Type: ALIYUN::ENS::Network
    Outputs:
      NetworkId:
        Description: The ID of the network.
        Value:
          Fn::GetAtt:
          - Network
          - NetworkId
                            
  • JSON formato

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "NetworkName": {
          "Type": "String",
          "Description": {
            "en": "The name of the network. The name must meet the following requirements:\nThe name must be 2 to 128 characters in length.\nThe name must start with a letter but cannot start with http:// or https://.\nThe name can contain letters, digits, colons (:), underscores (_), and hyphens (-)."
          },
          "Required": false
        },
        "Description": {
          "AssociationProperty": "TextArea",
          "Type": "String",
          "Description": {
            "en": "The description of the network.\nThe description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://."
          },
          "Required": false
        },
        "CidrBlock": {
          "Type": "String",
          "Description": {
            "en": "The CIDR block of the network. You can use one of the following CIDR blocks or their subnets as the CIDR block of the network:\n10.0.0.0/8 (default)\n172.16.0.0/12\n192.168.0.0/16"
          },
          "Required": true
        },
        "EnsRegionId": {
          "Type": "String",
          "Description": {
            "en": "The ID of the edge node."
          },
          "Required": true
        }
      },
      "Resources": {
        "Network": {
          "Type": "ALIYUN::ENS::Network",
          "Properties": {
            "NetworkName": {
              "Ref": "NetworkName"
            },
            "Description": {
              "Ref": "Description"
            },
            "CidrBlock": {
              "Ref": "CidrBlock"
            },
            "EnsRegionId": {
              "Ref": "EnsRegionId"
            }
          }
        }
      },
      "Outputs": {
        "NetworkId": {
          "Description": "The ID of the network.",
          "Value": {
            "Fn::GetAtt": [
              "Network",
              "NetworkId"
            ]
          }
        }
      }
    }