Skip to main content

Upload Coverage

Upload a coverage file for a review definition or review result to assign monitors, reviewers, or alternate managers.

POST https://instance.securid.com/aveksa/command.submit?cmd=uploadCoverage

note

The coverage file can be sent as the POST request body (recommended) or placed in the server's import directory and referenced by the filename parameter. When filename is used, the command can be called as a GET request. When the POST body is used, a POST request is required. GET returns 405 without filename.

Request

Parameters

uploadCoverage
formatproperties - (Default) Returns the response as key=value pairs. When multiple objects are returned, values are comma-delimited: key=value1,value2,value3.

json - Returns the response as JSON.
nameThe name of the review definition. Mutually exclusive with id. One of name or id is required.
idThe review instance ID returned by Get Review Result. Mutually exclusive with name. One of id or name is required.
The type of coverage file. Valid values: monitor reviewer altmanager
altManagerResolvesToThe user attribute used to resolve entries in the alternate managers file. Only used when type=altmanager.
filenameThe filename of a coverage file placed in the server's import directory. The import directory is configured at Admin > Web Services (the same setting used by the importMetadata command). Not available in G&L Cloud. The import directory option is absent from Cloud Web Services Settings. Use the POST body instead.

Headers

Bearer token
text/plain

Body

The coverage file content sent as plain text. The file must have between 3 and 6 pipe-delimited (|) columns per row. The exact column structure depends on the type parameter and the entitlement types being assigned.

user_id='jsmith'|user|1=1|app-role|name='Datadog'|
user_id='mcastro'|user|1=1|ent|name='Dynatrace'|

Response

Parameters

typeExecuted command name
statussuccess or failure
messageReturned when status is failure. Describes the reason the coverage file was rejected.

Examples

Request

curl -K -X POST \
"https://instance.securid.com/aveksa/command.submit?cmd=uploadCoverage&format=json&id=143&type=reviewer" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: text/plain" \
-d "user_id='jsmith'|user|1=1|app-role|name='Datadog'|
user_id='mcastro'|user|1=1|ent|name='Dynatrace'|"

Response

{
"data": {
"type": "uploadCoverage",
"status": "success"
}
}

Verified with RSA Governance & Lifecycle version 8.0.0.188886 P10_HF01.

See Also