Enable or Disable Action Policy

Details

API Details
NameEnable or Disable Action Policies
DescriptionEnables or disables an action policy.
MethodPOST
URIv1/actionpolicies/actionPolicyId
CloudCenter ReleaseIntroduced in CloudCenter 4.5
Notes

For additional context on <PORT> usage in the following example(s), see Base URI Format.

ESB Headeraction: create.actionpolicies.actionPolicyId

Example


curl -k -X POST -H "Accept: application/json" -H "Content-Type: application/json" -u cliqradmin:40E45DBE57E35ECB "https://<HOST>:<PORT>/v1/actionpolicies/21"

Request Body – Enable

{  
   "action":"ENABLE_POLICY",
   "userId":1
}

Request Body – Disable

{  
   "action":"DISABLE_POLICY",
   "userId":1
}

Response

The server responds with the HTTP Response code 200 OK if the action on the action policy is successful.

Request Attributes

actionPolicyId
  • Description: Unique, system-generated identifier for the action policy
  • Type: String
action
  • Description: Identifies if a configured action policy is enabled or disabled.
  • Type: Enumeration

    EnumerationDescription
    ENABLE_POLICY Enables the identified action policy. When a policy is enabled, CloudCenter executes when the configured event occurs.
     DISABLE_POLICYDisables the identified action policy.
userId
  • Description: Unique, system-generated identifier for a user
  • Type: String

Response Attributes

None.