Enable or Disable Action Policy

Details

API DetailsRelease-Specific Information
CloudCenter Platform 4xCloudCenter Suite 5x
NameEnable or Disable Action Policies
Description

Enables or disables an action policy

Allowed Role(s)WM_USER
MethodPOST
URI

v1/actionpolicies/actionPolicyId

cloudcenter-ccm-backend/api/v1/actionpolicies/actionPolicyId

Sample Request
curl -k -X POST -H "Accept: application/json" -H "Content-Type: application/json" -u cliqradmin:40E45DBE57E35ECB "https://<HOST>:<PORT>/v1/actionpolicies/21"
curl -k -X POST -H "Accept: application/json" -H "Content-Type: application/json" -u cliqradmin:40E45DBE57E35ECB "https://<HOST>:<PORT>/cloudcenter-ccm-backend/api/v1/actionpolicies/21"
Release

Introduced in CloudCenter 4.5

Modified in CloudCenter Suite 5.0.0

Notes
  • Only resource owners and users with WRITE perms can view all the fields for this resource.
  • Other users can only view common fields like name, description, and so forth. See Permission Control for additional context.
Back To LinksCloudCenter Platform 4x APIWorkload Manager API

ESB Header

action: create.actionpolicies.actionPolicyId

See the Enterprise Service Bus (ESB) section for additional context.

Not applicable

Sample 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.


© 2017-2019 Cisco Systems, Inc. All rights reserved