C.4 Example: Skipping the PreConfig Approval Stage by Invoking REST Callouts

The following instructions for modifying PreConfig workflow REST callouts assume that you want to invoke the change for the entire Cloud Manager system. The instructions also assume that you are using the application/json payload type, although Cloud Manager also supports the application/xml payload type.

To skip the PreConfig workflow:

  1. Invoke a REST GET call at the following URL:

    http://<server>:<port>/8183/cloudmanager-api/system/integrationconfigs

    The call returns the current settings. For example:

    {
    "skipChgReqWorkflowPostApproval": true,
    "skipDelWorkflowPreConfig": true,
    "skipNewWorkflowPostApproval": true,
    "sourceObjId": 1,
    "sourceObjName": "System",
    "sourceObjType": "SYSTEM",
    "url": "http://localhost:8183/cloudmanager-api/system/integrationconfigs"
    }

    The skip flags are tri-state: true, false, or empty. The empty state implies that it is inherited from the parent (if there is one). The true and false states imply an override of the parent setting, if there is one.

  2. In the callout, add the skip flag for the PreConfig stage of the workflow when business services are created or changed:

    {
    "skipChgReqWorkflowPostApproval": true,
    "skipDelWorkflowPreConfig": true,
    "skipNewWorkflowPostApproval": true,
    "skipNewWorkflowPreConfig": true,
    "skipChgReqWorkflowPreConfig": true,
    "sourceObjId": 1
    }

    In this example, the URL and the source object information are removed from the callout packet because they are not necessary for the PUT.

  3. Invoke a REST PUT call at the same URL,

    http://<server>:<port>/8183/cloudmanager-api/system/integrationconfigs

    making sure that the payload type is correct, then save the PUT.

  4. Confirm that the PUT was correctly completed by invoking a GET at the same URL and checking the packet structure, shown in Step 2.

NOTE:If you want to make this modification for a single system, you replace the general URL with one that specifies the organization:

For example, replace the following URL

http://<server>:<port>/8183/cloudmanager-api/system/integrationconfigs 

with the organization URL

http://<server>:<port>/8183/cloudmanager-api/organizations/<orgId>/integrationconfigs