Process a Policy
Following are the steps to create, edit, or submit a policy:
-
Run the following request to search for your policy:
POST http://[hostName]:[portNumber]/[api-context-root]/generic/policies/search { "resource": { "q": "code.like('%DEFAULT%')" } }
The generic API does not provide a response that can be used by the Policy IP.
-
Copy the ID of the policy from the previous step and use it to run the following request:
GET http://[hostName]:[portNumber]/[api-context-root]/policies/[policyID]
-
Run the following request to create, load, and submit the policy:
PUT http://[hostName]:[portNumber]/[api-context-root]/policies/submit