Bulk Update Vulnerability Tests

Cortex Xpanse REST API

post /public_api/v1/assets/bulk_update_vulnerability_tests/

Enable or disable vulnerability tests.

To view vulnerability test results, use the Get All Services or Get Service Details endpoints.

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
test_namesArray[string]

Names of tests, for example ["test1", "test2", "test3"]

statusString (Enum)
Allowed values:"enabled""disabled"
REQUEST BODY
{ "request_data": { "test_names": [ "test_names", "test_names" ], "status": "enabled" } }
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/bulk_update_vulnerability_tests/'
-d '{ "request_data" : { "test_names" : [ "test_names", "test_names" ], "status" : "enabled" } }'
Responses

OK

Body
replyObject
bulk_update_resultString (Enum)
Allowed values:"Success"
RESPONSE
{ "reply": { "bulk_update_result": "Success" } }

Bad Request. Got an invalid JSON.

Body
replyObject

The query results upon error.

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.

RESPONSE
{ "reply": {} }

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

Body
replyObject

The query results upon error.

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.

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.

RESPONSE
{ "reply": {} }