Skip to content

Instantly share code, notes, and snippets.

@dizz
Created February 4, 2011 13:23
Show Gist options
  • Save dizz/811098 to your computer and use it in GitHub Desktop.
Save dizz/811098 to your computer and use it in GitHub Desktop.
sample json renderings for OCCI
[
{
"Location": "/api/compute/123",
"Category": [
{
"term": "compute",
"scheme": "http://.../occi/infrastructure#",
"class": "kind",
"rel": "http://schemes.ogf.org/occi/core#resource",
"attributes": {
"occi.compute.memory": ["required", "mutable"],
"occi.compute.speed": ["mutable"],
}
}
], .....
"Link": [
{
"target": "/api/storage/234",
"rel": "http://.../occi/infrastructure#storage",
"self": "/api/link/789"
"category": "http://.../occi/core#link",
"attributes": {
"occi.blah": true,
}
}
], .....
"Attribute": {
"title": "A Virtual Machine",
"occi.compute.memory": 2.0,
"occi.compute.speed": 3.12, .....
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment