THE GAME HAS CHANGED

Introducing Infoblox Universal DDI ManagementTM

Watch the launch to discover the new era of management for critical network services. Watch Now

API & Integration, DevOps,NetOps,SecOps

Reply

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

[ Edited ]
New Member
Posts: 2
1410     1

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
1410     1

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?

New Member
Posts: 2
1411     1

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