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-a42a34a1a95b/networklabels
{ "Id": "C1-VLAN" }

{
  "detail": "[User is not authorized to perform this action.]",
  "reason": "Operation Failed"
}

_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/T7ZFOLKQNSCCWF7J34V3HRUURLE6J5BH/

Reply via email to