ListPipelineRelations
Retrieves the variable groups associated with a pipeline.
Try it now
Test
RAM authorization
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 |
5ebbc0228123212b59xxxxx |
| pipelineId |
integer |
No |
The ID of the pipeline. You can obtain this ID from the pipeline URL. The URL format is |
11 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| relObjectType |
string |
Yes |
The resource type to query. The only supported value is |
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 |
| 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.