Cria um pool de endereços DNS para uma instância do Global Traffic Manager (GTM).
Sintaxe
{
"Type": "ALIYUN::DNS::AddressPool",
"Properties": {
"Addr": List,
"InstanceId": String,
"LbaStrategy": String,
"Name": String,
"Type": String,
"EvaluationCount": Integer,
"IspCityNode": List,
"Interval": Integer,
"MonitorExtendInfo": Map,
"MonitorStatus": String,
"ProtocolType": String,
"Timeout": Integer
}
}
Propriedades
|
Parâmetro |
Tipo |
Obrigatório |
Atualize permitida |
Descrição |
Restrições |
|
Addr |
List |
Sim |
Sim |
Endereços no pool. |
Comprimento: 1 a 50. Propriedades de Addr. |
|
InstanceId |
String |
Sim |
Não |
ID da instância GTM. |
Nenhuma |
|
LbaStrategy |
String |
Sim |
Sim |
Estratégia de balanceamento de carga. |
Valores válidos:
|
|
Name |
String |
Sim |
Sim |
Nome do pool de endereços. |
Nenhuma |
|
Type |
String |
Sim |
Não |
Tipo do pool de endereços. |
Valores válidos:
|
|
EvaluationCount |
Integer |
Não |
Não |
Número de falhas consecutivas na verificação de integridade antes que o endereço seja marcado como não íntegro. |
Intervalo: 1 a 9.999.999. |
|
Interval |
Integer |
Não |
Não |
Intervalo da verificação de integridade. |
Unidade: segundos. Intervalo: 1 a 9.999.999. |
|
IspCityNode |
List |
Não |
Não |
Nós de cidade ISP. |
Comprimento: 1 a 20. Propriedades de IspCityNode. |
|
MonitorExtendInfo |
Map |
Não |
Não |
Informações estendidas da verificação de integridade. |
Nenhuma |
|
MonitorStatus |
String |
Não |
Não |
Status de monitoramento do pool de endereços. |
Valores válidos:
|
|
ProtocolType |
String |
Não |
Não |
Protocolo da verificação de integridade. |
Valores válidos:
|
|
Timeout |
Integer |
Não |
Não |
Tempo limite da verificação de integridade. |
Unidade: segundos. Intervalo: 1 a 9.999.999. |
Sintaxe de IspCityNode
"IspCityNode": [
{
"CityCode": String,
"IspCode": String
}
]
Propriedades de IspCityNode
|
Parâmetro |
Tipo |
Obrigatório |
Atualize permitida |
Descrição |
Restrições |
|
CityCode |
String |
Não |
Não |
Código da cidade. |
Nenhuma |
|
IspCode |
String |
Não |
Não |
Código do ISP. |
Nenhuma |
Sintaxe de Addr
"Addr": [
{
"AttributeInfo": Map,
"LbaWeight": Integer,
"Mode": String,
"Addr": String,
"Remark": String
}
]
Propriedades de Addr
|
Parâmetro |
Tipo |
Obrigatório |
Atualize permitida |
Descrição |
Restrições |
|
Addr |
String |
Sim |
Não |
Valor do endereço. |
Nenhuma |
|
AttributeInfo |
Map |
Sim |
Não |
Atributos do endereço. |
Nenhuma |
|
Mode |
String |
Sim |
Não |
Modo do endereço. |
Valores válidos:
|
|
LbaWeight |
Integer |
Não |
Não |
Peso do endereço. |
Nenhuma |
|
Remark |
String |
Não |
Não |
Observação do endereço. |
Nenhuma |
Valores de retorno
Fn::GetAtt
AddrPoolId: ID do pool de endereços.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Type:
Type: String
Description:
en: 'The type of the address pool. Valid values: IPV4, IPV6, and DOMAIN.'
zh: 地址池的类型。取值范围:Ipv4、Ipv6、Domain。
AllowedValues:
- IPV4
- IPV6
- DOMAIN
Required: true
LbaStrategy:
Type: String
Description:
en: 'The load balancing strategy. Valid values: ALL_RR and RATIO.'
zh: 负载均衡策略。取值范围:RoundRobin、Weighted、FallbackToFirst。
AllowedValues:
- ALL_RR
- RATIO
Required: true
InstanceId:
Type: String
Description:
en: The ID of the GTM instance.
zh: GTM实例的ID。
Required: true
Addr:
AssociationPropertyMetadata:
Parameter:
AssociationPropertyMetadata:
Parameters:
AttributeInfo:
Type: Json
Description:
en: The attributes of the address.
zh: 地址的属性信息。
Required: true
LbaWeight:
Type: Number
Description:
en: The weight of the address.
zh: 地址的权重。
Required: false
Mode:
Type: String
Description:
en: 'The mode of the address. Valid values: SMART, ONLINE, and OFFLINE.'
zh: 地址的模式。取值范围:Normal、Maintenance。
AllowedValues:
- SMART
- ONLINE
- OFFLINE
Required: true
Addr:
Type: String
Description:
en: The address value.
zh: 地址值。
Required: true
Remark:
Type: String
Description:
en: The remark for the address.
zh: 地址的备注。
Required: false
Type: Json
Required: false
AssociationProperty: List[Parameter]
Type: Json
Description:
en: The list of addresses in the address pool.
zh: 地址池中的地址列表。
Required: true
MinLength: 1
MaxLength: 50
Name:
Type: String
Description:
en: The name of the address pool.
zh: 地址池的名称。
Required: true
Resources:
AddressPool:
Type: ALIYUN::DNS::AddressPool
Properties:
Type:
Ref: Type
LbaStrategy:
Ref: LbaStrategy
InstanceId:
Ref: InstanceId
Addr:
Ref: Addr
Name:
Ref: Name
Outputs:
AddrPoolId:
Description:
en: The ID of the address pool.
zh: 地址池的ID。
Value:
Fn::GetAtt:
- AddressPool
- AddrPoolId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Type": {
"Type": "String",
"Description": {
"en": "The type of the address pool. Valid values: IPV4, IPV6, and DOMAIN.",
"zh": "地址池的类型。取值范围:Ipv4、Ipv6、Domain。"
},
"AllowedValues": [
"IPV4",
"IPV6",
"DOMAIN"
],
"Required": true
},
"LbaStrategy": {
"Type": "String",
"Description": {
"en": "The load balancing strategy. Valid values: ALL_RR and RATIO.",
"zh": "负载均衡策略。取值范围:RoundRobin、Weighted、FallbackToFirst。"
},
"AllowedValues": [
"ALL_RR",
"RATIO"
],
"Required": true
},
"InstanceId": {
"Type": "String",
"Description": {
"en": "The ID of the GTM instance.",
"zh": "GTM实例的ID。"
},
"Required": true
},
"Addr": {
"AssociationPropertyMetadata": {
"Parameter": {
"AssociationPropertyMetadata": {
"Parameters": {
"AttributeInfo": {
"Type": "Json",
"Description": {
"en": "The attributes of the address.",
"zh": "地址的属性信息。"
},
"Required": true
},
"LbaWeight": {
"Type": "Number",
"Description": {
"en": "The weight of the address.",
"zh": "地址的权重。"
},
"Required": false
},
"Mode": {
"Type": "String",
"Description": {
"en": "The mode of the address. Valid values: SMART, ONLINE, and OFFLINE.",
"zh": "地址的模式。取值范围:Normal、Maintenance。"
},
"AllowedValues": [
"SMART",
"ONLINE",
"OFFLINE"
],
"Required": true
},
"Addr": {
"Type": "String",
"Description": {
"en": "The address value.",
"zh": "地址值。"
},
"Required": true
},
"Remark": {
"Type": "String",
"Description": {
"en": "The remark for the address.",
"zh": "地址的备注。"
},
"Required": false
}
}
},
"Type": "Json",
"Required": false
}
},
"AssociationProperty": "List[Parameter]",
"Type": "Json",
"Description": {
"en": "The list of addresses in the address pool.",
"zh": "地址池中的地址列表。"
},
"Required": true,
"MinLength": 1,
"MaxLength": 50
},
"Name": {
"Type": "String",
"Description": {
"en": "The name of the address pool.",
"zh": "地址池的名称。"
},
"Required": true
}
},
"Resources": {
"AddressPool": {
"Type": "ALIYUN::DNS::AddressPool",
"Properties": {
"Type": {
"Ref": "Type"
},
"LbaStrategy": {
"Ref": "LbaStrategy"
},
"InstanceId": {
"Ref": "InstanceId"
},
"Addr": {
"Ref": "Addr"
},
"Name": {
"Ref": "Name"
}
}
}
},
"Outputs": {
"AddrPoolId": {
"Description": {
"en": "The ID of the address pool.",
"zh": "地址池的ID。"
},
"Value": {
"Fn::GetAtt": [
"AddressPool",
"AddrPoolId"
]
}
}
}
}