AddPipelineRelations
Adds a pipeline association.
Try it now
Test
RAM authorization
Request syntax
POST /organization/{organizationId}/{pipelineId}/pipelineRelations HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
Yes |
The organization identifier, also known as the organization ID. It is a string that you can obtain from the Apsara DevOps URL, such as https://devops.aliyun.com/organization/[OrgId]. |
5ebbc0228123212b59xxxxx |
| pipelineId |
integer |
Yes |
The pipeline ID. It can be obtained from the pipeline URL, such as https://flow.aliyun.com/pipelines/[PipelineId]/current. |
11 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| relObjectType |
string |
Yes |
The type of the associated resource. Only VARIABLE_GROUP is supported. |
VARIABLE_GROUP |
| relObjectIds |
string |
Yes |
The IDs of the associated resources. Only variable group IDs are supported. Separate multiple IDs with commas. |
11,22 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| requestId |
string |
The request ID. Each request has a unique ID for troubleshooting. |
ASSDS-ASSASX-XSAXSA-XSAXSAXS |
| errorMessage |
string |
The error message. |
"" |
| errorCode |
string |
The error code. |
"" |
| success |
boolean |
Indicates whether the API call is successful. A value of true indicates success, and a value of false indicates failure. |
true |
Examples
Success response
JSON format
{
"requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
"errorMessage": "\"\"",
"errorCode": "\"\"",
"success": true
}
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.