Reply

POST Operation Error for member:dhcpproperties

New Member
Posts: 3
812     0

I'm encountering an error when trying to create DHCP properties for members via the Infoblox API. My request involves creating a network with specific options and enabling DHCP on two members. Here's the curl command I used:

        curl -X POST -u $USER:$PASSWORD -H "Content-Type: application/json" -d '[
{
    "method": "POST",
    "object": "network",
    "data": {
      "network": "10.133.168.0/24",
      "options": [
        {"name": "routers", "value": "10.133.168.254"},
        {"name": "domain-name-servers", "value": "10.126.50.5,10.110.50.5"},
        {"name": "domain-name", "value": "corpad.adbkng.com"},
        {"name": "vendor-encapsulated-options", "value": "31:30:2e:31:36:34:2e:30:2e:31"},
        {"name": "domain-search", "value": "\"other02.local\",\"other02.local\",\"voice.mydomain.com\""},
        {"name": "bootfile-name", "value": "smsboot\\x64\\wdsmgfw.efi"}
      ]
    }
},
{
    "method": "POST",
    "object": "member:dhcpproperties",
    "data": {
      "member_name": "member01.mydomain.com",
      "enable_dhcp": true
    }
},
{
    "method": "POST",
    "object": "member:dhcpproperties",
    "data": {
      "member_name": "member02.mydomain.com",
      "enable_dhcp": true
    }
}
]' --insecure "https://grid-01.mydomain.com/wapi/v2.10/request"
        
    

However, I am receiving the following error:

        {
    "Error": "AdmConProtoError: Operation create not allowed for member:dhcpproperties",
    "code": "Client.Ibap.Proto",
    "text": "Operation create not allowed for member:dhcpproperties"
}
        
    

Can anyone help me understand why I am getting this error and how to resolve it?

Additionally, once the network is successfully created and associated with the members, I would like to assign this network range to IPv4 DHCP failover associations already configured.

I've opened a ticket with support, but they indicated that members need to have members assigned before creating a range. The network would have to have a member configured.

Can anyone provide guidance on how to accomplish this?

Thank you in advance for your help.

Re: POST Operation Error for member:dhcpproperties

New Member
Posts: 3
812     0

It seems I have found the answer to assigning members to IPv4 networks, using this curl command.

 

curl -X POST -u $USER:$PASSWORD -H "Content-Type: application/json" -d '{
"network": "10.133.171.32/29",
"members": [
{
"_struct": "dhcpmember",
"name": "member01.mydomain.com",
"ipv4addr": "10.110.50.5"
},
{
"_struct": "dhcpmember",
"name": "member02.mydomain.com",
"ipv4addr": "10.126.50.5"
}
],
"extattrs": {
"Function": {"value": "FUN"},
"Owner": {"value": "Network Team"},
"Site": {"value": "SITE"},
},
"options": [
{"name": "routers", "value": "10.133.171.38"},
{"name": "domain-name-servers", "value": "10.126.50.5,10.110.50.5"},
{"name": "domain-name", "value": "corpad.adbkng.com"},
{"name": "vendor-encapsulated-options", "value": "31:30:2e:31:36:34:2e:30:2e:31"},
{"name": "domain-search", "value": "\"other02.local\",\"other02.local\",\"voice.mydomain.com\""},
{"name": "bootfile-name", "value": "smsboot\\\\x64\\\\wdsmgfw.efi"}
]
}
' --insecure "https://lhr4-corpibloxgd-01.mydomain.com/wapi/v2.10/network"

But how do I assign this network range to IPv4 DHCP failovers ?

 

Re: POST Operation Error for member:dhcpproperties

New Member
Posts: 1
812     0

Hi,

 

You first need to create an IPv4 range within the network. The IPv4 range can be assigned to a DHCP fail-over asscocation

 

good luck

Re: POST Operation Error for member:dhcpproperties

New Member
Posts: 3
812     0

Thank you PdeHann - I found it also all documented here too https://YOURGRID.com/wapidoc/objects/range.html?highlight=failover_assoc#

Showing results for 
Search instead for 
Did you mean: 

Recommended for You