Guest User

Untitled

a guest
Nov 25th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. curl -v -s -X POST http://$OS_URL:5000/v3/auth/tokens -H "Content-Type: application/json" -d '{"auth": {"identity": {"methods": ["password"],"password": {"user": {"name": "$USERNAME","domain": {"name": "$DEFAULT_NAME"},"password": "PASSWORD"}}}}}'
  2.  
  3. curl -v -s -X POST http://$OS_URL:9292/v2/images -H "Content-Type: application/json" -H "X-Auth_token: $TOKEN_ID" -d '{"container_format": "bare", "disk_format": "qcow2", "name": "NEWIMAGE" }'
Add Comment
Please, Sign In to add comment