ListPipelineRelations - List pipeline associations
Lists the resources associated with a pipeline.
|
Applicable editions |
Central edition, Region edition |
Endpoints and authorization
-
Obtain the endpoint. Replace {domain} in the request syntax with this endpoint.
-
Obtain the organization ID. Required only for the Central edition. Go to the Basic Information page in the Organization Management console.
|
Product |
Resource |
Required permission |
|
Pipeline |
Pipeline |
Read-only |
Request syntax
Central edition
GET https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/{pipelineId}/pipelineObjRel/{relObjectType}/list
Region edition
GET https://{domain}/oapi/v1/flow/pipelines/{pipelineId}/pipelineObjRel/{relObjectType}/list
Request headers
|
Parameter |
Type |
Required |
Description |
Example |
|
x-yunxiao-token |
string |
Yes |
Your personal access token. |
pt-0fh3****0fbG_35af****0484 |
Request parameters
|
Parameter |
Type |
Location |
Required |
Description |
Example |
|
organizationId |
string |
path |
|
The organization ID. |
5ebbc0228123212b59xxxxx |
|
pipelineId |
string |
path |
Yes |
The pipeline ID. |
123 |
|
relObjectType |
string |
path |
Yes |
The type of the associated resource. Only VARIABLE_GROUP is supported. |
VARIABLE_GROUP |
Request examples
Central edition
curl -X 'GET' \
'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/pipelines/123/pipelineObjRel/VARIABLE_GROUP/list' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Region edition
curl -X 'GET' \
'https://{domain}/oapi/v1/flow/pipelines/123/pipelineObjRel/VARIABLE_GROUP/list' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
|
Parameter |
Type |
Description |
Example |
| - |
array |
||
| - |
object |
||
|
refObjectId |
string |
The ID of the variable group. |
12234 |
Response example
[
{
"refObjectId": "12234"
}
]
Error codes
For API error codes, see Error Code Center.