Get Assets Last Assessment

Cortex Xpanse REST API

post /public_api/v1/assets/get_assets_internet_exposure/last_external_assessment/

Gets the time and status of the last update of assets data in Xpanse. A status of "true" indicates the assets data update was successful.

Request headers
authorization
String
required
api-key
Example: {{api_key}}
x-xdr-auth-id
String
required
api-key-id
Example: {{api_key_id}}
Body parameters
required
request_dataObject

An empty dictionary returns the time and status of the last websites assessment.

Free-Form object
REQUEST BODY
{ "request_data": "{}" }
CURL
curl -X 'POST'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'authorization: {{api_key}}' -H 'x-xdr-auth-id: {{api_key_id}}'
'https://api-}/public_api/v1/assets/get_assets_internet_exposure/last_external_assessment/'
-d '{ "request_data" : "{}" }'
Responses

OK

Body
last_external_assessmentObject
statusBoolean

True: the update of websites data was successful.
False: the update of websites data failed.

timeString
Free-Form object
Free-Form object
RESPONSE
{ "last_external_assessment": { "status": false, "time": "time_example" } }

Bad Request. Got an invalid JSON.

Body
replyObject

The query results upon error.

Free-Form object
RESPONSE
{ "reply": {} }

Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.

Body
replyObject

The query results upon error.

Free-Form object
RESPONSE
{ "reply": {} }

Unauthorized access. User does not have the required license type to run this API.

Body
replyObject

The query results upon error.

Free-Form object
RESPONSE
{ "reply": {} }

Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.

Body
replyObject

The query results upon error.

Free-Form object
RESPONSE
{ "reply": {} }

Unprocessable Entity

Body
codeInteger

Error code

statusString

Error name

messageString

Error message

errorsObject

Errors

RESPONSE
{ "code": 0, "status": "status_example", "message": "message_example", "errors": {} }

Internal server error. A unified status for API communication type errors.

Body
replyObject

The query results upon error.

Free-Form object
RESPONSE
{ "reply": {} }