Analyze latest policies
Enable analysis on the latest set of policies in the workspace.
POST /openapi/v1/applications/{application_id}/enable_analysis
Parameters: The request URL contains the following parameters
Name |
Type |
Description |
---|---|---|
application_id |
string |
The unique identifier for the workspace. |
Parameters: The optional JSON query body contains the following keys
Name |
Type |
Description |
---|---|---|
action_note |
string |
(optional) Reason for the publish policies action. |
name |
string |
(optional) Name for the published policy version. |
description |
string |
(optional) description for the published policy version. |
Response object: Returns an object with the following attributes:
Attribute |
Type |
Description |
---|---|---|
data_set |
object |
JSON object representation of the data set. |
analyzed_policy_version |
integer |
The analyzed p* version of the workspace. |
Sample python code
application_id = '5d02b493755f0237a3d6e078'
req_payload = {
'action_note': 'Policy analysis',
'name': 'Test run 1',
'description': 'New workloads added.'
}
resp = restclient.post('/applications/%s/enable_analysis' % application_id,
json_body=json.dumps(req_payload))