Forum Discussion

Jaycen's avatar
Jaycen
Icon for Joining the Conversation rankJoining the Conversation
22 days ago

Getting the DHCP Pools information via API

I need to get the informations under DHCP pools to monitor the percentages of each subnet per Site Socket. However, I am having issue when pulling the "dhcpPools" and saying that permission denied error. 

Is there a query for graphql that can call this such informations in CATO?

this is my query:

query dhcpPools($accountID: ID!, $siteId: ID!, $protoId: ID!, $search: String) {

dhcpPools(

accountID: $accountID

siteId: $siteId

protoId: $protoId

search: $search

) {

dhcpPools {

...DhcpPoolData

__typename

}

__typename

}

}

 

fragment DhcpPoolData on DhcpPool {

subnetRange {

...EntityData

__typename

}

dhcpRange {

...EntityData

__typename

}

allocatedIPs

availableIPs

__typename

}

 

fragment EntityData on Entity {

id

type

name

__typename

}

 

this is my variable:

{

"accountID": "2015",

"siteId": "105762",

"protoId": "1000000070",

"search": ""

}

2 Replies

    • Jaycen's avatar
      Jaycen
      Icon for Joining the Conversation rankJoining the Conversation

      Hi michaelsaw​ 

      Thank you for checking on this. Yes your are correct that there is no dhcp pool on API. However my requirement is to get the the percentage of used IPs on every sites under DHCP pools. Network range, Allocated IPs and Available IPs.