Created
January 26, 2015 12:12
-
-
Save dizz/2f65c91345bf8366a47f to your computer and use it in GitHub Desktop.
create service, get service, get service collecetion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[andy:~]$ curl -v -X POST http://127.0.0.1:8888/test-epc/ -H 'Category: test-epc; scheme="http://schemas.mobile-cloud-networking.eu/occi/sm#"; class="kind";' -H 'Content-type: text/occi' -H 'X-Auth-Token: '$KID -H 'X-Tenant-Name: '$TENANT | |
* 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) | |
> POST /test-epc/ HTTP/1.1 | |
> User-Agent: curl/7.37.1 | |
> Host: 127.0.0.1:8888 | |
> Accept: */* | |
> Category: test-epc; scheme="http://schemas.mobile-cloud-networking.eu/occi/sm#"; class="kind"; | |
> Content-type: text/occi | |
> X-Auth-Token: d7614b018f3e48b6879026f58ac9ec2b | |
> X-Tenant-Name: admin | |
> | |
* HTTP 1.0, assume close after body | |
< HTTP/1.0 201 Created | |
< Date: Mon, 26 Jan 2015 12:08:25 GMT | |
< Content-length: 2 | |
< Content-Type: text/plain | |
< Location: http://127.0.0.1:8888/test-epc/54c62e27ac3c30f770000038 | |
< Server: pyssf OCCI/1.1 | |
< | |
* Closing connection 0 | |
OK% [andy:~]$ curl -v -X GET http://127.0.0.1:8888/test-epc/54c62e27ac3c30f770000038 -H 'Content-type: text/occi' -H 'X-Auth-Token: '$KID -H 'X-Tenant-Name: '$TENANT | |
* 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 /test-epc/54c62e27ac3c30f770000038 HTTP/1.1 | |
> User-Agent: curl/7.37.1 | |
> Host: 127.0.0.1:8888 | |
> Accept: */* | |
> Content-type: text/occi | |
> X-Auth-Token: d7614b018f3e48b6879026f58ac9ec2b | |
> X-Tenant-Name: admin | |
> | |
* HTTP 1.0, assume close after body | |
< HTTP/1.0 200 OK | |
< Date: Mon, 26 Jan 2015 12:10:53 GMT | |
< Content-length: 1026 | |
< Content-Type: text/plain | |
< Server: pyssf OCCI/1.1 | |
< | |
Category: test-epc; scheme="http://schemas.mobile-cloud-networking.eu/occi/sm#"; class="kind"; title="This is an example EPC service type"; rel="http://schemas.ogf.org/occi/core#resource"; location="http://127.0.0.1:8888/test-epc/"; attributes="mcn.endpoint.pdn-gw{immutable} mcn.endpoint.srv-gw{immutable} mcn.endpoint.enodeb{immutable} mcn.endpoint.maas mcn.endpoint.mme{immutable} mcn.endpoint.hss{immutable}" | |
X-OCCI-Attribute: mcn.service.state="provision" | |
X-OCCI-Attribute: mcn.endpoint.mme="10.0.0.1" | |
X-OCCI-Attribute: mcn.endpoint.pdn-gw="10.0.0.1" | |
X-OCCI-Attribute: occi.mcn.stack.state="CREATE_COMPLETE" | |
X-OCCI-Attribute: mcn.endpoint.srv-gw="10.0.0.1" | |
X-OCCI-Attribute: activate.string="immutable_init_value" | |
X-OCCI-Attribute: activate.float="0.11" | |
X-OCCI-Attribute: occi.mcn.stack.id="c0d4bebd-c3bb-442a-92c3-acdd534c24e9" | |
X-OCCI-Attribute: activate.integer="1" | |
X-OCCI-Attribute: mcn.endpoint.enodeb="10.0.0.1" | |
X-OCCI-Attribute: occi.core.id="54c62e27ac3c30f770000038" | |
* Closing connection 0 | |
X-OCCI-Attribute: mcn.endpoint.hss="10.0.0.1"% [andy:~]$ curl -v -X GET http://127.0.0.1:8888/test-epc/ -H 'Content-type: text/occi' -H 'X-Auth-Token: '$KID -H 'X-Tenant-Name: '$TENANT | |
* 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 /test-epc/ HTTP/1.1 | |
> User-Agent: curl/7.37.1 | |
> Host: 127.0.0.1:8888 | |
> Accept: */* | |
> Content-type: text/occi | |
> X-Auth-Token: d7614b018f3e48b6879026f58ac9ec2b | |
> X-Tenant-Name: admin | |
> | |
* HTTP 1.0, assume close after body | |
< HTTP/1.0 200 OK | |
< Date: Mon, 26 Jan 2015 12:11:07 GMT | |
< Content-length: 0 | |
< Content-Type: text/plain | |
< Server: pyssf OCCI/1.1 | |
< | |
* Closing connection 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment