Title: SL-API issue pagination of virtual machines with masks · Issue #52 · softlayer/softlayer-java · GitHub
Open Graph Title: SL-API issue pagination of virtual machines with masks · Issue #52 · softlayer/softlayer-java
X Title: SL-API issue pagination of virtual machines with masks · Issue #52 · softlayer/softlayer-java
Description: The issue we're facing is to retrieve the relational properties of a list of SoftLayer_Virtual_Guest using pagination. We use masks to get the relational properties like power state, os, datacenter data etc.... of a virtual machine as th...
Open Graph Description: The issue we're facing is to retrieve the relational properties of a list of SoftLayer_Virtual_Guest using pagination. We use masks to get the relational properties like power state, os, datacenter...
X Description: The issue we're facing is to retrieve the relational properties of a list of SoftLayer_Virtual_Guest using pagination. We use masks to get the relational properties like power state, os, datace...
Opengraph URL: https://github.com/softlayer/softlayer-java/issues/52
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SL-API issue pagination of virtual machines with masks","articleBody":"The issue we're facing is to retrieve the relational properties of a list of SoftLayer_Virtual_Guest using pagination. We use masks to get the relational properties like power state, os, datacenter data etc.... of a virtual machine as there are many vms in a particular account the api throws an out of memory error, the service.getObject method ignores pagination, so I used service.getVirtualGuests() which the pagination works but only brings the local properties of the vm, if I put a mask to get the relational properties in the service, service.getVirtualGuests() thows another error, one way I found to do this is use service.getVirtualGuests() to get the basic info and then use Guest.Service virtualGuestsService = Guest.service(client, guest.getId()); with a mask to get the relational properties for each vm in a loop, but this will generate thousands of api calls, so Im not sure if this is the best/correct approach, the best would be if I could use service.getVirtualGuests() with the mask to get the relational properties, attached is a sample code.\r\n[vm-pagination.txt](https://github.com/softlayer/softlayer-java/files/2013701/vm-pagination.txt)\r\n","author":{"url":"https://github.com/isrfig","@type":"Person","name":"isrfig"},"datePublished":"2018-05-17T15:03:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/52/softlayer-java/issues/52"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8cd50fe9-85f5-86b6-788b-fc116b66e13b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C13C:1B1778:B3470E:F4CDED:6971CCAD |
| html-safe-nonce | f9a76213bd304220a2d802061ae277f8e54228f461d873b416a17f713392164f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTNDOjFCMTc3ODpCMzQ3MEU6RjRDREVEOjY5NzFDQ0FEIiwidmlzaXRvcl9pZCI6IjI0OTg0MTQ4MzQ4Nzc1OTUzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d331c5b850bddca4e658d63652b3a154f4b458c2b1490e1450ee0745806a4fc7 |
| hovercard-subject-tag | issue:324063681 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/softlayer/softlayer-java/52/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fcbdd0508464e09c9ad4271c89d9b1a2efc42eff31631e74218c72fba0efa779/softlayer/softlayer-java/issues/52 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fcbdd0508464e09c9ad4271c89d9b1a2efc42eff31631e74218c72fba0efa779/softlayer/softlayer-java/issues/52 |
| og:image:alt | The issue we're facing is to retrieve the relational properties of a list of SoftLayer_Virtual_Guest using pagination. We use masks to get the relational properties like power state, os, datacenter... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | isrfig |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7476eb4140129667a7530d10cfb7688f701883e35a4dcaa4673e3ec599af5199 |
| turbo-cache-control | no-preview |
| go-import | github.com/softlayer/softlayer-java git https://github.com/softlayer/softlayer-java.git |
| octolytics-dimension-user_id | 49550 |
| octolytics-dimension-user_login | softlayer |
| octolytics-dimension-repository_id | 25829492 |
| octolytics-dimension-repository_nwo | softlayer/softlayer-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 25829492 |
| octolytics-dimension-repository_network_root_nwo | softlayer/softlayer-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2cc0827c872b538cd08371730242ae4951d2d61a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width