API & Integration

Reply
Highlighted

Getting all the permissions via WAPI

Adviser
Posts: 43
1729     1

I have been asked recently, how to get the permissions via WAPI:

 

1) All permissions

https://demo.se.infr.infoblox.com/wapi/v2.7/permission?_return_fields%2B=object

 

[
{
"_ref": "permission/b25lLmhpZXJfcnVsZSQuY29tLmluZm9ibG94LmRucy56b25lJC4uLi4uY29tLmluZm9ibG94Lm9uZS5yb2xlJEROUyBBZG1pbi4Smiley Very HappyNS%20Admin/WRITE",
"object": null,
"permission": "WRITE",
"resource_type": "VIEW",
"role": "DNS Admin"
},

...

{
"_ref": "permission/b25lLmhpZXJfcnVsZSQuY29tLmluZm9ibG94LmRucy5uZXR3b3JrJDEwLjEyOC4zMy4wLzI0LzAuLi5jb20uaW5mb2Jsb3gub25lLmFkbWluX2dyb3VwJC56b25lMnN1Ym5ldDEuZG5zLmhvc3RfYWRkcmVzcztpc19pcHY0PXRydWU:zone2subnet1/WRITE",
"group": "zone2subnet1",
"object": "network/ZG5zLm5ldHdvcmskMTAuMTI4LjMzLjAvMjQvMA:10.128.33.0/24/default",
"permission": "WRITE",
"resource_type": "HOST_ADDRESS"
},
{
"_ref": "permission/b25lLmhpZXJfcnVsZSQuY29tLmluZm9ibG94LmRucy56b25lJC4uLi4uY29tLmluZm9ibG94Lm9uZS5hZG1pbl9ncm91cCQuem9uZTJzdWJuZXQxLmRucy56b25l:zone2subnet1/DENY",
"group": "zone2subnet1",
"object": null,
"permission": "DENY",
"resource_type": "ZONE"
}
]

 

2) Permission on a given object

https://demo.se.infr.infoblox.com/wapi/v2.7/permission?_return_fields%2B=object&object="network/ZG5zLm5ldHdvcmskMTAuMTI4LjMzLjAvMjQvMA:10.128.33.0/24/default"

 

 

3) Permission for a given group

https://demo.se.infr.infoblox.com/wapi/v2.7/permission?_return_fields%2B=object&group=zone2subnet1

 

4) Permissions for a type of permission (READ, WRITE, DENY)

https://demo.se.infr.infoblox.com/wapi/v2.7/permission?_return_fields%2B=object&permission=DENY

Check out our new Tech docs website at http://docs.infobox.com for latest documentation on Infoblox products.
Showing results for 
Search instead for 
Do you mean 

Recommended for You