ALIYUN::VPC::Ipam類型用于創建一個IPAM實例。
語法
{
"Type": "ALIYUN::VPC::Ipam",
"Properties": {
"OperatingRegionList": List,
"IpamName": String,
"IpamDescription": String,
"ResourceGroupId": String,
"Tags": List
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
OperatingRegionList | List | 是 | 是 | IPAM 生效地域列表。 | 最多支持配置100個生效地域。 |
IpamName | String | 否 | 是 | IPAM 的名稱。 | 長度為 1~128 個字符,不能以 |
IpamDescription | String | 否 | 是 | IPAM 的描述信息。 | 長度為 1~256 個字符,必須以大小寫字母或中文開頭,但不能以 |
ResourceGroupId | String | 否 | 是 | IPAM 的資源組 ID。 | 無 |
Tags | List | 否 | 是 | 標簽列表信息。 | 最多支持20組標簽,詳細信息,請參考Tags屬性。 |
Tags語法
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
Key | String | 是 | 否 | 資源的標簽鍵。 | 一旦傳入該值,則不允許為空字符串。 最多支持 64 個字符,必須以字母或中文開頭,可包含數字、半角句號(.)、下劃線(_)和短劃線(-),不能以 |
Value | String | 否 | 否 | 資源的標簽值。 | 一旦傳入該值,可以為空字符串。 最多支持 128 個字符,不能包含 |
返回值
Fn::GetAtt
OperatingRegionList:IPAM 生效地域列表。
DefaultResourceDiscoveryAssociationId:默認的資源發現關聯關系 ID。
DefaultResourceDiscoveryId:默認資源發現實例 ID。
IpamName:IPAM 的名稱。
ResourceGroupId:IPAM 的資源組 ID。
IpamId:IPAM 的實例 ID。
CreateTime:IPAM的創建時間。
IpamDescription:IPAM 的描述信息。
ResourceDiscoveryAssociationCount:資源發現數量。
PrivateDefaultScopeId:創建 IPAM 后,系統默認創建的私網 IPAM 作用范圍。
PublicDefaultScopeId:創建 IPAM 后,系統默認創建的公網 IPAM 作用范圍。
Tags:IPAM標簽信息。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
OperatingRegionList:
AssociationPropertyMetadata:
Parameter:
Type: String
Description:
en: |-
The effective region of IPAM.
> Support to select one or more regions.
Required: false
AssociationProperty: List[Parameter]
Type: Json
Description:
en: List of IPAM effective regions.
Required: true
MinLength: 1
MaxLength: 100
Default:
- cn-hangzhou
- cn-beijing
ResourceGroupId:
AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
Type: String
Description:
en: The ID of the resource group.
Required: false
IpamName:
Type: String
Description:
en: The name of the IPAM.
Required: false
Default: test_ipam
Resources:
ExtensionResource:
Type: ALIYUN::VPC::Ipam
Properties:
OperatingRegionList:
Ref: OperatingRegionList
ResourceGroupId:
Ref: ResourceGroupId
IpamName:
Ref: IpamName
Outputs:
OperatingRegionList:
Description: List of IPAM effective regions.
Value:
Fn::GetAtt:
- ExtensionResource
- OperatingRegionList
DefaultResourceDiscoveryAssociationId:
Description: After an IPAM is created, the association between the resource discovery created by the system by default and the IPAM.
Value:
Fn::GetAtt:
- ExtensionResource
- DefaultResourceDiscoveryAssociationId
DefaultResourceDiscoveryId:
Description: After IPAM is created, the system creates resource discovery by default.
Value:
Fn::GetAtt:
- ExtensionResource
- DefaultResourceDiscoveryId
IpamName:
Description: The name of the IPAM.
Value:
Fn::GetAtt:
- ExtensionResource
- IpamName
ResourceGroupId:
Description: The ID of the resource group.
Value:
Fn::GetAtt:
- ExtensionResource
- ResourceGroupId
IpamId:
Description: The first ID of the resource.
Value:
Fn::GetAtt:
- ExtensionResource
- IpamId
CreateTime:
Description: The creation time of the IPAM.
Value:
Fn::GetAtt:
- ExtensionResource
- CreateTime
IpamDescription:
Description: The description of IPAM.
Value:
Fn::GetAtt:
- ExtensionResource
- IpamDescription
ResourceDiscoveryAssociationCount:
Description: The number of resource discovery objects associated with IPAM.
Value:
Fn::GetAtt:
- ExtensionResource
- ResourceDiscoveryAssociationCount
PrivateDefaultScopeId:
Description: After an IPAM is created, the scope of the private network IPAM created by the system by default.
Value:
Fn::GetAtt:
- ExtensionResource
- PrivateDefaultScopeId
PublicDefaultScopeId:
Description: After an IPAM is created, the public network IPAM is created by default.
Value:
Fn::GetAtt:
- ExtensionResource
- PublicDefaultScopeId
Tags:
Description: The tag of the IPAM.
Value:
Fn::GetAtt:
- ExtensionResource
- Tags
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"OperatingRegionList": {
"AssociationPropertyMetadata": {
"Parameter": {
"Type": "String",
"Description": {
"en": "The effective region of IPAM.\n> Support to select one or more regions."
},
"Required": false
}
},
"AssociationProperty": "List[Parameter]",
"Type": "Json",
"Description": {
"en": "List of IPAM effective regions."
},
"Required": true,
"MinLength": 1,
"MaxLength": 100,
"Default": [
"cn-hangzhou",
"cn-beijing"
]
},
"ResourceGroupId": {
"AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId",
"Type": "String",
"Description": {
"en": "The ID of the resource group."
},
"Required": false
},
"IpamName": {
"Type": "String",
"Description": {
"en": "The name of the IPAM."
},
"Required": false,
"Default": "test_ipam"
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::VPC::Ipam",
"Properties": {
"OperatingRegionList": {
"Ref": "OperatingRegionList"
},
"ResourceGroupId": {
"Ref": "ResourceGroupId"
},
"IpamName": {
"Ref": "IpamName"
}
}
}
},
"Outputs": {
"OperatingRegionList": {
"Description": "List of IPAM effective regions.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"OperatingRegionList"
]
}
},
"DefaultResourceDiscoveryAssociationId": {
"Description": "After an IPAM is created, the association between the resource discovery created by the system by default and the IPAM.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"DefaultResourceDiscoveryAssociationId"
]
}
},
"DefaultResourceDiscoveryId": {
"Description": "After IPAM is created, the system creates resource discovery by default.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"DefaultResourceDiscoveryId"
]
}
},
"IpamName": {
"Description": "The name of the IPAM.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"IpamName"
]
}
},
"ResourceGroupId": {
"Description": "The ID of the resource group.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ResourceGroupId"
]
}
},
"IpamId": {
"Description": "The first ID of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"IpamId"
]
}
},
"CreateTime": {
"Description": "The creation time of the IPAM.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
}
},
"IpamDescription": {
"Description": "The description of IPAM.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"IpamDescription"
]
}
},
"ResourceDiscoveryAssociationCount": {
"Description": "The number of resource discovery objects associated with IPAM.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ResourceDiscoveryAssociationCount"
]
}
},
"PrivateDefaultScopeId": {
"Description": "After an IPAM is created, the scope of the private network IPAM created by the system by default.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"PrivateDefaultScopeId"
]
}
},
"PublicDefaultScopeId": {
"Description": "After an IPAM is created, the public network IPAM is created by default.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"PublicDefaultScopeId"
]
}
},
"Tags": {
"Description": "The tag of the IPAM.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Tags"
]
}
}
}
}