GetAuthSummary - 获取授权统计

获取授权统计。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用前面加 * 表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
yundun-sas:GetAuthSummaryget
*全部资源
*

请求参数

名称类型必填描述示例值
当前API无需请求参数

返回参数

名称类型描述示例值
object
RequestIdstring

本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。

0B48AB3C-***-B9270EF46038
DefaultAuthToAllinteger

是否对所有资产默认授权,取值

  • 0:否
  • 1:是
1
AllowPartialBuyinteger

新购时是否允许按需购买授权,取值:

  • 0:不允许
  • 1:允许
1
AllowUpgradePartialBuyinteger

升级时时是否允许升级到按需购买授权,取值:

  • 0:不允许
  • 1:允许
1
HasPreBindSettingboolean

是否存在预绑定资产配置,预绑定是指在购买时提前选择的资产绑定配置,取值:

  • 0:不存在
  • 1:存在
1
IsMultiVersioninteger

是否多版本,取值:

  • 0:不存在
  • 1:存在
1
AutoBindinteger

开通主机及容器安全包年包月服务时,表示包年包月新增资产自动绑定。取值:

  • 0:关闭
  • 1:开启
1
HighestVersioninteger

购买安全中心最高版本。取值:

  • 1:免费版
  • 3:企业版
  • 5:高级版
  • 6:防病毒版
  • 7:旗舰版
  • 10:仅采购增值服务
说明 购买是单版本则表示对应的版本,购买为多版本时,该值表示子版本的最高版本。
1
Machineobject

资产授权统计信息。

RiskCoreCountinteger

存在安全风险的资产核数。

10
BindCoreCountinteger

已绑定授权的资产核数。

10
TotalEcsCountinteger

总资产台数。

10
BindEcsCountinteger

已绑定的资产台数。

10
TotalCoreCountinteger

总资产核数。

10
RiskEcsCountinteger

存在安全风险的资产台数。

10
UnBindEcsCountinteger

未绑定的资产台数。

10
UnBindCoreCountinteger

未绑定的资产核数。

10
PostPaidBindCoreCountinteger

绑定后付费授权的资产核数。

10
PostPaidBindEcsCountinteger

绑定后付费授权的资产台数。

10
VersionSummaryarray<object>

授权使用统计信息。

versionobject

授权使用统计信息。

Indexinteger

当前版本索引,数值越大版本越高,用于排序。取值:

  • 1:免费版
  • 2:防病毒版
  • 3:高级版
  • 4:企业版
  • 5:旗舰版
1
Versioninteger

已购买的云安全中心版本。 取值:

  • 1:免费版
  • 3:企业版
  • 5:高级版
  • 6:防病毒版
  • 7:旗舰版
  • 8:多版本
  • 10:仅采购增值服务
3
UsedCoreCountinteger

已使用的授权核数。

说明 此参数在 AuthBindType 取值为 CORE 或 ASSET_AND_CORE 时有效。
10
UnUsedCountinteger

未使用的授权台数。

说明 此参数在 AuthBindType 取值为 ASSET 或 ASSET_AND_CORE 时有效。
10
UsedEcsCountinteger

已使用的授权台数。

说明 此参数在 AuthBindType 取值为 ASSET 或 ASSET_AND_CORE 时有效。
10
TotalCountinteger

当前版本总授权台数。

说明 此参数在 AuthBindType 取值为 ASSET 或 ASSET_AND_CORE 时有效。
10
TotalEcsAuthCountinteger

总授权台数。

说明 此参数在 AuthBindType 取值为 ASSET 或 ASSET_AND_CORE 时有效。
10
TotalCoreAuthCountinteger

总授权核数。

说明 此参数在 AuthBindType 取值为 CORE 或 ASSET_AND_CORE 时有效。
10
UnusedEcsAuthCountinteger

未使用的授权台数。

说明 此参数在 AuthBindType 取值为 ASSET 或 ASSET_AND_CORE 时有效。
10
UnusedCoreAuthCountinteger

未使用的授权核数。

说明 此参数在 AuthBindType 取值为 CORE 或 ASSET_AND_CORE 时有效。
10
AuthBindTypestring

绑定时消耗的授权类型,取值:

  • ASSET:消耗授权台数
  • CORE:消耗授权核数
  • ASSET_AND_CORE:同时消耗授权台数和授权核数。
ASSET
AllowUserUnbindinteger

是否允许立即解绑所有已绑定资产,取值:

  • 0:否
  • 1:是
1
PostPaidVersionSummaryarray<object>

主机及容器安全按量付费服务授权统计。

postPaidVersionobject
AuthBindTypestring

绑定时消耗的授权类型,取值:

  • ASSET:消耗授权台数
  • CORE:消耗授权核数
  • ASSET_AND_CORE:同时消耗授权台数和授权核数。
ASSET
Versioninteger

已绑定的主机资产后付费版本,取值:

  • 1:免费版
  • 3:企业版
  • 5:高级版
  • 6:防病毒版
  • 7:旗舰版
3
Indexinteger

当前版本索引,数值越大版本越高,用于排序,取值:

  • 1:免费版
  • 2:防病毒版
  • 3:高级版
  • 4:企业版
  • 5:旗舰版
1
UsedCoreCountlong

已使用的授权核数。

说明 此参数在 AuthBindType 取值为 CORE 或 ASSET_AND_CORE 时有效。
10
UsedEcsCountlong

已使用的授权台数。

说明 此参数在 AuthBindType 取值为 ASSET 或 ASSET_AND_CORE 时有效。
10
PostPaidHostAutoBindstring

主机及容器安全按量付费服务新增主机自动绑定标识,取值:

  • 0:关闭
  • 1:开启
1
PostPaidHostAutoBindVersionstring

主机及容器安全按量付费服务新增资产自动绑定版本,取值:

  • 1:免费版
  • 3:企业版
  • 5:高级版
  • 6:防病毒版
  • 7:旗舰版
7
PostPaidHighestVersionstring

开通主机及容器安全按量付费服务的防护版本,为所有已绑定主机中的最高防护版本。 取值:

  • 1:免费版
  • 3:企业版
  • 5:高级版
  • 6:防病毒版
  • 7:旗舰版
7

示例

正常返回示例

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"
}

错误码

HTTP status code错误码错误信息描述
403NoPermissioncaller has no permission当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。
500ServerErrorServerError服务故障,请稍后重试!

访问错误中心查看更多错误码。