The self-hosted documentation for network labels appears to be inaccurate.
https://{{ MY_DOMAIN }}/ovirt-engine/apidoc/#/services/network_labels/methods/add
The documentation asks the user to post to the following URI:
POST /ovirt-engine/api/networks/123/labels
However that results in a 404. The following URL should be posted to instead for a
successful response:
POST /ovirt-engine/api/networks/123/networklabels
I discovered the discrepancy when trying to curl loop automate adding networks to my
cluster, and resulted in 404s. The 'links' section of the specific network label
actually do contain the right URI to hit to get the proper label tagging:
"link": [
{
"href":
"/ovirt-engine/api/networks/929fec34-7a34-4c1b-9451-e6abf6733ac6/networklabels",
"rel": "networklabels"
},
{
"href":
"/ovirt-engine/api/networks/929fec34-7a34-4c1b-9451-e6abf6733ac6/permissions",
"rel": "permissions"
},
{
"href":
"/ovirt-engine/api/networks/929fec34-7a34-4c1b-9451-e6abf6733ac6/vnicprofiles",
"rel": "vnicprofiles"
}
]
The hosted documentation also has confusing information with networklabels being used in
the results of some requests, but this section here also just says 'labels':
https://ovirt.github.io/ovirt-engine-api-model/4.1/#services/network_labe...