You can get the list of activities using this API. You can search for activities using filters based on criteria you want.
Parameter |
Mandatory/Optional | Data Type |
Description |
---|---|---|---|
activityId |
Mandatory | Integer |
Specify the action ID of an activity in the user’s scope. |
Let us fetch details of a Slack action using the action Id.
API request
curl -k -X GET -u <username>:<password>
'https://<QualysBaseURL>/cloudview-api/rest/v1/activities/72652f80-702b-11ea-80dd-7d15cdc80752'
Response
{
"actionId": "1f695df0-6da2-11ea-8910-77b847f40d61",
"actionName": "Sample Slack Action",
"actionType": "slack",
"aggregate": true,
"alert": "Qualys CloudView: Cloud Security Assessment Alerts\n\n*MEDIUM Severity Control Failure Detected for CID 99*\n\n*Affected Resource*\n\tresourceId:arn:aws:lambda:us-east-1:205767712438:function:getEntitlementLambdaEast\n\tresourceType:LAMBDA\n\tservice:LAMBDA\n\tregion:us-east-1\n\tcloudType:AWS\n\taccountId:205767712438\n\tconnectorId:f8c3b440-4eaf-11ea-bfef-0dd8ca3bcd2e\n\n*Evaluation Summary*\n\tcontrolName:Ensure that Multiple Triggers are not configured in $Latest Lambda Function\n\tcontrolId:99\n\tpolicyName:AWS Lambda Best Practices Policy\n\tevaluatedOn:1585314208935\n\tevaluationDates:\n\t\tfirstEvaluated: 1581636116942\n\t\tlastEvaluated:1585314208935\n\n*Results*\n\tresult: FAIL\n\tevidences:\n\t\tsettingName:[Total Triggers , Multiple Triggers, Function Arn, Function Name, Role Arn]\n\t\tactualValue: [2, Yes, arn:aws:lambda:us-east-1:205767712438:function:getEntitlementLambdaEast, getEntitlementLambdaEast, arn:aws:iam::205767712438:role/BizApps_Lambda_Role]\n\nYours Sincerely,\nQualys Support Team\n\n\nFor any assistance, please contact our >mailto:support@qualys.com | customer support team.<",
"createdBy": "John Doe",
"createdById": "user_john",
"cloudType": "AWS",
"emailRecipients": [],
"id": "72652f80-702b-11ea-80dd-7d15cdc80752",
"ruleDescription": "Slack 1",
"ruleId": "3dfc5050-7028-11ea-beeb-3fad76b6f6b5",
"ruleName": "slack 01 aws",
"slackChannel": "Sample-slack-channel",
"status": "SUCCESS",
"statusDate": 1585314249790,
"isRuleDeleted": false
}