O'Reilly logo

Mastering PowerCLI by Sajal Debnath

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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", ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required