ExecutePipelineJobRun - Manually Run Pipeline Jobs
Manually run pipeline jobs using OpenAPI.
|
Applicable editions |
Central edition, Region edition |
Endpoints and Authorization Information
-
Obtain endpoints: Replace {domain} in the API request syntax.
-
Obtain the organization ID: Required for Central edition only. Go to the Basic Information page in the Organization Management console.
|
Product |
Resource |
Required Permissions |
|
Pipeline |
Pipeline job run |
Read/Write |
Request Syntax
Central edition
POST https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/{pipelineId}/pipelineRuns/{pipelineRunId}/jobs/{jobId}/start
Region edition
POST https://{domain}/oapi/v1/flow/pipelines/{pipelineId}/pipelineRuns/{pipelineRunId}/jobs/{jobId}/start
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 |
|
Enterprise ID. |
5ebbc0228123212b59xxxxx |
|
pipelineId |
string |
path |
Yes |
Pipeline ID. |
123 |
|
pipelineRunId |
string |
path |
Yes |
Pipeline run ID. Retrieve this ID by calling the ListPipelineRuns operation. |
1 |
|
jobId |
string |
path |
Yes |
Pipeline job run ID. Retrieve this ID by calling the GetPipelineRun operation. |
1 |
Request Examples
Central edition
curl -X 'POST' \
'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/pipelines/123/pipelineRuns/1/jobs/1/start' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Region edition
curl -X 'POST' \
'https://{domain}/oapi/v1/flow/pipelines/123/pipelineRuns/1/jobs/1/start' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response Parameters
|
Parameter |
Type |
Description |
Example Value |
|
- |
boolean |
Whether the operation succeeded. |
true |
Response Example
true
Error Codes
For a list of API error codes, see the Error Code Center.