ListApplicationMembers - List application members

Updated at:

Applicable editions

Centralized Edition, Region Edition

Service endpoint and authorization

  • Get the service endpoint to replace the {domain} placeholder in the API request syntax.
  • Get a personal access token.
  • Get the organization ID. This is required for Centralized Edition only. You can find it on the Basic Information page in the organization management backend.

Product

Resource

Required permission

Application Delivery

application

read-only

Request syntax

Centralized Edition

GET https://{domain}/oapi/v1/appstack/organizations/{organizationId}/apps/{appName}/members

Region Edition

GET https://{domain}/oapi/v1/appstack/apps/{appName}/members

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

The personal access token for Alibaba Cloud DevOps.

pt-0fh3****0fbG_35af****0484

Request parameters

Parameter

Type

Location

Required

Description

Example

appName

string

path

Yes

The application name.

my-demo-app

current

integer

query

Yes

The page number. Starts at 1. Default: 1.

1

pageSize

integer

query

Yes

The number of entries per page. Default: 10.

10

organizationId

string

path

  • Yes (for Centralized Edition)

  • No (for Region Edition)

The organization ID.

ec766e63aee3437d9a51f334d6exe671

Request examples

Centralized Edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/appstack/organizations/ec766e63aee3437d9a51f334d6exe671/apps/my-demo-app/members?current=1&pageSize=10' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region Edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/appstack/apps/my-demo-app/members?current=1&pageSize=10' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example

-

object

The paginated data.

current

number

The current page number.

1

pageSize

number

The number of entries on each page.

10

pages

number

The total number of pages.

10

records

array

The data records returned.

-

object

An object that contains member details.

avatar

string

The URL of the member's avatar.

https://example.com/avatar.png

description

string

The description of the member.

Example description

displayName

string

The display name of the member.

Example member name

id

string

The member ID. Its meaning is determined by the id field.

bd9e3c6d-624f-4580-af7d-c5e26f1ed0f0

roleList

array

The roles assigned to the member.

-

object

An object that contains role details.

displayName

string

The display name of the role.

Owner

name

string

The unique name of the role.

owner

type

string

The member type. This determines the meaning of the id field. Valid values: Member, User, Team, Group, and Org.

User

total

number

The total number of entries.

10

Response example

{
    "current": 1,
    "pageSize": 10,
    "pages": 10,
    "records": [
        {
            "avatar": "https://example.com/avatar.png",
            "description": "Example description",
            "displayName": "Example member name",
            "id": "bd9e3c6d-624f-4580-af7d-c5e26f1ed0f0",
            "roleList": [
                {
                    "displayName": "Owner",
                    "name": "owner"
                }
            ],
            "type": "User"
        }
    ],
    "total": 10
}

Error codes

For API error codes, see the Error Code Center.