← Back to team overview

openstack team mailing list archive

curl example for quantum api "create port"



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:
	Unable to find 'port' in request body

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

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

Attachment: signature.asc
Description: OpenPGP digital signature

Follow ups