Queries created network access control lists (ACLs).
Syntax
{
"Type": "DATASOURCE::VPC::NetworkAcls",
"Properties": {
"NetworkAclId": String,
"VpcId": String,
"ResourceId": String,
"ResourceType": String,
"NetworkAclName": String,
"RefreshOptions": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
NetworkAclId |
String |
No |
Yes |
The ID of the network ACL. |
None. |
|
VpcId |
String |
No |
Yes |
The ID of the associated virtual private cloud (VPC). |
None. |
|
ResourceId |
String |
No |
Yes |
The ID of the associated resource. |
You must specify both ResourceType and ResourceId. |
|
ResourceType |
String |
No |
Yes |
The type of the associated resource. |
Set the value to vSwitch. You must specify both ResourceType and ResourceId. |
|
NetworkAclName |
String |
No |
Yes |
The name of the network ACL. |
The name must be 2 to 128 characters in length and can contain letters, digits, hyphens (-), and underscores (_). The name must start with a letter but cannot start with |
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources when the stack is updated. |
Valid values:
|
Return values (Fn::GetAtt)
-
NetworkAclIds: the IDs of the network ACLs.
-
NetworkAcls: details of the network ACLs.
|
Property |
Type |
Description |
Constraint |
|
NetworkAclIds |
List |
The IDs of the network ACLs. |
Example: |
|
NetworkAcls |
List |
Details of the network ACLs. |
None. |
|
Status |
String |
The status of the network ACL. |
Valid values:
|
|
VpcId |
String |
The ID of the VPC with which the network ACL is associated. |
None. |
|
CreationTime |
String |
The time when the network ACL was created. |
None. |
|
Description |
String |
The description of the network ACL. |
None. |
|
NetworkAclName |
String |
The name of the network ACL. |
None. |
|
NetworkAclId |
String |
The ID of the network ACL. |
None. |
|
OwnerId |
String |
The ID of the Alibaba Cloud account to which the network ACL belongs. |
None. |
|
IngressAclEntries |
List |
The inbound rule configurations. |
Example: |
|
EgressAclEntries |
List |
The outbound rule configurations. |
Example: |
|
Resources |
List |
The associated resource configurations. |
Example: |
Examples
JSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"NetworkAclName": {
"Type": "String",
"Default": "TT",
"Description": "The name of the network ACL.\nThe name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter but cannot start with http:// or https://."
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::VPC::NetworkAcls",
"Properties": {
"NetworkAclName": {
"Ref": "NetworkAclName"
}
}
}
},
"Outputs": {
"NetworkAcls": {
"Description": "The list of The network acls.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"NetworkAcls"
]
}
},
"NetworkAclIds": {
"Description": "The list of The network acl ids.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"NetworkAclIds"
]
}
}
}
}