Reply

Fetching top level containers

New Member
Posts: 2
1499     0

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

New Member
Posts: 1
1499     0

 

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

New Member
Posts: 2
1500     0

That was pretty obvious to me as well Smiley Wink just ...

{ "Error": "AdmConProtoError: Bad value for network_container: '/'",
  "code": "Client.Ibap.Proto",
  "text": "Bad value for network_container: '/'"
}
Showing results for 
Search instead for 
Did you mean: 

Recommended for You