Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use an API to enable or disable health rules and policies

REST API calls to enable or disable health rules(HR) and policies:

 

  • HR Disable:

    Request type: DELETE
    URL: http://<controller-host>:<port>/controller/api/accounts/<account-id>/applications/<application-id>/healthrules/<healthrule-id>/enabled
    Response status: 204 No Content

 

  •  HR Enable:

    Request type: PUT
    URL: http://<controller-host>:<port>/controller/api/accounts/<account-id>/applications/<application-id>/healthrules/<healthrule-id>/enabled
    Response status: 204 No Content

 

  •  Policy Disable:

     

    Request type: DELETE
    URL: http://<controller-host>:<port>/controller/api/accounts/<account-id>/applications/<application-id>/policies/<policy-id>/enabled
    Response status: 204 No Content

 

  •  Policy Enable:

     

    Request type: PUT
    URL: http://<controller-host>:<port>/controller/api/accounts/<account-id>/applications/<application-id>/policies/<policy-id>/enabled
    Response status: 204 No Content

 

  •  Retrieve HRs and Policies:

     

    Request Type: GET
    URLs: http://<controller-host>:<port>/controller/api/accounts/<account-id>/applications/<application-id>/healthrules
    http://<controller-host>:<port>/controller/api/accounts/<account-id>/applications/<application-id>/policies
    Response status: 200 Ok

 

Related Links:

 
 
Version history
Revision #:
2 of 2
Last update:
‎07-13-2017 12:36 PM
Updated by:
 
Labels (1)
0 Kudos