You can use the REST API to query and display an external, NAT, private, or routed network profile. For example, you can query an external network profile and use it as the basis for creating a different type of network profile.

始める前に

  • Log in to vRealize Automation as a tenant administrator.

  • Verify that the host name and fully qualified domain name of the vRealize Automation instance are available.

  • Verify that you have a valid HTTP bearer token that matches your login credentials. See REST API Authentication.

  • Obtain the network profile ID to query. See Get a Network Profile List.

このタスクについて

手順

Use the following command to query the existing network profile ID 68b6a183-fc8a-4592-af23-92f8d410ee32.
注:

The output shown in the following example, shows profile for one address range. A network profile can also contain multiple ranges.

curl --insecure -H "Accept:application/json" 
-H "Authorization: Bearer $token" 
https://$host/ iaas-proxy-provider/api/network/profiles/68b6a183-fc8a-4592-af23-92f8d410ee32

The following JSON output is returned based on the command input.

{
  "@type": "ExternalNetworkProfile",
  "id": "68b6a183-fc8a-4592-af23-92f8d410ee32",
  "name": "externalTest",
  "description": "",
  "createdDate": "2014-11-11T02:24:07.000Z",
  "lastModifiedDate": "2014-11-11T02:24:07.000Z",
  "isHidden": false,
  "definedRanges": [
    {
      "id": "3a85a049-522f-4b64-8f60-6e7b252ad204",
      "name": "range",
      "description": "",
      "beginIPv4Address": "10.110.183.200",
      "endIPv4Address": "10.110.183.201",
      "state": "UNALLOCATED",
      "createdDate": "2014-11-11T02:23:38.000Z",
      "lastModifiedDate": "2014-11-11T02:23:38.000Z",
      "definedAddresses": [
        {
          "id": "f229ea1a-18de-4dae-ae7b-0cec7feaa99b",
          "name": null,
          "description": null,
          "IPv4Address": "10.110.183.201",
          "IPSortValue": 0,
          "state": "UNALLOCATED",
          "hostName": "",
          "createdDate": "2014-11-11T02:23:38.000Z",
          "lastModifiedDate": "2014-11-11T02:23:38.000Z"
        },
        {
          "id": "cd39e786-6490-4c95-8cf7-d6e3b6a0ba67",
          "name": null,
          "description": null,
          "IPv4Address": "10.110.183.200",
          "IPSortValue": 0,
          "state": "UNALLOCATED",
          "hostName": "",
          "createdDate": "2014-11-11T02:23:38.000Z",
          "lastModifiedDate": "2014-11-11T02:23:38.000Z"
        },
    }
  ],
  "profileType": "EXTERNAL",
  "IPAMEndpointId": null,
  "subnetMask": "255.255.255.0",
  "gatewayAddress": "10.110.183.253",
  "primaryDnsAddress": "10.110.182.45",
  "secondaryDnsAddress": "",
  "dnsSuffix": "mycompany.com",
  "dnsSearchSuffix": "",
  "primaryWinsAddress": "10.0.0.1",
  "secondaryWinsAddress": ""
}