Return the report image

get/directImage
Internal-Use Only

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.

Request Samples

1

Response Samples

1string

Query Parameters

NameTypeRequiredDescription
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.

Responses

StatusMeaningDescription
200OKThe SVG image is returned.HeadersSchema
303See OtherThe 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.HeadersSchema
400Bad RequestThe request was invalid.HeadersSchema
500Internal Server ErrorAn 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.HeadersSchema