Skip to content

Instantly share code, notes, and snippets.

@shanaver
Created August 20, 2014 21:20
Show Gist options
  • Save shanaver/e239ad8fa1e1d2b202c4 to your computer and use it in GitHub Desktop.
Save shanaver/e239ad8fa1e1d2b202c4 to your computer and use it in GitHub Desktop.
Share an image via the Rackspace v2 API
curl -X POST https://dfw.images.api.rackspacecloud.com/v2.0/images/$image_id/members \
-H "X-Auth-Token: $account_one_api_token" \
-H "Content-Type: application/openstack-images-v2.1-json-patch" \
-d '{"member": "$account_two_id"}' \
| python -m json.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment