Return the report image
This operation hides the job architecture and directly generates and returns the image. It blocks synchronously until the image is ready or timeout occurs (default 10 seconds). If a timeout occurs, a redirect is returned to the browser, redirecting back to this operation for browser liveness purposes. Use of this operation is discouraged. Using more than one can starve a browser's requests queue, as some browsers are limited to 6 active queries per site. Also, the redirect technique employed can fail in the browser after too many redirects, as some browsers allow only 10 redirects. Any client capable of following the job pattern should NOT use this direct operation. Parameters reportUri
and size
are required.
Name | Type | Required | Description |
---|---|---|---|
imageType | string | false | In addition to the default "svg" for SVG image generation, "png" is now supported and results in a png image being created. Allowed values: svgpng Default: svg |
layoutType | string | false | The type of image to render. thumbnail -- selects a suitable report element and reduces the detail to better render at a smaller size. normal -- selects a suitable report element, but there is no reduction of detail. entireSection -- the entire section (page). Allowed values: thumbnailnormalentireSection Default: thumbnail |
refresh | boolean | false | If true, bypass caches and generate a new image. Default: false |
sectionIndex | integer<int32> | false | The section to render. This parameter applies when layoutType==entireSection. Default: 0 |
selectionType | string | false | The selected operation. report -- get a single image, representing the entire report. perSection -- get one image per section. visualElements -- specify the visual elements to render in parameter visualElementNames or visualElementName for the /directImage operation. Allowed values: reportperSectionvisualElements Default: report |
size | string | false | The size of the rendered image. Format is widthxheight, with no spaces. For example, "300x200". Default: 268x151 |
style | string | false | The only non-empty value supported is "highContrast", which results in a high contrast image being rendered. Allowed values: (null/empty string)highContrast |
visualElementName | string | false | The report element to render. |
wait | number<float> | false | The number of seconds to wait for the result. When this expires, a "redirect" is returned to continue the waiting process. Use caution when setting; some browsers abort after 10 redirects. Default: 10 |
reportUri | string | true | The report from which to generate images. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The SVG image is returned. | Headers | Schema |
303 | See Other | The operation could not be completed before the wait time expired. This redirect (See Other) continues the process of waiting for the image. It is used (rather than extending the wait period) to provide some liveness to the browser's transmit queue. Note that this redirect is common, clients that cannot follow a redirect must either not use this method or specify a very long timeout. | Headers | Schema |
400 | Bad Request | The request was invalid. | Headers | Schema |
500 | Internal Server Error | An internal service error was returned by one of the services that this operation uses. The response object contains error text and codes to diagnose it. | Headers | Schema |