Consulte les détails d'une ACL réseau.
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:DescribeNetworkAclAttributes |
get |
*NetworkAcl
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| NetworkAclId |
string |
Oui |
L'identifiant de l'ACL réseau. |
nacl-a2do9e413e0spzasx**** |
| RegionId |
string |
Oui |
L'identifiant de la région de l'ACL réseau. Vous pouvez appeler l'opération DescribeRegions pour obtenir l'identifiant de la région. |
cn-hangzhou |
| RegionId |
string |
Oui |
L'identifiant de la région de l'ACL réseau. Vous pouvez appeler l'opération DescribeRegions pour obtenir l'identifiant de la région. |
cn-hangzhou |
| ClientToken |
string |
Non |
Le jeton client utilisé pour garantir l'idempotence de la requête. Vous pouvez utiliser le client pour générer le jeton, mais vous devez vous assurer qu'il est unique pour chaque requête. La valeur de ClientToken ne peut contenir que des caractères ASCII. Remarque
Si vous ne spécifiez pas ce paramètre, le système utilise le RequestId de la requête API comme ClientToken. Le RequestId peut être différent pour chaque requête API. |
123e4567-e89b-12d3-a456-426655440000 |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
|||
| RequestId |
string |
L'identifiant de la requête. |
F5905F9C-0161-4E72-9CB1-1F3F3CF6268A |
| NetworkAclAttribute |
object |
Les détails de l'ACL réseau. |
|
| Status |
string |
L'état de la ressource associée. Valeurs valides :
|
Available |
| VpcId |
string |
L'identifiant du VPC associé à l'ACL réseau. |
vpc-a2d33rfpl72k5defr**** |
| CreationTime |
string |
L'heure de création de l'ACL réseau. |
2021-12-25 11:33:27 |
| Description |
string |
La description de l'ACL réseau. |
Ceci est mon ACL réseau |
| NetworkAclName |
string |
Le nom de l'ACL réseau. |
acl-1 |
| NetworkAclId |
string |
L'identifiant de l'ACL réseau. |
nacl-a2do9e413e0spnhmj**** |
| OwnerId |
integer |
L'identifiant du compte Alibaba Cloud auquel l'ACL réseau appartient. Important Cette valeur est de type Long. Dans certains langages de programmation, une perte de précision peut se produire. Utilisez cette valeur avec précaution. |
2546073170691**** |
| RegionId |
string |
L'identifiant de la région de l'ACL réseau. |
cn-hangzhou |
| IngressAclEntries |
object |
||
| IngressAclEntry |
array<object> |
The inbound rule information of the network ACL. |
|
|
object |
The inbound rule information of the network ACL. |
||
| NetworkAclEntryId |
string |
The ID of the inbound rule entries. |
nae-a2dk86arlydmevfbg**** |
| EntryType |
string |
The type of the rule. 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 of the network ACL. |
|
|
object |
The outbound rule information of the network ACL. |
||
| NetworkAclEntryId |
string |
The ID of the outbound rule entries. |
nae-a2d447uw4tillxdcv**** |
| EntryType |
string |
The type of the rule. 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. The value is VSwitch, which indicates a virtual switch. |
VSwitch |
| ResourceId |
string |
The instance ID of the associated resource. |
vsw-bp1de348lntdwxscd**** |
| Tags |
object |
||
| Tag |
array<object> |
The tag list. |
|
|
object |
The tag list. |
||
| Key |
string |
The tag key. |
FinanceDept |
| Value |
string |
The tag value. |
FinanceJoshua |
Exemples
JSON format
{
"RequestId": "F5905F9C-0161-4E72-9CB1-1F3F3CF6268A",
"NetworkAclAttribute": {
"Status": "Available",
"VpcId": "vpc-a2d33rfpl72k5defr****",
"CreationTime": "2021-12-25 11:33:27",
"Description": "This is my NetworkAcl.",
"NetworkAclName": "acl-1",
"NetworkAclId": "nacl-a2do9e413e0spnhmj****",
"OwnerId": 0,
"RegionId": "cn-hangzhou",
"IngressAclEntries": {
"IngressAclEntry": [
{
"NetworkAclEntryId": "nae-a2dk86arlydmevfbg****",
"EntryType": "custom",
"NetworkAclEntryName": "acl-3",
"Policy": "accept",
"Description": "This is IngressAclEntries.",
"SourceCidrIp": "10.0.0.0/24",
"IpVersion": "IPv4",
"Protocol": "all",
"Port": "-1/-1"
}
]
},
"EgressAclEntries": {
"EgressAclEntry": [
{
"NetworkAclEntryId": "nae-a2d447uw4tillxdcv****",
"EntryType": "custom",
"NetworkAclEntryName": "acl-2",
"Policy": "accept",
"Description": "This is EgressAclEntries.",
"Protocol": "all",
"DestinationCidrIp": "10.0.0.0/24",
"IpVersion": "IPv4",
"Port": "-1/-1"
}
]
},
"Resources": {
"Resource": [
{
"Status": "BINDED",
"ResourceType": "VSwitch",
"ResourceId": "vsw-bp1de348lntdwxscd****"
}
]
},
"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 | ParameterMissing.NetworkAclId | ParameterMissing.NetworkAclId | |
| 400 | ParameterEmpty.NetworkAclId | ParameterEmpty.NetworkAclId | |
| 400 | InvalidNetworkAcl.NotFound | The special Network Acl is not found. | The network ACL is not found. |
| 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.