Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GET /-/
- Content-Type: application/occi-category+json
- {
- "kinds": [
- {
- "term": "compute",
- "scheme": "http://schemas.ogf.org/occi/infrastructure#",
- "title": "Compute Resource",
- "related": [
- "http://schemas.ogf.org/occi/core#resource"
- ],
- "attributes": {
- "occi": {
- "infrastructure": {
- "compute": {
- "architecture": {
- "mutable": true,
- "required": false,
- "type": {
- "string": {
- "pattern": "x86|x64"
- }
- },
- "default": "x86"
- },
- "cores": {
- "mutable": true,
- "required": false,
- "type": {
- "number": {
- "minimum": 1,
- "maximum": 4
- }
- },
- "default": 1
- },
- "hostname": {
- "mutable": true,
- "required": false,
- "type": {
- "string": {
- "minimum": 16,
- "maximum": 256
- }
- }
- },
- "speed": {
- "mutable": true,
- "required": false,
- "type": "number",
- "default": "2.2"
- },
- "memory": {
- "mutable": true,
- "required": false,
- "type": "number",
- "default": "4"
- },
- "state": {
- "mutable": false,
- "required": false,
- "type": "string",
- "default": "inactive"
- }
- }
- }
- }
- },
- "actions": [
- "http://schemas.ogf.org/occi/infrastructure/compute/action#start",
- "http://schemas.ogf.org/occi/infrastructure/compute/action#stop",
- "http://schemas.ogf.org/occi/infrastructure/compute/action#restart",
- "http://schemas.ogf.org/occi/infrastructure/compute/action#suspend"
- ],
- "location": "/api/compute/"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement