[Openstack] curl example for quantum api "create port"

Thomas Kärgel kaergel at b1-systems.de
Fri May 24 10:47:57 UTC 2013


Hi,

i'm tryning to create a port in quantum via a curl:

curl -H "X-Auth-Token: 978ed39cd13645c5a7024ad9d954c914" -d '<?xml
version="1.0" encoding="UTF-8"?><port admin_state_up="true"
device_id="d21f15c5-a7f0-47eb-854d-330e1227f572" name="test"
network_id="9e770d5c-238a-4317-a129-9fd96dca8a6b"></port>' -H
"Content-Type: application/xml; charset=UTF-8" -H "Accept:
application/xml" http://quantumserver:9696/v2.0/ports.xml

the answer i get from quantum is:
<QuantumError>
	Unable to find 'port' in request body
</QuantumError>

What am i doing wrong? I think I'm not seeing the forest for the trees.

Best regards
Thomas
-- 
Thomas Kärgel
Linux Consultant
Mail: kaergel at b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130524/bb79c319/attachment.sig>


More information about the Openstack mailing list