Question

/v4/Kubernetes/Applications returns less than what I have in webconsole

  • 19 October 2023
  • 1 reply
  • 15 views

Badge +2

Hello,

In my WebConsole of CommVault, we have 4712 Kubernates applications.
So, in Databricks, I’ve written this code

applicationCount is 5757.
Now, the json returned is made from 2 keys

  1. applicationCount that is an int
  2. applications  that is a list of dictionaries

so, in json_kubernates I should have 5757 dictionaries, instead I’ve got 100.
From API documentation, there is no pagination and about the user we tested it between master user and my user they can see the same clients. 

Can you help me in understanding why it is doing that?


1 reply

Badge +2

Found the solution.
In route /v4/kubernates/application you have to add ‘pagingInfo’ property in headers, if you don’t do it, you’re gonna receive only a part of all the kubernates application.

So the headers becomes :

headers = {
'Accept': 'application/json',
'Content-Type': 'application/json',
'Authtoken': <accessToken>,
'PagingInfo':'0,50000' #or max number than what you have.
}

and it’s not written in documentation.

Reply