To re-populate the map with the existing RabbitMQ environment, you trigger an import operation that validates that the RabbitMQ deployment is working, and imports the RabbitMQ environment into the VMware Cloud Provider Lifecycle Manager map.
Procedure
- ♦ In your Web browser, start Postman and configure the following HTTPS request.
- On the Headers tab, add the JSESSION ID.
Setting Value JSESSIONID vcp-lcm-session-id - To import the RabbitMQ environment, configure the following HTTPS request.
Setting Value HTTPS request method POST URL https://vcp-lcm-ip-address:port-number/api/api_version/lcm/environment?action=IMPORT Body { "environmentName": "{{rmq_env_id}}", "products": [ { "productType": "RMQ", "productId": "{{rmq_product_id}}", "version": "Rabbitmq_version_number", "adminPassword": "{{password}}", "properties": { "lbName": "{{rmq_lb_name}}", "lbFqdn": "{{rmq_lb_name}}.{{domainName}}", "lbIp": "{{rmq_lb_ip}}", "portAmqpSsl": "{{rmq_port_amqp_ssl}}", "portRmqMgmt": "{{rmq_port_mgmt}}", "users": [ { "username": "user_name", "password": "{{password}}" }, { "username": "svc_vropsta", "password": "{{password}}" } ] }, "nodes": [ { "hostName": "{{rmq_01_name}}.{{domainName}}", "vmName": "{{rmq_01_name}}", "rootPassword": "{{password}}", "cpuNum": "2", "ramMemory": "4096", "nics": [ { "ipAddress": "{{rmq_01_ip}}", "networkName": "mgmt-nw" } ] }, { "hostName": "{{rmq_02_name}}.{{domainName}}", "vmName": "{{rmq_02_name}}", "rootPassword": "{{password}}", "cpuNum": "2", "ramMemory": "4096", "nics": [ { "ipAddress": "{{rmq_02_ip}}", "networkName": "mgmt-nw" } ] } ] } ], "deploymentInfrastructures": { "infra1": { "vcenter": { "vcenterName": "mgmt-vc", "vcenterHost": "{{vcenter_hostname}}.{{domainName}}", "vcenterUsername": "[email protected]", "vcenterPassword": "{{vc_password}}", "datacenterName": "{{vc_datacenter}}", "clusterName": "{{vc_cluster}}", "resourcePool": "{{vc_res_pool}}", "datastores": [ "{{vc_datastore}}" ], "networks": { "mgmt-nw": { "portGroupName": "{{mgmt_nw_portgroup}}", "gateway": "{{mgmt_nw_gateway}}", "subnetMask": "{{mgmt_nw_subnet}}", "domainName": "{{domainName}}", "searchPath": [ "{{domainName}}" ], "useDhcp": false, "dns": [ "{{dns}}" ], "ntp": [ "{{ntp}}" ] } } } } } }
- On the Headers tab, add the JSESSION ID.
Results
If the import is successful, you see a OK (200) status and "taskId":.