Method: OvirtSDK4::NetworkLabelsService#add
- Defined in:
- lib/ovirtsdk4/services.rb
#add(label, opts = {}) ⇒ NetworkLabel
Attaches label to logical network.
You can attach labels to a logical network to automate the association of that logical network with physical host network interfaces to which the same label has been attached.
For example, to attach the label mylabel to a logical network having id 123 send a request like this:
POST /ovirt-engine/api/networks/123/labels
With a request body like this:
<label id="mylabel"/>
15147 15148 15149 |
# File 'lib/ovirtsdk4/services.rb', line 15147 def add(label, opts = {}) internal_add(label, NetworkLabel, ADD, opts) end |