Managing network profiles

Let's see how to manage network profiles in the vRA environment. We will start this discussion with the procedure on how to get a list of network profiles.

For this, we need to query the https://$host/iaas-proxy-provider/api/network/profiles URL and the method we need to use is Get. We can bring everything together and get the information by running the following command.

PS C:\> Invoke-RestMethod -Method Get -Uri "https://vra.lab.com/iaas-
proxy-provider/api/network/profiles" -Headers $headers | ConvertTo-
Json
{
    "links":  [

              ],
    "content":  [
                    {
                        "@type":  "ExternalNetworkProfile",
                        "id":  "be64956f-52d3-4eb7-9a9e-
                        29a7db7372b0",
                        "name":  "Cloud-External",
                        "description":  "",
 "createdDate": "2015-08-07T12:58:16.000Z", ...

Get Mastering PowerCLI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.