Question

Is this place best for those new to the Bettercloud API?


Badge

Is this place best for those new to the Bettercloud API?



🗨 Link to Slack thread

55 replies

Userlevel 2
Badge +2

For sure! Throw any questions or ideas in here that you may have.

Badge

I planned on using powershell but am wondering if anyone had already shared their work before digging in

Badge

Also, what type of pagination is used?

Badge

I JUST saw that page is a required query parameter

Userlevel 2
Badge +2

You looking to use PowerShell to reach into BetterCloud, or using BetterCloud to reach into PowerShell?

Badge

the former.

Userlevel 2
Badge +2

Gotcha.

Userlevel 2
Badge +2


Badge

let me look this over

Userlevel 2
Badge +2

This is a script we wrote to page through our action details API and search for a specific action. You can see on line 9 the URL params for paging. Also, you can run this script if you just plug in your BetterCloud token into line 11.

Badge

I will use this to build my own

Badge

I am a little confused and this could be user error.

Badge

Are there 53 actions?

Badge

or should there be 253?

Userlevel 2
Badge +2

That’ll depend on how many integrations you have installed 🙂 We only return the actions for the integrations you have installed.

Badge

So i seem to come back with 53 but the response indicates there are 3 pages of results but each page comes back with the same 53

Badge

Also, of the 53 actions that come back, I do not see anything akin to "list users"

Userlevel 2
Badge +2

Do you have a size param set? If so, can you try to decrease it below 53?

Userlevel 2
Badge +2

Are you trying to to list the users synced into BetterCloud?

Badge

i had it set at 100

Badge

in reality i want the list of users that would sign into bettercloud. admins and other delegated users

Userlevel 2
Badge +2

Ah, so the actions endpoint won’t be able to achieve that. But, our GraphQL endpoint will.

Userlevel 2
Badge +2

Are you familiar with GraphQL?

Badge

No sir but am familiar with sql queries

Userlevel 2
Badge +2

This is our endpoint: https://developer.bettercloud.com/#tag/Reporting-GraphQL

Reply