调用ListGroups接口,分页查询EIAM组信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /v2/{instanceId}/{applicationId}/groups HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| instanceId |
string |
是 |
实例 ID。 |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| applicationId |
string |
是 |
应用 ID。 |
app_mkv7rgt4d7i4u7zqtzev2mxxxx |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Authorization |
string |
是 |
认证信息。 格式:Bearer ${access_token}。 示例:Bearer ATxxxx。 |
Bearer xxxx |
| groupNameStartWith |
string |
否 |
组名称前缀 |
group_xxx |
| nextToken |
string |
否 |
nextToken |
NTxxx |
| maxResults |
integer |
否 |
单页大小,默认 20 |
20 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
DeveloperNextTokenResponse |
||
| totalCount |
integer |
数据总记录数。 |
1000 |
| data |
array<object> |
返回数据对象。 |
|
|
object |
返回数据对象。 |
||
| instanceId |
string |
实例 ID。 |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| groupId |
string |
组 ID。 |
group_ufdsasn35ea5lmthk267xxxxx |
| groupName |
string |
组名称。 |
name_test |
| description |
string |
组描述。 |
description_demo |
| groupExternalId |
string |
组外部标识。 |
group_ufdsasn35ea5lmthk267xxxxx |
| groupSourceType |
string |
组来源类型,build_in[自建],ding_talk[钉钉导入],ad[AD 导入],ldap[LDAP 导入]。 |
build_in |
| groupSourceId |
string |
组来源 ID。 |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| createTime |
integer |
组创建时间, Unix 时间戳格式,单位为毫秒。 |
1652085686179 |
| updateTime |
integer |
组最近一次更新时间,Unix 时间戳格式,单位为毫秒。 |
1652085686179 |
| nextToken |
string |
用来标记当前开始读取的位置,置空表示从头开始 |
NTxxx |
| maxResults |
integer |
一次获取的最大记录数。 |
20 |
示例
正常返回示例
JSON格式
{
"totalCount": 1000,
"data": [
{
"instanceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
"groupId": "group_ufdsasn35ea5lmthk267xxxxx",
"groupName": "name_test",
"description": "description_demo",
"groupExternalId": "group_ufdsasn35ea5lmthk267xxxxx",
"groupSourceType": "build_in",
"groupSourceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
"createTime": 1652085686179,
"updateTime": 1652085686179
}
],
"nextToken": "NTxxx",
"maxResults": 20
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。