Reply
Highlighted

Create Host needs permission to the Network?

RWhitney
Techie
Posts: 4
2606     0

If I am just creating Host records in DNS via the REST API, do I need permission to the Network?

Request:
[2013-11-26 11:36:03.631] [I] Request Content: { "ipv4addrs":[{"configure_for_dhcp": true,"ipv4addr": "10.163.16.17","mac": "00:00:00:00:00:00" }],"name": "DN5-A-000047.cloud.test.com","view": "default"}
[2013-11-26 11:36:03.632] [I] Request: DynamicWrapper (Instance) : [RESTRequest]-[class com.vmware.o11n.plugin.rest.Request] -- VALUE : com.vmware.o11n.plugin.rest.Request@76ea7aa5
[2013-11-26 11:36:03.634] [I] Request URL: https://10.25.7.31/wapi/v1.0/record:host

Error:
[2013-11-26 11:36:03.744] [I] Status code: 400
[2013-11-26 11:36:03.747] [I] Content as string: { "Error": "AdmConDataError: None (IBDataConflictError: IB.Data.Conflict:Write permission for the network '10.163.16.0/24/Test' is required for this operation.)",
  "code": "Client.Ibap.Data.Conflict",
  "text": "Write permission for the network '10.163.16.0/24/Test' is required for this operation."
}

 

Could this error be because I

RWhitney
Techie
Posts: 4
2607     0

Could this error be because I am submitting the dhcp=true and the mac? Should the request be just:

Request Content: { "ipv4addrs":[{"ipv4addr": "192.166.10.13"}],"name": "dn5-a-000098.test.pearson.com","view": "default"}

Network permissions required for DHCP

Adviser
Posts: 213
2607     0

Yes, you need permissions on the network IF you try to configure DHCP on the Host.  If you change the setting to "false" for DHCP, then you do not need permissions on the network.

Showing results for 
Search instead for 
Do you mean 

Recommended for You