Authentication
Before you can call an IBM Orchestration Pipelines API you must first create an IAM bearer token. Each token is valid only for one hour, and after a token expires you must create a new one if you want to continue using the API. The recommended method to retrieve a token programmatically is to create an API key for your IBM Cloud identity and then use the IAM token API to exchange that key for a token.
You can create a token in IBM Cloud or by using the IBM Cloud command line interface (CLI).
To create a token in the IBM Cloud:
- Log in to IBM Cloud and select Manage > Access (IAM) > API keys.
- Create an API key for your own personal identity, copy the key value, and save it in a secure place. After you leave the page, you will no longer be able to access this value.
- With your API key, set up Postman or another REST API tool and run the following command to the right
You can read more about managing API keys at Understanding API keys documentation page. Visit the Generating an IBM Cloud IAM token by using an API key
A bearer token from IBM Cloud Pak for Data is required to use any of the Watson Data APIs.
Visit the Generating a bearer token on Cloud Pak for Data for more information.
Methods
Uploads a pipeline file and create a new pipeline
Uploads a pipeline file and create a new pipeline. You need to specify either project_id
or space_id
.
POST /apis/v1/pipelines/upload
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Query Parameters
Name of the pipeline, defaults to file's name.
Possible values: 1 ≤ length ≤ 255, Value must match regular expression
^[\w-]*$
Description of the pipelines, defaults to "".
Possible values: 0 ≤ length ≤ 65535, Value must match regular expression
^.*$
When set to true, indicates the new pipeline's default version will be work-in-progress.
Work-in-progress pipeline versions can be updated (with this flag still set to true) multiple times before committed as finished state.
Form Parameters
Pipeline file to be uploaded.
The supported file formats are pipeline.json and zip which contains pipeline.json inside, with content-type being absent, equal to "application/json" or "application/zip".
Response
Pipeline
Pipeline id
Pipeline creation date
Pipeline name
Pipeline description
Pipeline parameters
Pipeline version
Examples:ViewIn case any error happens retrieving a pipeline field, only pipeline ID and the error message is returned. Client has the flexibility of choosing how to handle error. This is especially useful during listing call.
Status Code
Pipeline was created
New pipeline creation result
{ "id": "11111111-2222-3333-4444-555555555555", "created_at": "2024-06-03T12:30:57Z", "name": "pipeline-name", "description": "Pipeline description" }
Creates a new pipeline version (or updates a volatile one)
Uploads a pipeline file and creates a new pipeline version (or updates a volatile one). You need to specify either project_id
or space_id
.
POST /apis/v1/pipelines/upload_version
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Query Parameters
Name of the pipeline, defaults to file's name.
Possible values: 1 ≤ length ≤ 255, Value must match regular expression
^[\w-]*$
ID of the pipeline the version should be attached to.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
When set to true, indicates the version is or will be work-in-progress.
Work-in-progress pipeline versions can be updated (with this flag still set to true) multiple times before committed as finished state.
If it's used while the default version is already volatile, it updates that version instead of creating a new one.
If it's not used while a volatile version is the default one, upload will fail with error
Form Parameters
Pipeline file to be uploaded.
The supported file formats are pipeline.json and zip which contains pipeline.json inside, with content-type being absent, equal to "application/json" or "application/zip".
Response
Pipeline version
Output. Unique version ID. Generated by API server.
Optional input field. Version name provided by user.
Output. The time this pipeline version is created.
Output. The input parameters for this pipeline.
Input. Optional. Pipeline version code source.
Url
Input. Required. E.g., specify which pipeline this pipeline version belongs to.
Status Code
New pipeline version was created or updated.
Upload a pipeline file result
{ "id": "11111111-2222-3333-4444-555555555555-0", "name": "pipeline_name", "created_at": "2024-06-04T08:32:56Z" }
Commits a pre-existing volatile default version to finished state
Commits a pre-existing volatile default version to finished state. You need to specify either project_id
or space_id
.
POST /apis/v1/pipelines/commit
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Query Parameters
ID of the pipeline the version is attached to.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Commit request
commit message
Response
Pipeline
Pipeline id
Pipeline creation date
Pipeline name
Pipeline description
Pipeline parameters
Pipeline version
Examples:ViewIn case any error happens retrieving a pipeline field, only pipeline ID and the error message is returned. Client has the flexibility of choosing how to handle error. This is especially useful during listing call.
Status Code
Pre-existing volatile default version was successfully committed
Result of commit a pre-existing volatile default version
{ "id": "11111111-2222-3333-4444-555555555555", "created_at": "2024-06-03T12:30:57Z", "name": "pipeline-name", "description": "Pipeline description" }
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Form Parameters
Pipeline file to be uploaded.
The supported file formats are pipeline.json and zip which contains pipeline.json inside, with content-type being absent, equal to "application/json" or "application/zip".
Creates a new pipeline from existing pipeline
Creates a new pipeline from existing pipeline. You need to specify either project_id
or space_id
.
POST /apis/v1/pipelines/copy
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Copy request
Id of the source pipeline
Name of the created pipeline
Description of the created pipeline
Response
Pipeline
Pipeline id
Pipeline creation date
Pipeline name
Pipeline description
Pipeline parameters
Pipeline version
Examples:ViewIn case any error happens retrieving a pipeline field, only pipeline ID and the error message is returned. Client has the flexibility of choosing how to handle error. This is especially useful during listing call.
Status Code
New pipeline was created
Result of creation a new pipeline from existing one
{ "id": "11111111-2222-3333-4444-555555555555", "created_at": "2024-06-03T12:30:57Z", "name": "pipeline-name", "description": "Pipeline description" }
Finds all pipelines
Finds all pipelines. You need to specify either project_id
or space_id
.
GET /apis/v1/pipelines
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Query Parameters
A page token to request the next page of results. The token is acquired from the nextPageToken field of the response from the previous ListPipelines call.
The number of pipelines to be listed per page. If there are more pipelines than this number, the response message will contain a valid value in the nextPageToken field.
Accepted formats: "field_name" or "field_name sort_order". Accepted field names: "id", "name", "created_at". Accepted sort orders: "asc" (ascending), "desc" (descending). Default sort order is "asc".
Response
List of pipeline runs
The total number of runs for the given query.
The token to list the next page of pipelines.
Pipelines
Status Code
Pipelines were retrieved successfully. Response can contain smaller number of resources than requested in some cases.
Result of retrieving all pipelines.
No Sample Response
Finds a specific pipeline by ID
Finds a specific pipeline by ID. You need to specify either project_id
or space_id
.
GET /apis/v1/pipelines/{pipeline_id}
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Path Parameters
The ID of the pipeline to be retrieved.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Response
Pipeline
Pipeline id
Pipeline creation date
Pipeline name
Pipeline description
Pipeline parameters
Pipeline version
Examples:ViewIn case any error happens retrieving a pipeline field, only pipeline ID and the error message is returned. Client has the flexibility of choosing how to handle error. This is especially useful during listing call.
Status Code
Pipeline was found
Pipeline search result
{ "id": "11111111-2222-3333-4444-555555555555", "created_at": "2024-06-03T12:30:57Z", "name": "pipeline-name", "description": "Pipeline description" }
Deletes a pipeline and its pipeline versions
Deletes a pipeline and its pipeline versions. You need to specify either project_id
or space_id
.
DELETE /apis/v1/pipelines/{pipeline_id}
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Path Parameters
The ID of the pipeline to be deleted.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Lists all pipeline versions of a given pipeline
Lists all pipeline versions of a given pipeline. You need to specify either project_id
or space_id
.
GET /apis/v1/pipeline_versions
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Query Parameters
The ID of the pipeline
The number of pipeline versions to be listed per page. If there are more pipeline versions than this number, the response message will contain a nextPageToken field you can use to fetch the next page.
A page token to request the next page of results. The token is acquired from the nextPageToken field of the response from the previous ListPipelineVersions call or can be omitted when fetching the first page.
Can be format of "field_name", "field_name asc" or "field_name desc" Ascending by default.
Response
List of pipelines
The total number of runs for the given query.
The token to list the next page of pipelines.
Pipeline versions
Status Code
Pipeline versions were retrieved. Response can contain smaller number of resources than requested in some cases.
Result of pipeline versions retrieval.
No Sample Response
Gets a pipeline version by pipeline version ID
Gets a pipeline version by pipeline version ID. You need to specify either project_id
or space_id
.
GET /apis/v1/pipeline_versions/{version_id}
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Path Parameters
The ID of the pipeline version to be retrieved.
Response
Pipeline version
Output. Unique version ID. Generated by API server.
Optional input field. Version name provided by user.
Output. The time this pipeline version is created.
Output. The input parameters for this pipeline.
Input. Optional. Pipeline version code source.
Url
Input. Required. E.g., specify which pipeline this pipeline version belongs to.
Status Code
Pipeline version was read
Result of retrieving pipeline version
{ "id": "11111111-2222-3333-4444-555555555555-0", "name": "pipeline_name", "created_at": "2024-06-04T08:32:56Z" }
Deletes a pipeline version by pipeline version ID
Deletes a pipeline version by pipeline version ID. You need to specify either project_id
or space_id
.
DELETE /apis/v1/pipeline_versions/{version_id}
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Path Parameters
The ID of the pipeline version to be deleted.
Gets templates for pipeline
Returns code (YAML template, Orchestration Flow json) that contains
the specified pipeline's description, parameters and metadata.
You need to specify either project_id
or space_id
.
GET /apis/v1/pipelines/{pipeline_id}/templates
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Path Parameters
The ID of the pipeline whose template is to be retrieved
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Query Parameters
What code should be get.
Allowable values: [
template
,flow
,all
]Default:
template
The version of the pipeline to be retrieved. One of:
- 'any' (return the volatile version if it exists, and the latest non-volatile version otherwise).
- 'latest' (retrieve the latest non-volatile version), or
- 'volatile' (retrieve the volatile version),
Allowable values: [
any
,latest
,volatile
]
Response
Pipeline template
The template of the pipeline specified in a GetTemplate request, or of a pipeline version specified in a GetPipelinesVersionTemplate request.
Examples:ViewThe Orchestration Flow source json of the pipeline specifiec in a GetTemplate request, or of a pipeline version specified in a GetPipelinesVersionTemplate request.
Examples:View
Status Code
Code (YAML template, Orchestration Flow json) was returned successfully
Result of returning code (YAML template, Orchestration Flow json)
No Sample Response
Gets templates for pipeline version
Returns code (YAML template, Orchestration Flow json embedded in a string) that contains
the specified pipeline version's description, parameters and metadata.
You need to specify either project_id
or space_id
.
GET /apis/v1/pipeline_versions/{version_id}/templates
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Path Parameters
The ID of the pipeline version whose template is to be retrieved
Query Parameters
What code should be get.
Allowable values: [
template
,flow
,all
]Default:
template
Response
Pipeline template
The template of the pipeline specified in a GetTemplate request, or of a pipeline version specified in a GetPipelinesVersionTemplate request.
Examples:ViewThe Orchestration Flow source json of the pipeline specifiec in a GetTemplate request, or of a pipeline version specified in a GetPipelinesVersionTemplate request.
Examples:View
Status Code
Code (YAML template, Orchestration Flow json) was returned successfully.
Result of retrieving code (YAML template, Orchestration Flow json)
No Sample Response
Gets templates in specified format
Returns code (YAML template, Orchestration Flow json) that contains the specified pipeline version's description, parameters and metadata.
GET /apis/v1/pipeline_versions/{version_id}/templates/{format}
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Path Parameters
The ID of the pipeline version whose template is to be retrieved
What code should be get.
Allowable values: [
template
,flow
]
Response
Pipeline template
The template of the pipeline specified in a GetTemplate request, or of a pipeline version specified in a GetPipelinesVersionTemplate request.
Examples:ViewPipeline
Status Code
Code (YAML template, Orchestration Flow json) was returned successfully.
Result of retrieving code (YAML template, Orchestration Flow json)
No Sample Response
Finds a specific run by ID
Finds a specific run by ID. You need to specify either project_id
or space_id
.
GET /apis/v1/runs/{run_id}
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Path Parameters
The ID of the run.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Query Parameters
The ID of the job related to run. Adding this may improve response time.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Path Parameters
The ID of the run.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Query Parameters
The ID of the job related to run. Adding this may improve response time.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Gets log for given task run name
Gets execution log for given task run name. You need to specify either project_id
or space_id
.
GET /apis/v1/runs/{run_id}/logs/{task_run_name}
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Path Parameters
The ID of the run.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Name of executed
TaskRun
orRun
Possible values: 1 ≤ length ≤ 255, Value must match regular expression
^[\w-]*$
Example:
pipeline-90bc031ef1009d53527cf454db0160ed3cca-run-bash-script-1
Query Parameters
The ID of the job related to run. Adding this may improve response time.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Finds logs related to the specified run
Finds logs related to the specified run. You need to specify either project_id
or space_id
.
GET /apis/v1/runs/{run_id}/logs
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Path Parameters
The ID of the run.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Query Parameters
The ID of the job related to run. Adding this may improve response time.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
An url-encoded, JSON-serialized Filter protocol buffer
Gets artifact on path from the specified run
Gets artifact on path from the specified run.
GET /apis/v1/runs/{run_id}/artifacts/{artifact_path}
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Path Parameters
The ID of the run.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The artifact path relative to run storage location.
Example:
pipeline-b9eb6393-control-user-variables/outputs/variables-x
Gets information about all task results
Gets information about all task results given by TaskRun
or Run
name
GET /apis/v1/runs/{run_id}/tasks/{task_run_name}/results
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Path Parameters
The ID of the run.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Name of the
TaskRun
orRun
from which the results come from e.g.pipeline-90bc031ef1009d53527cf454db0160ed3cca-run-bash-script-1
Query Parameters
The ID of the job related to run. Adding this may improve response time.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Pipeline ID
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Pipeline run name
Gets metadata about task result
Gets metadata about task result given by output name and TaskRun
or Run
name
HEAD /apis/v1/runs/{run_id}/tasks/{task_run_name}/results/{name}
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Path Parameters
The ID of the run.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Name of the
TaskRun
orRun
from which the results come from e.g.pipeline-90bc031ef1009d53527cf454db0160ed3cca-run-bash-script-1
Name of the result e.g.
env-variables
Query Parameters
The ID of the job related to run. Adding this may improve response time.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Pipeline ID
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Pipeline run name
Gets information about task result
Gets information about task result given by output name and TaskRun
or Run
name
GET /apis/v1/runs/{run_id}/tasks/{task_run_name}/results/{name}
Request
Custom Headers
The id of the space
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
The id of the project
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Path Parameters
The ID of the run.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Name of the
TaskRun
orRun
from which the results come from e.g.pipeline-90bc031ef1009d53527cf454db0160ed3cca-run-bash-script-1
Name of the result e.g.
env-variables
Query Parameters
The ID of the job related to run. Adding this may improve response time.
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Pipeline ID
Possible values: length = 36, Value must match regular expression
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Pipeline run name
Response
Task result
Name of the result e.g.
output-variables-myEnv
Timestamp when the information about result was created
Value of the output.
Path to the file which contains the output e.g.
artifacts/pipeline-90bcab23-63c4-4596-a1da-b165af2a5d09-391a5-391a5/pipeline-90bc031ef1009d53527cf454db0160ed3cca-run-bash-script-1/outputs/output-variables-myEnv
.SHA-256 hash calculated for the content of the file which location is specified using
path
. It must be specified when thepath
is specified
Status Code
Information about task result was read
Result of retrieving information about task