取得授權統計。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
當前API無需請求參數
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
本次呼叫請求的 ID,是由阿里雲端為該請求產生的唯一識別碼,可用於排查和定位問題。 |
0B48AB3C-***-B9270EF46038 |
| DefaultAuthToAll |
integer |
是否對所有資產預設授權。取值:
|
1 |
| AllowPartialBuy |
integer |
新購時是否允許按需購買授權。取值:
|
1 |
| AllowUpgradePartialBuy |
integer |
升級時是否允許升級到按需購買授權。取值:
|
1 |
| HasPreBindSetting |
boolean |
是否存在預綁定資產配置,預綁定是指在購買時提前選擇的資產綁定配置。取值:
|
1 |
| IsMultiVersion |
integer |
是否多版本。取值:
|
1 |
| AutoBind |
integer |
開通主機及容器安全包年包月服務時,表示包年包月新增資產自動綁定。取值:
|
1 |
| HighestVersion |
integer |
購買安全中心最高版本。取值:
說明
購買是單版本則表示對應的版本,購買為多版本時,該值表示子版本的最高版本。 |
1 |
| Machine |
object |
資產授權統計資訊。 |
|
| RiskCoreCount |
integer |
存在安全風險的資產核心數。 |
10 |
| BindCoreCount |
integer |
已綁定授權的資產核心數。 |
10 |
| TotalEcsCount |
integer |
總資產台數。 |
10 |
| BindEcsCount |
integer |
已綁定的資產台數。 |
10 |
| TotalCoreCount |
integer |
總資產核心數。 |
10 |
| RiskEcsCount |
integer |
存在安全風險的資產台數。 |
10 |
| UnBindEcsCount |
integer |
未綁定的資產台數。 |
10 |
| UnBindCoreCount |
integer |
未綁定的資產核心數。 |
10 |
| PostPaidBindCoreCount |
integer |
綁定後付費授權的資產核心數。 |
10 |
| PostPaidBindEcsCount |
integer |
綁定後付費授權的資產台數。 |
10 |
| VersionSummary |
array<object> |
授權使用統計資訊。 |
|
|
object |
授權使用統計資訊。 |
||
| Index |
integer |
目前版本索引,數值越大版本越高,用於排序。取值:
|
1 |
| Version |
integer |
已購買的雲端安全中心版本。取值:
|
3 |
| UsedCoreCount |
integer |
已使用的授權核心數。 說明
此參數在 AuthBindType 取值為 CORE 或 ASSET_AND_CORE 時有效。 |
10 |
| UnUsedCount |
integer |
未使用的授權台數。 說明
此參數在 AuthBindType 取值為 ASSET 或 ASSET_AND_CORE 時有效。 |
10 |
| UsedEcsCount |
integer |
已使用的授權台數。 說明
此參數在 AuthBindType 取值為 ASSET 或 ASSET_AND_CORE 時有效。 |
10 |
| TotalCount |
integer |
目前版本總授權台數。 說明
此參數在 AuthBindType 取值為 ASSET 或 ASSET_AND_CORE 時有效。 |
10 |
| TotalEcsAuthCount |
integer |
總授權台數。 說明
此參數在 AuthBindType 取值為 ASSET 或 ASSET_AND_CORE 時有效。 |
10 |
| TotalCoreAuthCount |
integer |
總授權核心數。 說明
此參數在 AuthBindType 取值為 CORE 或 ASSET_AND_CORE 時有效。 |
10 |
| UnusedEcsAuthCount |
integer |
未使用的授權台數。 說明
此參數在 AuthBindType 取值為 ASSET 或 ASSET_AND_CORE 時有效。 |
10 |
| UnusedCoreAuthCount |
integer |
未使用的授權核心數。 說明
此參數在 AuthBindType 取值為 CORE 或 ASSET_AND_CORE 時有效。 |
10 |
| AuthBindType |
string |
綁定時消耗的授權類型。取值:
|
ASSET |
| AllowUserUnbind |
integer |
是否允許立即解除綁定所有已綁定資產。取值:
|
1 |
| PostPaidVersionSummary |
array<object> |
主機及容器安全按量付費服務授權統計。 |
|
|
object |
|||
| AuthBindType |
string |
綁定時消耗的授權類型。取值:
|
ASSET |
| Version |
integer |
已綁定的主機資產後付費版本。取值:
|
3 |
| Index |
integer |
目前版本索引,數值越大版本越高,用於排序。取值:
|
1 |
| UsedCoreCount |
integer |
已使用的授權核心數。 說明
此參數在 AuthBindType 取值為 CORE 或 ASSET_AND_CORE 時有效。 |
10 |
| UsedEcsCount |
integer |
已使用的授權台數。 說明
此參數在 AuthBindType 取值為 ASSET 或 ASSET_AND_CORE 時有效。 |
10 |
| PostPaidHostAutoBind |
string |
主機及容器安全按量付費服務新增主機自動綁定識別碼。取值:
|
1 |
| PostPaidHostAutoBindVersion |
string |
主機及容器安全按量付費服務新增資產自動綁定版本。取值:
|
7 |
| PostPaidHighestVersion |
string |
開通主機及容器安全按量付費服務的防護版本,為所有已綁定主機中的最高防護版本。取值:
|
7 |
| InvalidBindStatus |
string |
綁定生效狀態。取值:
|
INVALID_NODE_VERSION |
| ClusterNodeCheck |
integer |
叢集節點是否需要驗證機器版本。取值:
|
1 |
| EdrSummary |
object |
||
| BoundCount |
string |
||
| PostPaidAutoBind |
string |
||
| HybridPaidAutoBind |
string |
樣本
正常返回樣本
JSON格式
{
"RequestId": "0B48AB3C-***-B9270EF46038",
"DefaultAuthToAll": 1,
"AllowPartialBuy": 1,
"AllowUpgradePartialBuy": 1,
"HasPreBindSetting": true,
"IsMultiVersion": 1,
"AutoBind": 1,
"HighestVersion": 1,
"Machine": {
"RiskCoreCount": 10,
"BindCoreCount": 10,
"TotalEcsCount": 10,
"BindEcsCount": 10,
"TotalCoreCount": 10,
"RiskEcsCount": 10,
"UnBindEcsCount": 10,
"UnBindCoreCount": 10,
"PostPaidBindCoreCount": 10,
"PostPaidBindEcsCount": 10
},
"VersionSummary": [
{
"Index": 1,
"Version": 3,
"UsedCoreCount": 10,
"UnUsedCount": 10,
"UsedEcsCount": 10,
"TotalCount": 10,
"TotalEcsAuthCount": 10,
"TotalCoreAuthCount": 10,
"UnusedEcsAuthCount": 10,
"UnusedCoreAuthCount": 10,
"AuthBindType": "ASSET"
}
],
"AllowUserUnbind": 1,
"PostPaidVersionSummary": [
{
"AuthBindType": "ASSET",
"Version": 3,
"Index": 1,
"UsedCoreCount": 10,
"UsedEcsCount": 10
}
],
"PostPaidHostAutoBind": "1",
"PostPaidHostAutoBindVersion": "7",
"PostPaidHighestVersion": "7",
"InvalidBindStatus": "INVALID_NODE_VERSION",
"ClusterNodeCheck": 1,
"EdrSummary": {
"BoundCount": "",
"PostPaidAutoBind": "",
"HybridPaidAutoBind": ""
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。