ListPipelineRelations

Updated at:

Retrieves the variable groups associated with a pipeline.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET /organization/{organizationId}/{pipelineId}/pipelineRelations HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

organizationId

string

Yes

The ID of the organization. You can obtain this ID from your Alibaba Cloud DevOps URL. The URL format is https://devops.aliyun.com/organization/{organizationId}.

5ebbc0228123212b59xxxxx

pipelineId

integer

No

The ID of the pipeline. You can obtain this ID from the pipeline URL. The URL format is https://flow.aliyun.com/pipelines/{pipelineId}/current.

11

Request parameters

Parameter

Type

Required

Description

Example

relObjectType

string

Yes

The resource type to query. The only supported value is VARIABLE_GROUP.

VARIABLE_GROUP

Response elements

Element

Type

Description

Example

object

The response body.

requestId

string

The unique ID for the request, used for troubleshooting.

ASSDS-ASSASX-XSAXSA-XSAXSAXS

errorMessage

string

The error message.

""

errorCode

string

The error code.

""

success

boolean

Indicates if the request was successful (true) or not (false).

true

pipelineRelations

array<object>

A list of associated variable groups.

object

A variable group associated with the pipeline.

refObjectId

integer

The ID of the variable group.

12234

Examples

Success response

JSON format

{
  "requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
  "errorMessage": "\"\"",
  "errorCode": "\"\"",
  "success": true,
  "pipelineRelations": [
    {
      "refObjectId": 12234
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParam.ParamNotPresent The parameter is invalid. The parameter is invalid.
400 InvalidUser.NotFound The user that is invoking the API service is not a registered user. The user that is invoking the API service is not a registered user.
403 Forbidden.UserNotInCurrentOrganization The user is not in the organization and is not authorized to perform the operation.
404 InvalidOrganization.NotFound The organization is not found. The organization is not found. Please check the organization ID.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.