|
210 | 210 | zoneCount: function (data) { |
211 | 211 | $.ajax({ |
212 | 212 | url: createURL('listZones'), |
| 213 | + data: { |
| 214 | + listAll: true, |
| 215 | + page: 1, |
| 216 | + pagesize: 1 //specifying pagesize as 1 because we don't need any embedded objects to be returned here. The only thing we need from API response is "count" property. |
| 217 | + }, |
213 | 218 | success: function (json) { |
214 | 219 | dataFns.podCount($.extend(data, { |
215 | 220 | zoneCount: json.listzonesresponse.count ? json.listzonesresponse.count: 0, |
|
223 | 228 | $.ajax({ |
224 | 229 | url: createURL('listPods'), |
225 | 230 | data: { |
| 231 | + listAll: true, |
226 | 232 | page: 1, |
227 | 233 | pagesize: 1 //specifying pagesize as 1 because we don't need any embedded objects to be returned here. The only thing we need from API response is "count" property. |
228 | 234 | }, |
|
238 | 244 | $.ajax({ |
239 | 245 | url: createURL('listClusters'), |
240 | 246 | data: { |
| 247 | + listAll: true, |
241 | 248 | page: 1, |
242 | 249 | pagesize: 1 //specifying pagesize as 1 because we don't need any embedded objects to be returned here. The only thing we need from API response is "count" property. |
243 | 250 | }, |
|
261 | 268 | hostCount: function (data) { |
262 | 269 | var data2 = { |
263 | 270 | type: 'routing', |
| 271 | + listAll: true, |
264 | 272 | page: 1, |
265 | 273 | pagesize: 1 //specifying pagesize as 1 because we don't need any embedded objects to be returned here. The only thing we need from API response is "count" property. |
266 | 274 | }; |
|
277 | 285 |
|
278 | 286 | primaryStorageCount: function (data) { |
279 | 287 | var data2 = { |
| 288 | + listAll: true, |
280 | 289 | page: 1, |
281 | 290 | pagesize: 1 //specifying pagesize as 1 because we don't need any embedded objects to be returned here. The only thing we need from API response is "count" property. |
282 | 291 | }; |
|
294 | 303 | secondaryStorageCount: function (data) { |
295 | 304 | var data2 = { |
296 | 305 | type: 'SecondaryStorage', |
| 306 | + listAll: true, |
297 | 307 | page: 1, |
298 | 308 | pagesize: 1 //specifying pagesize as 1 because we don't need any embedded objects to be returned here. The only thing we need from API response is "count" property. |
299 | 309 | }; |
|
312 | 322 | $.ajax({ |
313 | 323 | url: createURL('listSystemVms'), |
314 | 324 | data: { |
| 325 | + listAll: true, |
315 | 326 | page: 1, |
316 | 327 | pagesize: 1 //specifying pagesize as 1 because we don't need any embedded objects to be returned here. The only thing we need from API response is "count" property. |
317 | 328 | }, |
|
325 | 336 |
|
326 | 337 | virtualRouterCount: function (data) { |
327 | 338 | var data2 = { |
| 339 | + listAll: true, |
328 | 340 | page: 1, |
329 | 341 | pagesize: 1 //specifying pagesize as 1 because we don't need any embedded objects to be returned here. The only thing we need from API response is "count" property. |
330 | 342 | }; |
|
0 commit comments