{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"BaseResponse":{"description":"API响应基类","properties":{"error_code":{"description":"错误码。","maxLength":12,"minLength":0,"type":"string"},"error_msg":{"description":"错误描述。","maxLength":1000,"minLength":0,"type":"string"}}},"QueryUserGroupsResponse":{"properties":{"total_count":{"description":"满足条件的用户组总数。","format":"int32","readOnly":true,"type":"integer"},"user_groups":{"description":"用户组列表。","items":{"$ref":"#/definitions/UserGroupInfo"},"readOnly":true,"type":"array"}}},"UserGroupInfo":{"properties":{"create_time":{"description":"用户组对应的创建时间,UTC时间:yyyy-MM-ddTHH:mm:ss.SSSZ。","maxLength":55,"minLength":1,"type":"string"},"description":{"description":"用户组描述。","maxLength":255,"minLength":1,"type":"string"},"domain":{"description":"用户组域名。","maxLength":55,"minLength":1,"type":"string"},"group_dn":{"description":"用户组专有名。","maxLength":55,"minLength":1,"type":"string"},"id":{"description":"用户组ID。","maxLength":55,"minLength":1,"type":"string"},"name":{"description":"用户组名。","maxLength":55,"minLength":1,"type":"string"},"parent":{"$ref":"#/definitions/UserGroupInfo","description":"用户组上级用户组。"},"platform_type":{"description":"用户组类型。\n* AD: AD域用户组\n* LOCAL: 本地liteAs用户组","enum":["AD","LOCAL"],"example":"AD","maxLength":50,"minLength":0,"type":"string"},"realm_id":{"description":"用户组域Id。","maxLength":255,"minLength":0,"type":"string"},"sid":{"description":"用户组sid。","maxLength":55,"minLength":1,"type":"string"},"user_quantity":{"description":"用户列表中用户数。","format":"int32","readOnly":true,"type":"integer"}}}},"description":null,"group_id":"7383c32d5d5e4d0481c071faeb994404","host":"workspace.cn-north-4.myhuaweicloud.com","id":"ef5859628ba740e3898c7afe5f3dfd13","info_version":"v2","method":"get","name":"ListUserGroups","parameters":{},"paths":{"/v2/{project_id}/groups":{"get":{"description":"查询用户组列表,支持分页。","operationId":"ListUserGroups","parameters":[{"description":"用户Token。\n\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":40000,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX..."},{"description":"发送的实体的MIME类型,如:application/json。","in":"header","maxLength":255,"minLength":1,"name":"Content-Type","required":true,"type":"string","x-example":"application/json"},{"description":"项目id。","in":"path","maxLength":255,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"用于分页查询,返回用户组数量限制。如果不指定或为0,则使用默认值100,从1开始,最大100。","in":"query","maxLength":255,"minLength":0,"name":"limit","required":false,"type":"string"},{"description":"用于分页查询,查询的起始记录序号,从0开始,默认值0,必须与limit同时使用。","in":"query","maxLength":255,"minLength":0,"name":"offset","required":false,"type":"string"},{"description":"用来匹配用户组的搜索关键字。例如根据组名模糊查询。","in":"query","maxLength":255,"minLength":0,"name":"keyword","required":false,"type":"string"}],"responses":{"200":{"description":"查询用户组响应。","examples":{"application/json":{"total_count":2,"user_groups":[{"create_time":"2023-02-15T02:27:05.000Z","description":"for test","domian":"local.com","id":"99558194716db7d601719f9b61850042","name":"group1","platform_type":"LOCAL","realm_id":"695581943266db7a601719f9e61850058","sid":"99558194716db7d601719f9b61850042","user_quantity":10},{"create_time":"2023-01-16T02:27:05.000Z","description":"for test2","domian":"local.com","id":"99558194716db7d601719f9b61850000","name":"group2","platform_type":"LOCAL","realm_id":"453381943266db7a601719f9e61850044","sid":"99558194716db7d601719f9b61850000","user_quantity":20}]}},"schema":{"$ref":"#/definitions/QueryUserGroupsResponse"}},"400":{"description":"由于包含语法错误,当前请求无法被服务器理解。","schema":{"$ref":"#/definitions/BaseResponse"}},"401":{"description":"鉴权失败。","schema":{"$ref":"#/definitions/BaseResponse"}},"403":{"description":"没有操作权限。","schema":{"$ref":"#/definitions/BaseResponse"}},"404":{"description":"找不到资源。","schema":{"$ref":"#/definitions/BaseResponse"}},"405":{"description":"请求中指定的方法不被允许。","schema":{"$ref":"#/definitions/BaseResponse"}},"500":{"description":"服务内部错误,具体返回错误码请参见错误码说明。","schema":{"$ref":"#/definitions/BaseResponse"}},"503":{"description":"服务不可用。","schema":{"$ref":"#/definitions/BaseResponse"}}},"schemes":["https"],"summary":"查询用户组列表","tags":["Group"],"x-apiexplorer-hide":"N","x-apig-group":"public,internal_token,internal_appcode","x-apigateway-request-type":"public","x-is-registered":"Y","x-request-examples-url-1":"GET /v2/92c84e5bce3d48d7ab5714a44901eb08/groups?limit=10&offset=20","x-support-sdk":"Y"}}},"product_short":"Workspace","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询用户组列表","tags":"用户组","uri":null,"version":"2.0"}