查询指定账号组内的合规包列表。
接口说明
本文将提供一个示例,查询账号组ca-f632626622af0079****内的合规包列表。返回结果显示该账号组内有一条合规包记录cp-fdc8626622af00f9****。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
 调试
        
            调试
        
    
授权信息
| 操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 | 
| config:ListAggregateCompliancePacks | list | *AggregateCompliancePack 
 | 无 | 无 | 
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 | 
| Status | string | 否 | 合规包状态。取值: 
 | ACTIVE | 
| RiskLevel | integer | 否 | 合规包风险等级。取值: 
 | 1 | 
| AggregatorId | string | 是 | 账号组 ID。 关于如何获取账号组 ID,请参见 ListAggregators 。 | ca-f632626622af0079**** | 
| PageSize | integer | 否 | 分页时每页显示的数据行数。 取值范围:1~100。起始值:1。默认值:10。 | 20 | 
| PageNumber | integer | 否 | 页码。 起始值:1。默认值:1。 | 1 | 
| Tag | array<object> | 否 | 资源的标签。 最多支持绑定 20 个标签。 | |
| object | 否 | 资源的标签。 最多支持绑定 20 个标签。 | ||
| Key | string | 否 | 标签键。 | key-1 | 
| Value | string | 否 | 标签值。 | value-1 | 
关于公共请求参数的详情,请参见公共参数。
返回参数
| 名称 | 类型 | 描述 | 示例值 | 
| object | 无 | ||
| RequestId | string | 请求 ID。 | B5806142-3090-4F86-A84E-12B3FE52C1C4 | 
| CompliancePacksResult | object | 合规包列表查询结果。 | |
| CompliancePacks | array<object> | 合规包列表。 | |
| object | 无 | ||
| Status | string | 合规包状态。取值: 
 | ACTIVE | 
| RiskLevel | integer | 合规包的风险等级。取值: 
 | 1 | 
| CompliancePackId | string | 合规包 ID。 | cp-fdc8626622af00f9**** | 
| Description | string | 合规包描述。 | Check the stability of Alibaba Cloud resources based on the high-availability infrastructure, capacity protection, change management, monitoring management, backup management, and fault isolation. This helps you identify issues at the earliest opportunity and improve stability and the efficiency of O&M. | 
| CompliancePackName | string | 合规包名称。 | BestPracticesForResourceStability | 
| AccountId | integer | 合规包归属的管理账号 ID。 | 100931896542**** | 
| AggregatorId | string | 账号组 ID。 | ca-f632626622af0079**** | 
| CompliancePackTemplateId | string | 合规包模板 ID。 | ct-484cff4e06a30062**** | 
| CreateTimestamp | integer | 创建合规包的时间戳。单位:毫秒。 | 1624243657000 | 
| Tags | array<object> | 资源标签。 | |
| object | 资源标签。 | ||
| TagKey | string | 标签键。 | key-1 | 
| TagValue | string | 标签值。 | value-1 | 
| PageSize | integer | 分页时每页显示的数据行数。 | 10 | 
| PageNumber | integer | 页码。 | 1 | 
| TotalCount | integer | 合规包总数。 | 1 | 
示例
正常返回示例
JSON格式
{
  "RequestId": "B5806142-3090-4F86-A84E-12B3FE52C1C4",
  "CompliancePacksResult": {
    "CompliancePacks": [
      {
        "Status": "ACTIVE",
        "RiskLevel": 1,
        "CompliancePackId": "cp-fdc8626622af00f9****",
        "Description": "Check the stability of Alibaba Cloud resources based on the high-availability infrastructure, capacity protection, change management, monitoring management, backup management, and fault isolation. This helps you identify issues at the earliest opportunity and improve stability and the efficiency of O&M.",
        "CompliancePackName": "BestPracticesForResourceStability",
        "AccountId": 0,
        "AggregatorId": "ca-f632626622af0079****",
        "CompliancePackTemplateId": "ct-484cff4e06a30062****",
        "CreateTimestamp": 1624243657000,
        "Tags": [
          {
            "TagKey": "key-1",
            "TagValue": "value-1"
          }
        ]
      }
    ],
    "PageSize": 10,
    "PageNumber": 1,
    "TotalCount": 1
  }
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 | 
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | 您无权执行此操作。 | 
| 400 | Invalid.AggregatorId.Value | The specified AggregatorId is invalid. | 账号组ID不存在或无权限使用该账号组。 | 
| 404 | AccountNotExisted | Your account does not exist. | |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | 服务不可用。 | 
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。