批量查询账号组合规包模板详情。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 | DescribeAccountGroupConformancePackTemplates | 要执行的操作,取值:DescribeAccountGroupConformancePackTemplates。 |
Version | String | 是 | 2025-01-01 | API的版本,取值:2025-01-01。 |
AccountGroupId | String | 是 | ag-123456 | 账号组 ID |
ConformancePackTemplateIds | Array of String | 是 | ["cpt-123456"] | 合规包模板 ID 列表 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
ConformancePackTemplates | Array of Object | [{"ConformancePackTemplateId":"cpt-123456","Name":"example-name","RiskLevel":"Low","Description":"example description","Labels":["Law"],"RuleTemplates":["rt-123456"],"Status":"Enabled","CreatedTime":"2026-05-18T16:46:49Z","UpdatedTime":"2026-05-18T16:46:49Z"}] | 合规包模板详情列表 |
POST /?Action=DescribeAccountGroupConformancePackTemplates&Version=2025-01-01 HTTP/1.1 Host: config.volcengineapi.com Content-Type: application/json; charset=UTF-8 X-Date: 20260518T164649Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20260518/cn-beijing/config/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f { "AccountGroupId": "ag-123456", "ConformancePackTemplateIds": [ "example" ] }
{ "ResponseMetadata": { "RequestId": "202605181646490000000000000000", "Action": "DescribeAccountGroupConformancePackTemplates", "Version": "2025-01-01", "Service": "config", "Region": "cn-beijing" }, "Result": { "ConformancePackTemplates": [ { "ConformancePackTemplateId": "cpt-123456", "Name": "example-name", "RiskLevel": "Low", "Description": "example description", "Labels": [ "example" ], "RuleTemplates": [ "example" ], "Status": "Enabled", "CreatedTime": "2026-05-18T16:46:49Z", "UpdatedTime": "2026-05-18T16:46:49Z" } ] } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
|---|---|---|
400 | InvalidParameter | |
400 | MissingParameter | |
403 | AccessDenied | |
404 | NotFound | |
429 | TooFrequent | |
500 | InternalError |