Tüm Ürünler
Search
Belge Merkezi

Resource Orchestration Service:ALIYUN::ENS::VSwitch

Son Güncelleme:Oct 05, 2026

Edge Node Service (ENS) ağı için bir vSwitch oluşturur.

Sözdizimi

{
  "Type": "ALIYUN::ENS::VSwitch",
  "Properties": {
    "Description": String,
    "CidrBlock": String,
    "VSwitchName": String,
    "NetworkId": String,
    "EnsRegionId": String
  }
}

Özellikler

Özellik

Tür

Gerekli

Düzenlenebilir

Açıklama

Kısıtlama

Description

String

Hayır

Evet

vSwitch açıklaması.

Açıklama 2 ila 256 karakter uzunluğunda olmalıdır. Bir harfle başlamalı ve http:// veya https:// ile başlayamaz.

CidrBlock

String

Evet

Hayır

vSwitch CIDR bloğu.

vSwitch CIDR bloğu aşağıdaki gereksinimleri karşılamalıdır:

  • Alt ağ maskesi 16 ila 29 bit uzunluğunda olmalıdır.

  • CIDR bloğu, vSwitch'in ait olduğu VPC'nin CIDR bloğu içinde yer almalıdır.

  • CIDR bloğu, VPC'deki bir rota girişindeki hedef CIDR bloğu ile aynı olamaz. Ancak, hedef CIDR bloğunun bir alt kümesi olabilir.

VSwitchName

String

Hayır

Evet

vSwitch adı.

Ad aşağıdaki gereksinimleri karşılamalıdır:

  • Ad 2 ila 128 karakter uzunluğunda olmalıdır.

  • Ad bir harfle başlamalı ve http:// veya https:// ile başlayamaz. Harfler, rakamlar, iki nokta üst üste (:), alt çizgi (_) ve kısa çizgi (-) içerebilir.

NetworkId

String

Evet

Hayır

vSwitch'in ait olduğu ağın ID'si.

Yok.

EnsRegionId

String

Evet

Hayır

Edge Node Service (ENS) düğümünün ID'si.

Yok.

Dönüş değerleri

Fn::GetAtt

VSwitchId: vSwitch ID'si.

Örnekler

  • YAML biçimi

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      CidrBlock:
        Description:
          en: 'The CIDR block of the vSwitch. Take note of the following limits:
    
            The subnet mask must be 16 to 29 bits in length.
    
            The CIDR block of the vSwitch must fall within the CIDR block of the VPC to
            which the vSwitch belongs.
    
            The CIDR block of the vSwitch cannot be the same as the destination CIDR block
            in a route entry of the VPC. However, it can be a subset of the destination
            CIDR block.'
        Required: true
        Type: String
      Description:
        AssociationProperty: TextArea
        Description:
          en: 'The description of the vSwitch.
    
            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
      NetworkId:
        Description:
          en: The ID of the network to which the vSwitch that you want to create belongs.
        Required: true
        Type: String
      VSwitchName:
        Description:
          en: 'The name of the vSwitch. The name must meet the following requirements:
    
            The name must be 2 to 128 characters in length.
    
            The name must start with a letter and cannot start with http:// or https://.
            It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
    
            Default value: null.'
        Required: false
        Type: String
    Resources:
      VSwitch:
        Properties:
          CidrBlock:
            Ref: CidrBlock
          Description:
            Ref: Description
          EnsRegionId:
            Ref: EnsRegionId
          NetworkId:
            Ref: NetworkId
          VSwitchName:
            Ref: VSwitchName
        Type: ALIYUN::ENS::VSwitch
    Outputs:
      VSwitchId:
        Description: The ID of the vSwitch.
        Value:
          Fn::GetAtt:
          - VSwitch
          - VSwitchId
                            
  • JSON biçimi

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Description": {
          "AssociationProperty": "TextArea",
          "Type": "String",
          "Description": {
            "en": "The description of the vSwitch.\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 vSwitch. Take note of the following limits:\nThe subnet mask must be 16 to 29 bits in length.\nThe CIDR block of the vSwitch must fall within the CIDR block of the VPC to which the vSwitch belongs.\nThe CIDR block of the vSwitch cannot be the same as the destination CIDR block in a route entry of the VPC. However, it can be a subset of the destination CIDR block."
          },
          "Required": true
        },
        "VSwitchName": {
          "Type": "String",
          "Description": {
            "en": "The name of the vSwitch. The name must meet the following requirements:\nThe name must be 2 to 128 characters in length.\nThe name must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).\nDefault value: null."
          },
          "Required": false
        },
        "NetworkId": {
          "Type": "String",
          "Description": {
            "en": "The ID of the network to which the vSwitch that you want to create belongs."
          },
          "Required": true
        },
        "EnsRegionId": {
          "Type": "String",
          "Description": {
            "en": "The ID of the edge node."
          },
          "Required": true
        }
      },
      "Resources": {
        "VSwitch": {
          "Type": "ALIYUN::ENS::VSwitch",
          "Properties": {
            "Description": {
              "Ref": "Description"
            },
            "CidrBlock": {
              "Ref": "CidrBlock"
            },
            "VSwitchName": {
              "Ref": "VSwitchName"
            },
            "NetworkId": {
              "Ref": "NetworkId"
            },
            "EnsRegionId": {
              "Ref": "EnsRegionId"
            }
          }
        }
      },
      "Outputs": {
        "VSwitchId": {
          "Description": "The ID of the vSwitch.",
          "Value": {
            "Fn::GetAtt": [
              "VSwitch",
              "VSwitchId"
            ]
          }
        }
      }
    }