获取授权统计。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-sas:GetAuthSummary |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前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 |
示例
正常返回示例
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
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。