VMware VCloud REST API is not Working for deallocate public IPs from an edge gateway network

198 views Asked by At

We are trying to call the following REST API to deallocate public IPs from an edge gateway network.

PUT: https://myvcloud.com/api/admin/edgeGateway/{Id of the edge gateway}/action/manageExternalIpAddresses

Request Header:

Authorization: Basic YWRtaW5pc3RyYXRvckBTeXN0AA06SW5kYXBlbmRlbnQxMiM= Accept: application/*+xml;version=5.7 x-vcloud-authorization: 38fe9e559ad04ecf88d81f00954ce805

Request Body:

<?xml version="1.0" encoding="UTF-8"?><ExternalIpAddressActionList xmlns="http://www.vmware.com/vcloud/networkservice/1.0"><Deallocation><ExternalIpAddress>[Already Assigned Public IP]</ExternalIpAddress></Deallocation></ExternalIpAddressActionList>

When we are executing the above API it showing error code 404 (Resource No Found').

As per the below document I found this API is resent from version 5.7. https://pubs.vmware.com/vca/index.jsp#com.vmware.vcloud.api.reference.doc_90/doc/operations/PUT-GetVdcTemplates.html

Team, Can you please help me out on this. Why this behavior I am getting ? Is there any alternate way available to achieve the goal.

Regards, Sougata Halder

0

There are 0 answers