Crie um modelo global de lista de permissões de IP para o PolarDB.
Sintaxe
{
"Type": "ALIYUN::POLARDB::GlobalSecurityIPGroup",
"Properties": {
"GlobalIgName": String,
"GIpList": List,
"ResourceGroupId": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
GlobalIgName |
String |
Sim |
Não |
Nome do modelo global de lista de permissões de IP. |
O nome deve atender aos seguintes requisitos:
|
|
GIpList |
List |
Sim |
Sim |
Endereços IP ou blocos CIDR no modelo global de lista de permissões de IP. |
Limite de 1.000 endereços IP ou blocos CIDR por modelo global de lista de permissões de IP. |
|
ResourceGroupId |
String |
Não |
Sim |
ID do grupo de recursos. |
Nenhuma. |
Valores de retorno
Fn::GetAtt
GlobalSecurityGroupId: ID do modelo global de lista de permissões de IP.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
GlobalIgName:
Type: String
Description:
en: |-
The name of the IP whitelist template. The name must meet the following requirements:
The name can contain lowercase letters, digits, and underscores (_).
The name must start with a letter and end with a letter or digit.
The name must be 2 to 120 characters in length.
Required: true
AllowedPattern: ^[a-z][a-z0-9_]*[a-z0-9]$
MinLength: 2
MaxLength: 120
GIpList:
AssociationPropertyMetadata:
Parameter:
Type: String
Description:
en: The IP address in the whitelist template.
Required: false
AssociationProperty: List[Parameter]
Type: Json
Description:
en: |-
The IP addresses in the whitelist template.
You can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists.
Required: true
MinLength: 1
MaxLength: 1000
Resources:
GlobalSecurityIPGroup:
Type: ALIYUN::POLARDB::GlobalSecurityIPGroup
Properties:
GlobalIgName:
Ref: GlobalIgName
GIpList:
Ref: GIpList
Outputs:
GlobalSecurityGroupId:
Description: The ID of the IP whitelist template.
Value:
Fn::GetAtt:
- GlobalSecurityIPGroup
- GlobalSecurityGroupId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"GlobalIgName": {
"Type": "String",
"Description": {
"en": "The name of the IP whitelist template. The name must meet the following requirements:\nThe name can contain lowercase letters, digits, and underscores (_).\nThe name must start with a letter and end with a letter or digit.\nThe name must be 2 to 120 characters in length."
},
"Required": true,
"AllowedPattern": "^[a-z][a-z0-9_]*[a-z0-9]$",
"MinLength": 2,
"MaxLength": 120
},
"GIpList": {
"AssociationPropertyMetadata": {
"Parameter": {
"Type": "String",
"Description": {
"en": "The IP address in the whitelist template."
},
"Required": false
}
},
"AssociationProperty": "List[Parameter]",
"Type": "Json",
"Description": {
"en": "The IP addresses in the whitelist template.\nYou can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists."
},
"Required": true,
"MinLength": 1,
"MaxLength": 1000
}
},
"Resources": {
"GlobalSecurityIPGroup": {
"Type": "ALIYUN::POLARDB::GlobalSecurityIPGroup",
"Properties": {
"GlobalIgName": {
"Ref": "GlobalIgName"
},
"GIpList": {
"Ref": "GIpList"
}
}
}
},
"Outputs": {
"GlobalSecurityGroupId": {
"Description": "The ID of the IP whitelist template.",
"Value": {
"Fn::GetAtt": [
"GlobalSecurityIPGroup",
"GlobalSecurityGroupId"
]
}
}
}
}