Skip to content

Instantly share code, notes, and snippets.

@arax
Created January 3, 2013 11:29
Show Gist options
  • Save arax/4442828 to your computer and use it in GitHub Desktop.
Save arax/4442828 to your computer and use it in GitHub Desktop.
rOCCI 3.0.0.beta.1 -- Create Compute -- HTTP POST request
POST /compute/ HTTP/1.1
Accept: text/uri-list
Content-Type: application/occi+json
Connection: close
Host: localhost
Content-Length: 599
{"resources":[{"kind":"http://schemas.ogf.org/occi/infrastructure#compute","mixins":["https://occi.localhost/occi/infrastructure/resource_tpl#medium"]}],"links":[{"kind":"http://schemas.ogf.org/occi/infrastructure#storagelink","rel":"http://schemas.ogf.org/occi/infrastructure#storage","target":"https://localhost/storage/e60aa2b8-0c86-5973-b93e-30c5c46d6eac"},{"kind":"http://schemas.ogf.org/occi/infrastructure#networkinterface","rel":"http://schemas.ogf.org/occi/core#resource","target":"https://localhost/network/d71df087-9a55-5228-822b-1f1a57107851"}]}
HTTP/1.1 201 Created
Date: Thu, 03 Jan 2013 11:19:26 GMT
Server: Apache/2.2.20 (Ubuntu)
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.12
X-Frame-Options: sameorigin
X-XSS-Protection: 1; mode=block
Accept: application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
Content-Length: 78
Status: 201
Connection: close
Content-Type: text/uri-list;charset=utf-8
https://localhost/compute/bb112d45-8cf1-4b4d-892c-849c957c0f90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment