Todos los productos
Search
Centro de documentos

Resource Orchestration Service:ALIYUN::ENS::Network

Última actualización: Sep 07, 2026

El tipo ALIYUN::ENS::Network crea una red privada virtual (VPC) en un nodo de Edge Node Service (ENS).

Sintaxis

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

Propiedades

Propiedad

Tipo

Obligatorio

Editable

Descripción

Restricción

NetworkName

String

No

Sí

Nombre de la VPC.

Requisitos:

  • De 2 a 128 caracteres.

  • Debe comenzar con una letra. No puede empezar con http:// ni con https://.

  • Puede contener letras, dígitos, dos puntos (:), guiones bajos (_) y guiones (-).

Description

String

No

Sí

Descripción de la VPC.

De 2 a 256 caracteres. Debe comenzar con una letra. No puede empezar con http:// ni con https://.

CidrBlock

String

Sí

No

Bloque CIDR de la VPC.

Valores válidos y sus subredes:

  • 10.0.0.0/8 (predeterminado)

  • 172.16.0.0/12

  • 192.168.0.0/16

EnsRegionId

String

Sí

No

ID del nodo de ENS.

Ninguna.

Valores de retorno

Fn::GetAtt

NetworkId: ID de la VPC.

Ejemplos

  • Formato YAML

    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
                            
  • Formato JSON

    {
      "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"
            ]
          }
        }
      }
    }