Process a Policy

Following are the steps to create, edit, or submit a policy:

  1. 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.

  2. 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]
  3. Run the following request to create, load, and submit the policy:

    PUT http://[hostName]:[portNumber]/[api-context-root]/policies/submit