Skip to content

Instantly share code, notes, and snippets.

@dizz
Created February 3, 2015 11:16
Show Gist options
  • Save dizz/b80145b19a8e24b78de3 to your computer and use it in GitHub Desktop.
Save dizz/b80145b19a8e24b78de3 to your computer and use it in GitHub Desktop.
SIC v3 json
[andy:~/Desktop]$ curl -v -X GET http://127.0.0.1:8888/demo-epc/54d0ac1cac3c309475000211 -H 'Content-type: text/occi' -H 'X-Auth-Token: '$KID -H 'X-Tenant-Name: '$TENANT -H 'Accept: application/occi+json'
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8888 (#0)
> GET /demo-epc/54d0ac1cac3c309475000211 HTTP/1.1
> User-Agent: curl/7.37.1
> Host: 127.0.0.1:8888
> Content-type: text/occi
> X-Auth-Token: 5bd4cefafa4c407f9b57767bfbbefbbf
> X-Tenant-Name: admin
> Accept: application/occi+json
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Date: Tue, 03 Feb 2015 11:14:40 GMT
< Content-length: 2103
< Content-Type: application/occi+json
< Server: pyssf OCCI/1.1
<
{
"actions": [],
"attributes": {
"activate.float": "0.11",
"activate.integer": "1",
"activate.string": "immutable_init_value",
"mcn.endpoint.enodeb": "10.0.0.1",
"mcn.endpoint.hss": "10.0.0.1",
"mcn.endpoint.mme": "10.0.0.1",
"mcn.endpoint.pdn-gw": "10.0.0.1",
"mcn.endpoint.srv-gw": "10.0.0.1",
"mcn.service.state": "provision",
"occi.core.id": "54d0ac1cac3c309475000211",
"occi.mcn.stack.id": "0801aa49-36c8-4079-bd3a-c05e9089c1b2",
"occi.mcn.stack.state": "CREATE_COMPLETE"
},
"kind": {
"attributes": {
"mcn.endpoint.enodeb": "immutable",
"mcn.endpoint.hss": "immutable",
"mcn.endpoint.maas": "muttable",
"mcn.endpoint.mme": "immutable",
"mcn.endpoint.pdn-gw": "immutable",
"mcn.endpoint.srv-gw": "immutable"
},
"location": "/demo-epc/",
"related": [
"http://schemas.ogf.org/occi/core#resource"
],
"scheme": "http://schemas.mobile-cloud-networking.eu/occi/sm#",
"term": "demo-epc",
"title": "This is an example EPC service type"
},
"links": [
{
"actions": [],
"attributes": {},
"kind": {
"location": "/link/",
"scheme": "http://schemas.ogf.org/occi/core#",
"term": "link"
},
"mixins": [],
"source": "/demo-epc/54d0ac1cac3c309475000211",
"target": "/test-maas/54d0835dac3c30ad0700002f"
},
{
"actions": [],
"attributes": {},
"kind": {
"location": "/link/",
"scheme": "http://schemas.ogf.org/occi/core#",
"term": "link"
},
"mixins": [],
"source": "/demo-epc/54d0ac1cac3c309475000211",
"target": "/test-dns/54d0836fac3c30ad07000043"
},
{
"actions": [],
"attributes": {},
"kind": {
"location": "/link/",
"scheme": "http://schemas.ogf.org/occi/core#",
"term": "link"
},
"mixins": [],
"source": "/demo-epc/54d0ac1cac3c309475000211",
"target": "/test-epc/54d08381ac3c30ad07000057"
}
],
"mixins": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment