You can decommission an external Platform Services Controller node after you have converted your existing environment to a vCenter Embedded Linked Mode environment. Decommissioning a Platform Services Controller shuts it down and removes it from the single sign-on domain.

Note

Before decommissioning, you must verify that no vCenter Server Appliance instances are pointing to the Platform Services Controller. You must also reconfigure any products deployed into the environment that use the external Platform Services Controller to use the newly deployed embedded Platform Services Controller.

The following HTTP request shows the syntax for performing a decommission operation.

Note

If the Platform Services Controller is configured in an HA environment, you must use the host name of the load balancer instead of the Platform Services Controller host name and disable the virtual IP of the load balancer before decommissioning. If you encounter any complications with your environment, you can manually unregister nodes by using the cmsso-util unregister command as described in KB article 2106736.

POST https://<server>:5480/rest/vcenter/topology/pscs/{hostname}?action=decommission&vmw-task=true

In the body of the HTTP request, you must provide values that are appropriate for your environment. The following request body contains the correct syntax and details about the values.

{
  "spec": {
        "sso_admin_username": "String: administrator@<SSO_domain_name>",
        "sso_admin_password": "Secret string: <vCenter_Single_Sign-On_administrator_password>"
  },
  "only_precheck": false
}

When the decommission operation initiates successfully, you receive a task ID in the response body of the HTTP request. You can use the task ID to query the status of the operation.

This example shows how you can use the task ID of a decommission operation to monitor the status of the operation.

The following response body contains an example task ID value that you receive after successfully initiating a decommission operation.

{
    "value": "d1ed9bc4-6d4a-423f-b0fb-39829cf78a59:com.vmware.vcenter.topology.pscs"
}

You must use the task ID as part of the HTTP request that you send to retrieve the operation status.

GET: https://<server>:5480/rest/cis/tasks?filter_spec.tasks.0=d1ed9bc4-6d4a-423f-b0fb-39829cf78a59:com.vmware.vcenter.topology.pscs

The following example shows the response body when the decommission operation is ongoing.

{
    "value": [
        {
            "key": "d1ed9bc4-6d4a-423f-b0fb-39829cf78a59:com.vmware.vcenter.topology.pscs",
            "value": {
                "service": "com.vmware.vcenter.topology.pscs",
                "start_time": "2019-03-29T12:00:43.626Z",
                "description": {
                    "args": [],
                    "default_message": "External Platform Services Controller node shutdown successful.",
                    "id": "desc"
                },
                "operation": "decommission$task",
                "status": "RUNNING",
                "progress": {
                    "message": {
                        "args": [],
                        "default_message": "External Platform Services Controller node shutdown successful.",
                        "id": "prog"
                    },
                    "completed": 50,
                    "total": 100
                },
                "cancelable": false
            }
        }
    ]
}