Cria uma lista de controle de acesso (ACL) para o Global Accelerator (GA).
Sintaxe
{
"Type": "ALIYUN::GA::Acl",
"Properties": {
"AclEntries": List,
"ResourceGroupId": String,
"AddressIPVersion": String,
"AclName": String,
"Tags": List
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatório |
Editável |
Descrição |
Restrição |
|
AddressIPVersion |
String |
Sim |
Não |
Versão do IP da ACL. |
Valores válidos:
|
|
AclEntries |
List |
Não |
Não |
Endereços IP ou blocos CIDR para adicionar à ACL. |
Adicione até 50 entradas por vez. Para mais informações, consulte a seção "Propriedades de AclEntries" deste tópico. |
|
AclName |
String |
Não |
Sim |
Nome da ACL. |
O nome deve ter de 1 a 128 caracteres e pode conter letras, dígitos, pontos (.), sublinhados (_) e hifens (-). Deve começar com uma letra. |
|
ResourceGroupId |
String |
Não |
Sim |
ID do grupo de recursos. |
Nenhuma. |
|
Tags |
List |
Não |
Sim |
Tags da ACL. |
Adicione até 20 tags por vez. Para mais informações, consulte a seção "Propriedades de Tags" deste tópico. |
Sintaxe de AclEntries
"AclEntries": [
{
"Entry": String,
"EntryDescription": String
}
]
Propriedades de AclEntries
|
Propriedade |
Tipo |
Obrigatório |
Editável |
Descrição |
Restrição |
|
Entry |
String |
Não |
Não |
Endereço IP ou bloco CIDR para adicionar à ACL. |
Por exemplo, um endereço IP no formato 192.168.XX.XX ou um bloco CIDR no formato 10.0.XX.XX/24. |
|
EntryDescription |
String |
Não |
Não |
Descrição da entrada. |
Especifique até 50 descrições por vez. A descrição deve ter de 1 a 256 caracteres e pode conter letras, dígitos, hifens (-), barras (/), pontos (.) e sublinhados (_). |
Sintaxe de Tags
"Tags": [
{
"Value": String,
"Key": String
}
]
Propriedades de Tags
|
Propriedade |
Tipo |
Obrigatório |
Editável |
Descrição |
Restrição |
|
Value |
String |
Não |
Não |
Valor da tag da ACL. |
O valor da tag pode ser uma string vazia. O valor da tag pode ter até 128 caracteres e não pode conter Especifique até 20 valores de tag. |
|
Key |
String |
Sim |
Não |
Chave da tag da ACL. |
A chave da tag não pode ser uma string vazia. A chave da tag pode ter até 64 caracteres e não pode conter Especifique até 20 chaves de tag. |
Valores de retorno
Fn::GetAtt
AclEntries: as entradas adicionadas à ACL.
ResourceGroupId: o ID do grupo de recursos.
AclId: o ID da ACL.
AddressIPVersion: a versão do IP da ACL.
Tags: as tags da ACL.
AclName: o nome da ACL.
Exemplos
Formato YAML
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AclEntries:
AssociationPropertyMetadata:
Parameters:
Entry:
Type: String
Description:
en: The IP addresses (192.168.XX.XX) or CIDR blocks (10.0.XX.XX/24) that you want to add to the ACL.
Required: false
EntryDescription:
Type: String
Description:
en: The description of the entry that you want to add to the AC,The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
Required: false
AssociationProperty: List[Parameters]
Type: Json
Description:
en: The entries of IP addresses or CIDR blocks to add to the ACL. You can add up to 20 entries.
Required: false
MinLength: 0
MaxLength: 20
AddressIPVersion:
Type: String
Description:
en: The IP version of the ACL.
Required: true
AclName:
Type: String
Description:
en: The name of the ACL.
Required: false
Resources:
ExtensionResource:
Type: ALIYUN::GA::Acl
Properties:
AclEntries:
Ref: AclEntries
AddressIPVersion:
Ref: AddressIPVersion
AclName:
Ref: AclName
Outputs:
AclEntries:
Description: The entries of the ACL.
Value:
Fn::GetAtt:
- ExtensionResource
- AclEntries
ResourceGroupId:
Description: The ID of the resource group.
Value:
Fn::GetAtt:
- ExtensionResource
- ResourceGroupId
AclId:
Description: The ID of the ACL.
Value:
Fn::GetAtt:
- ExtensionResource
- AclId
AddressIPVersion:
Description: The IP version of the ACL.
Value:
Fn::GetAtt:
- ExtensionResource
- AddressIPVersion
Tags:
Description: The tags of the resource.
Value:
Fn::GetAtt:
- ExtensionResource
- Tags
AclName:
Description: The name of the ACL.
Value:
Fn::GetAtt:
- ExtensionResource
- AclName
Formato JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AclEntries": {
"AssociationPropertyMetadata": {
"Parameters": {
"Entry": {
"Type": "String",
"Description": {
"en": "The IP addresses (192.168.XX.XX) or CIDR blocks (10.0.XX.XX/24) that you want to add to the ACL."
},
"Required": false
},
"EntryDescription": {
"Type": "String",
"Description": {
"en": "The description of the entry that you want to add to the AC,The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_)."
},
"Required": false
}
}
},
"AssociationProperty": "List[Parameters]",
"Type": "Json",
"Description": {
"en": "The entries of IP addresses or CIDR blocks to add to the ACL. You can add up to 20 entries."
},
"Required": false,
"MinLength": 0,
"MaxLength": 20
},
"AddressIPVersion": {
"Type": "String",
"Description": {
"en": "The IP version of the ACL."
},
"Required": true
},
"AclName": {
"Type": "String",
"Description": {
"en": "The name of the ACL."
},
"Required": false
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::GA::Acl",
"Properties": {
"AclEntries": {
"Ref": "AclEntries"
},
"AddressIPVersion": {
"Ref": "AddressIPVersion"
},
"AclName": {
"Ref": "AclName"
}
}
}
},
"Outputs": {
"AclEntries": {
"Description": "The entries of the ACL.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AclEntries"
]
}
},
"ResourceGroupId": {
"Description": "The ID of the resource group.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ResourceGroupId"
]
}
},
"AclId": {
"Description": "The ID of the ACL.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AclId"
]
}
},
"AddressIPVersion": {
"Description": "The IP version of the ACL.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AddressIPVersion"
]
}
},
"Tags": {
"Description": "The tags of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Tags"
]
}
},
"AclName": {
"Description": "The name of the ACL.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AclName"
]
}
}
}
}