Skip to content

Instantly share code, notes, and snippets.

@shanaver
Created August 20, 2014 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shanaver/84830580db241d7b4c8c to your computer and use it in GitHub Desktop.
Save shanaver/84830580db241d7b4c8c to your computer and use it in GitHub Desktop.
Accepta a shard image via the Rackspace v2 API
curl -X PUT https://dfw.images.api.rackspacecloud.com/v2.0/images/$image_id/members/$account_two_id \
-H "X-Auth-Token: $account_two_api_token" \
-H "Content-Type: application/openstack-images-v2.1-json-patch" \
-d '{"status": "accepted"}' \
| python -m json.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment