Check a GREP request status
GET https://{{host}}/edge-diagnostics/v1/grep/requests/:requestId
Returns the status of the asynchronous Launch a GREP request request. Operations with the SUCCESS
status include also the grep
logs.
Body
PARAM
Key | Datatype | Required | Description |
accountSwitchKey
|
string | (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys). |
HEADERS
Key | Datatype | Required | Description |
Accept
|
string |
RESPONSES
status OK
{
"completedTime": "2021-04-15T07:49:15Z",
"createdBy": "jkowalski",
"createdTime": "2021-04-15T07:48:30Z",
"edgeIpLocation": {
"asNumber": 9498,
"city": "BANGALORE",
"countryCode": "IN",
"regionCode": "KA"
},
"executionStatus": "SUCCESS",
"logLinesCount": 2,
"request": {
"arls": {
"comparison": "CONTAINS",
"value": [
"freeflow.mdt.akamai.com/TopLevel.incr.idx"
]
},
"clientIps": [
"192.0.2.9"
],
"cpCodes": [
1234567
],
"edgeIp": "192.0.2.0",
"end": "2022-03-15T06:08:43.000Z",
"httpStatusCodes": {
"comparison": "EQUALS",
"value": [
"200",
"201"
]
},
"logType": "BOTH",
"start": "2022-03-15T06:08:40.000Z",
"userAgents": [
"firefox"
]
},
"requestId": 365,
"result": {
"legend": {
"fObjectStatus": {
"W": "The object TTL was set in response headers."
},
"fObjectStatus2": {},
"fObjectStatus3": {},
"logType": {
"f": "(f) going forward to forward hostname",
"r": "(r) response to client"
},
"rObjectStatus": {
"W": "The object TTL was set in response headers."
},
"rObjectStatus2": {
"N": "The request was processed over an anycast VIP and is marked as zero rated billing request.",
"o": "The origin server was contacted for the request.",
"x": "Either 'no-store' is turned on by metadata and not disabled by \"!no-store\" in the response or the downstream TTL was set by metadata and not by the response header."
},
"rObjectStatus3": {}
},
"logs": [
{
"arl": "/D/1682/1234567/000/example.com./ERR_READ_TIMEOUT",
"bytesReceived": "-",
"bytesServed": "568",
"clientIp": "192.0.2.6",
"contentBytesServed": "250",
"contentType": "text/html",
"cookie": "-",
"cpCode": "1234567",
"dateTime": "2021-08-24T10 Curl curl -X GET 'https://host/edge-diagnostics/v1/grep/requests/:requestId?accountSwitchKey=' -H 'Accept: application/json' ENDPOINTS |