ListServiceGroups

Updated at:

Queries a list of service groups.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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: user

  • SERVICEGROUP: service group

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: enabled

  • DISABLE: disabled

ENABLE

webhookType

string

The webhook type. Valid values:

  • WEIXIN_GROUP: WeChat group

  • DING_GROUP: DingTalk group

WEIXIN_GROUP

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****

email

string

The email address.

wy930***@163.com

isRelated

integer

Indicates whether the user is associated with the mobile app. Valid values:

  • 1: yes

  • 0: no

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.