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

Hao Chen updated EAGLE-601:
---------------------------
    Description: 
h3. API
Add updating policy status API: 
{code}
POST /metadata/policies/{policyId}/status/{status}
{code}

where *status* could be: *ENABLED* or *DISABLED*  

h3. Enable Policy

{code}
POST /metadata/policies/{policyId}/status/ENABLED
{code}

h3. Disable Policy
{code}
POST /metadata/policies/{policyId}/status/DISABLED
{code}


  was:
h3. API
Add updating policy status API: 
{code}
PUT /metadata/policies/{policyId}/status/{status}
{code}

where *status* could be: *ENABLED* or *DISABLED*  

h3. Enable Policy

{code}
PUT /metadata/policies/{policyId}/status/ENABLED
{code}

h3. Disable Policy
{code}
PUT /metadata/policies/{policyId}/status/DISABLED
{code}



> Add updating policy status API: PUT 
> /metadata/policies/{policyId}/status/{status}
> ---------------------------------------------------------------------------------
>
>                 Key: EAGLE-601
>                 URL: https://issues.apache.org/jira/browse/EAGLE-601
>             Project: Eagle
>          Issue Type: New Feature
>    Affects Versions: v0.5.0
>            Reporter: Hao Chen
>            Assignee: Hao Chen
>              Labels: alert-service
>             Fix For: v0.5.0
>
>
> h3. API
> Add updating policy status API: 
> {code}
> POST /metadata/policies/{policyId}/status/{status}
> {code}
> where *status* could be: *ENABLED* or *DISABLED*  
> h3. Enable Policy
> {code}
> POST /metadata/policies/{policyId}/status/ENABLED
> {code}
> h3. Disable Policy
> {code}
> POST /metadata/policies/{policyId}/status/DISABLED
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to