28a399a13c
This commit does several things, which were just easier to do together. - Adds a new "misc" page describing the /v1/lookup and /v1/heartbeat resources. - Adds descriptions of the node.resource_class and node.network_interface fields that were introduced into the API but not into the documentation. - Introduces a new script, api-ref/regenerate-samples.sh, which can be used with Ironic to automate the generation of most of the sample files used in the api-ref documententation. - Corrects several errors in the sample JSON files that rendered errors when using them with curl for POST, PUT, or PATCH. - Uses the aforementioned regenerate-samples.sh script to regenerate most of the JSON result samples, ensuring that they are all up to date with the v1.22 API microversion. - Removes a few old/incorrect "Error Code" listings. - Updates the index page to remove extraneous wording. Change-Id: I764cbb43be15f05ba681de6ce1be1ae7c022173d
30 lines
813 B
JSON
30 lines
813 B
JSON
{
|
|
"ports": [
|
|
{
|
|
"address": "22:22:22:22:22:22",
|
|
"created_at": "2016-08-18T22:28:49.946416+00:00",
|
|
"extra": {},
|
|
"internal_info": {},
|
|
"links": [
|
|
{
|
|
"href": "http://127.0.0.1:6385/v1/ports/d2b30520-907d-46c8-bfee-c5586e6fb3a1",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://127.0.0.1:6385/ports/d2b30520-907d-46c8-bfee-c5586e6fb3a1",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"local_link_connection": {
|
|
"port_id": "Ethernet3/1",
|
|
"switch_id": "0a:1b:2c:3d:4e:5f",
|
|
"switch_info": "switch1"
|
|
},
|
|
"node_uuid": "6d85703a-565d-469a-96ce-30b6de53079d",
|
|
"pxe_enabled": true,
|
|
"updated_at": "2016-08-18T22:28:50.148137+00:00",
|
|
"uuid": "d2b30520-907d-46c8-bfee-c5586e6fb3a1"
|
|
}
|
|
]
|
|
}
|