Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Need help with Create Network, other calls work ok
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 08:28 AM
1019     0
Hi, can't seem to create network (powershell, but regardless). Creating IP reservation works, so generally script works. Here are examples of working and not working:
Example of working: Set IP reservation on existing network: Invoking: https://infobloxapp.com/wapi/v2.9.7/fixedaddress?_return_fields%2B=ipv4addr,mac,name,comment Headers: Key: Content-Type Value: application/json Key: Authorization Value: Basic xxxxxxxxxxxxxxxxxxxxxxxxx Body: { "comment": "Added by Automation (C\u0026C)", "name": "DSTESTHOST", "mac": "00:00:00:00:00:00", "ipv4addr": "172.16.0.8" }
Response:
_ref : fixedaddress/ZG5zLmZpeGVkX2FkZHJlc3MkMTcyLjE2LjAuOC4wLi4:172.16.0.8/default
comment : Added by Automation (C&C)
ipv4addr : 172.16.0.8
mac : 00:00:00:00:00:00
name : DSTESTHOST
network_view : default
Example of NOT working:
Create New Network:
Invoking: https://infobloxapp.com/wapi/v2.9.7/network?_return_fields%2B=network&_return_as_object=1
Headers:
Key: Content-Type Value: application/json
Key: Authorization Value: Basic xxxxxxxxxxxxxxxxxxxxxxxx
Body: {
"comment": "new network",
"network": "10.7.128.0/24"
}
invoke-InfobloxAPI : The remote server returned an error: (400) Bad Request.
At \\cxxxxxxxx\d$\DSI_Automations\Modules\Infoblox_API.ps1:163 char:13
+ $response = invoke-InfobloxAPI -uri $uri -method POST -body $network ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-InfobloxAPI
Labels:
Re: Need help with Create Network, other calls work ok
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 11:56 AM
1019     0
Grid Manager 8.5.4 if it helps