Are you interested in our Early Access Program (EAP)? This program allows you to preview code, test in your lab and provide feedback prior to General Availability (GA) release of all Infoblox products. If so, please click the link here.

API & Integration, DevOps,NetOps,SecOps

Reply

How to use Postman to modify ntp-servers option42 on a network?

[ Edited ]
Member
Posts: 2
449     0

I need to configure a NTP server on a large number of subnets, so I am planning to leverage Postman to achieve this, but I am having trouble to find the corrent URL.

 

Here is what I used. https://{{grid_master}}/wapi/v2.10.5/network?network={{subnet}}/default

 

and the body is:

"options": [
{
"name": "ntp-servers",
"num": 42,
"value": "{{nep-server}}",
"vendor_class": "DHCP"
}
]

 

but I got this error.

{
    "Error""AdmConProtoError: Unknown Content-Type: text/plain",
    "code""Client.Ibap.Proto.UnknownContentType",
    "text""Unknown Content-Type: text/plain"
}
 
Can someone help me on this? Thanks.
 
Leo

Re: How to use Postman to modify ntp-servers option42 on a network?

Superuser
Posts: 38
450     0

Hey Leo,

 

Your content type should be 'application/json'. In case of Postman when you pass the body as raw data make sure you select JSON from the dropdown at the end.

 

Screenshot 2023-02-27 at 9.59.34 PM.png

 

 

 

 

 

 

 

 

 

Shukran

Re: How to use Postman to modify ntp-servers option42 on a network?

Member
Posts: 2
450     0

Thanks, Shukran.

 

That fixed it. Is there a way to avoid of put _ref_ in the PUT request?

 

Leo

Showing results for 
Search instead for 
Did you mean: 

Recommended for You