Uploaded image for project: 'Eagle (Retired)'
  1. Eagle (Retired)
  2. EAGLE-1055

Improve policy prototype apis

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • v0.5.1
    • v0.5.1
    • None
    • None

    Description

      1. create a policy prototype from a policy

      API: POST /rest/policyProto/create?needPolicyCreated=true
      Payload: PolicyEntity (policyDefinition + alertPublishmentIds)
      
      public class PolicyEntity {
          String name;   // auto created
          PolicyDefinition definition;
          List<String> alertPublishmentIds = new ArrayList<>();
      }
      

      2. create a policy prototype by policy name

      API: POST /rest/policyProto/create/{policyId}
      

      3. create policies for site from a list of policy protoypes

      API: POST /rest/policyProto/export/{site}
      Payload: List<PolicyEntity>
      

      4. create policies for site from a list of prototypes

      API: POST /rest/policyProto/exportByName/{site}
      Payload: List<String>
      

      5. delete a prototype

      API: DELETE /rest/policyProto/{uuid}
      

      Attachments

        Issue Links

          Activity

            People

              qingwzhao Qingwen Zhao
              qingwzhao Qingwen Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: