GetDashboardWidgetImage
    • PDF

    GetDashboardWidgetImage

    • PDF

    Article Summary

    Overview

    Available in VPC

    You can specify a dashboard and widgets and download their data in a PNG file. (image size: 800 * 600)

    Requests

    API URL

    URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/chart/dashboard/{dashboardId}/widgets/{widgetId}?startTime={startTime}&endTime={endTime}
    Method: GET
    

    Request headers

    Request headers specified in the common settings are needed.

    x-ncp-apigw-signature-v2: {generated signature}
    x-ncp-apigw-timestamp: {current timestamp}
    x-ncp-iam-access-key: {your iam access key}
    

    Request parameters

    Parameter nameParameter typeRequirement statusTypeRestrictionsDescription
    dashboardIdpathYStringID of the dashboard where the widget you'd like to download is included
    widgetIdpathYStringID of the widget you'd like to download
    startTimequeryYLongThe time the dashboard display started in milliseconds
    endTimequeryYLongThe time the dashboard display ended in milliseconds
    widgetResolutionModequeryNStringAUTO, HIGH, default: AUTOSet query interval.
    AUTO Select this to set it to the same query interval as on the console dashboard and select HIGH to set it differently, that is, for more detailed data query, than on the console dashboard.

    Examples

    Request examples

    GET /cw_fea/real/cw/api/chart/dashboard/df_457958429047263232/widgets/avg_cpu_used_rto__457958429047263232?startTime=1650261600000&endTime=1650358800000
    Host: cw.apigw.ntruss.com
    x-ncp-apigw-signature-v2: {generated signature}
    x-ncp-apigw-timestamp: {current timestamp}
    x-ncp-iam-access-key: {your iam access key}
    

    Response examples

    If query is completed without any errors, an HTTP code 200 is returned. If you have specified an output file with the PNG extension, a widget image with the same file name is downloaded.
    image.png


    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.