ALIYUN::VPC::IpamPool

更新时间:
复制为 MD 格式

ALIYUN::VPC::IpamPool类型用于创建IPAM地址池。

语法

{
  "Type": "ALIYUN::VPC::IpamPool",
  "Properties": {
    "IpamScopeId": String,
    "AllocationDefaultCidrMask": Integer,
    "AllocationMinCidrMask": Integer,
    "AutoImport": Boolean,
    "AllocationMaxCidrMask": Integer,
    "Ipv6Isp": String,
    "IpamPoolName": String,
    "IpVersion": String,
    "IpamPoolDescription": String,
    "PoolRegionId": String,
    "ResourceGroupId": String,
    "SourceIpamPoolId": String,
    "Tags": List
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

IpamScopeId

String

IPAM作用域ID。

AllocationDefaultCidrMask

Integer

默认分配的CIDR掩码。

AllocationMaxCidrMask

Integer

最大分配的CIDR掩码。

AllocationMinCidrMask

Integer

最小分配的CIDR掩码。

AutoImport

Boolean

是否自动导入IP地址管理池。

Ipv6Isp

String

IPAM地址池的IPv6运营商。

IpamPoolDescription

String

IPAM地址池的描述信息。

IpamPoolName

String

IPAM地址池名称。

IpVersion

String

IPAM地址池的IP版本。

取值:

  • IPv4

  • IPv6

PoolRegionId

String

IPAM地址池的生效地域。

ResourceGroupId

String

IPAM地址池的资源组ID。

SourceIpamPoolId

String

IPAM地址池ID。

Tags

List

IPAM地址池绑定的自定义标签。

更多属性,请参考Tags属性

Tags语法

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

Tags属性

属性名称

类型

必须

允许更新

描述

约束

Key

String

标签键。

Value

String

标签值。

返回值

Fn::GetAtt

IpamPoolId:IPAM地址池ID。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  IpamPoolName:
    Type: String
    Description:
      en: The name of the IPAM pool.
    Required: false
  IpVersion:
    Type: String
    Description:
      en: 'The IP version of the IPAM pool. Valid values: IPv4, IPv6.'
    Required: false
  AllocationDefaultCidrMask:
    Type: Number
    Description:
      en: The default CIDR mask for allocation.
    Required: false
    MinValue: 0
    MaxValue: 128
  IpamScopeId:
    Type: String
    Description:
      en: The ID of the IPAM scope. This parameter is required.
    Required: true
Resources:
  IpamPool:
    Type: ALIYUN::VPC::IpamPool
    Properties:
      IpamPoolName:
        Ref: IpamPoolName
      IpVersion:
        Ref: IpVersion
      AllocationDefaultCidrMask:
        Ref: AllocationDefaultCidrMask
      IpamScopeId:
        Ref: IpamScopeId
Outputs:
  IpamPoolId:
    Description: The ID of the IPAM pool.
    Value:
      Fn::GetAtt:
        - IpamPool
        - IpamPoolId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "IpamPoolName": {
      "Type": "String",
      "Description": {
        "en": "The name of the IPAM pool."
      },
      "Required": false
    },
    "IpVersion": {
      "Type": "String",
      "Description": {
        "en": "The IP version of the IPAM pool. Valid values: IPv4, IPv6."
      },
      "Required": false
    },
    "AllocationDefaultCidrMask": {
      "Type": "Number",
      "Description": {
        "en": "The default CIDR mask for allocation."
      },
      "Required": false,
      "MinValue": 0,
      "MaxValue": 128
    },
    "IpamScopeId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the IPAM scope. This parameter is required."
      },
      "Required": true
    }
  },
  "Resources": {
    "IpamPool": {
      "Type": "ALIYUN::VPC::IpamPool",
      "Properties": {
        "IpamPoolName": {
          "Ref": "IpamPoolName"
        },
        "IpVersion": {
          "Ref": "IpVersion"
        },
        "AllocationDefaultCidrMask": {
          "Ref": "AllocationDefaultCidrMask"
        },
        "IpamScopeId": {
          "Ref": "IpamScopeId"
        }
      }
    }
  },
  "Outputs": {
    "IpamPoolId": {
      "Description": "The ID of the IPAM pool.",
      "Value": {
        "Fn::GetAtt": [
          "IpamPool",
          "IpamPoolId"
        ]
      }
    }
  }
}