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:
parent
a3fc41c4ce
commit
7619e9f057
@ -1,3 +1,3 @@
|
||||
{
|
||||
"node": "fake_node"
|
||||
"node": "fake_node"
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
[
|
||||
{
|
||||
"op": "replace",
|
||||
"path": "/metadata/k1",
|
||||
"value": "v2"
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/metadata/k2",
|
||||
"value": "v2"
|
||||
}
|
||||
{
|
||||
"op": "replace",
|
||||
"path": "/metadata/k1",
|
||||
"value": "v2"
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/metadata/k2",
|
||||
"value": "v2"
|
||||
}
|
||||
]
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"nodes": [
|
||||
"node1",
|
||||
"node2",
|
||||
"node3"
|
||||
]
|
||||
"nodes": [
|
||||
"node1",
|
||||
"node2",
|
||||
"node3"
|
||||
]
|
||||
}
|
||||
|
@ -1,42 +1,42 @@
|
||||
{
|
||||
"aggregates": [
|
||||
{
|
||||
"name": "test_aggregate1",
|
||||
"uuid": "7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||
"links": [
|
||||
{
|
||||
"href": "http://10.3.150.17:6688/v1/aggregates/7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||
"rel": "self"
|
||||
"aggregates": [
|
||||
{
|
||||
"name": "test_aggregate1",
|
||||
"uuid": "7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||
"links": [
|
||||
{
|
||||
"href": "http://10.3.150.17:6688/v1/aggregates/7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||
"rel": "self"
|
||||
},
|
||||
{
|
||||
"href": "http://10.3.150.17:6688/aggregates/7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||
"rel": "bookmark"
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"k1": "v1"
|
||||
},
|
||||
{
|
||||
"href": "http://10.3.150.17:6688/aggregates/7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||
"rel": "bookmark"
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"k1": "v1"
|
||||
"created_at": "2016-09-27T02:37:21.966342+00:00",
|
||||
"updated_at": null
|
||||
},
|
||||
"created_at": "2016-09-27T02:37:21.966342+00:00",
|
||||
"updated_at": null
|
||||
},
|
||||
{
|
||||
"name": "test_aggregate2",
|
||||
"uuid": "7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||
"links": [
|
||||
{
|
||||
"href": "http://10.3.150.17:6688/v1/aggregates/7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||
"rel": "self"
|
||||
{
|
||||
"name": "test_aggregate2",
|
||||
"uuid": "7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||
"links": [
|
||||
{
|
||||
"href": "http://10.3.150.17:6688/v1/aggregates/7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||
"rel": "self"
|
||||
},
|
||||
{
|
||||
"href": "http://10.3.150.17:6688/aggregates/7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||
"rel": "bookmark"
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"k2": "v2"
|
||||
},
|
||||
{
|
||||
"href": "http://10.3.150.17:6688/aggregates/7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||
"rel": "bookmark"
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"k2": "v2"
|
||||
},
|
||||
"created_at": "2016-09-27T02:37:21.966342+00:00",
|
||||
"updated_at": null
|
||||
}
|
||||
]
|
||||
"created_at": "2016-09-27T02:37:21.966342+00:00",
|
||||
"updated_at": null
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"availability_zones": [
|
||||
"az1",
|
||||
"az2",
|
||||
"az3"
|
||||
]
|
||||
"availability_zones": [
|
||||
"az1",
|
||||
"az2",
|
||||
"az3"
|
||||
]
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
{
|
||||
"tenant_id": "fake_tenant"
|
||||
"tenant_id": "fake_tenant"
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"flavor_access": [
|
||||
"tenant1",
|
||||
"tenant2",
|
||||
"tenant3"
|
||||
]
|
||||
"flavor_access": [
|
||||
"tenant1",
|
||||
"tenant2",
|
||||
"tenant3"
|
||||
]
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
[
|
||||
{
|
||||
"op": "replace",
|
||||
"path": "/name",
|
||||
"value": "updated_flavor"
|
||||
},
|
||||
{
|
||||
"op": "replace",
|
||||
"path": "/is_public",
|
||||
"value": false
|
||||
}
|
||||
{
|
||||
"op": "replace",
|
||||
"path": "/name",
|
||||
"value": "updated_flavor"
|
||||
},
|
||||
{
|
||||
"op": "replace",
|
||||
"path": "/is_public",
|
||||
"value": false
|
||||
}
|
||||
]
|
||||
|
@ -1,54 +1,54 @@
|
||||
{
|
||||
"flavors": [
|
||||
{
|
||||
"description": "this is a test flavor1",
|
||||
"links": [
|
||||
"flavors": [
|
||||
{
|
||||
"href": "http://10.3.150.17:6688/v1/flavors/2ce3df6b-f571-42e8-b6a8-8f7fa1c019ce",
|
||||
"rel": "self"
|
||||
"description": "this is a test flavor1",
|
||||
"links": [
|
||||
{
|
||||
"href": "http://10.3.150.17:6688/v1/flavors/2ce3df6b-f571-42e8-b6a8-8f7fa1c019ce",
|
||||
"rel": "self"
|
||||
},
|
||||
{
|
||||
"href": "http://10.3.150.17:6688/flavors/2ce3df6b-f571-42e8-b6a8-8f7fa1c019ce",
|
||||
"rel": "bookmark"
|
||||
}
|
||||
],
|
||||
"resources": {
|
||||
"CUSTOM_BAREMETAL_GOLD": 1
|
||||
},
|
||||
"resource_aggregates": {
|
||||
"high_mem": "true"
|
||||
},
|
||||
"created_at": "2016-09-22T03:21:57+00:00",
|
||||
"uuid": "2ce3df6b-f571-42e8-b6a8-8f7fa1c019ce",
|
||||
"updated_at": null,
|
||||
"is_public": true,
|
||||
"disabled": false,
|
||||
"name": "new_test1"
|
||||
},
|
||||
{
|
||||
"href": "http://10.3.150.17:6688/flavors/2ce3df6b-f571-42e8-b6a8-8f7fa1c019ce",
|
||||
"rel": "bookmark"
|
||||
"description": "this is a test flavor2",
|
||||
"links": [
|
||||
{
|
||||
"href": "http://10.3.150.17:6688/v1/flavors/7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||
"rel": "self"
|
||||
},
|
||||
{
|
||||
"href": "http://10.3.150.17:6688/flavors/7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||
"rel": "bookmark"
|
||||
}
|
||||
],
|
||||
"resources": {
|
||||
"CUSTOM_BAREMETAL_GOLD": 1
|
||||
},
|
||||
"resource_aggregates": {
|
||||
"high_mem": "true"
|
||||
},
|
||||
"created_at": "2016-09-27T02:37:21+00:00",
|
||||
"uuid": "7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||
"updated_at": null,
|
||||
"is_public": true,
|
||||
"disabled": false,
|
||||
"name": "new_test2"
|
||||
}
|
||||
],
|
||||
"resources": {
|
||||
"CUSTOM_BAREMETAL_GOLD": 1
|
||||
},
|
||||
"resource_aggregates": {
|
||||
"high_mem": "true"
|
||||
},
|
||||
"created_at": "2016-09-22T03:21:57+00:00",
|
||||
"uuid": "2ce3df6b-f571-42e8-b6a8-8f7fa1c019ce",
|
||||
"updated_at": null,
|
||||
"is_public": true,
|
||||
"disabled": false,
|
||||
"name": "new_test1"
|
||||
},
|
||||
{
|
||||
"description": "this is a test flavor2",
|
||||
"links": [
|
||||
{
|
||||
"href": "http://10.3.150.17:6688/v1/flavors/7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||
"rel": "self"
|
||||
},
|
||||
{
|
||||
"href": "http://10.3.150.17:6688/flavors/7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||
"rel": "bookmark"
|
||||
}
|
||||
],
|
||||
"resources": {
|
||||
"CUSTOM_BAREMETAL_GOLD": 1
|
||||
},
|
||||
"resource_aggregates": {
|
||||
"high_mem": "true"
|
||||
},
|
||||
"created_at": "2016-09-27T02:37:21+00:00",
|
||||
"uuid": "7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||
"updated_at": null,
|
||||
"is_public": true,
|
||||
"disabled": false,
|
||||
"name": "new_test2"
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
|
@ -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",
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"nodes" : [
|
||||
"node-0",
|
||||
"node-1",
|
||||
"node-2"
|
||||
]
|
||||
"nodes": [
|
||||
"node-0",
|
||||
"node-1",
|
||||
"node-2"
|
||||
]
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"protocol": "serial",
|
||||
"type": "shellinabox"
|
||||
"protocol": "serial",
|
||||
"type": "shellinabox"
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"protocol": "serial",
|
||||
"type": "shellinabox",
|
||||
"url": "http://127.0.0.1:8866/?token=b4f5cb4a-8b01-40ea-ae46-67f0db4969b3"
|
||||
"protocol": "serial",
|
||||
"type": "shellinabox",
|
||||
"url": "http://127.0.0.1:8866/?token=b4f5cb4a-8b01-40ea-ae46-67f0db4969b3"
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
@ -1,12 +1,12 @@
|
||||
[
|
||||
{
|
||||
"op": "replace",
|
||||
"path": "/metadata/k1",
|
||||
"value": "v1"
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/metadata/k2",
|
||||
"value": "v2"
|
||||
}
|
||||
{
|
||||
"op": "replace",
|
||||
"path": "/metadata/k1",
|
||||
"value": "v1"
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/metadata/k2",
|
||||
"value": "v2"
|
||||
}
|
||||
]
|
||||
|
@ -32,7 +32,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"partitions" : {
|
||||
"partitions": {
|
||||
"root_gb": 100,
|
||||
"ephemeral_gb": 400,
|
||||
"swap_mb": 40960
|
||||
|
Loading…
Reference in New Issue
Block a user