DeleteResourceMember - Delete Resource Members

Updated at:

Use OpenAPI resource members.

Applicable editions

Central edition, Region edition

Endpoints and Authorization Information

  • Obtain endpoints to replace {domain} in the API request syntax.

  • Obtain a personal access token.

  • Obtain the organizationId. Required only for Central edition. To obtain the organization ID, go to the Basic Information page in the Organization Management console.

Product

Resource

Required Permissions

Pipeline

Resource Member

Read/Write

Request Syntax

Central edition

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

Region edition

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

Request Headers

Parameter

Type

Required

Description

Example Value

x-yunxiao-token

string

Yes

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

Enterprise ID.

5ebbc0228123212b59xxxxx

resourceType

string

path

Yes

Resource type. Valid values: pipeline, hostGroup.

pipeline

resourceId

string

path

Yes

Resource ID.

123

userId

string

query

Yes

User ID.

2211221

Request Examples

Central edition

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

Region edition

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

Response Parameters

Parameter

Type

Description

Example Value

-

boolean

Indicates whether the operation was successful.

true

Response Example

true

Error Codes

For more information, see Error Code Center.