To re-populate the map with the existing vCloud Usage Meter environment, you trigger an import operation that validates that the vCloud Usage Meter deployment is working, and imports the vCloud Usage Meter environment into the VMware Cloud Provider Lifecycle Manager map.
Prerequisites
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 vCloud Usage Meter 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": "{{um_env_id}}", "products": [ { "properties": { "auditorPassword": "{{password}}", "proxy": { "type": "none" } }, "productType": "USAGE", "productId": "{{um_product_id}}", "version": "um_version_number", "adminPassword": "{{password}}", "integrations": [ { "integrationId": "um-01-to-vc-01", "datacenterComponentType": "VCENTER", "hostname": "{{vcenter_hostname}}.{{domainName}}", "integrationUsername": "[email protected]", "integrationPassword": "{{vc_password}}", "properties": { "externalSSO": false, "vcfEdition": "Enterprise" } }, { "integrationId": "um-01-to-nsx-01", "datacenterComponentType": "NSXT", "hostname": "{{nsxt_hostname}}.{{domainName}}", "integrationUsername": "admin", "integrationPassword": "{{nsx_password}}" }, { "integrationId": "um-01-to-vcd-01", "productType": "VCD", "hostname": "{{vcd_lb_ip}}", "integrationUsername": "administrator@system", "integrationPassword": "{{password}}" }, { "integrationId": "um-01-to-vrops-01", "datacenterComponentType": "VROPS", "hostname": "{{vrops_ip}}", "integrationUsername": "admin", "integrationPassword": "{{vrops_password}}", "properties": { "vcReferences": ["um-01-to-vc-01"], "enableAutodiscovery": false } } ], "nodes": [ { "hostName": "{{usage_meter_name}}.{{domainName}}", "vmName": "{{usage_meter_name}}", "rootPassword": "{{password}}", "nics": [ { "ipAddress": "{{usage_meter_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 an OK (200) status and "taskId":.