Fix JSON format of server_concepts

server_concepts.rst contains some invalid JSON formats as samples.
This patch fixes them and improves the readability by adding some
spaces.

Change-Id: Ib51f9e1351fca51c15ffdcb98f42311b999f22f5
This commit is contained in:
Ken'ichi Ohmichi 2016-03-21 10:22:15 -07:00
parent f03bbbab68
commit 6ee7d4413a

View File

@ -154,17 +154,18 @@ be used and interpreted by nova.
Precondition:
there are 2 servers existing in cloud with following info:
"servers":[
"servers": [
{
"name": "t1",
"locked": "true",
...
}
},
{
"name":"t2",
"name": "t2",
"locked": "false",
...
}
]
**Example: General user query server with administrator only options**
@ -176,13 +177,13 @@ be used and interpreted by nova.
Response:
{
"servers":[
"servers": [
{
"name": "t1",
...
}
},
{
"name":"t2",
"name": "t2",
...
}
]
@ -197,7 +198,7 @@ be used and interpreted by nova.
Response:
{
"servers":[
"servers": [
{
"name": "t1",
...
@ -224,12 +225,12 @@ be used and interpreted by nova.
Response:
{
"servers":[
"servers": [
{
"name": "t1",
"OS-EXT-SRV-ATTR:host": "devstack"
...
}
},
{
"name": "t2",
"OS-EXT-SRV-ATTR:host": "devstack1"
@ -244,7 +245,7 @@ be used and interpreted by nova.
Response:
{
"servers":[
"servers": [
{
"name": "t1",
"OS-EXT-SRV-ATTR:host": "devstack"
@ -264,19 +265,19 @@ be used and interpreted by nova.
Response:
{
"servers":[
"servers": [
{
"name": "test11",
...
}
},
{
"name": "test21",
...
}
},
{
"name": "t1",
...
}
},
{
"name": "t14",
...
@ -290,15 +291,15 @@ be used and interpreted by nova.
Response:
{
"servers":[
"servers": [
{
"name": "test11",
...
}
},
{
"name": "t1",
...
}
},
{
"name": "t14",
...
@ -318,17 +319,17 @@ be used and interpreted by nova.
Response:
{
"servers":[
"servers": [
{
"name": "test1",
"OS-EXT-SRV-ATTR:host": "devstack"
...
}
},
{
"name": "t2",
"OS-EXT-SRV-ATTR:host": "devstack1"
...
}
},
{
"name": "test3",
"OS-EXT-SRV-ATTR:host": "devstack1"
@ -343,7 +344,7 @@ be used and interpreted by nova.
Response:
{
"servers":[
"servers": [
{
"name": "test3",
"OS-EXT-SRV-ATTR:host": "devstack1"
@ -367,17 +368,18 @@ be used and interpreted by nova.
Response:
{
"servers":[
"servers": [
{
"name": "t1"
"updated": "2015-12-15T15:55:52Z"
...
}
},
{
"name": "t2",
"updated": "2015-12-17T15:55:52Z"
...
}
]
}
GET /servers/detail?changes-since='2015-12-16T15:55:52Z'
@ -657,11 +659,11 @@ assigned at creation time.
.. code::
{
"server":{
"name":"new-server-test",
"imageRef":"52415800-8b69-11e0-9b19-734f6f006e54",
"flavorRef":"52415800-8b69-11e0-9b19-734f1195ff37",
"accessIPv4":"67.23.10.132"
"server": {
"name": "new-server-test",
"imageRef": "52415800-8b69-11e0-9b19-734f6f006e54",
"flavorRef": "52415800-8b69-11e0-9b19-734f1195ff37",
"accessIPv4": "67.23.10.132"
}
}
@ -675,12 +677,12 @@ assigned at creation time.
.. code::
{
"server":{
"name":"new-server-test",
"imageRef":"52415800-8b69-11e0-9b19-734f6f006e54",
"flavorRef":"52415800-8b69-11e0-9b19-734f1195ff37",
"accessIPv4":"67.23.10.132",
"accessIPv6":"::babe:67.23.10.132"
"server": {
"name": "new-server-test",
"imageRef": "52415800-8b69-11e0-9b19-734f6f006e54",
"flavorRef": "52415800-8b69-11e0-9b19-734f1195ff37",
"accessIPv4": "67.23.10.132",
"accessIPv6": "::babe:67.23.10.132"
}
}