获取目标绑定的管控策略列表
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListPoliciesForTarget | 要执行的操作,取值:ListPoliciesForTarget。 |
Version | String | 是 | 2022-01-01 | API的版本,取值:2022-01-01。 |
TargetID | String | 是 | "1" | 绑定策略的目标节点ID |
Limit | Integer | 否 | 10 | 每一页显示数量,默认 10,最大 100 |
Offset | Integer | 否 | 1 | 页数,起始值1 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Offset | Integer | 1 | 页数 |
Limit | Integer | 10 | 每一页显示数量 |
Total | Integer | 10 | 总数 |
Policies | Array of Object | "Policies": [ | 列表 |
POST /?Action=ListPoliciesForTarget&Version=2022-01-01 HTTP/1.1 Host: https://open.volcengineapi.com Content-Type: application/json; charset=UTF-8 X-Date: 20250119T103308Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250119/cn-beijing/organization/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f { "TargetID": "1", "Limit": 10, "Offset": 1 }
{ "ResponseMetadata": { "RequestId": "202501191833322511021902553E6B69", "Action": "ListPoliciesForTarget", "Version": "2022-01-01", "Service": "organization", "Region": "cn-beijing" }, "Result": { "Offset": 1, "Limit": 10, "Total": 10, "Policies": [ { "AttachedTime": "G74", "PolicyID": "Qd", "PolicyType": "Zqk5EvwxAS", "PolicyName": "5dtyUR", "Description": "Ti" } ] } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
---|---|---|
400 | ErrOrgNotExist | 企业组织不存在。 |
400 | InvalidParam | 参数错误 |
500 | InternalError | 未知错误,根据错误信息判断详情 |