diff --git a/restapi-doc/restapi-doc/api-ref/src/docbkx/ch_sysinv-api-v1.xml b/restapi-doc/restapi-doc/api-ref/src/docbkx/ch_sysinv-api-v1.xml index fd01cec26..3983dfbf0 100644 --- a/restapi-doc/restapi-doc/api-ref/src/docbkx/ch_sysinv-api-v1.xml +++ b/restapi-doc/restapi-doc/api-ref/src/docbkx/ch_sysinv-api-v1.xml @@ -1358,4 +1358,26 @@ configuration entity for the system. + + + + +
+ Labels + + + + + + + + + + + +
+ diff --git a/restapi-doc/restapi-doc/api-ref/src/wadls/sysinv-api/v1/api_samples/host_label_assign-request.json b/restapi-doc/restapi-doc/api-ref/src/wadls/sysinv-api/v1/api_samples/host_label_assign-request.json new file mode 100644 index 000000000..7afc33d53 --- /dev/null +++ b/restapi-doc/restapi-doc/api-ref/src/wadls/sysinv-api/v1/api_samples/host_label_assign-request.json @@ -0,0 +1,4 @@ +{ + "key1": "value1", + "key2": "value2" +} diff --git a/restapi-doc/restapi-doc/api-ref/src/wadls/sysinv-api/v1/api_samples/host_label_list-response.json b/restapi-doc/restapi-doc/api-ref/src/wadls/sysinv-api/v1/api_samples/host_label_list-response.json new file mode 100644 index 000000000..ba30258d2 --- /dev/null +++ b/restapi-doc/restapi-doc/api-ref/src/wadls/sysinv-api/v1/api_samples/host_label_list-response.json @@ -0,0 +1,14 @@ +{ + "labels": [ + { + "uuid": "a7d37730-c58e-4b18-9046-6bd0f4fe03a8", + "host_uuid": "42e30882-ab1a-41b0-9f65-696f6d804888", + "label": "key1=value1" + }, + { + "uuid": "c9d3aca9-d360-406c-80c7-a059404471c1", + "host_uuid": "42e30882-ab1a-41b0-9f65-696f6d804888", + "label": "key2=value2" + } + ] +} diff --git a/restapi-doc/restapi-doc/api-ref/src/wadls/sysinv-api/v1/common.ent b/restapi-doc/restapi-doc/api-ref/src/wadls/sysinv-api/v1/common.ent index 805bb9a24..87418597c 100644 --- a/restapi-doc/restapi-doc/api-ref/src/wadls/sysinv-api/v1/common.ent +++ b/restapi-doc/restapi-doc/api-ref/src/wadls/sysinv-api/v1/common.ent @@ -3952,6 +3952,32 @@ '> + + + + + The universally unique identifier for this object. + + + + + The uuid for the host. + + + + + The label provisioned for the host. + + + '> + GET'> PUT'> diff --git a/restapi-doc/restapi-doc/api-ref/src/wadls/sysinv-api/v1/sysinv-api-v1.wadl b/restapi-doc/restapi-doc/api-ref/src/wadls/sysinv-api/v1/sysinv-api-v1.wadl index f9450a48d..5c4a9f821 100644 --- a/restapi-doc/restapi-doc/api-ref/src/wadls/sysinv-api/v1/sysinv-api-v1.wadl +++ b/restapi-doc/restapi-doc/api-ref/src/wadls/sysinv-api/v1/sysinv-api-v1.wadl @@ -199,6 +199,11 @@ SPDX-License-Identifier: Apache-2.0 + + + + + @@ -1003,6 +1008,26 @@ SPDX-License-Identifier: Apache-2.0 + + + + + The unique identifier of an existing host. + + + + + + + + + + The unique identifier of an existing host label. + + + + + @@ -7263,4 +7288,75 @@ OAM Controller-1 IP Address. &commonFaults; &getFaults; + + + + + + + + Assign label to a host. + + + + + + + + This parameter specifies the label key value pairs. + + + + + + + + + + + + + + + + + &commonFaults; &postPutFaults; + + + + + List host label. + + + + + + &labelListParameters; + + + + + + + + &commonFaults; &getFaults; + + + + + Remove label from a host. + + + + + + + + +