Quantcast
Channel: VMware Communities: Message List - VMware vCloud Director
Viewing all articles
Browse latest Browse all 7719

Re: people could steal IPs from the other VMs in the same organization network, how to prevent it?

$
0
0

According to the document https://www.vmware.com/pdf/vshield_55_api.pdf on page 185, the IP change can be approved via API, we could get the list of the IP changes by: GET https://vsmURL/api/2.0/services/spoofguard/datacenter-21?list=PUBLISHED and here is the IP change that we would like to approve

<spoofguard>

<id>5039c73c-f622-03e4-ca22-5a65a47fcea1.000</id>

 

<vnicUuid>5039c73c-f622-03e4-ca22-5a65a47fcea1.000</vnicUuid>

<nicName>

 

Win7-new (f3bd946d-4448-4bbf-80e4-5a41696fbe3f) - Network adapter 1

 

</nicName>

<portGroupId>dvportgroup-61</portGroupId>

<vmMoId>vm-273</vmMoId>

<approvedIpAddress>192.168.159.162</approvedIpAddress>

<approvedMacAddress>00:50:56:01:00:00</approvedMacAddress>

<approvedBy>admin</approvedBy>

<approvedOn>2013-11-16 00:46:08.867</approvedOn>

<publishedIpAddress>192.168.159.162</publishedIpAddress>

<publishedMacAddress>00:50:56:01:00:00</publishedMacAddress>

<publishedBy>admin</publishedBy>

<publishedOn>2013-11-16 01:20:49.459</publishedOn>

<state>0</state>

<detectedIpAddress>192.168.159.163</detectedIpAddress>

<detectedMacAddress>00:50:56:01:00:00</detectedMacAddress>

</spoofguard>

However, when we tried to approve it by POST https://vsmURL/api/2.0/services/spoofguard/datacenter-21?action=approve with copying and pasting the above text into the message body, we got following error:

 

HTTP Status 415 -


type Status report

message

descriptionThe server refused this request because the request entity is in a format not supported by the requested resource for the requested method.


Apache Tomcat/6.0.36

 

I think we might not get this one right: "An XML representation of VnicIdList is expected in the message body for delete and approve actions." (Page 185).

 

Is there anyone made this working before? or you have some idea about it?

 

Thank you!


Viewing all articles
Browse latest Browse all 7719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>