Back to Collection Items
LOCAL loHttp
LOCAL lnSuccess
LOCAL loQueryParams
LOCAL loResp
LOCAL loSbResponseBody
LOCAL loJResp
LOCAL lnRespStatusCode
LOCAL lcDefaultActivationStatus
LOCAL lcUserActivationStatus
LOCAL lcCreatedAt
LOCAL lcCreationAuthorId
LOCAL lcDeprecationDate
LOCAL lcHasExtendedTitle
LOCAL lcId
LOCAL lcIsDefault
LOCAL lcIsDeleted
LOCAL lcIsEnabled
LOCAL lcMessage
LOCAL lcName
LOCAL lcComplexRule
LOCAL lcPolicy
LOCAL lcResourceType
LOCAL lcDecreaseCriticalityBasedOnEnv
LOCAL lcDetectionMethod
LOCAL lnEvaluationWindow
LOCAL lcHardcodedEvaluatorType
LOCAL lcBaselineUserLocations
LOCAL lnKeepAlive
LOCAL lnMaxSignalDuration
LOCAL lnForgetAfter
LOCAL lnLearningDuration
LOCAL lcLearningMethod
LOCAL lnLearningThreshold
LOCAL lcV_type
LOCAL lcUpdateAuthorId
LOCAL lcVersion
LOCAL j
LOCAL lnCount_j
LOCAL lcCondition
LOCAL lcStatus
LOCAL k
LOCAL lnCount_k
LOCAL lcStrVal
LOCAL lcAction
LOCAL lcQuery
LOCAL lcAggregation
LOCAL lcMetric
LOCAL lcTotal_count
LOCAL lcTotal_filtered_count
LOCAL i
LOCAL lnCount_i
* This example assumes the Chilkat API to have been previously unlocked.
* See Global Unlock Sample for sample code.
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.Http')
loHttp = CreateObject('Chilkat.Http')
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.JsonObject')
loQueryParams = CreateObject('Chilkat.JsonObject')
loQueryParams.UpdateInt("page[size]",10)
loQueryParams.UpdateInt("page[number]",0)
loHttp.SetRequestHeader("Accept","application/json")
loResp = loHttp.QuickRequestParams("GET","https://api.app.ddog-gov.com/api/v2/security_monitoring/rules",loQueryParams)
IF (loHttp.LastMethodSuccess = 0) THEN
? loHttp.LastErrorText
RELEASE loHttp
RELEASE loQueryParams
CANCEL
ENDIF
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.StringBuilder')
loSbResponseBody = CreateObject('Chilkat.StringBuilder')
loResp.GetBodySb(loSbResponseBody)
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.JsonObject')
loJResp = CreateObject('Chilkat.JsonObject')
loJResp.LoadSb(loSbResponseBody)
loJResp.EmitCompact = 0
? "Response Body:"
? loJResp.Emit()
lnRespStatusCode = loResp.StatusCode
? "Response Status Code = " + STR(lnRespStatusCode)
IF (lnRespStatusCode >= 400) THEN
? "Response Header:"
? loResp.Header
? "Failed."
RELEASE loResp
RELEASE loHttp
RELEASE loQueryParams
RELEASE loSbResponseBody
RELEASE loJResp
CANCEL
ENDIF
RELEASE loResp
* Sample JSON response:
* (Sample code for parsing the JSON response is shown below)
* {
* "data": [
* {
* "cases": [
* {
* "condition": "<string>",
* "name": "<string>",
* "notifications": [
* "<string>",
* "<string>"
* ],
* "status": "medium"
* },
* {
* "condition": "<string>",
* "name": "<string>",
* "notifications": [
* "<string>",
* "<string>"
* ],
* "status": "info"
* }
* ],
* "complianceSignalOptions": {
* "defaultActivationStatus": "<boolean>",
* "defaultGroupByFields": [
* "<string>",
* "<string>"
* ],
* "userActivationStatus": "<boolean>",
* "userGroupByFields": [
* "<string>",
* "<string>"
* ]
* },
* "createdAt": "<long>",
* "creationAuthorId": "<long>",
* "deprecationDate": "<long>",
* "filters": [
* {
* "action": "suppress",
* "query": "<string>"
* },
* {
* "action": "require",
* "query": "<string>"
* }
* ],
* "hasExtendedTitle": "<boolean>",
* "id": "<string>",
* "isDefault": "<boolean>",
* "isDeleted": "<boolean>",
* "isEnabled": "<boolean>",
* "message": "<string>",
* "name": "<string>",
* "options": {
* "complianceRuleOptions": {
* "complexRule": "<boolean>",
* "regoRule": {
* "policy": "<string>",
* "resourceTypes": [
* "<string>",
* "<string>"
* ]
* },
* "resourceType": "<string>",
* "sunt__": {}
* },
* "decreaseCriticalityBasedOnEnv": "<boolean>",
* "detectionMethod": "threshold",
* "evaluationWindow": 7200,
* "hardcodedEvaluatorType": "log4shell",
* "impossibleTravelOptions": {
* "baselineUserLocations": "<boolean>"
* },
* "keepAlive": 60,
* "maxSignalDuration": 60,
* "newValueOptions": {
* "forgetAfter": 14,
* "learningDuration": 0,
* "learningMethod": "duration",
* "learningThreshold": 0
* }
* },
* "queries": [
* {
* "aggregation": "geo_data",
* "distinctFields": [
* "<string>",
* "<string>"
* ],
* "groupByFields": [
* "<string>",
* "<string>"
* ],
* "metric": "<string>",
* "metrics": [
* "<string>",
* "<string>"
* ],
* "name": "<string>",
* "query": "<string>"
* },
* {
* "aggregation": "new_value",
* "distinctFields": [
* "<string>",
* "<string>"
* ],
* "groupByFields": [
* "<string>",
* "<string>"
* ],
* "metric": "<string>",
* "metrics": [
* "<string>",
* "<string>"
* ],
* "name": "<string>",
* "query": "<string>"
* }
* ],
* "tags": [
* "<string>",
* "<string>"
* ],
* "type": "log_detection",
* "updateAuthorId": "<long>",
* "version": "<long>"
* },
* {
* "cases": [
* {
* "condition": "<string>",
* "name": "<string>",
* "notifications": [
* "<string>",
* "<string>"
* ],
* "status": "medium"
* },
* {
* "condition": "<string>",
* "name": "<string>",
* "notifications": [
* "<string>",
* "<string>"
* ],
* "status": "critical"
* }
* ],
* "complianceSignalOptions": {
* "defaultActivationStatus": "<boolean>",
* "defaultGroupByFields": [
* "<string>",
* "<string>"
* ],
* "userActivationStatus": "<boolean>",
* "userGroupByFields": [
* "<string>",
* "<string>"
* ]
* },
* "createdAt": "<long>",
* "creationAuthorId": "<long>",
* "deprecationDate": "<long>",
* "filters": [
* {
* "action": "suppress",
* "query": "<string>"
* },
* {
* "action": "suppress",
* "query": "<string>"
* }
* ],
* "hasExtendedTitle": "<boolean>",
* "id": "<string>",
* "isDefault": "<boolean>",
* "isDeleted": "<boolean>",
* "isEnabled": "<boolean>",
* "message": "<string>",
* "name": "<string>",
* "options": {
* "complianceRuleOptions": {
* "complexRule": "<boolean>",
* "regoRule": {
* "policy": "<string>",
* "resourceTypes": [
* "<string>",
* "<string>"
* ]
* },
* "resourceType": "<string>",
* "mollit_4": {},
* "culpa_2": {}
* },
* "decreaseCriticalityBasedOnEnv": "<boolean>",
* "detectionMethod": "hardcoded",
* "evaluationWindow": 300,
* "hardcodedEvaluatorType": "log4shell",
* "impossibleTravelOptions": {
* "baselineUserLocations": "<boolean>"
* },
* "keepAlive": 21600,
* "maxSignalDuration": 10800,
* "newValueOptions": {
* "forgetAfter": 2,
* "learningDuration": 0,
* "learningMethod": "duration",
* "learningThreshold": 0
* }
* },
* "queries": [
* {
* "aggregation": "new_value",
* "distinctFields": [
* "<string>",
* "<string>"
* ],
* "groupByFields": [
* "<string>",
* "<string>"
* ],
* "metric": "<string>",
* "metrics": [
* "<string>",
* "<string>"
* ],
* "name": "<string>",
* "query": "<string>"
* },
* {
* "aggregation": "geo_data",
* "distinctFields": [
* "<string>",
* "<string>"
* ],
* "groupByFields": [
* "<string>",
* "<string>"
* ],
* "metric": "<string>",
* "metrics": [
* "<string>",
* "<string>"
* ],
* "name": "<string>",
* "query": "<string>"
* }
* ],
* "tags": [
* "<string>",
* "<string>"
* ],
* "type": "infrastructure_configuration",
* "updateAuthorId": "<long>",
* "version": "<long>"
* }
* ],
* "meta": {
* "page": {
* "total_count": "<long>",
* "total_filtered_count": "<long>"
* }
* }
* }
* Sample code for parsing the JSON response...
* Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
lcTotal_count = loJResp.StringOf("meta.page.total_count")
lcTotal_filtered_count = loJResp.StringOf("meta.page.total_filtered_count")
i = 0
lnCount_i = loJResp.SizeOfArray("data")
DO WHILE i < lnCount_i
loJResp.I = i
lcDefaultActivationStatus = loJResp.StringOf("data[i].complianceSignalOptions.defaultActivationStatus")
lcUserActivationStatus = loJResp.StringOf("data[i].complianceSignalOptions.userActivationStatus")
lcCreatedAt = loJResp.StringOf("data[i].createdAt")
lcCreationAuthorId = loJResp.StringOf("data[i].creationAuthorId")
lcDeprecationDate = loJResp.StringOf("data[i].deprecationDate")
lcHasExtendedTitle = loJResp.StringOf("data[i].hasExtendedTitle")
lcId = loJResp.StringOf("data[i].id")
lcIsDefault = loJResp.StringOf("data[i].isDefault")
lcIsDeleted = loJResp.StringOf("data[i].isDeleted")
lcIsEnabled = loJResp.StringOf("data[i].isEnabled")
lcMessage = loJResp.StringOf("data[i].message")
lcName = loJResp.StringOf("data[i].name")
lcComplexRule = loJResp.StringOf("data[i].options.complianceRuleOptions.complexRule")
lcPolicy = loJResp.StringOf("data[i].options.complianceRuleOptions.regoRule.policy")
lcResourceType = loJResp.StringOf("data[i].options.complianceRuleOptions.resourceType")
lcDecreaseCriticalityBasedOnEnv = loJResp.StringOf("data[i].options.decreaseCriticalityBasedOnEnv")
lcDetectionMethod = loJResp.StringOf("data[i].options.detectionMethod")
lnEvaluationWindow = loJResp.IntOf("data[i].options.evaluationWindow")
lcHardcodedEvaluatorType = loJResp.StringOf("data[i].options.hardcodedEvaluatorType")
lcBaselineUserLocations = loJResp.StringOf("data[i].options.impossibleTravelOptions.baselineUserLocations")
lnKeepAlive = loJResp.IntOf("data[i].options.keepAlive")
lnMaxSignalDuration = loJResp.IntOf("data[i].options.maxSignalDuration")
lnForgetAfter = loJResp.IntOf("data[i].options.newValueOptions.forgetAfter")
lnLearningDuration = loJResp.IntOf("data[i].options.newValueOptions.learningDuration")
lcLearningMethod = loJResp.StringOf("data[i].options.newValueOptions.learningMethod")
lnLearningThreshold = loJResp.IntOf("data[i].options.newValueOptions.learningThreshold")
lcV_type = loJResp.StringOf("data[i].type")
lcUpdateAuthorId = loJResp.StringOf("data[i].updateAuthorId")
lcVersion = loJResp.StringOf("data[i].version")
j = 0
lnCount_j = loJResp.SizeOfArray("data[i].cases")
DO WHILE j < lnCount_j
loJResp.J = j
lcCondition = loJResp.StringOf("data[i].cases[j].condition")
lcName = loJResp.StringOf("data[i].cases[j].name")
lcStatus = loJResp.StringOf("data[i].cases[j].status")
k = 0
lnCount_k = loJResp.SizeOfArray("data[i].cases[j].notifications")
DO WHILE k < lnCount_k
loJResp.K = k
lcStrVal = loJResp.StringOf("data[i].cases[j].notifications[k]")
k = k + 1
ENDDO
j = j + 1
ENDDO
j = 0
lnCount_j = loJResp.SizeOfArray("data[i].complianceSignalOptions.defaultGroupByFields")
DO WHILE j < lnCount_j
loJResp.J = j
lcStrVal = loJResp.StringOf("data[i].complianceSignalOptions.defaultGroupByFields[j]")
j = j + 1
ENDDO
j = 0
lnCount_j = loJResp.SizeOfArray("data[i].complianceSignalOptions.userGroupByFields")
DO WHILE j < lnCount_j
loJResp.J = j
lcStrVal = loJResp.StringOf("data[i].complianceSignalOptions.userGroupByFields[j]")
j = j + 1
ENDDO
j = 0
lnCount_j = loJResp.SizeOfArray("data[i].filters")
DO WHILE j < lnCount_j
loJResp.J = j
lcAction = loJResp.StringOf("data[i].filters[j].action")
lcQuery = loJResp.StringOf("data[i].filters[j].query")
j = j + 1
ENDDO
j = 0
lnCount_j = loJResp.SizeOfArray("data[i].options.complianceRuleOptions.regoRule.resourceTypes")
DO WHILE j < lnCount_j
loJResp.J = j
lcStrVal = loJResp.StringOf("data[i].options.complianceRuleOptions.regoRule.resourceTypes[j]")
j = j + 1
ENDDO
j = 0
lnCount_j = loJResp.SizeOfArray("data[i].queries")
DO WHILE j < lnCount_j
loJResp.J = j
lcAggregation = loJResp.StringOf("data[i].queries[j].aggregation")
lcMetric = loJResp.StringOf("data[i].queries[j].metric")
lcName = loJResp.StringOf("data[i].queries[j].name")
lcQuery = loJResp.StringOf("data[i].queries[j].query")
k = 0
lnCount_k = loJResp.SizeOfArray("data[i].queries[j].distinctFields")
DO WHILE k < lnCount_k
loJResp.K = k
lcStrVal = loJResp.StringOf("data[i].queries[j].distinctFields[k]")
k = k + 1
ENDDO
k = 0
lnCount_k = loJResp.SizeOfArray("data[i].queries[j].groupByFields")
DO WHILE k < lnCount_k
loJResp.K = k
lcStrVal = loJResp.StringOf("data[i].queries[j].groupByFields[k]")
k = k + 1
ENDDO
k = 0
lnCount_k = loJResp.SizeOfArray("data[i].queries[j].metrics")
DO WHILE k < lnCount_k
loJResp.K = k
lcStrVal = loJResp.StringOf("data[i].queries[j].metrics[k]")
k = k + 1
ENDDO
j = j + 1
ENDDO
j = 0
lnCount_j = loJResp.SizeOfArray("data[i].tags")
DO WHILE j < lnCount_j
loJResp.J = j
lcStrVal = loJResp.StringOf("data[i].tags[j]")
j = j + 1
ENDDO
i = i + 1
ENDDO
RELEASE loHttp
RELEASE loQueryParams
RELEASE loSbResponseBody
RELEASE loJResp
Curl Command
curl -G -d "page[size]=10"
-d "page[number]=0"
-H "Accept: application/json"
https://api.app.ddog-gov.com/api/v2/security_monitoring/rules
Postman Collection Item JSON
{
"name": "List rules",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/api/v2/security_monitoring/rules?page[size]=10&page[number]=0",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"security_monitoring",
"rules"
],
"query": [
{
"key": "page[size]",
"value": "10",
"description": "Size for a given page. The maximum allowed value is 100."
},
{
"key": "page[number]",
"value": "0",
"description": "Specific page number to return."
}
]
},
"description": "List rules."
},
"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/v2/security_monitoring/rules?page[size]=10&page[number]=0",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"security_monitoring",
"rules"
],
"query": [
{
"key": "page[size]",
"value": "10",
"description": "Size for a given page. The maximum allowed value is 100."
},
{
"key": "page[number]",
"value": "0",
"description": "Specific page number to return."
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"data\": [\n {\n \"cases\": [\n {\n \"condition\": \"<string>\",\n \"name\": \"<string>\",\n \"notifications\": [\n \"<string>\",\n \"<string>\"\n ],\n \"status\": \"medium\"\n },\n {\n \"condition\": \"<string>\",\n \"name\": \"<string>\",\n \"notifications\": [\n \"<string>\",\n \"<string>\"\n ],\n \"status\": \"info\"\n }\n ],\n \"complianceSignalOptions\": {\n \"defaultActivationStatus\": \"<boolean>\",\n \"defaultGroupByFields\": [\n \"<string>\",\n \"<string>\"\n ],\n \"userActivationStatus\": \"<boolean>\",\n \"userGroupByFields\": [\n \"<string>\",\n \"<string>\"\n ]\n },\n \"createdAt\": \"<long>\",\n \"creationAuthorId\": \"<long>\",\n \"deprecationDate\": \"<long>\",\n \"filters\": [\n {\n \"action\": \"suppress\",\n \"query\": \"<string>\"\n },\n {\n \"action\": \"require\",\n \"query\": \"<string>\"\n }\n ],\n \"hasExtendedTitle\": \"<boolean>\",\n \"id\": \"<string>\",\n \"isDefault\": \"<boolean>\",\n \"isDeleted\": \"<boolean>\",\n \"isEnabled\": \"<boolean>\",\n \"message\": \"<string>\",\n \"name\": \"<string>\",\n \"options\": {\n \"complianceRuleOptions\": {\n \"complexRule\": \"<boolean>\",\n \"regoRule\": {\n \"policy\": \"<string>\",\n \"resourceTypes\": [\n \"<string>\",\n \"<string>\"\n ]\n },\n \"resourceType\": \"<string>\",\n \"sunt__\": {}\n },\n \"decreaseCriticalityBasedOnEnv\": \"<boolean>\",\n \"detectionMethod\": \"threshold\",\n \"evaluationWindow\": 7200,\n \"hardcodedEvaluatorType\": \"log4shell\",\n \"impossibleTravelOptions\": {\n \"baselineUserLocations\": \"<boolean>\"\n },\n \"keepAlive\": 60,\n \"maxSignalDuration\": 60,\n \"newValueOptions\": {\n \"forgetAfter\": 14,\n \"learningDuration\": 0,\n \"learningMethod\": \"duration\",\n \"learningThreshold\": 0\n }\n },\n \"queries\": [\n {\n \"aggregation\": \"geo_data\",\n \"distinctFields\": [\n \"<string>\",\n \"<string>\"\n ],\n \"groupByFields\": [\n \"<string>\",\n \"<string>\"\n ],\n \"metric\": \"<string>\",\n \"metrics\": [\n \"<string>\",\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"query\": \"<string>\"\n },\n {\n \"aggregation\": \"new_value\",\n \"distinctFields\": [\n \"<string>\",\n \"<string>\"\n ],\n \"groupByFields\": [\n \"<string>\",\n \"<string>\"\n ],\n \"metric\": \"<string>\",\n \"metrics\": [\n \"<string>\",\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"query\": \"<string>\"\n }\n ],\n \"tags\": [\n \"<string>\",\n \"<string>\"\n ],\n \"type\": \"log_detection\",\n \"updateAuthorId\": \"<long>\",\n \"version\": \"<long>\"\n },\n {\n \"cases\": [\n {\n \"condition\": \"<string>\",\n \"name\": \"<string>\",\n \"notifications\": [\n \"<string>\",\n \"<string>\"\n ],\n \"status\": \"medium\"\n },\n {\n \"condition\": \"<string>\",\n \"name\": \"<string>\",\n \"notifications\": [\n \"<string>\",\n \"<string>\"\n ],\n \"status\": \"critical\"\n }\n ],\n \"complianceSignalOptions\": {\n \"defaultActivationStatus\": \"<boolean>\",\n \"defaultGroupByFields\": [\n \"<string>\",\n \"<string>\"\n ],\n \"userActivationStatus\": \"<boolean>\",\n \"userGroupByFields\": [\n \"<string>\",\n \"<string>\"\n ]\n },\n \"createdAt\": \"<long>\",\n \"creationAuthorId\": \"<long>\",\n \"deprecationDate\": \"<long>\",\n \"filters\": [\n {\n \"action\": \"suppress\",\n \"query\": \"<string>\"\n },\n {\n \"action\": \"suppress\",\n \"query\": \"<string>\"\n }\n ],\n \"hasExtendedTitle\": \"<boolean>\",\n \"id\": \"<string>\",\n \"isDefault\": \"<boolean>\",\n \"isDeleted\": \"<boolean>\",\n \"isEnabled\": \"<boolean>\",\n \"message\": \"<string>\",\n \"name\": \"<string>\",\n \"options\": {\n \"complianceRuleOptions\": {\n \"complexRule\": \"<boolean>\",\n \"regoRule\": {\n \"policy\": \"<string>\",\n \"resourceTypes\": [\n \"<string>\",\n \"<string>\"\n ]\n },\n \"resourceType\": \"<string>\",\n \"mollit_4\": {},\n \"culpa_2\": {}\n },\n \"decreaseCriticalityBasedOnEnv\": \"<boolean>\",\n \"detectionMethod\": \"hardcoded\",\n \"evaluationWindow\": 300,\n \"hardcodedEvaluatorType\": \"log4shell\",\n \"impossibleTravelOptions\": {\n \"baselineUserLocations\": \"<boolean>\"\n },\n \"keepAlive\": 21600,\n \"maxSignalDuration\": 10800,\n \"newValueOptions\": {\n \"forgetAfter\": 2,\n \"learningDuration\": 0,\n \"learningMethod\": \"duration\",\n \"learningThreshold\": 0\n }\n },\n \"queries\": [\n {\n \"aggregation\": \"new_value\",\n \"distinctFields\": [\n \"<string>\",\n \"<string>\"\n ],\n \"groupByFields\": [\n \"<string>\",\n \"<string>\"\n ],\n \"metric\": \"<string>\",\n \"metrics\": [\n \"<string>\",\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"query\": \"<string>\"\n },\n {\n \"aggregation\": \"geo_data\",\n \"distinctFields\": [\n \"<string>\",\n \"<string>\"\n ],\n \"groupByFields\": [\n \"<string>\",\n \"<string>\"\n ],\n \"metric\": \"<string>\",\n \"metrics\": [\n \"<string>\",\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"query\": \"<string>\"\n }\n ],\n \"tags\": [\n \"<string>\",\n \"<string>\"\n ],\n \"type\": \"infrastructure_configuration\",\n \"updateAuthorId\": \"<long>\",\n \"version\": \"<long>\"\n }\n ],\n \"meta\": {\n \"page\": {\n \"total_count\": \"<long>\",\n \"total_filtered_count\": \"<long>\"\n }\n }\n}"
},
{
"name": "Bad Request",
"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/v2/security_monitoring/rules?page[size]=10&page[number]=0",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"security_monitoring",
"rules"
],
"query": [
{
"key": "page[size]",
"value": "10",
"description": "Size for a given page. The maximum allowed value is 100."
},
{
"key": "page[number]",
"value": "0",
"description": "Specific page number to return."
}
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"errors\": [\n \"<string>\",\n \"<string>\"\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/v2/security_monitoring/rules?page[size]=10&page[number]=0",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"security_monitoring",
"rules"
],
"query": [
{
"key": "page[size]",
"value": "10",
"description": "Size for a given page. The maximum allowed value is 100."
},
{
"key": "page[number]",
"value": "0",
"description": "Specific page number to return."
}
]
}
},
"status": "Too Many Requests",
"code": 429,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"errors\": [\n \"<string>\",\n \"<string>\"\n ]\n}"
}
]
}