4. Networking Examples : 4.5 VXLAN ORG Network for Disaster Recovery : 4.5.4 Updated vCloud DR Recovery Process : 4.5.4.8. Update the vCloud Networking and Security Edge Gateway Device Configuration
   
4.5.4.8. Update the vCloud Networking and Security Edge Gateway Device Configuration
After making the preceding changes, you can update the vCloud Networking and Security Edge Gateway device using the vCloud API as in the following example.
Request
PUT https://<VCD-IP>/api/admin/edgeGateway/0cf71e84-fdf6-4fa0-ae85-bdd688a64963 (this is the UUID 0cf71e84-fdf6-4fa0-ae85-bdd688a64963)
$ curl -k -v -b cookie.txt -H "Accept:application/*+xml;version=5.1" -X PUT --header "Content-Type:application/vnd.vmware.admin.edgeGateway+xml" --data @EdgeGateway.xml https://<VCD-IP>/api/admin/edgeGateway/0cf71e84-fdf6-4fa0-ae85-bdd688a64963
Response
* About to connect() to <VCD-IP> port 443 (#0)
* Trying <VCD-IP>... connected
* Connected to <VCD-IP> (<VCD-IP>) port 443 (#0)
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using DHE-RSA-AES256-SHA
* Server certificate:
* subject: C=US; ST=California; L=Palo Alto; O=VMware, Inc.; CN=*.eng.vmware.com
* start date: 2009-11-17 00:00:00 GMT
* expire date: 2012-11-20 23:59:59 GMT
* common name: *.eng.vmware.com (does not match <VCD-IP>)
* issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert High Assurance CA-3
* SSL certificate verify ok.
> PUT /api/admin/edgeGateway/0cf71e84-fdf6-4fa0-ae85-bdd688a64963 HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host: <VCD-IP>
> Cookie: vcloud-token=1hi8kZ4tNOnSnv3aq6/gSrDHlTPyYrBXQ5a2CdmX8C4=
> Accept:application/*+xml;version=5.1
> Content-Type:application/vnd.vmware.admin.edgeGateway+xml
> Content-Length: 4631
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
< HTTP/1.1 202 Accepted
< Date: Fri, 24 Jul 2012 10:08:13 GMT
< Date: Fri, 24 Jul 2012 10:08:15 GMT
< Location: https://<VCD-IP>/api/task/e0c73c28-2d5b-4e9d-a304-bc6b3667f18a
< Content-Type: application/vnd.vmware.vcloud.task+xml;version=5.1
< Content-Length: 1331
<
<?xml version="1.0" encoding="UTF-8"?>
<Task xmlns="http://www.vmware.com/vcloud/v1.5" status="running" startTime="2012-07-20T03:08:15.571-07:00" serviceNamespace="com.vmware.vcloud" operationName="edgeGatewayUpdate" operation="Updating EdgeGateway (0cf71e84-fdf6-4fa0-ae85-bdd688a64963)" expiryTime="2012-10-18T03:08:15.571-07:00" cancelRequested="false" name="task" id="urn:vcloud:task:e0c73c28-2d5b-4e9d-a304-bc6b3667f18a" type="application/vnd.vmware.vcloud.task+xml" href="https://<VCD-IP>/api/task/e0c73c28-2d5b-4e9d-a304-bc6b3667f18a" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://<VCD-IP>/api/v1.5/schema/master.xsd">
<Link rel="task:cancel" href="https://<VCD-IP>/api/task/e0c73c28-2d5b-4e9d-a304-bc6b3667f18a/action/cancel"/>
<Owner type="application/vnd.vmware.admin.edgeGateway+xml" name="" href="https://<VCD-IP>/api/admin/edgeGateway/0cf71e84-fdf6-4fa0-ae85-bdd688a64963"/>
<User type="application/vnd.vmware.admin.user+xml" name="system" href="https://<VCD-IP>/api/admin/user/55c1d771-b2e2-4255-8387-7f6da1e0e3f1"/>
<Organization type="application/vnd.vmware.vcloud.org+xml" name="MAH" href="https://<VCD-IP>/api/org/60b44eb5-0e98-45bc-b96b-25549ce03033"/>
<Progress>0</Progress>
<Details/>
</Task>
* Connection #0 to host <VCD-IP> left intact
* Closing connection #0