Get a list of toolchains
GET /toolchains
Returns a list of toolchains that the caller is authorized to access and that meets the provided query parameters.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
resource-controller.instance.retrieve
Request
Path Parameters
Query Parameters
resource_group_id
Required *
The resource group ID where the toolchains exist
limit
Limit the number of results
start
Pagination token
name
Exact name of toolchain to look up. This parameter is case sensitive
Response
200 - Successful request
total_count
integer
Total number of toolchains found in collection
limit
integer
Maximum number of toolchains returned from collection
first
ToolchainCollectionFirst
Information about retrieving first toolchain results from the collection
previous
ToolchainCollectionPrevious
Information about retrieving previous toolchain results from the collection
next
ToolchainCollectionNext
Information about retrieving next toolchain results from the collection
last
ToolchainCollectionLast
Information about retrieving last toolchain results from the collection
toolchains
array
Toolchain results returned from the collection
400 - Missing toolchain parameters or unsupported toolchain
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
401 - Invalid authentication credentials
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
404 - Resource group with the provided ID is not found or accessible
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
500 - Internal system error encountered
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
Create a toolchain
POST /toolchains
Creates a new toolchain based off the provided parameters in the body
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
resource-controller.instance.create
Auditing
Calling this method generates the following auditing event.
toolchain.instance.create
Request
Request Body
ToolchainPrototype
name
Required *
string
Toolchain name
description
string
Describes the toolchain
resource_group_id
Required *
string
Resource group where toolchain will be created
Response
201 - Toolchain successfully created
id
string
Toolchain ID
name
string
Toolchain name
description
string
Describes the toolchain
account_id
string
Account ID where toolchain can be found
location
string
Toolchain region
resource_group_id
string
Resource group where the toolchain is located
crn
string
Toolchain CRN
href
string
URI that can be used to retrieve toolchain
ui_href
string
URL of a user-facing user interface for this toolchain
created_at
string
Toolchain creation timestamp
updated_at
string
Latest toolchain update timestamp
created_by
string
Identity that created the toolchain
400 - Missing required toolchain properties, or reached the maximum number of toolchains allowed in the resource group
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
401 - Invalid authentication credentials
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
500 - Internal system error encountered
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
Get a toolchain
GET /toolchains/{toolchain_id}
Returns data for a single toolchain identified by its ID
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
resource-controller.instance.retrieve
Request
Path Parameters
toolchain_id
Required *
ID of the toolchain
Query Parameters
Response
200 - Successful request
id
string
Toolchain ID
name
string
Toolchain name
description
string
Describes the toolchain
account_id
string
Account ID where toolchain can be found
location
string
Toolchain region
resource_group_id
string
Resource group where the toolchain is located
crn
string
Toolchain CRN
href
string
URI that can be used to retrieve toolchain
ui_href
string
URL of a user-facing user interface for this toolchain
created_at
string
Toolchain creation timestamp
updated_at
string
Latest toolchain update timestamp
created_by
string
Identity that created the toolchain
400 - Missing toolchain parameters or unsupported toolchain
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
401 - Invalid authentication credentials
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
404 - Toolchain with the provided ID was not found or is not accessible
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
500 - Internal system error encountered
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
Delete a toolchain
DELETE /toolchains/{toolchain_id}
Delete the toolchain with the specified ID
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
resource-controller.instance.delete
Auditing
Calling this method generates the following auditing event.
toolchain.instance.delete
Request
Path Parameters
toolchain_id
Required *
ID of the toolchain
Query Parameters
Response
204 - Toolchain successfully deleted
400 - Missing or invalid path parameters
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
401 - Invalid authentication credentials
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
404 - Toolchain with the provided ID was not found or is not accessible, or unsupported toolchain
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
500 - Internal system error encountered
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
Update a toolchain
PATCH /toolchains/{toolchain_id}
Update the toolchain with the specified ID
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
resource-controller.instance.update
Auditing
Calling this method generates the following auditing event.
toolchain.instance.update
Request
Request Body
Path Parameters
toolchain_id
Required *
ID of the toolchain
Query Parameters
Response
200 - Toolchain successfully updated
id
string
Toolchain ID
name
string
Toolchain name
description
string
Describes the toolchain
account_id
string
Account ID where toolchain can be found
location
string
Toolchain region
resource_group_id
string
Resource group where the toolchain is located
crn
string
Toolchain CRN
href
string
URI that can be used to retrieve toolchain
ui_href
string
URL of a user-facing user interface for this toolchain
created_at
string
Toolchain creation timestamp
updated_at
string
Latest toolchain update timestamp
created_by
string
Identity that created the toolchain
400 - Missing toolchain parameters or unsupported toolchain
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
401 - Invalid authentication credentials
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
403 - Not authorized to modify the toolchain
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
404 - Toolchain with the provided ID was not found or is not accessible
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
500 - Internal system error encountered
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
Create a toolchain event
POST /toolchains/{toolchain_id}/events
Creates and sends a custom event to each Event Notifications instance configured as a tool in the toolchain. This operation will fail if no Event Notifications instances are configured in the toolchain.
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
toolchain.event.send
Auditing
Calling this method generates the following auditing event.
toolchain.event.send
Request
Request Body
ToolchainEventPrototype
title
Required *
string
Event title
description
Required *
string
Describes the event
content_type
Required *
string
The content type of the attached data. Supported values are `text/plain`, `application/json`, and `none`
data
ToolchainEventPrototypeData
Additional data to be added with the event. The format must correspond to the value of `content_type`.
application_json
object
Contains JSON data to be added with the event. `content_type` must be set to `application/json`.
text_plain
object
Contains text data to be added with the event. `content_type` must be set to `text/plain`.
Path Parameters
toolchain_id
Required *
ID of the toolchain to send events from
Query Parameters
Response
200 - Request acknowledged and successfully processed
id
string
Event ID
400 - Missing or incorrect required toolchain event properties
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
401 - Invalid authentication credentials
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
403 - Unauthorized to send events from toolchain
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
404 - Toolchain with provided ID was not found or is not accessible
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
413 - Exceeded maximum allowed size for the event payload
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
429 - Too many requests have been made within a given time window
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
500 - Internal system error encountered
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
Get a list of tools bound to a toolchain
GET /toolchains/{toolchain_id}/tools
Returns a list of tools bound to a toolchain that the caller is authorized to access and that meet the provided query parameters
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
resource-controller.instance.retrieve
Auditing
Calling this method generates the following auditing event.
toolchain.tool-instance.read
Request
Path Parameters
toolchain_id
Required *
ID of the toolchain that tools are bound to
Query Parameters
limit
Limit the number of results
start
Pagination token
Response
200 - Successful request
limit
integer
Maximum number of tools returned from collection
total_count
integer
Total number of tools found in collection
first
ToolchainToolCollectionFirst
Information about retrieving first tool results from the collection
previous
ToolchainToolCollectionPrevious
Information about retrieving previous tool results from the collection
next
ToolchainToolCollectionNext
Information about retrieving next tool results from the collection
last
ToolchainToolCollectionLast
Information about retrieving last tool results from the collection
tools
array
Tool results returned from the collection
400 - Missing or invalid path or required query parameters, or unsupported toolchain
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
401 - Invalid authentication credentials
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
404 - Resource group with provided ID was not found or is not accessible
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
500 - Internal system error encountered
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
Create a tool
POST /toolchains/{toolchain_id}/tools
Provisions a new tool based off the provided parameters in the body and binds it to the specified toolchain
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
toolchain.instance.create-bindings
Auditing
Calling this method generates the following auditing event.
toolchain.tool-instance.createtoolchain.tool-instance.deploy
Request
Request Body
ToolchainToolPrototype
name
string
Name of the tool
tool_type_id
Required *
string
The unique short name of the tool that should be provisioned. A table of `tool_type_id` values corresponding to each tool integration can be found in the <a href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool integrations page</a>
parameters
ToolModelParameters
Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the <a href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool integrations page</a>
Path Parameters
toolchain_id
Required *
ID of the toolchain to bind the tool to
Query Parameters
Response
201 - Tool successfully created
id
string
Tool ID
resource_group_id
string
Resource group where the tool is located
crn
string
Tool CRN
tool_type_id
string
The unique name of the provisioned tool. A table of `tool_type_id` values corresponding to each tool integration can be found in the <a href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool integrations page</a>
toolchain_id
string
ID of toolchain which the tool is bound to
toolchain_crn
string
CRN of toolchain which the tool is bound to
href
string
URI representing the tool
referent
ToolModelReferent
Information on URIs to access this resource through the UI or API
name
string
Name of the tool
updated_at
string
Latest tool update timestamp
parameters
ToolModelParameters
Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the <a href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool integrations page</a>
state
string
Current configuration state of the tool
400 - Missing required tool properties, or reached the maximum number of tools allowed in toolchain
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
401 - Invalid authentication credentials
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
500 - Internal system error encountered
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
Get a tool
GET /toolchains/{toolchain_id}/tools/{tool_id}
Returns a tool that is bound to the provided toolchain
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
resource-controller.instance.retrieve
Auditing
Calling this method generates the following auditing event.
toolchain.tool-instance.read
Request
Path Parameters
toolchain_id
Required *
ID of the toolchain
tool_id
Required *
ID of the tool bound to the toolchain
Query Parameters
Response
200 - Successful request
id
string
Tool ID
resource_group_id
string
Resource group where the tool is located
crn
string
Tool CRN
tool_type_id
string
The unique name of the provisioned tool. A table of `tool_type_id` values corresponding to each tool integration can be found in the <a href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool integrations page</a>
toolchain_id
string
ID of toolchain which the tool is bound to
toolchain_crn
string
CRN of toolchain which the tool is bound to
href
string
URI representing the tool
referent
ToolModelReferent
Information on URIs to access this resource through the UI or API
name
string
Name of the tool
updated_at
string
Latest tool update timestamp
parameters
ToolModelParameters
Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the <a href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool integrations page</a>
state
string
Current configuration state of the tool
400 - Missing or invalid path parameters
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
401 - Invalid authentication credentials
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
404 - Tool with provided ID was not found or is not accessible
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
500 - Internal system error encountered
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
Delete a tool
DELETE /toolchains/{toolchain_id}/tools/{tool_id}
Delete the tool with the specified ID
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
toolchain.instance.delete-bindings
Auditing
Calling this method generates the following auditing event.
toolchain.tool-instance.deletetoolchain.tool-instance.undeploy
Request
Path Parameters
toolchain_id
Required *
ID of the toolchain
tool_id
Required *
ID of the tool bound to the toolchain
Query Parameters
Response
204 - Tool successfully deleted
400 - Missing or invalid path parameters
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
401 - Invalid authentication credentials
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
404 - Tool with the provided ID was not found or is not accessible, or unsupported toolchain
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
500 - Internal system error encountered
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
Update a tool
PATCH /toolchains/{toolchain_id}/tools/{tool_id}
Update the tool with the specified ID
Authorization
To call this method, you must be assigned one or more IAM access roles that include the following action.
resource-controller.instance.update
Auditing
Calling this method generates the following auditing event.
toolchain.tool-instance.update
Request
Request Body
Path Parameters
toolchain_id
Required *
ID of the toolchain
tool_id
Required *
ID of the tool bound to the toolchain
Query Parameters
Response
200 - Tool successfully updated
id
string
Tool ID
resource_group_id
string
Resource group where the tool is located
crn
string
Tool CRN
tool_type_id
string
The unique name of the provisioned tool. A table of `tool_type_id` values corresponding to each tool integration can be found in the <a href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool integrations page</a>
toolchain_id
string
ID of toolchain which the tool is bound to
toolchain_crn
string
CRN of toolchain which the tool is bound to
href
string
URI representing the tool
referent
ToolModelReferent
Information on URIs to access this resource through the UI or API
name
string
Name of the tool
updated_at
string
Latest tool update timestamp
parameters
ToolModelParameters
Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the <a href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-integrations">Configuring tool integrations page</a>
state
string
Current configuration state of the tool
400 - Missing or invalid path parameters
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
401 - Invalid authentication credentials
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
403 - Not authorized to modify the tool
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
409 - Conflicting tool type IDs in the body and the target tool
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error
500 - Internal system error encountered
trace
string
The request trace
errors
array
List of errors encountered in the request
status_code
integer
HTTP status code returned by the error