You need to enable JavaScript to run this app.
导航
ListGroups - 查询用户组列表
最近更新时间:2025.03.21 11:14:43首次发布时间:2025.03.21 11:14:43
我的收藏
有用
有用
无用
无用

查询用户组列表

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

ListGroups

要执行的操作,取值:ListGroups。

Version
String

2023-01-01

API的版本,取值:2023-01-01。

PageSize
Integer

10

分页大小,默认 10,[1,100]

PageNumber
Integer

1

页码,默认 1

JoinType
String

Manual

用户组类型

QueryString
String

name

过滤参数。搜索用户组名/显示名.

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构

参数
类型
示例值
描述
PageSize
Integer

10

分页大小

PageNumber
Integer

1

页码

Total
Long

100

总数

Groups
Array of Object

[

    {

        "GroupId": "V6",

        "GroupName": "3Po",

        "DisplayName": "0fd3S",

        "Description": "CoQn",

        "Source": "Manual",

        "CreatedTime": "jzeT4d1p",

        "UpdatedTime": "Pt",

        "JoinType": "Manual"

    }

]

用户组列表

请求示例

POST /?Action=ListGroups&Version=2023-01-01 HTTP/1.1
Host: https://open.volcengineapi.com
Content-Type: application/json; charset=UTF-8
X-Date: 20250310T124657Z
X-Content-Sha256: 287e874e******d653b44d21e
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250310/cn-beijing/cloudidentity/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f

{
  "PageSize": 145,
  "PageNumber": 57,
  "JoinType": "Manual",
  "QueryString": "Kx4f"
}

返回示例

{
  "ResponseMetadata": {
    "RequestId": "202503102045591970702120869E5108",
    "Action": "ListGroups",
    "Version": "2023-01-01",
    "Service": "cloudidentity",
    "Region": "cn-beijing"
  },
  "Result": {
    "PageSize": 324,
    "PageNumber": 884,
    "Total": 431,
    "Groups": [
      {
        "GroupId": "V6",
        "GroupName": "3Po",
        "DisplayName": "0fd3S",
        "Description": "CoQn",
        "Source": "Manual",
        "CreatedTime": "jzeT4d1p",
        "UpdatedTime": "Pt",
        "JoinType": "Manual"
      }
    ]
  }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
400
ParamMissing

Missing parameter %v

参数缺省

400
ServiceStatusException

Can not perform action[%s] when service is %s

企业身份中心实例不可用

400
PermissionError

No permission to perform action[%s] on resource %s

没有接口权限

500
InternalError

Unknown internal error: %v

服务内部错误