API reconfigures VM's Networks
Overview
In this manual, you will find detailed information on how to prepare information, get VM’s network information, and reconfigure VM’s networks.
Procedure
Step 1: Prepare Information
Login IAM portal -> vCD portal: collect the information
{{vcd_url}}
{{vm-uuid}}: select VM -> take a look vm uuid on url
{{network_name}}: Select Networking -> Networks -> Copy the Network name
{{Bearer Token}}: Please follow the “API token login” document
Step 2: Get VM’s network information
GET https://{{vcd_url}}/api/vApp/{{vm-uuid}}/virtualHardwareSection/networkCards
Authorization: {{Bearer Token}}
PUT https//{{vcd_url}}/api/vApp/{{vm-uuid}}/virtualHardwareSection/networkCards
Authorization: {{Bearer Token }}
Get VM’s network information.
GET https://{{vcd_url}}/api/vApp/{{vm-uuid}}/virtualHardwareSection/networkCards
Login IAM -> vCD portal-> select VM-> NICs