DescribeNetworkAclAttributes
呼叫DescribeNetworkAclAttributes介面查詢網路ACL的詳細資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
vpc:DescribeNetworkAclAttributes |
get |
*NetworkAcl
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| NetworkAclId |
string |
是 |
網路 ACL 的 ID。 |
nacl-a2do9e413e0spzasx**** |
| RegionId |
string |
是 |
網路 ACL 所在的地域 ID。 您可以透過呼叫 DescribeRegions 介面取得地域 ID。 |
cn-hangzhou |
| RegionId |
string |
是 |
網路 ACL 所在的地域 ID。 您可以透過呼叫 DescribeRegions 介面取得地域 ID。 |
cn-hangzhou |
| ClientToken |
string |
否 |
用戶端 Token,用於保證請求的冪等性。 從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元。 說明
若您未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 標識。每次 API 請求的 RequestId 不一樣。 |
123e4567-e89b-12d3-a456-426655440000 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
F5905F9C-0161-4E72-9CB1-1F3F3CF6268A |
| NetworkAclAttribute |
object |
網路 ACL 的詳細資訊。 |
|
| Status |
string |
關聯資源的狀態。取值:
|
Available |
| VpcId |
string |
網路 ACL 關聯的 VPC 的 ID。 |
vpc-a2d33rfpl72k5defr**** |
| CreationTime |
string |
網路 ACL 建立的時間。 |
2021-12-25 11:33:27 |
| Description |
string |
網路 ACL 的描述資訊。 |
This is my NetworkAcl. |
| NetworkAclName |
string |
網路 ACL 的名稱。 |
acl-1 |
| NetworkAclId |
string |
網路 ACL 的 ID。 |
nacl-a2do9e413e0spnhmj**** |
| OwnerId |
integer |
網路 ACL 所屬的阿里雲帳號 ID。 重要 該值為 Long 類型,在某些語言中可能存在精度丟失的風險,請小心使用。 |
2546073170691**** |
| RegionId |
string |
網路 ACL 所屬的地域 ID。 |
cn-hangzhou |
| IngressAclEntries |
object |
||
| IngressAclEntry |
array<object> |
網路 ACL 入方向規則資訊。 |
|
|
object |
網路 ACL 入方向規則資訊。 |
||
| NetworkAclEntryId |
string |
入方向規則條目的 ID。 |
nae-a2dk86arlydmevfbg**** |
| EntryType |
string |
規則類型,取值為 custom,表示自訂。 |
custom |
| NetworkAclEntryName |
string |
入方向規則條目的名稱。 |
acl-3 |
| Policy |
string |
授權策略,取值:
|
accept |
| Description |
string |
入方向規則的描述資訊。 |
This is IngressAclEntries. |
| SourceCidrIp |
string |
源地址的網段。 |
10.0.0.0/24 |
| IpVersion |
string |
執行個體的 IP 協議版本。取值:
|
IPv4 |
| Protocol |
string |
協議類型,取值:
|
all |
| Port |
string |
入方向規則的目的連接埠範圍。
|
-1/-1 |
| EgressAclEntries |
object |
||
| EgressAclEntry |
array<object> |
網路 ACL 出方向規則資訊。 |
|
|
object |
網路 ACL 出方向規則資訊。 |
||
| NetworkAclEntryId |
string |
出方向規則條目的 ID。 |
nae-a2d447uw4tillxdcv**** |
| EntryType |
string |
規則類型,取值為 custom,表示自訂。 |
custom |
| NetworkAclEntryName |
string |
出方向規則條目的名稱。 |
acl-2 |
| Policy |
string |
授權策略,取值:
|
accept |
| Description |
string |
出方向規則的描述資訊。 |
This is EgressAclEntries. |
| Protocol |
string |
協議類型,取值:
|
all |
| DestinationCidrIp |
string |
目標位址區段。 |
10.0.0.0/24 |
| IpVersion |
string |
執行個體的 IP 協議版本。取值:
|
IPv4 |
| Port |
string |
出方向規則的目的連接埠範圍。
|
-1/-1 |
| Resources |
object |
||
| Resource |
array<object> |
關聯的資源。 |
|
|
object |
關聯的資源。 |
||
| Status |
string |
關聯資源的狀態。取值:
|
BINDED |
| ResourceType |
string |
關聯資源的類型。取值:VSwitch,交換器。 |
VSwitch |
| ResourceId |
string |
關聯資源的執行個體 ID。 |
vsw-bp1de348lntdwxscd**** |
| Tags |
object |
||
| Tag |
array<object> |
標籤列表資訊。 |
|
|
object |
標籤列表資訊。 |
||
| Key |
string |
標籤鍵。 |
FinanceDept |
| Value |
string |
標籤值。 |
FinanceJoshua |
樣本
正常返回樣本
JSON格式
{
"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"
}
]
}
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 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. | 未找到指定的網路 Acl。 |
| 400 | NotSupport.NetworkAcl | Network acl is not support now. | |
| 500 | InternalError | The request processing has failed due to some unknown error. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。