擷取外聯資產列表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
yundun-cloudfirewall:DescribeOutgoingAssetList |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| Lang |
string |
否 |
語言類型。 枚舉值:
|
zh |
| Lang |
string |
否 |
語言類型。 枚舉值:
|
zh |
| StartTime |
string |
是 |
查詢開始時間。使用秒級時間戳記格式表示。 |
1743647114 |
| EndTime |
string |
是 |
查詢結束時間。使用秒級時間戳記格式表示。 |
1736438400 |
| PageSize |
string |
否 |
當前頁數。 |
10 |
| CurrentPage |
string |
否 |
當前頁碼。 |
1 |
| ResourceType |
string |
否 |
資產公網 IP 類型。 枚舉值:
|
NatEIP |
| AssetsRegion |
string |
否 |
資產所屬地區。 |
cn-beijing |
| GroupName |
string |
否 |
關注情況。 枚舉值:
|
subscribe |
| PublicIP |
string |
否 |
公網 IP。 |
47.116.70.XXX |
| PrivateIP |
string |
否 |
私網 IP。 |
10.200.33.XXX |
| SecurityRisk |
string |
否 |
安全風險。 枚舉值:
|
risk |
| Sort |
string |
否 |
排序。 枚舉值:
|
InBytes |
| Order |
string |
否 |
升降序。 枚舉值:
|
desc |
| IPType |
string |
否 |
查詢 Nat 私網外聯。 |
NatPrivate |
| NatGatewayId |
string |
否 |
NAT Gateway的 ID。 |
ngw-bp123456g****** |
| NatGatewayName |
string |
否 |
NAT Gateway名稱 |
ngw-test |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| TotalCount |
integer |
總條數。 |
2 |
| RequestId |
string |
請求 ID。 |
7A515672-FAAE-584F-B51C-B2586E**** |
| AssetList |
array<object> |
資產列表。 |
|
|
object |
資產列表。 |
||
| SessionCount |
integer |
訪問次數。 |
2 |
| ResourceType |
string |
資產公網 IP 類型。 枚舉值:
|
EcsPublicIP |
| AssetInstanceId |
string |
資產執行個體 Id。 |
i-8vbcmllue4d94nto**** |
| GroupName |
string |
關注情況。 枚舉值:
|
subscribe |
| AssetsRegion |
string |
地區。 |
cn-hangzhou |
| OutBytes |
integer |
流出流量, 請求流量,單位 bytes。 |
100 |
| SecurityRisk |
string |
安全風險。 枚舉值:
|
risk |
| InBytes |
integer |
流入流量, 應答流量,單位 bytes。 |
244438.0 |
| PublicIP |
string |
公網 IP。 |
47.96.181.XXX |
| AssetInstanceName |
string |
資產執行個體名稱。 |
test |
| PrivateIP |
string |
私網 ip。 |
10.21.242XXX |
| NatGatewayId |
string |
NAT Gateway ID。 |
ngw-bp1utx6wj4x9qu9tl**** |
| NatGatewayName |
string |
NAT Gateway名。 |
ngw-test |
| OutgoingDomainCnt |
integer |
外聯網域名稱數。 |
10 |
| OutgoingDstIPCnt |
integer |
外聯 IP 數。 |
12 |
| TotalBytes |
integer |
總流量。 |
12498767 |
| PrivateIPList |
array |
私網 IP 列表。 |
|
|
string |
私網 IP 列表。 |
["47.256.35.XXX"] |
|
| IpsHitCnt |
integer |
ips 命中情況。 |
12 |
樣本
正常返回樣本
JSON格式
{
"TotalCount": 2,
"RequestId": "7A515672-FAAE-584F-B51C-B2586E****",
"AssetList": [
{
"SessionCount": 2,
"ResourceType": "EcsPublicIP",
"AssetInstanceId": "i-8vbcmllue4d94nto****",
"GroupName": "subscribe",
"AssetsRegion": "cn-hangzhou",
"OutBytes": 100,
"SecurityRisk": "risk",
"InBytes": 244438,
"PublicIP": "47.96.181.XXX",
"AssetInstanceName": "test",
"PrivateIP": "10.21.242XXX",
"NatGatewayId": "ngw-bp1utx6wj4x9qu9tl****",
"NatGatewayName": "ngw-test",
"OutgoingDomainCnt": 10,
"OutgoingDstIPCnt": 12,
"TotalBytes": 12498767,
"PrivateIPList": [
"[\"47.256.35.XXX\"]"
],
"IpsHitCnt": 12
}
]
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | ErrorAliUid | Aliuid invalid. | aliuid無效 |
| 400 | ErrorTimeError | The time is invalid. | 時間選擇錯誤 |
| 400 | ErrorIntervalError | The interval is invalid. | 無效的時間間隔 |
| 400 | ErrorDBSelectError | A database select error occurred. | 內部錯誤:資料庫查詢錯誤 |
| 400 | ErrorIpFormat | The IP address is invalid. | 無效的IP |
| 400 | ErrorSecurityRisk | The security risk is invalid. | 無效的安全風險 |
| 400 | ErrorSortError | The sort is invalid. | 無效的排序欄位 |
| 400 | ErrorOrderFailed | The order is invalid. | 無效的order |
| 400 | ErrorSecuritySuggest | The security suggest is invalid. | 無效的security suggest |
| 400 | ErrorPageNo | Either page number or page size is invalid. | 無效的page number 或者 page size |
| 400 | ErrorMarshalJSON | internal error. | 內部錯誤。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。