Upload the supported command output to the Qualys platform for an asset using UUID. These commands are uploaded in the form of a text file or string.
HTTP Status Code
- 200: OK
- 401: Unauthorized user
- 403: Forbidden
- 404: Not Found
Input ParametersInput Parameters
Parameter |
Mandatory /Optional |
Data Type |
Description |
---|---|---|---|
command |
Mandatory |
Text |
The command output for commands generated using the Fetch Supported Commands for a Technology API. |
asset_uuid |
Mandatory | Integer | Provide the UUID of the asset. |
Header ParametersHeader Parameters
Parameter |
Mandatory /Optional |
Data Type |
Description |
---|---|---|---|
assetFlowType |
Optional |
Text |
Provide asset flow type. The default value is DEFAULT. |
authorization | Mandatory | Integer | The token that was generated using the Fetch Authentication Token API. |
Request for uploading data through file
curl -X POST 'https:// <api_gateway_url>
/v2.0/asset/<asset_uuid>/command/output/PolicyCompliance' -H 'assetFlowType: DEFAULT' -H 'Authorization: Bearer ' -F ' show running-config=@file_path'
Request for uploading the data directly
"curl -X POST""
qualys base url>/ocaapi/v2.0/asset/< asset_uuid >/command/output/PolicyCompliance -H ""assetFlowType":"DEFAULT"" -H ""Authorization":"Bearer <token> -F""show running-config= version 6.5 enable secret \"******\" enable bypass hostname \"Aruba001\" clock timezone GMT 0 banner motd ^ "
Response
{
" ""code":200,
" ""message":"Command Output Uploaded Successfully."
}