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",
|
"op": "replace",
|
||||||
"path": "/metadata/k1",
|
"path": "/metadata/k1",
|
||||||
"value": "v2"
|
"value": "v2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/metadata/k2",
|
"path": "/metadata/k2",
|
||||||
"value": "v2"
|
"value": "v2"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"nodes": [
|
"nodes": [
|
||||||
"node1",
|
"node1",
|
||||||
"node2",
|
"node2",
|
||||||
"node3"
|
"node3"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,42 +1,42 @@
|
|||||||
{
|
{
|
||||||
"aggregates": [
|
"aggregates": [
|
||||||
{
|
{
|
||||||
"name": "test_aggregate1",
|
"name": "test_aggregate1",
|
||||||
"uuid": "7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
"uuid": "7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
"href": "http://10.3.150.17:6688/v1/aggregates/7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
"href": "http://10.3.150.17:6688/v1/aggregates/7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||||
"rel": "self"
|
"rel": "self"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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",
|
||||||
"href": "http://10.3.150.17:6688/aggregates/7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
"updated_at": null
|
||||||
"rel": "bookmark"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"k1": "v1"
|
|
||||||
},
|
},
|
||||||
"created_at": "2016-09-27T02:37:21.966342+00:00",
|
{
|
||||||
"updated_at": null
|
"name": "test_aggregate2",
|
||||||
},
|
"uuid": "7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||||
{
|
"links": [
|
||||||
"name": "test_aggregate2",
|
{
|
||||||
"uuid": "7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
"href": "http://10.3.150.17:6688/v1/aggregates/7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
||||||
"links": [
|
"rel": "self"
|
||||||
{
|
},
|
||||||
"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"
|
||||||
},
|
},
|
||||||
{
|
"created_at": "2016-09-27T02:37:21.966342+00:00",
|
||||||
"href": "http://10.3.150.17:6688/aggregates/7de2859d-ec6d-42c7-bb86-9d630ba5ac94",
|
"updated_at": null
|
||||||
"rel": "bookmark"
|
}
|
||||||
}
|
]
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"k2": "v2"
|
|
||||||
},
|
|
||||||
"created_at": "2016-09-27T02:37:21.966342+00:00",
|
|
||||||
"updated_at": null
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"availability_zones": [
|
"availability_zones": [
|
||||||
"az1",
|
"az1",
|
||||||
"az2",
|
"az2",
|
||||||
"az3"
|
"az3"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"tenant_id": "fake_tenant"
|
"tenant_id": "fake_tenant"
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"flavor_access": [
|
"flavor_access": [
|
||||||
"tenant1",
|
"tenant1",
|
||||||
"tenant2",
|
"tenant2",
|
||||||
"tenant3"
|
"tenant3"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"op": "replace",
|
"op": "replace",
|
||||||
"path": "/name",
|
"path": "/name",
|
||||||
"value": "updated_flavor"
|
"value": "updated_flavor"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "replace",
|
"op": "replace",
|
||||||
"path": "/is_public",
|
"path": "/is_public",
|
||||||
"value": false
|
"value": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -1,54 +1,54 @@
|
|||||||
{
|
{
|
||||||
"flavors": [
|
"flavors": [
|
||||||
{
|
|
||||||
"description": "this is a test flavor1",
|
|
||||||
"links": [
|
|
||||||
{
|
{
|
||||||
"href": "http://10.3.150.17:6688/v1/flavors/2ce3df6b-f571-42e8-b6a8-8f7fa1c019ce",
|
"description": "this is a test flavor1",
|
||||||
"rel": "self"
|
"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",
|
"description": "this is a test flavor2",
|
||||||
"rel": "bookmark"
|
"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",
|
"name": "test_manageable_server",
|
||||||
"description": "This is a manageable server",
|
"description": "This is a manageable server",
|
||||||
"metadata" : {
|
"metadata": {
|
||||||
"My Server Name" : "Apache1"
|
"My Server Name": "Apache1"
|
||||||
},
|
},
|
||||||
"node_uuid": "aacdbd78-d670-409e-95aa-ecfcfb94fee2"
|
"node_uuid": "aacdbd78-d670-409e-95aa-ecfcfb94fee2"
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"description": "This is a manageable server",
|
"description": "This is a manageable server",
|
||||||
"flavor_uuid": null,
|
"flavor_uuid": null,
|
||||||
"image_uuid": "efe0a06f-ca95-4808-b41e-9f55b9c5eb98",
|
"image_uuid": "efe0a06f-ca95-4808-b41e-9f55b9c5eb98",
|
||||||
"availability_zone" : null,
|
"availability_zone": null,
|
||||||
"status": "active",
|
"status": "active",
|
||||||
"power_state": "on",
|
"power_state": "on",
|
||||||
"links": [
|
"links": [
|
||||||
@ -25,7 +25,7 @@
|
|||||||
"user_id": "a6205fcab03d4a289251f420456b1289",
|
"user_id": "a6205fcab03d4a289251f420456b1289",
|
||||||
"addresses": [],
|
"addresses": [],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"My Server Name" : "Apache1"
|
"My Server Name": "Apache1"
|
||||||
},
|
},
|
||||||
"key_name": null,
|
"key_name": null,
|
||||||
"node_uuid": "aacdbd78-d670-409e-95aa-ecfcfb94fee2",
|
"node_uuid": "aacdbd78-d670-409e-95aa-ecfcfb94fee2",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"nodes" : [
|
"nodes": [
|
||||||
"node-0",
|
"node-0",
|
||||||
"node-1",
|
"node-1",
|
||||||
"node-2"
|
"node-2"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"protocol": "serial",
|
"protocol": "serial",
|
||||||
"type": "shellinabox"
|
"type": "shellinabox"
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"protocol": "serial",
|
"protocol": "serial",
|
||||||
"type": "shellinabox",
|
"type": "shellinabox",
|
||||||
"url": "http://127.0.0.1:8866/?token=b4f5cb4a-8b01-40ea-ae46-67f0db4969b3"
|
"url": "http://127.0.0.1:8866/?token=b4f5cb4a-8b01-40ea-ae46-67f0db4969b3"
|
||||||
}
|
}
|
||||||
|
@ -13,10 +13,10 @@
|
|||||||
"net_id": "8e8ceb07-4641-4188-9b22-840755e92ee2"
|
"net_id": "8e8ceb07-4641-4188-9b22-840755e92ee2"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata" : {
|
"metadata": {
|
||||||
"My Server Name" : "Apache1"
|
"My Server Name": "Apache1"
|
||||||
},
|
},
|
||||||
"partitions" : {
|
"partitions": {
|
||||||
"root_gb": 100,
|
"root_gb": 100,
|
||||||
"ephemeral_gb": 400,
|
"ephemeral_gb": 400,
|
||||||
"swap_mb": 40960
|
"swap_mb": 40960
|
||||||
@ -30,5 +30,7 @@
|
|||||||
"user_data": "IyEvYmluL2Jhc2gKL2Jpbi9zdQplY2hvICJJIGFtIGluIHlvdSEiCg==",
|
"user_data": "IyEvYmluL2Jhc2gKL2Jpbi9zdQplY2hvICJJIGFtIGluIHlvdSEiCg==",
|
||||||
"key_name": "test_key"
|
"key_name": "test_key"
|
||||||
},
|
},
|
||||||
"scheduler_hints": {"group": "group1"}
|
"scheduler_hints": {
|
||||||
|
"group": "group1"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"description": "this is a test server",
|
"description": "this is a test server",
|
||||||
"flavor_uuid": "0607b5f3-6111-424d-ba46-f5de39a6fa69",
|
"flavor_uuid": "0607b5f3-6111-424d-ba46-f5de39a6fa69",
|
||||||
"image_uuid": "efe0a06f-ca95-4808-b41e-9f55b9c5eb98",
|
"image_uuid": "efe0a06f-ca95-4808-b41e-9f55b9c5eb98",
|
||||||
"availability_zone" : "Beijing-01",
|
"availability_zone": "Beijing-01",
|
||||||
"status": "active",
|
"status": "active",
|
||||||
"power_state": "on",
|
"power_state": "on",
|
||||||
"links": [
|
"links": [
|
||||||
@ -25,12 +25,12 @@
|
|||||||
"project_id": "2f15c3524826465a9afbd150478b3b76",
|
"project_id": "2f15c3524826465a9afbd150478b3b76",
|
||||||
"user_id": "a6205fcab03d4a289251f420456b1289",
|
"user_id": "a6205fcab03d4a289251f420456b1289",
|
||||||
"addresses": {},
|
"addresses": {},
|
||||||
"partitions" : {
|
"partitions": {
|
||||||
"root_gb": 100,
|
"root_gb": 100,
|
||||||
"ephemeral_gb": 400,
|
"ephemeral_gb": 400,
|
||||||
"swap_mb": 40960
|
"swap_mb": 40960
|
||||||
},
|
},
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"My Server Name" : "Apache1"
|
"My Server Name": "Apache1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"server_type_uuid": "28708dff-283c-449e-9bfa-a48c93480c86",
|
"server_type_uuid": "28708dff-283c-449e-9bfa-a48c93480c86",
|
||||||
"name": "test_server",
|
"name": "test_server",
|
||||||
"addresses": {},
|
"addresses": {},
|
||||||
"partitions" : {
|
"partitions": {
|
||||||
"root_gb": 100,
|
"root_gb": 100,
|
||||||
"ephemeral_gb": 400,
|
"ephemeral_gb": 400,
|
||||||
"swap_mb": 40960
|
"swap_mb": 40960
|
||||||
@ -20,12 +20,12 @@
|
|||||||
"message": "fault message",
|
"message": "fault message",
|
||||||
"detail": "fault detail"
|
"detail": "fault detail"
|
||||||
},
|
},
|
||||||
"launched_at" : null,
|
"launched_at": null,
|
||||||
"affinity_zone": null,
|
"affinity_zone": null,
|
||||||
"updated_at": "2016-10-17T04:12:44+00:00",
|
"updated_at": "2016-10-17T04:12:44+00:00",
|
||||||
"user_id": "cdbf77d47f1d4d04ad9b7ff62b672467",
|
"user_id": "cdbf77d47f1d4d04ad9b7ff62b672467",
|
||||||
"uuid": "f978ef48-d4af-4dad-beec-e6174309bc71",
|
"uuid": "f978ef48-d4af-4dad-beec-e6174309bc71",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"My Server Name" : "Apache1"
|
"My Server Name": "Apache1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"partitions" : {
|
"partitions": {
|
||||||
"root_gb": 100,
|
"root_gb": 100,
|
||||||
"ephemeral_gb": 400,
|
"ephemeral_gb": 400,
|
||||||
"swap_mb": 40960
|
"swap_mb": 40960
|
||||||
@ -32,12 +32,12 @@
|
|||||||
"locked": false,
|
"locked": false,
|
||||||
"project_id": "c18e8a1a870d4c08a0b51ced6e0b6459",
|
"project_id": "c18e8a1a870d4c08a0b51ced6e0b6459",
|
||||||
"status": "building",
|
"status": "building",
|
||||||
"launched_at" : null,
|
"launched_at": null,
|
||||||
"affinity_zone": null,
|
"affinity_zone": null,
|
||||||
"updated_at": "2016-10-17T04:12:44+00:00",
|
"updated_at": "2016-10-17T04:12:44+00:00",
|
||||||
"user_id": "cdbf77d47f1d4d04ad9b7ff62b672467",
|
"user_id": "cdbf77d47f1d4d04ad9b7ff62b672467",
|
||||||
"uuid": "f978ef48-d4af-4dad-beec-e6174309bc71",
|
"uuid": "f978ef48-d4af-4dad-beec-e6174309bc71",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"My Server Name" : "Apache1"
|
"My Server Name": "Apache1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"partitions" : {
|
"partitions": {
|
||||||
"root_gb": 100,
|
"root_gb": 100,
|
||||||
"ephemeral_gb": 400,
|
"ephemeral_gb": 400,
|
||||||
"swap_mb": 40960
|
"swap_mb": 40960
|
||||||
@ -40,7 +40,7 @@
|
|||||||
"user_id": "cdbf77d47f1d4d04ad9b7ff62b672467",
|
"user_id": "cdbf77d47f1d4d04ad9b7ff62b672467",
|
||||||
"uuid": "f978ef48-d4af-4dad-beec-e6174309bc71",
|
"uuid": "f978ef48-d4af-4dad-beec-e6174309bc71",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"My Server Name" : "Apache1"
|
"My Server Name": "Apache1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"op": "replace",
|
"op": "replace",
|
||||||
"path": "/metadata/k1",
|
"path": "/metadata/k1",
|
||||||
"value": "v1"
|
"value": "v1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/metadata/k2",
|
"path": "/metadata/k2",
|
||||||
"value": "v2"
|
"value": "v2"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"partitions" : {
|
"partitions": {
|
||||||
"root_gb": 100,
|
"root_gb": 100,
|
||||||
"ephemeral_gb": 400,
|
"ephemeral_gb": 400,
|
||||||
"swap_mb": 40960
|
"swap_mb": 40960
|
||||||
|
Loading…
x
Reference in New Issue
Block a user