Name | Method | Endpoint |
---|---|---|
Update, replace, or create new using Tekton Task YAML | PUT | /api/v2/task/{name} |
Create a new Task using Tekton Task YAML | POST | /api/v2/task |
Retrieve a specific task as Tekton Task YAML. If no version specified, the latest version is returned. | GET | /api/v2/task/{name} |
Retrieve the changlog | GET | /api/v2/task/{name}/changelog |
Search for Task. If teams are provided it will query the teams. If no teams are provided it will query Global Task Templates | GET | /api/v2/task/query |
**** | POST | /api/v2/task/validate |
PUT /api/v2/task/{name}?replace=true
The name must only contain alphanumeric and - characeters. If the name exists, apply will create a new version.
Name | Type | Required | Description | Notes | Example |
---|---|---|---|---|---|
name | String | true | Name of Task | Defaults to null. | name_example |
replace | Boolean | false | Replace existing version | Defaults to false. | true |
Schema | Required |
---|---|
Task | true |
Note: this section and the documentation around what is required is still actively being updated.
No authorization required
application/json, application/x-yaml
*/*
POST /api/v2/task
The name needs to be unique and must only contain alphanumeric and - characeters.
Name | Type | Required | Description | Notes | Example |
---|
Schema | Required |
---|---|
Task | true |
Note: this section and the documentation around what is required is still actively being updated.
No authorization required
application/json, application/x-yaml
*/*
GET /api/v2/task/{name}?version=56
Name | Type | Required | Description | Notes | Example |
---|---|---|---|---|---|
name | String | true | Name of Task | Defaults to null. | name_example |
version | Integer | false | Task Version | Defaults to null. | 56 |
This endpoint does not require a request body.
Note: this section and the documentation around what is required is still actively being updated.
No authorization required
Not defined
*/*
GET /api/v2/task/{name}/changelog
Retrieves each versions changelog and returns them all as a list.
Name | Type | Required | Description | Notes | Example |
---|---|---|---|---|---|
name | String | true | Name of Task | Defaults to null. | name_example |
This endpoint does not require a request body.
Note: this section and the documentation around what is required is still actively being updated.
No authorization required
Not defined
*/*
GET /api/v2/task/query?labels=,statuses=active,inactive,names=switch,event-wait,limit=10,page=0,sort=ASC
Name | Type | Required | Description | Notes | Example |
---|---|---|---|---|---|
limit | Integer | true | Result Size | Defaults to null. | 10 |
page | Integer | true | Page Number | Defaults to null. | 0 |
sort | String | true | Ascending (ASC) or Descending (DESC) sort on creationDate | Defaults to Optional[ASC]. Enum: [ASC, DESC] | ASC |
labels | List | false | List of url encoded labels. For example Organization=Boomerang,customKey=test would be encoded as Organization%3DBoomerang,customKey%3Dtest) | Defaults to null. | |
statuses | List | false | List of statuses to filter for. | Defaults to null. | active,inactive |
names | List | false | List of Task Names to filter for. Defaults to all. | Defaults to null. | switch,event-wait |
This endpoint does not require a request body.
Note: this section and the documentation around what is required is still actively being updated.
No authorization required
Not defined
*/*
POST /api/v2/task/validate
Name | Type | Required | Description | Notes | Example |
---|
Schema | Required |
---|---|
TektonTask | true |
Note: this section and the documentation around what is required is still actively being updated.
No authorization required
application/x-yaml
Not defined
null (empty response body)