creating a network using Rest API

I am trying to create a new network using the Rest Api. This network Is for VM and needs to be part of a network label. Here is that Jason I am using. The network gets created but is not part of the network label. When I try to create it using the network labels href I get an error that the user is not authorized to create than resource label even though I am logged as the admin https://xxxxxx.com/ovirt-engine/api/networks { "data_center": { "id":"7eb5bf2a-8729-11e9-96c7-00163e449339" }, "name":"D1-C1-763", "description":"Test network", "mtu":1472, "stp": false, "required":true, "usages":{ "usage":["vm"] }, "vlan":{"id":763}, "network_labels": { "network_label": [{"id": "C1-VLAN"}] } } when assigning a network label I do the following: https://xxxxxx.com/ovirt-engine/api/networks/bc493d18-e3d5-4072-b36d-a42a34a... { "Id": "C1-VLAN" } { "detail": "[User is not authorized to perform this action.]", "reason": "Operation Failed" }

I have finally succeeded in creating a logical network. Basically the steps are 1) create the network 2) associate the network to a cluster 3) assign a network label to that network
participants (1)
-
Pascal D