Normalize API samples json files

Some of the API sample json files include different indent spaces, it is
better to nomalize them with 4 spaces indent.

Change-Id: I7f22de6cef8998c7ae2d1d793b1fcad55334dca3
This commit is contained in:
liusheng 2017-09-18 20:10:39 +08:00
parent a3fc41c4ce
commit 7619e9f057
21 changed files with 164 additions and 162 deletions

View File

@ -1,8 +1,8 @@
{
"name": "test_manageable_server",
"description": "This is a manageable server",
"metadata" : {
"My Server Name" : "Apache1"
"metadata": {
"My Server Name": "Apache1"
},
"node_uuid": "aacdbd78-d670-409e-95aa-ecfcfb94fee2"
}

View File

@ -3,7 +3,7 @@
"description": "This is a manageable server",
"flavor_uuid": null,
"image_uuid": "efe0a06f-ca95-4808-b41e-9f55b9c5eb98",
"availability_zone" : null,
"availability_zone": null,
"status": "active",
"power_state": "on",
"links": [
@ -25,7 +25,7 @@
"user_id": "a6205fcab03d4a289251f420456b1289",
"addresses": [],
"metadata": {
"My Server Name" : "Apache1"
"My Server Name": "Apache1"
},
"key_name": null,
"node_uuid": "aacdbd78-d670-409e-95aa-ecfcfb94fee2",

View File

@ -1,5 +1,5 @@
{
"nodes" : [
"nodes": [
"node-0",
"node-1",
"node-2"

View File

@ -13,10 +13,10 @@
"net_id": "8e8ceb07-4641-4188-9b22-840755e92ee2"
}
],
"metadata" : {
"My Server Name" : "Apache1"
"metadata": {
"My Server Name": "Apache1"
},
"partitions" : {
"partitions": {
"root_gb": 100,
"ephemeral_gb": 400,
"swap_mb": 40960
@ -30,5 +30,7 @@
"user_data": "IyEvYmluL2Jhc2gKL2Jpbi9zdQplY2hvICJJIGFtIGluIHlvdSEiCg==",
"key_name": "test_key"
},
"scheduler_hints": {"group": "group1"}
"scheduler_hints": {
"group": "group1"
}
}

View File

@ -3,7 +3,7 @@
"description": "this is a test server",
"flavor_uuid": "0607b5f3-6111-424d-ba46-f5de39a6fa69",
"image_uuid": "efe0a06f-ca95-4808-b41e-9f55b9c5eb98",
"availability_zone" : "Beijing-01",
"availability_zone": "Beijing-01",
"status": "active",
"power_state": "on",
"links": [
@ -25,12 +25,12 @@
"project_id": "2f15c3524826465a9afbd150478b3b76",
"user_id": "a6205fcab03d4a289251f420456b1289",
"addresses": {},
"partitions" : {
"partitions": {
"root_gb": 100,
"ephemeral_gb": 400,
"swap_mb": 40960
},
"metadata": {
"My Server Name" : "Apache1"
"My Server Name": "Apache1"
}
}

View File

@ -6,7 +6,7 @@
"server_type_uuid": "28708dff-283c-449e-9bfa-a48c93480c86",
"name": "test_server",
"addresses": {},
"partitions" : {
"partitions": {
"root_gb": 100,
"ephemeral_gb": 400,
"swap_mb": 40960
@ -20,12 +20,12 @@
"message": "fault message",
"detail": "fault detail"
},
"launched_at" : null,
"launched_at": null,
"affinity_zone": null,
"updated_at": "2016-10-17T04:12:44+00:00",
"user_id": "cdbf77d47f1d4d04ad9b7ff62b672467",
"uuid": "f978ef48-d4af-4dad-beec-e6174309bc71",
"metadata": {
"My Server Name" : "Apache1"
"My Server Name": "Apache1"
}
}

View File

@ -23,7 +23,7 @@
}
]
},
"partitions" : {
"partitions": {
"root_gb": 100,
"ephemeral_gb": 400,
"swap_mb": 40960
@ -32,12 +32,12 @@
"locked": false,
"project_id": "c18e8a1a870d4c08a0b51ced6e0b6459",
"status": "building",
"launched_at" : null,
"launched_at": null,
"affinity_zone": null,
"updated_at": "2016-10-17T04:12:44+00:00",
"user_id": "cdbf77d47f1d4d04ad9b7ff62b672467",
"uuid": "f978ef48-d4af-4dad-beec-e6174309bc71",
"metadata": {
"My Server Name" : "Apache1"
"My Server Name": "Apache1"
}
}

View File

@ -25,7 +25,7 @@
}
]
},
"partitions" : {
"partitions": {
"root_gb": 100,
"ephemeral_gb": 400,
"swap_mb": 40960
@ -40,7 +40,7 @@
"user_id": "cdbf77d47f1d4d04ad9b7ff62b672467",
"uuid": "f978ef48-d4af-4dad-beec-e6174309bc71",
"metadata": {
"My Server Name" : "Apache1"
"My Server Name": "Apache1"
}
}
]

View File

@ -32,7 +32,7 @@
}
]
},
"partitions" : {
"partitions": {
"root_gb": 100,
"ephemeral_gb": 400,
"swap_mb": 40960