All Products
Search
Document Center

:ALIYUN::Eflo::Vpd

更新時間:Jul 07, 2026

The ALIYUN::Eflo::Vpd resource type creates an Eflo VPD.

Syntax

{
  "Type": "ALIYUN::Eflo::Vpd",
  "Properties": {
    "Cidr": String,
    "VpdName": String,
    "ResourceGroupId": String,
    "Subnets": List,
    "SecondaryCidrBlocks": List,
    "Tags": List
  }
}

Properties

Parameter

Type

Required

Editable

Description

Constraints

Cidr

String

Yes

No

The primary CIDR block of the VPD.

Use a private CIDR block as defined in RFC 1918, such as 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16. If you plan to connect the VPD to other VPDs or VPCs, ensure that their CIDR blocks do not overlap. You can also use a custom CIDR block. However, you cannot use 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, or 169.254.0.0/16, or any of their subnets as the primary IPv4 CIDR block of the VPD.

VpdName

String

Yes

Yes

The name of the VPD.

None

ResourceGroupId

String

No

Yes

The ID of the resource group.

None

SecondaryCidrBlocks

List

No

Yes

A list of secondary CIDR blocks for the VPD.

You can specify up to 100 secondary CIDR blocks.

Subnets

List

No

No

A list of Eflo subnets to create within the VPD.

For more information, see Subnets properties.

Tags

List

No

Yes

A list of tags (key-value pairs) to assign to the VPD.

For more information, see Tags properties.

Subnets syntax

"Subnets": [
  {
    "SubnetName": String,
    "Type": String,
    "Cidr": String,
    "ZoneId": String,
    "RegionId": String
  }
]

Subnets properties

Parameter

Type

Required

Editable

Description

Constraints

Cidr

String

No

No

The CIDR block of the subnet.

The subnet CIDR block must be a proper subset of the VPD's CIDR block. The mask length must be between 16 and 29, inclusive, providing 8 to 65,536 addresses.

For example, if the VPD's CIDR block is 192.168.0.0/16, the subnet CIDR blocks can range from 192.168.0.0/17 to 192.168.0.0/29.

- The system reserves the first IP address and the last three IP addresses of each subnet CIDR block.

For example, for the subnet CIDR block 192.168.1.0/24, the reserved addresses are 192.168.1.0, 192.168.1.253, 192.168.1.254, and 192.168.1.255.

RegionId

String

No

No

The ID of the region where the Eflo subnet is located.

None

SubnetName

String

No

No

The name of the Eflo subnet.

None

Type

String

No

No

The type of the Eflo subnet.

Valid values:

  • OOB

  • LB

  • If you do not specify this property, the system creates a general-purpose subnet.

ZoneId

String

No

No

The ID of the availability zone where the Eflo subnet is located.

None

Tags syntax

"Tags": [
  {
    "Value": String,
    "Key": String
  }
]

Tags properties

Parameter

Type

Required

Editable

Description

Constraints

Key

String

Yes

No

The tag key.

None

Value

String

No

No

The tag value.

None

Return values

Fn::GetAtt

  • ResourceGroupId: The ID of the resource group.

  • Cidr: The primary CIDR block of the VPD.

  • SecondaryCidrBlocks: The list of secondary CIDR blocks.

  • VpdId: The ID of the VPD.

  • CreateTime: The creation time of the resource.

  • GmtModified: The modification time of the resource.

  • VpdName: The name of the VPD.

  • Tags: The tags of the resource.

Examples

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Cidr:
    Description:
      en: The primary CIDR block for the VPD. Use a private CIDR block (RFC 1918).
        This block must not overlap with connected networks. Reserved ranges such
        as 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, and 169.254.0.0/16 are not
        allowed.
    Required: true
    Type: String
  ResourceGroupId:
    AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
    Description:
      en: The ID of the resource group to which the VPD belongs.
    Required: false
    Type: String
  SecondaryCidrBlocks:
    AssociationProperty: List[Parameter]
    AssociationPropertyMetadata:
      Parameter:
        Description:
          en: A secondary CIDR block.
        Required: true
        Type: String
    Description:
      en: A list of secondary CIDR blocks for the VPD.
    MaxLength: 100
    MinLength: 0
    Required: false
    Type: Json
  Subnets:
    AssociationProperty: List[Parameters]
    AssociationPropertyMetadata:
      Parameters:
        Cidr:
          Description:
            en: The CIDR block for the subnet. It must be a proper subset of the VPD's
              CIDR block, with a mask from /17 to /29. The first and last three IP
              addresses are reserved.
          Required: false
          Type: String
        RegionId:
          Description:
            en: The ID of the region.
          Required: false
          Type: String
        SubnetName:
          Description:
            en: The name of the Eflo subnet.
          Required: false
          Type: String
        Type:
          Description:
            en: The type of the Eflo subnet. Valid values are OOB and LB. If not specified,
              the system creates a general-purpose subnet.
          Required: false
          Type: String
        ZoneId:
          AssociationProperty: ZoneId
          Description:
            en: The ID of the availability zone.
          Required: false
          Type: String
    Description:
      en: A list of Eflo subnets to create in the VPD.
    MaxLength: 100
    MinLength: 0
    Required: false
    Type: Json
  Tags:
    AssociationProperty: List[Parameters]
    AssociationPropertyMetadata:
      ListMetadata:
        Order:
          - Key
          - Value
      Parameters:
        Key:
          Required: true
          Type: String
        Value:
          Required: false
          Type: String
    Description:
      en: A list of tags (key-value pairs) to apply to the resource.
    MaxLength: 20
    Required: false
    Type: Json
  VpdName:
    Description:
      en: The name of the VPD.
    Required: true
    Type: String
Resources:
  ExtensionResource:
    Properties:
      Cidr:
        Ref: Cidr
      ResourceGroupId:
        Ref: ResourceGroupId
      SecondaryCidrBlocks:
        Ref: SecondaryCidrBlocks
      Subnets:
        Ref: Subnets
      Tags:
        Ref: Tags
      VpdName:
        Ref: VpdName
    Type: ALIYUN::Eflo::Vpd
Outputs:
  Cidr:
    Description: The primary CIDR block of the VPD.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Cidr
  CreateTime:
    Description: The creation time of the resource.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CreateTime
  GmtModified:
    Description: The modification time of the resource.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - GmtModified
  ResourceGroupId:
    Description: The ID of the resource group.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ResourceGroupId
  SecondaryCidrBlocks:
    Description: The list of secondary CIDR blocks.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - SecondaryCidrBlocks
  Tags:
    Description: The tags of the resource.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Tags
  VpdId:
    Description: The ID of the VPD.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - VpdId
  VpdName:
    Description: The name of the VPD.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - VpdName
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Subnets": {
      "AssociationPropertyMetadata": {
        "Parameters": {
          "SubnetName": {
            "Type": "String",
            "Description": {
              "en": "The name of the Eflo subnet."
            },
            "Required": false
          },
          "Type": {
            "Type": "String",
            "Description": {
              "en": "The type of the Eflo subnet. Valid values are OOB and LB. If not specified, the system creates a general-purpose subnet."
            },
            "Required": false
          },
          "Cidr": {
            "Type": "String",
            "Description": {
              "en": "The CIDR block for the subnet. It must be a proper subset of the VPD's CIDR block, with a mask from /17 to /29. The first and last three IP addresses are reserved."
            },
            "Required": false
          },
          "ZoneId": {
            "Type": "String",
            "AssociationProperty": "ZoneId",
            "Description": {
              "en": "The ID of the availability zone."
            },
            "Required": false
          },
          "RegionId": {
            "Type": "String",
            "Description": {
              "en": "The ID of the region."
            },
            "Required": false
          }
        }
      },
      "Type": "Json",
      "AssociationProperty": "List[Parameters]",
      "Description": {
        "en": "A list of Eflo subnets to create in the VPD."
      },
      "Required": false,
      "MinLength": 0,
      "MaxLength": 100
    },
    "ResourceGroupId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId",
      "Description": {
        "en": "The ID of the resource group to which the VPD belongs."
      },
      "Required": false
    },
    "Cidr": {
      "Type": "String",
      "Description": {
        "en": "The primary CIDR block for the VPD. Use a private CIDR block (RFC 1918). This block must not overlap with connected networks. Reserved ranges such as 100.64.0.0/10, 224.0.0.0/4, 127.0.0.0/8, and 169.254.0.0/16 are not allowed."
      },
      "Required": true
    },
    "SecondaryCidrBlocks": {
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "Description": {
            "en": "A secondary CIDR block."
          },
          "Required": true
        }
      },
      "Type": "Json",
      "AssociationProperty": "List[Parameter]",
      "Description": {
        "en": "A list of secondary CIDR blocks for the VPD."
      },
      "Required": false,
      "MinLength": 0,
      "MaxLength": 100
    },
    "VpdName": {
      "Type": "String",
      "Description": {
        "en": "The name of the VPD."
      },
      "Required": true
    },
    "Tags": {
      "AssociationPropertyMetadata": {
        "Parameters": {
          "Value": {
            "Type": "String",
            "Required": false
          },
          "Key": {
            "Type": "String",
            "Required": true
          }
        },
        "ListMetadata": {
          "Order": [
            "Key",
            "Value"
          ]
        }
      },
      "Type": "Json",
      "AssociationProperty": "List[Parameters]",
      "Description": {
        "en": "A list of tags (key-value pairs) to apply to the resource."
      },
      "Required": false,
      "MaxLength": 20
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::Eflo::Vpd",
      "Properties": {
        "Subnets": {
          "Ref": "Subnets"
        },
        "ResourceGroupId": {
          "Ref": "ResourceGroupId"
        },
        "Cidr": {
          "Ref": "Cidr"
        },
        "SecondaryCidrBlocks": {
          "Ref": "SecondaryCidrBlocks"
        },
        "VpdName": {
          "Ref": "VpdName"
        },
        "Tags": {
          "Ref": "Tags"
        }
      }
    }
  },
  "Outputs": {
    "ResourceGroupId": {
      "Description": "The ID of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ResourceGroupId"
        ]
      }
    },
    "Cidr": {
      "Description": "The primary CIDR block of the VPD.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Cidr"
        ]
      }
    },
    "SecondaryCidrBlocks": {
      "Description": "The list of secondary CIDR blocks.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "SecondaryCidrBlocks"
        ]
      }
    },
    "VpdId": {
      "Description": "The ID of the VPD.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "VpdId"
        ]
      }
    },
    "CreateTime": {
      "Description": "The creation time of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CreateTime"
        ]
      }
    },
    "GmtModified": {
      "Description": "The modification time of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "GmtModified"
        ]
      }
    },
    "VpdName": {
      "Description": "The name of the VPD.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "VpdName"
        ]
      }
    },
    "Tags": {
      "Description": "The tags of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Tags"
        ]
      }
    }
  }
}