{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"ErrorResp":{"description":"API错误响应。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00169901","maxLength":16,"minLength":1,"type":"string"},"error_msg":{"description":"错误描述。","example":"The request message is invalid.","maxLength":255,"minLength":1,"type":"string"}}},"QueryTargetResp":{"properties":{"targets":{"description":"应用对象列表。","items":{"$ref":"#/definitions/Target"},"readOnly":true,"type":"array"}}},"Target":{"properties":{"target_id":{"description":"对象ID。","example":"574141368704696320","maxLength":128,"minLength":1,"type":"string"},"target_name":{"description":"对象名称。","example":"updatePolicy_20230601144442564522","maxLength":128,"minLength":1,"type":"string"},"target_type":{"description":"对象类型。\n- USER:表示用户。\n target_id:为用户ID。\n target_name:为用户name。\n- USERGROUP:表示用户组。\n target_id:为用户组ID。\n target_name:为用户组name。\n- APPGROUP:应用组。\n target_id:应用组id。\n target_name:应用组名称。\n- OU:组织单元。\n target_id:OUID。\n target_name:OU名称。\n- ALL:表示所有。\n target_id:default-apply-all-targets。\n target_name:All-Targets。","enum":["USER","USERGROUP","APPGROUP","OU","ALL"],"type":"string"}},"required":["target_id","target_name","target_type"]}},"description":null,"group_id":"fe7dbee2e20f4aa589be7dce935a38ad","host":"appstream.cn-north-4.myhuaweicloud.com","id":"816d983266784468975aec6d118f46ff","info_version":"v1","method":"get","name":"ListTargetsOfPolicyGroup","parameters":{},"paths":{"/v1/{project_id}/policy-groups/{policy_group_id}/target":{"get":{"description":"查询指定策略组所应用的对象。","operationId":"ListTargetsOfPolicyGroup","parameters":[{"description":"用户Token。\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":2147483647,"minLength":1,"name":"X-Auth-Token","required":false,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX...","x-is-registered":"N"},{"description":"项目ID。","in":"path","maxLength":128,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"策略组id。","in":"path","maxLength":128,"minLength":1,"name":"policy_group_id","required":true,"type":"string","x-example":"4021a8xxxxxxx0174490b0b1d0055"},{"description":"应用对象的类型:\n- USER:表示用户。\n- USERGROUP:表示用户组。\n- APPGROUP:应用组。\n- OU:组织单元。\n- ALl:所有类型","in":"query","maxLength":255,"minLength":0,"name":"target_type","required":false,"type":"string"}],"responses":{"200":{"description":"查询策略应用对象的响应。","examples":{"application/json":{"targets":[{"target_id":"S-1-5-21-1065092785-1316984780-3147557180-9999","target_name":"All-Targets-123","target_type":"USER"},{"target_id":"192.168.1.1","target_name":"192.168.1.1","target_type":"CLIENTIP"}]}},"schema":{"$ref":"#/definitions/QueryTargetResp"}},"400":{"description":"由于包含语法错误,当前请求无法被服务器理解。","schema":{"$ref":"#/definitions/ErrorResp"}},"401":{"description":"鉴权失败。","schema":{"$ref":"#/definitions/ErrorResp"}},"403":{"description":"没有操作权限。","schema":{"$ref":"#/definitions/ErrorResp"}},"404":{"description":"找不到资源。","schema":{"$ref":"#/definitions/ErrorResp"}},"405":{"description":"请求中指定的方法不被允许。","schema":{"$ref":"#/definitions/ErrorResp"}},"500":{"description":"服务内部错误,具体返回错误码请参见错误码说明。","schema":{"$ref":"#/definitions/ErrorResp"}},"503":{"description":"服务不可用。","schema":{"$ref":"#/definitions/ErrorResp"}}},"schemes":["https"],"security":[{"apig-auth-iam-used-authn5":[]}],"summary":"查询策略组应用对象","tags":["PolicyGroup"],"x-api-type":"open-api","x-apiexplorer-hide":"N","x-apig-group":"internal,public","x-apigateway-backend":{"httpVpcEndpoints":{"description":"","method":"get","name":"wks-policymanager-lb","path":"/v1/{project_id}/policy-groups/{policy_group_id}/target","scheme":"https","timeout":30000},"parameters":[{"description":"","in":"header","name":"X-Auth-Token","origin":"request","value":"X-Auth-Token"},{"description":"","in":"path","name":"project_id","origin":"request","value":"project_id"},{"description":"","in":"path","name":"policy_group_id","origin":"request","value":"policy_group_id"},{"description":"","in":"query","name":"target_type","origin":"request","value":"target_type"}],"type":"HTTP-VPC"},"x-apigateway-cors":false,"x-apigateway-match-mode":"NORMAL","x-apigateway-ratelimit":"workspace_base","x-apigateway-request-type":"public","x-is-registered":"Y","x-request-examples-url-1":"GET /v1/a4da8115c9d8464ead3a38309130523f/policy-groups/575772274859184144/target?target_type=USER","x-support-sdk":"Y"}}},"product_short":"WorkspaceApp","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":{"apig-auth-app":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-type":"AppSigv1"},"apig-auth-iam":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM"},"apig-auth-iam-used-authn5":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-opt":{"inner-auth-type":"iam_auth_n5"},"x-apigateway-auth-type":"IAM"}},"summary":"查询策略组应用对象","tags":"策略管理","uri":null,"version":"2.0"}