Number of APIs: 6
To generate real alerts in the Acronis protection console, API users have to pass real data in the payloads. To facilitate this, Acronis has prepared a Qodex collection, which includes a set of alert examples and their payloads. [Download and install Qodex] [If not created] Create an API client in your tenant as described in the following document: [If not created] Create a customer tenant where you will register your workload and create alerts as described in the following document: Obtain the customer tenant ID as follows: [If there are no workloads in the customer tenant] Install the Acronis agent on your workload and register it in the customer tenant as described in the following document: [If not created] Create a protection plan and assign it to your registered workload as described here: Authenticate - fetches the authentication token using your API client credentials. The token is used by other requests in this collection. Fetch workloads - fetches the list of workloads and their attributes. Fetch applied protection plans - fetches the list of protection plans applied to the workload. Fetch protection plan - fetches the information about the protection plan. Post an alert - post an alert to Acronis Cyber Protect Cloud. Retrieve alert types - fetches the list of available alert types. StartFragment In the Alerts Generator collection, open the Variables tab. Set base_url to the URL of your data center. For example, https://eu8-cloud.acronis.com Set tenant_id to the customer tenant ID. Set client_id to the client ID of your API client. Set client_secret to the client secret of your API client. [If not authenticated] Open the Authenticate request and click Send. Open the Fetch workloads request and click Send. Set the following variables with corresponding payload field values: [If not authenticated] Open the Authenticate request and click Send. Open the Fetch applied protection plans request and click Send. The planId variable will be automatically populated from the payload if your workload has the plan assigned. Open the Fetch protection plan request and click Send. The planName variable will be automatically populated from the payload. StartFragment [If not authenticated] Open the Authenticate request and click Send. Expand the Post an alert request. Select any alert example and click Try. If the request is successful, the alert will appear in the Acronis protection console. [If not authenticated] Open the Authenticate request and click Send. Open the Retrieve alert types request and click Send. The response payload will include the list of alerts types. It's a must for us the satisfy the contextKeys list for a type and place those as keys in the payload.Prerequisites
https://www.acronis.com/en-us/support/documentation/AcronisCyberCloud/index.html#creating-api-client.html
https://www.acronis.com/en-us/support/documentation/AcronisCyberCloud/index.html#tenant-create.html
https://www.acronis.com/en-us/support/documentation/CyberProtectionService/#installing-software.html
https://www.acronis.com/en-us/support/documentation/CyberProtectionService/#creating-protection-plan.htmlQodex collection contents
Configure the collection variables
Base variables
Workload variables
Protection plan variables
Post an alert
StartFragmentTo add more examples of alerts
In this way, we can determine what the minimum requirement for a payload of a specific alert is.
Alerts with a null value in searchableDetails are general alerts, which are not bound to a device. Alerts that require resourceId to be passed are considered device alerts.
POST {{base_url}}/api/2/idp/token
GET {{base_url}}/api/resource_management/v4/resources?type=resource.machine&include_attributes=true
GET {{base_url}}/api/policy_management/v4/policies/{{planId}}
POST {{base_url}}/api/alert_manager/v1/alerts
ENDPOINTS