ListServiceGroups
Queries a list of service groups.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gemp:ListServiceGroups |
get |
*All Resource
|
None | None |
Request syntax
POST /services/group/list HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| queryName |
string |
No |
The search name. |
Mr. Wang |
| queryType |
string |
No |
The search type. Valid values:
|
USER |
| pageNumber |
integer |
No |
The page number. |
1 |
| pageSize |
integer |
No |
The page size. |
10 |
| clientToken |
string |
No |
The client token. |
C4BE3837-1A13-413B-A225-2C88188E8A43 |
| isScheduled |
boolean |
No |
Specifies whether a schedule is configured. |
false |
| orderByScheduleStatus |
boolean |
No |
Specifies whether to sort by schedule status. |
false |
| userId |
integer |
No |
The user ID. |
100000 |
| serviceId |
integer |
No |
The service ID. |
33 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| requestId |
string |
The request ID. |
sssss |
| data |
array<object> |
The list of service groups. |
|
|
array<object> |
The list of service groups. |
||
| serviceGroupId |
integer |
The service group ID. |
1 |
| isScheduled |
boolean |
Indicates whether a schedule is configured. |
true |
| serviceGroupName |
string |
The service group name. |
My service group |
| serviceGroupDescription |
string |
The service group description. |
Service group description |
| updateTime |
string |
The update time. The format is YYYY-MM-DD HH:mm:ss. |
2020-08-09 15:50:30 |
| enableWebhook |
string |
The webhook status. Valid values:
|
ENABLE |
| webhookType |
string |
The webhook type. Valid values:
|
WEIXIN_GROUP |
| webhookLink |
string |
The webhook URL. |
wwwwwwwwww |
| users |
array<object> |
The list of users in the service group. |
|
|
object |
The user. |
||
| userId |
integer |
The user ID. |
10 |
| userName |
string |
The username. |
jack |
| serviceGroupId |
integer |
The service group ID. |
1 |
| phone |
string |
The phone number. |
1390000**** |
|
string |
The email address. |
wy930***@163.com |
|
| isRelated |
integer |
Indicates whether the user is associated with the mobile app. Valid values:
|
1 |
| pageNumber |
integer |
The page number. |
1 |
| pageSize |
integer |
The page size. |
10 |
| totalCount |
integer |
The total number of entries. |
100 |
Examples
Success response
JSON format
{
"requestId": "sssss",
"data": [
{
"serviceGroupId": 1,
"isScheduled": true,
"serviceGroupName": "我的服务组",
"serviceGroupDescription": "服务组描述",
"updateTime": "2020-08-09 15:50:30",
"enableWebhook": "ENABLE",
"webhookType": "WEIXIN_GROUP",
"webhookLink": "wwwwwwwwww",
"users": [
{
"userId": 10,
"userName": "jack",
"serviceGroupId": 1,
"phone": "1390000****",
"email": "wy930***@163.com",
"isRelated": 1
}
]
}
],
"pageNumber": 1,
"pageSize": 10,
"totalCount": 100
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.