To re-populate the map with the existing VMware Cloud Director environment, you trigger an import operation that validates that the specified VMware Cloud Director deployment is working, and imports the VMware Cloud Director product environment into the VMware Cloud Provider Lifecycle Manager map.

Procedure

  • In your Web browser, start Postman and configure the following HTTPS request.
    1. On the Headers tab, add the JSESSION ID.
      Setting Value
      JSESSIONID vcp-lcm-session-id
    1. To import the VMware Cloud Director 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": "{{vcd_env_id}}",
          "products": [
              {
                  "properties": {
                      "installationId": 1,
                      "systemName": "vcd-1-vms",
                      "dbPassword": "{{password}}",
                      "keystorePassword": "{{password}}",
                      "clusterFailoverMode": "MANUAL",
                      "publicAddress": {
                          "consoleProxyExternalAddress": "{{vcd_lb_ip}}:8443",
                          "restApiBaseHttpUri": "http://{{vcd_lb_ip}}",
                          "restApiBaseUri": "https://{{vcd_lb_ip}}",
                          "tenantPortalExternalHttpAddress": "http://{{vcd_lb_ip}}",
                          "tenantPortalExternalAddress": "https://{{vcd_lb_ip}}"
                      },
                      "adminEmail": "admin_email",
                      "adminFullName": "admin_name",
                      "nfsMount": "{{vcd_nfs_mount}}"
                  },
                  "certificate": {
                      "product": {
                          "certificate": "{{vcd_cert}}",
                          "privateKey": "{{vcd_cert_key}}"
                      },
                      "restApi": {
                          "certificate": "{{vcd_public_cert}}"
                      },
                      "tenantPortal": {
                          "certificate": "{{vcd_public_cert}}"
                      }
                  },
                  "integrations": [
                      {
                          "integrationId": "vcd-01-to-vc-01",
                          "datacenterComponentType": "VCENTER",
                          "hostname": "{{vcenter_hostname}}.{{domainName}}",
                          "integrationUsername": "[email protected]",
                          "integrationPassword": "{{vc_password}}",
                          "properties": {
                              "providerVdcs": {
                                      "PVDC-1": {
                                      "description": "m01vc01-comp-rp",
                                      "highestSupportedHardwareVersion": "vmx-14",
                                      "isEnabled": true,
                                      "clusterName": "{{vc_cluster}}",
                                      "resourcePoolname": "{{pvdc_resource_pool}}",
                                      "nsxIntegration": "vcd-01-to-nsx-01",
                                      "storageProfile":[
                                          "{{pvdc_storage_profile}}"
                                      ],
                                      "networkPoolname":"NP-1"
                                  }
                              }
                          }
                      },
                      {
                          "integrationId": "vcd-01-to-nsx-01",
                          "datacenterComponentType": "NSXT",
                          "hostname": "{{nsxt_hostname}}.{{domainName}}",
                          "integrationUsername": "admin",
                          "integrationPassword": "{{nsx_password}}",
                          "properties": {
                              "networkPools": {
                                  "NP-1": "{{pvdc_np_transport_zone}}"
                              },
                              "vcdExternalNetworks": {
                                  "EN-1": {
                                      "subnets": [
                                          {
                                              "gateway": "192.168.91.1",
                                              "prefixLength": 24,
                                              "dnsServer1": "",
                                              "ipRanges":  [
                                                  {
                                                      "startAddress": "192.168.91.150",
                                                      "endAddress": "192.168.91.200"
                                                  }
                                              ]
                                          }
                                      ],
                                      "description": "ExternalNetworkCreatedViaVCDBringup",
                                      "tier0Name": "{{pvdc_ext_nw_tier0_gw}}"
                                  }
                              }
                          }
                      },
                      {
                          "integrationId": "vcd-01-to-rmq-01",
                          "productType": "RMQ",
                          "hostname": "{{rmq_lb_name}}.{{domainName}}",
                          "port": "{{rmq_port_amqp_ssl}}",
                          "integrationUsername": "svc_vcd",
                          "integrationPassword": "{{password}}",
                          "properties": {
                              "amqpExchange": "systemExchange",
                              "amqpVHost": "/",
                              "amqpUseSSL": true,
                              "amqpSslAcceptAll": true,
                              "amqpPrefix": "vcd"
                          }
                      }
                  ],
                  "productType": "VCD",
                  "productId": "{{vcd_product_id}}",
                  "version": "10.1.2",
                  "license": "{{vcd_license}}",
                  "adminPassword": "{{password}}",
                  "nodes": [
                      {
                          "hostName": "{{vcd_cell_1_name}}.{{domainName}}",
                          "vmName": "{{vcd_cell_1_name}}",
                          "rootPassword": "{{password}}",
                          "gateway": "{{vcd_mgmt_nw_gateway}}",
                          "nics": [
                              {
                                  "ipAddress": "{{vcd_cell_1_ip}}",
                                  "networkName": "vcd-dmz-nw",
                                  "staticRoutes": []
                              }, {
                                  "ipAddress": "{{vcd_cell_1_mgmt_ip}}",
                                  "networkName": "vcd-mgmt-nw",
                                  "staticRoutes": []
                              }
                          ]
                      },
                      {
                          "hostName": "{{vcd_cell_2_name}}.{{domainName}}",
                          "vmName": "{{vcd_cell_2_name}}",
                          "rootPassword": "{{password}}",
                          "gateway": "{{vcd_mgmt_nw_gateway}}",
                          "nics": [
                              {
                                  "ipAddress": "{{vcd_cell_2_ip}}",
                                  "networkName": "vcd-dmz-nw",
                                  "staticRoutes": []
                              }, {
                                  "ipAddress": "{{vcd_cell_2_mgmt_ip}}",
                                  "networkName": "vcd-mgmt-nw",
                                  "staticRoutes": []
                              }
                          ]
                      }
                  ]
              }
          ],
          "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": {
                          "vcd-dmz-nw": {
                              "portGroupName": "{{vcd_dmz_portgroup}}",
                              "gateway": "{{vcd_dmz_gateway}}",
                              "subnetMask": "{{vcd_dmz_subnet}}",
                              "domainName": "{{domainName}}",
                              "searchPath": [
                                  "{{domainName}}"
                              ],
                              "useDhcp": false,
                              "dns": [
                                  "{{dns}}"
                              ],
                              "ntp": [
                                  "{{ntp}}"
                              ]
                          },
                          "vcd-mgmt-nw": {
                              "portGroupName": "{{vcd_mgmt_nw_portgroup}}",
                              "gateway": "{{vcd_mgmt_nw_gateway}}",
                              "subnetMask": "{{vcd_mgmt_nw_subnet}}",
                              "useDhcp": false
                          }
                      }
                  }
              }
          }
      }

Results

If the import is successful, you see an OK (200) status and "taskId":.