Consulte la liste des ACL réseau en appelant l'opération DescribeNetworkAcls.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
vpc:DescribeNetworkAcls |
list |
*NetworkAcl
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| NetworkAclId |
string |
Non |
L'identifiant de l'ACL réseau. |
nacl-bp1lhl0taikrbgnh**** |
| NetworkAclName |
string |
Non |
Le nom de l'ACL réseau. |
acl-1 |
| VpcId |
string |
Non |
L'identifiant du VPC associé à l'ACL réseau. |
vpc-m5ebpc2xh64mqm27e**** |
| ResourceType |
string |
Non |
Le type de la ressource associée. Valeurs valides : VSwitch : vSwitch. |
VSwitch |
| ResourceId |
string |
Non |
L'identifiant de la ressource associée. |
vsw-bp1de348lntdwnhbg**** |
| PageNumber |
integer |
Non |
Le numéro de page de la liste. Valeur par défaut : 1. |
1 |
| PageSize |
integer |
Non |
Le nombre d'entrées par page dans une requête paginée. Valeur maximale : 50. Valeur par défaut : 10. |
10 |
| RegionId |
string |
Oui |
L'identifiant de la région de l'ACL réseau. |
cn-hangzhou |
| Tags |
array<object> |
Non |
Les balises. |
|
|
object |
Non |
Les balises. |
||
| Key |
string |
Non |
La clé de balise de la ressource. Vous pouvez spécifier jusqu'à 20 clés de balise. La clé de balise ne peut pas être une chaîne vide. |
FinanceDept |
| Value |
string |
Non |
La valeur de balise de la ressource. Vous pouvez spécifier jusqu'à 20 valeurs de balise. La valeur de balise peut être une chaîne vide. |
FinanceJoshua |
| RegionId |
string |
Oui |
L'identifiant de la région de l'ACL réseau. |
cn-hangzhou |
| ClientToken |
string |
Non |
Le jeton client utilisé pour garantir l'idempotence de la requête. |
123e4567-e89b-12d3-a456-426655440000 |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
|||
| PageSize |
string |
Le nombre d'entrées par page dans une requête paginée. |
10 |
| RequestId |
string |
L'identifiant de la requête. |
F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1 |
| PageNumber |
string |
Le numéro de page de la liste. |
1 |
| TotalCount |
string |
Le nombre total d'ACL réseau dans la liste. |
2 |
| NetworkAcls |
object |
||
| NetworkAcl |
array<object> |
Les détails de l'ACL réseau. |
|
|
array<object> |
Les détails de l'ACL réseau. |
||
| Status |
string |
The status of the network ACL. Valid values:
|
Available |
| VpcId |
string |
The ID of the associated VPC. |
vpc-m5ebpc2xh64mqm27e**** |
| CreationTime |
string |
The time when the network ACL was created. |
2021-12-25 11:44:17 |
| Description |
string |
The description of the network ACL. |
This is my NetworkAcl. |
| NetworkAclName |
string |
The name of the network ACL. |
acl-1 |
| NetworkAclId |
string |
The ID of the network ACL. |
nacl-a2do9e413e0spxscd**** |
| OwnerId |
integer |
The Alibaba Cloud account ID to which the network ACL belongs. |
253460731706911258 |
| RegionId |
string |
The region ID of the network ACL. |
cn-hangzhou |
| IngressAclEntries |
object |
||
| IngressAclEntry |
array<object> |
The inbound rule information. |
|
|
object |
The inbound rule information. |
||
| NetworkAclEntryId |
string |
The ID of the inbound rule entries. |
nae-a2dk86arlydmezasw**** |
| EntryType |
string |
The rule type. The value is custom, which indicates a custom rule. |
custom |
| NetworkAclEntryName |
string |
The name of the inbound rule entries. |
acl-3 |
| Policy |
string |
The authorization policy. Valid values:
|
accept |
| Description |
string |
The description of the inbound rule. |
This is IngressAclEntries. |
| SourceCidrIp |
string |
The source CIDR block. |
10.0.0.0/24 |
| IpVersion |
string |
The IP version of the instance. Valid values:
|
IPv4 |
| Protocol |
string |
The protocol type. Valid values:
|
all |
| Port |
string |
The destination port range of the inbound rule.
|
-1/-1 |
| EgressAclEntries |
object |
||
| EgressAclEntry |
array<object> |
The outbound rule information. |
|
|
object |
|||
| NetworkAclEntryId |
string |
The ID of the outbound rule entries. |
nae-a2d447uw4tillfvgb**** |
| EntryType |
string |
The rule type. The value is custom, which indicates a custom rule. |
custom |
| NetworkAclEntryName |
string |
The name of the outbound rule entries. |
acl-2 |
| Policy |
string |
The authorization policy. Valid values:
|
accept |
| Description |
string |
The description of the outbound rule. |
This is EgressAclEntries. |
| Protocol |
string |
The protocol type. Valid values:
|
all |
| DestinationCidrIp |
string |
The destination CIDR block. |
10.0.0.0/24 |
| IpVersion |
string |
The IP version of the instance. Valid values:
|
IPv4 |
| Port |
string |
The destination port range of the outbound rule.
|
-1/-1 |
| Resources |
object |
||
| Resource |
array<object> |
The associated resource. |
|
|
object |
The associated resource. |
||
| Status |
string |
The status of the associated resource. Valid values:
|
BINDED |
| ResourceType |
string |
The type of the associated resource. |
VSwitch |
| ResourceId |
string |
The ID of the associated resource. |
vsw-bp1de348lntdwcdf**** |
| Tags |
object |
||
| Tag |
array<object> |
The tag information. |
|
|
object |
The tag information. |
||
| Key |
string |
The tag key. |
FinanceDept |
| Value |
string |
The tag value. |
FinanceJoshua |
Exemples
JSON format
{
"PageSize": "10",
"RequestId": "F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1",
"PageNumber": "1",
"TotalCount": "2",
"NetworkAcls": {
"NetworkAcl": [
{
"Status": "Available",
"VpcId": "vpc-m5ebpc2xh64mqm27e****",
"CreationTime": "2021-12-25 11:44:17",
"Description": "This is my NetworkAcl.",
"NetworkAclName": "acl-1",
"NetworkAclId": "nacl-a2do9e413e0spxscd****",
"OwnerId": 253460731706911260,
"RegionId": "cn-hangzhou",
"IngressAclEntries": {
"IngressAclEntry": [
{
"NetworkAclEntryId": "nae-a2dk86arlydmezasw****",
"EntryType": "custom",
"NetworkAclEntryName": "acl-3\t",
"Policy": "accept",
"Description": "This is IngressAclEntries.",
"SourceCidrIp": "10.0.0.0/24\t",
"IpVersion": "IPv4",
"Protocol": "all",
"Port": "-1/-1\t"
}
]
},
"EgressAclEntries": {
"EgressAclEntry": [
{
"NetworkAclEntryId": "nae-a2d447uw4tillfvgb****",
"EntryType": "custom",
"NetworkAclEntryName": "acl-2\t",
"Policy": "accept",
"Description": "This is EgressAclEntries.",
"Protocol": "all",
"DestinationCidrIp": "10.0.0.0/24\t",
"IpVersion": "IPv4",
"Port": "-1/-1\t"
}
]
},
"Resources": {
"Resource": [
{
"Status": "BINDED",
"ResourceType": "VSwitch",
"ResourceId": "vsw-bp1de348lntdwcdf****"
}
]
},
"Tags": {
"Tag": [
{
"Key": "FinanceDept",
"Value": "FinanceJoshua"
}
]
}
}
]
}
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 400 | ParameterMissing.AliUid | ParameterMissing.AliUid | |
| 400 | ParameterMissing.Bid | ParameterMissing.Bid | |
| 400 | ParameterMissing.RegionId | ParameterMissing.RegionId | |
| 400 | ParameterEmpty.RegionId | ParameterEmpty.RegionId | |
| 400 | NotSupport.NetworkAcl | Network acl is not support now. | |
| 500 | InternalError | The request processing has failed due to some unknown error. |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.