- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Image
- Thumbnail
- Status
- Try it!
Lists thumbnails of images attached to a step.
May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read from the project, or from any of the images - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the step does not exist, or if any of the images do not exist
HTTP request
GET https://toolresults.googleapis.com/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/thumbnails
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
projectId |
A Project id. Required. |
historyId |
A History id. Required. |
executionId |
An Execution id. Required. |
stepId |
A Step id. Required. |
Query parameters
Parameters | |
---|---|
pageToken |
A continuation token to resume the query at the next item. Optional. |
pageSize |
The maximum number of thumbnails to fetch. Default value: 50. The server will use this default if the field is not set or has a value of 0. Optional. |
Request body
The request body must be empty.
Response body
A response containing the thumbnails in a step.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"thumbnails": [
{
object ( |
Fields | |
---|---|
thumbnails[] |
A list of image data. Images are returned in a deterministic order; they are ordered by these factors, in order of importance: * First, by their associated test case. Images without a test case are considered greater than images with one. * Second, by their creation time. Images without a creation time are greater than images with one. * Third, by the order in which they were added to the step (by calls to steps.create or steps.patch). |
nextPageToken |
A continuation token to resume the query at the next item. If set, indicates that there are more thumbnails to read, by calling list again with this value in the pageToken field. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
Image
An image, with a link to the main image and a thumbnail.
JSON representation |
---|
{ "stepId": string, "sourceImage": { object ( |
Fields | |
---|---|
stepId |
The step to which the image is attached. Always set. |
sourceImage |
A reference to the full-size, original image. This is the same as the toolOutputs entry for the image under its Step. Always set. |
Union field thumbnail_or_error . Either a thumbnail of the image, or an error explaining why the thumbnail could not be rendered. thumbnail_or_error can be only one of the following: |
|
thumbnail |
The thumbnail. |
error |
An error explaining why the thumbnail could not be rendered. |
Thumbnail
A single thumbnail, with its size and format.
JSON representation |
---|
{ "contentType": string, "heightPx": integer, "widthPx": integer, "data": string } |
Fields | |
---|---|
contentType |
The thumbnail's content type, i.e. "image/png". Always set. |
heightPx |
The height of the thumbnail, in pixels. Always set. |
widthPx |
The width of the thumbnail, in pixels. Always set. |
data |
The thumbnail file itself. That is, the bytes here are precisely the bytes that make up the thumbnail file; they can be served as an image as-is (with the appropriate content type.) Always set. A base64-encoded string. |
Status
The Status
type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status
message contains three pieces of data: error code, error message, and error details.
You can find out more about this error model and how to work with it in the API Design Guide.
JSON representation |
---|
{ "code": integer, "message": string, "details": [ { "@type": string, field1: ..., ... } ] } |
Fields | |
---|---|
code |
The status code, which should be an enum value of |
message |
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the |
details[] |
A list of messages that carry the error details. There is a common set of message types for APIs to use. An object containing fields of an arbitrary type. An additional field |