When a connector is accidentally removed or deleted in VMware Identity Manager, it needs to be restored and activated through the API. This article outlines the steps to obtain the necessary tokens, activate the connector, and integrate it within the VMware Identity Manager.
NOTE: Ensure to take a snapshot of all the vIDM nodes. Before proceeding with the below steps:
Method: POST Headers: Accept: application/json; charset=utf-8 Content-Type: application/json Example Request Body: { "username": "admin", "password": "adminpassword", "issueToken": "true" } Example Response { "id": null, "sessionToken": "eywxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxmxaI", "firstName": null, "lastName": null, "admin": false }
POST https://<connectorHost>:8443/hc/API/1.0/REST/connectormanagement/connector/activate/
Content-Type: application/vnd.vmware.horizon.manager.connector.management.activate.connector+json
Authorization: HZN <token>
{
"activationToken":"ID5",
"adminPassword":"ID6",
"gatewayHostname":"ID7"
}
200 OK
{
"isSuccess":true,
"redirectUrl":"<connector worker URL>",
"message":"Successfully activated the Connector.",
"tenantStateId":{"tenant":"<Tenant Id>","connector":"<connector worker Id>"}
}
curl --location 'https://ID1:8443/hc/API/1.0/REST/connectormanagement/connector/activate/' \
--header 'Authorization: HZN ID2' \
--header 'Content-Type: application/vnd.vmware.horizon.manager.connector.management.activate.connector+json' \
--header 'Accept: application/json' \
--header 'Cookie: JSESSIONID=ID3; trutid=ID4' \
--data '{
"activationToken":"ID5",
"adminPassword":"ID6",
"gatewayHostname":"ID7"
}'