- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Fetching top level containers
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2023 12:27 AM
I was wondering if there is a way to fetch just top level network containers
the /wapi/vX/networkcontainer query returns for the top ones something like this
{ "_ref": "networkcontainer/abc:10.0.0.0/8/default", "comment": "comment", "network": "10.0.0.0/8", "network_container": "/", "network_view": "default" }
Unfortunatelly my attempts at filtering using network_container field failed - anyone aware of a value for network_container (or any other field for that matter) that I can use to get just those?
Thanks
Re: Fetching top level containers
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2023 11:13 PM
To fetch just the top-level network containers, you can try filtering the API response where the "network_container" field is set to "/".
Re: Fetching top level containers
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2023 11:56 PM
That was pretty obvious to me as well just ...
{ "Error": "AdmConProtoError: Bad value for network_container: '/'", "code": "Client.Ibap.Proto", "text": "Bad value for network_container: '/'" }