Advertisement
Guest User

OCCI Category JSON rendering suggestion

a guest
Feb 28th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     "kinds": [
  3.         {
  4.             "term": "compute",
  5.             "scheme": "http://schemas.ogf.org/occi/infrastructure#",
  6.             "title": "Compute Resource",
  7.             "related": "http://schemas.ogf.org/occi/core#resource",
  8.             "attributes": {
  9.                 "occi.compute.architecture": {
  10.                     "mutable": true,
  11.                     "required": false,
  12.                     "type": "string",
  13.                     "choices": "{x86|x64}",
  14.                     "default": "x86"
  15.                 },
  16.                 "occi.compute.cores": {
  17.                     "mutable": true,
  18.                     "required": false,
  19.                     "type": "integer",
  20.                     "bounds": [
  21.                         {
  22.                             "lower": 1,
  23.                             "upper": 4
  24.                         },
  25.                         {
  26.                             "lower": 8,
  27.                             "upper": 16
  28.                         }
  29.                     ],
  30.                     "default": 1
  31.                 },
  32.                 "occi.compute.hostname": {
  33.                     "mutable": true,
  34.                     "required": false,
  35.                     "type": "string",
  36.                     "min_length": 16,
  37.                     "max_length": 256
  38.                 },
  39.                 "occi.compute.speed": {
  40.                     "mutable": true,
  41.                     "required": false,
  42.                     "type": "float",
  43.                     "default": "2.2"
  44.                 },
  45.                 "occi.compute.memory": {
  46.                     "mutable": true,
  47.                     "required": false,
  48.                     "type": "float",
  49.                     "default": "4"
  50.                 },
  51.                 "occi.compute.state": {
  52.                     "mutable": false,
  53.                     "required": false,
  54.                     "type": "string",
  55.                     "default": "inactive"
  56.                 }
  57.             },
  58.             "actions": [
  59.                 "http://schemas.ogf.org/occi/infrastructure/compute/action#start",
  60.                 "http://schemas.ogf.org/occi/infrastructure/compute/action#stop",
  61.                 "http://schemas.ogf.org/occi/infrastructure/compute/action#restart",
  62.                 "http://schemas.ogf.org/occi/infrastructure/compute/action#suspend"
  63.             ],
  64.             "location": "/api/compute/"
  65.         }
  66.     ]
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement