保障範圍報告
產品版本:10.11
最後修改日期:2024年7月31日
產生一個檔案,其中包含所有受保護虛擬機器的相關資訊,並以指定格式呈現。
終點
https://<Director_IP_address>:4443/c/router
請求範例
複製
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie cookies.txt \
--data '{
"action": "ReportingManagement",
"method": "createProtectionCoverageReport",
"data": [7200000, "CSV"],
"type": "rpc",
"tid": 1}'
請求欄位
|
領域 |
類型 |
值(們) |
|---|---|---|
action
|
字串 | ReportingManagement |
method
|
字串 | createProtectionCoverageReport |
data
|
陣列 | 包含兩個元素的陣列,順序如下: clientTimeOffsetToUtc 以及 exportType。這些元素是定位的,因此請一併傳送。請參閱以下參數 |
type
|
字串 | rpc
|
tid
|
整數 | 1 |
資料
|
領域 |
類型 |
Description |
|---|---|---|
|
|
Integer
|
可選。客戶時區與 UTC 之間的偏移量(以毫秒為單位),例如, 7200000 以 UTC+2 為例。若要省略偏移量,請傳送 null |
|
|
字串 | 匯出檔案的格式。可以是「CSV」、「PDF」或「HTML」 |
錯誤回應範例
複製
{
"action": "ReportingManagement",
"method": "createProtectionCoverageReport",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": null
}
回應欄位
|
領域 |
價值 |
Description |
|---|---|---|
message
|
字串 | 若請求失敗,請顯示此訊息 |
where
|
字串 | 關於發生問題的方法的說明 |
cause
|
字串 | 故障原因 |