ListResourceMembers - List resource members

Updated at:

You can call this operation to list resource members.

Applicable editions

Central edition, Region edition

Endpoints and authorization information

  • Obtain the endpoint. The endpoint is used to replace the {domain} placeholder in the request syntax.
  • Obtain a personal access token.
  • Obtain the organization ID. This is required only for the Central edition. You can obtain the ID from the Basic Information page in the Organization Management console.

Product

Resource

Required permission

Pipeline

Resource member

Read-only

Request syntax

Central edition

GET https://{domain}/oapi/v1/flow/organizations/{organizationId}/resourceMembers/resourceTypes/{resourceType}/resourceIds/{resourceId}

Region edition

GET https://{domain}/oapi/v1/flow/resourceMembers/resourceTypes/{resourceType}/resourceIds/{resourceId}

Request headers

Parameter

Type

Required

Description

Example value

x-yunxiao-token

string

Yes

Your personal access token.

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

Request parameters

Parameter

Type

Location

Required

Description

Example value

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

The organization ID.

5ebbc0228123212b59xxxxx

resourceType

string

path

Yes

The resource type. Valid values: pipeline, hostGroup.

pipeline

resourceId

string

path

Yes

The resource ID.

123

Request examples

Central edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/resourceMembers/resourceTypes/pipeline/resourceIds/123' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/flow/resourceMembers/resourceTypes/pipeline/resourceIds/123' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example value

-

object

role

string

The user role.

admin

userId

string

The user ID.

2211221

username

string

The username.

Zhang San

Response example

{
    "role": "admin",
    "userId": "2211221",
    "username": "San Zhang"
}

Error codes

For more information, see the Error Code Center.