Chilkat Online Tools

Delphi (DLL) / Datadog API Collection / Get all dashboards

Back to Collection Items

var

begin
CkJsonObject_UpdateString(queryParams,'filter[shared]','false');CkJsonObject_UpdateString(queryParams,'filter[deleted]','false');CkHttpResponse_GetBodySb(resp,sbResponseBody);CkJsonObject_LoadSb(jResp,sbResponseBody);CkJsonObject_putEmitCompact(jResp,False);CkJsonObject_putI(jResp,i);author_handle := CkJsonObject__stringOf(jResp,'dashboards[i].author_handle');created_at := CkJsonObject__stringOf(jResp,'dashboards[i].created_at');description := CkJsonObject__stringOf(jResp,'dashboards[i].description');id := CkJsonObject__stringOf(jResp,'dashboards[i].id');is_read_only := CkJsonObject_BoolOf(jResp,'dashboards[i].is_read_only');layout_type := CkJsonObject__stringOf(jResp,'dashboards[i].layout_type');modified_at := CkJsonObject__stringOf(jResp,'dashboards[i].modified_at');title := CkJsonObject__stringOf(jResp,'dashboards[i].title');url := CkJsonObject__stringOf(jResp,'dashboards[i].url');i := i + 1;


Curl Command

curl -G -d "filter[shared]=false"
	-d "filter[deleted]=false"
	-H "Accept: application/json"
https://api.app.ddog-gov.com/api/v1/dashboard

Postman Collection Item JSON

{
  "name": "Get all dashboards",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/v1/dashboard?filter[shared]=false&filter[deleted]=false",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v1",
        "dashboard"
      ],
      "query": [
        {
          "key": "filter[shared]",
          "value": "false",
          "description": "When `true`, this query only returns shared custom created\nor cloned dashboards."
        },
        {
          "key": "filter[deleted]",
          "value": "false",
          "description": "When `true`, this query returns only deleted custom-created\nor cloned dashboards. This parameter is incompatible with `filter[shared]`."
        }
      ]
    },
    "description": "Get all dashboards.\n\n**Note**: This query will only return custom created or cloned dashboards.\nThis query will not return preset dashboards."
  },
  "response": [
    {
      "name": "OK",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/dashboard?filter[shared]=false&filter[deleted]=false",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "dashboard"
          ],
          "query": [
            {
              "key": "filter[shared]",
              "value": "false",
              "description": "When `true`, this query only returns shared custom created\nor cloned dashboards."
            },
            {
              "key": "filter[deleted]",
              "value": "false",
              "description": "When `true`, this query returns only deleted custom-created\nor cloned dashboards. This parameter is incompatible with `filter[shared]`."
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"dashboards\": [\n    {\n      \"author_handle\": \"Duis tempor ex\",\n      \"created_at\": \"1963-12-20T01:10:02.870Z\",\n      \"description\": \"esse cillum laboris\",\n      \"id\": \"do Ut\",\n      \"is_read_only\": true,\n      \"layout_type\": \"ordered\",\n      \"modified_at\": \"1958-09-05T14:28:29.291Z\",\n      \"title\": \"nulla velit tempor\",\n      \"url\": \"quis laboris irure id\"\n    },\n    {\n      \"author_handle\": \"cup\",\n      \"created_at\": \"1992-05-21T18:14:01.464Z\",\n      \"description\": \"proident incididunt dolore\",\n      \"id\": \"in deserunt irure\",\n      \"is_read_only\": false,\n      \"layout_type\": \"ordered\",\n      \"modified_at\": \"1971-12-02T02:50:20.074Z\",\n      \"title\": \"ut dolor in consequat fugiat\",\n      \"url\": \"culpa Duis mollit\"\n    }\n  ]\n}"
    },
    {
      "name": "Authentication Error",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/dashboard?filter[shared]=false&filter[deleted]=false",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "dashboard"
          ],
          "query": [
            {
              "key": "filter[shared]",
              "value": "false",
              "description": "When `true`, this query only returns shared custom created\nor cloned dashboards."
            },
            {
              "key": "filter[deleted]",
              "value": "false",
              "description": "When `true`, this query returns only deleted custom-created\nor cloned dashboards. This parameter is incompatible with `filter[shared]`."
            }
          ]
        }
      },
      "status": "Forbidden",
      "code": 403,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"Bad Request\",\n    \"Bad Request\"\n  ]\n}"
    },
    {
      "name": "Too many requests",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/dashboard?filter[shared]=false&filter[deleted]=false",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "dashboard"
          ],
          "query": [
            {
              "key": "filter[shared]",
              "value": "false",
              "description": "When `true`, this query only returns shared custom created\nor cloned dashboards."
            },
            {
              "key": "filter[deleted]",
              "value": "false",
              "description": "When `true`, this query returns only deleted custom-created\nor cloned dashboards. This parameter is incompatible with `filter[shared]`."
            }
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"Bad Request\",\n    \"Bad Request\"\n  ]\n}"
    }
  ]
}