Preview Blueprints /
List preview environments
Get a list of active previews for a preview blueprint.
Required permission
Project > PreviewBlueprints > General > Read
Path parameters
projectId
string requiredID of the projectpreviewBlueprintId
string requiredID of the preview blueprint
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.
Response body
- {object}Response object.
data
{object} requiredResult data.previewEnvironments
[array] requiredA list of currently available preview environments for the template.- {object}
id
string requiredIdentifier for the preview template environmentvcsData
{object} requiredData about the version control action that triggered environment creationrepoUrl
string requiredcreatedAt
stringtime of creationupdatedAt
stringtime of updatepagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
API
CLI
JS Client
GET /v1/projects/{projectId}/preview-blueprints/{previewBlueprintId}/previews
Example response
200 OK
A list of previews currently active for the blueprint.
JSON
{
"data": {
"previewEnvironments": [
{
"id": "clean-step"
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}