This page explains the available API endpoints, including their parameters, responses, and examples. Use this information to integrate your applications with the CloudBees platform.
Retrieve a list of endpoints
Retrieve a list of environment endpoints or a specific environment endpoint based on the provided resourceId
.
GET /v2/endpoints/list/{resourceId}
The following table outlines the parameters that can be used with this endpoint, including path and query parameters, their types, and if they are required or optional.
Parameter name | In | Type | Required | Description |
---|---|---|---|---|
|
Path |
String |
Yes |
Specify the resource ID of the tenant, org, sub-org, component, or branch for which endpoints are requested. |
|
Query |
String |
No |
Specify a string to filter the results. |
|
Query |
Array[String] |
No |
Specify a list of resource IDs to filter the results. |
|
Query |
Array[String] |
No |
Specify a list of contribution types to filter the results. |
|
Query |
Array[String] |
No |
Specify a list of contribution targets to filter the results. |
|
Query |
Array[String] |
No |
Specify a list of contribution IDs to filter the results. |
|
Query |
Boolean |
No |
Specify if disabled items are included in the response. |
|
Query |
Integer |
No |
Specify the page of results to return (default: 0 or 1). |
|
Query |
Integer |
No |
Specify the number of items per page (default: API limit). |
|
Query |
String |
No |
Specify the field to sort by. |
|
Query |
Enum(ascending or descending) |
No |
Specify the sort order (ascending or descending). |
|
Query |
Boolean |
No |
Indicates if there are more results remaining (response-only). |
|
Query |
Boolean |
No |
Specify if endpoint properties are merged with parent values. |
|
Query |
Boolean |
No |
Specify if endpoints of the resource’s parents are included in the response. |
|
Query |
Boolean |
No |
Specify if endpoints of the resource’s descendants are included in the response. |
Responses
The following table describes the status codes returned by this endpoint, including their meanings and associated schemas.
Status Code | Description | Schema |
---|---|---|
200 |
OK. Successful response with a list of endpoints. |
|
Default |
Error response with details. |
|
{ "endpoints": [ { "id": "endpoint123", "name": "exampleEndpoint", "resourceId": "resource456", "description": "Example description", "contributionType": "typeA", "contributionTargets": ["targetA", "targetB"] } ], "pagination": { "page": 1, "pageLength": 10, "lastPage": true } }