检索群组列表。
- 请求必须指定过滤条件。不含
filter参数的请求会返回tooMany错误。 filter参数仅支持对displayName(例如displayName eq "Group Name")或externalId(例如externalId eq "ddaafa46e2b6")进行等值比较。- 不支持子字符串匹配(
co、sw、ew)、逻辑运算符(and、or)和复杂的值过滤条件。 - 不支持分页。如果匹配的群组超过 50 个,则只会返回前 50 个结果。
HTTP 请求
GET https://cloudidentityscim.googleapis.com/v1beta1/customers/{customerId}/v2/Groups
网址采用 gRPC 转码语法。
路径参数
| 参数 | |
|---|---|
customerId |
必需。客户 ID。 |
查询参数
| 参数 | |
|---|---|
filter |
过滤条件参数。 |
请求正文
请求正文必须为空。
响应正文
列出群组的响应消息。
如果成功,响应正文将包含结构如下的数据:
| JSON 表示法 |
|---|
{
"schemas": [
string
],
"resources": [
{
object ( |
| 字段 | |
|---|---|
schemas[] |
返回资源的架构。 |
resources[] |
所请求资源的列表。 |
totalResults |
结果总数。 |
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/cloud-identity.groups.readonlyhttps://www.googleapis.com/auth/cloud-identity.groupshttps://www.googleapis.com/auth/cloud-identityhttps://www.googleapis.com/auth/cloud-platform
如需了解详情,请参阅授权指南。