eagle-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhao, Qingwen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (EAGLE-1055) Improve policy prototype apis
Date Wed, 21 Jun 2017 10:09:00 GMT

     [ https://issues.apache.org/jira/browse/EAGLE-1055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Zhao, Qingwen updated EAGLE-1055:
---------------------------------
    Description: 
1. create a policy prototype from a policy
API: /rest/policyProto/create?needPolicyCreated=true
Payload: PolicyEntity (policy + alertPublishmentIds)

2. create a policy prototype by policy name
API: /rest/policyProto/create/{policyId}

3. create policies for {site} from a list of policy protoypes
API: /rest/policyProto/export/{site}
Payload: List<PolicyEntity>

4. create policies for {site} from a list of prototypes
API: /rest/policyProto/exportByName/{site}
Payload: List<String>



  was:
{{POST  /rest/policyProto/create?needPolicyCreated=true}} 
1. if needPolicyCreated = true, create a new policy definition
2. create a policy prototype

{{POST /rest/policyProto/create/{policyId}}} 
1. create a policy prototype


> Improve policy prototype apis 
> ------------------------------
>
>                 Key: EAGLE-1055
>                 URL: https://issues.apache.org/jira/browse/EAGLE-1055
>             Project: Eagle
>          Issue Type: Improvement
>    Affects Versions: v0.6.0
>            Reporter: Zhao, Qingwen
>            Assignee: Zhao, Qingwen
>
> 1. create a policy prototype from a policy
> API: /rest/policyProto/create?needPolicyCreated=true
> Payload: PolicyEntity (policy + alertPublishmentIds)
> 2. create a policy prototype by policy name
> API: /rest/policyProto/create/{policyId}
> 3. create policies for {site} from a list of policy protoypes
> API: /rest/policyProto/export/{site}
> Payload: List<PolicyEntity>
> 4. create policies for {site} from a list of prototypes
> API: /rest/policyProto/exportByName/{site}
> Payload: List<String>



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message