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
68 lines
1.8 KiB
JSON
68 lines
1.8 KiB
JSON
{
|
|
"clean_step": {},
|
|
"console_enabled": false,
|
|
"created_at": "2016-08-18T22:28:48+00:00",
|
|
"driver": "fake",
|
|
"driver_info": {
|
|
"deploy_kernel": "http://127.0.0.1/images/kernel",
|
|
"deploy_ramdisk": "http://127.0.0.1/images/ramdisk",
|
|
"ipmi_password": "******",
|
|
"ipmi_username": "OPERATOR"
|
|
},
|
|
"driver_internal_info": {
|
|
"clean_steps": null
|
|
},
|
|
"extra": {},
|
|
"inspection_finished_at": null,
|
|
"inspection_started_at": null,
|
|
"instance_info": {},
|
|
"instance_uuid": null,
|
|
"last_error": null,
|
|
"links": [
|
|
{
|
|
"href": "http://127.0.0.1:6385/v1/nodes/6d85703a-565d-469a-96ce-30b6de53079d",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://127.0.0.1:6385/nodes/6d85703a-565d-469a-96ce-30b6de53079d",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"maintenance": true,
|
|
"maintenance_reason": "Replacing the hard drive",
|
|
"name": "test_node",
|
|
"network_interface": "flat",
|
|
"ports": [
|
|
{
|
|
"href": "http://127.0.0.1:6385/v1/nodes/6d85703a-565d-469a-96ce-30b6de53079d/ports",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://127.0.0.1:6385/nodes/6d85703a-565d-469a-96ce-30b6de53079d/ports",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"power_state": "power off",
|
|
"properties": {},
|
|
"provision_state": "available",
|
|
"provision_updated_at": "2016-08-18T22:28:49+00:00",
|
|
"raid_config": {},
|
|
"reservation": null,
|
|
"resource_class": null,
|
|
"states": [
|
|
{
|
|
"href": "http://127.0.0.1:6385/v1/nodes/6d85703a-565d-469a-96ce-30b6de53079d/states",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://127.0.0.1:6385/nodes/6d85703a-565d-469a-96ce-30b6de53079d/states",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"target_power_state": null,
|
|
"target_provision_state": null,
|
|
"target_raid_config": {},
|
|
"updated_at": "2016-08-18T22:28:50+00:00",
|
|
"uuid": "6d85703a-565d-469a-96ce-30b6de53079d"
|
|
}
|