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

Awesome, thanks Mark!

Badge

Now you guys can reference it if it comes up again

Badge

Here is the outcome of the working session:

$method= 'Post'
$url="https://api.bettercloud.com/api/graphql"
$headers=@{
Authorization="$env:BETTERCLOUD_API_TOKEN"
ContentType= 'application/json'
accept= 'application/json'
charset='utf-8'
}
#could not get the filter to work
$body='{"query": "{ roles { displayValue members { member { accounts { displayValue admin connector { provider { displayValue } } } } } } } "}'
$response=Invoke-RestMethod -Uri "" -Method Post -Headers $headers -ContentType 'application/json' -Body $body

Userlevel 2
Badge +2

Ok, thanks Mark!

Badge

It was an Amazon VPN issue. Unsure if you are customer of other Amazon subsidiaries but you may want to forward that along to resolve

Badge

I am on the Amazon VPN. I will hop off and try again. Likely you have accepted teh certificate already and bypassed the cert check the browsers are doing

Userlevel 2
Badge +2

Strange it works fine on my end

Userlevel 2
Badge +2

How about this one: https://calendly.com/eag-consult/custom-integrations-office-hours?back=1&month=2020-08

Badge

https://calendly.com/eag-consult

Unable to communicate securely with peer: requested domain name does not match the server's certificate.

HTTP Strict Transport Security: true
HTTP Public Key Pinning: false

Certificate chain:

-----BEGIN CERTIFICATE-----
MIIENjCCAx6gAwIBAgIRAN2iSF8SHxHnJWWAPQYbRdkwDQYJKoZIhvcNAQELBQAw
KDEmMCQGA1UEAxMdQW1hem9uLmNvbSBJbmZvU2VjIENBIEc0IEFDTTIwHhcNMjAw
NzEzMTkzNTQ1WhcNMjEwNjI2MjAzNTQ1WjB9MS0wKwYDVQQDDCRjaGFsdXBhLWRu
cy1zaW5raG9sZS5jb3JwLmFtYXpvbi5jb20xGDAWBgNVBAoMD0FtYXpvbi5jb20g
SW5jLjEQMA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjELMAkG
A1UEBhMCVVMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC2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FAEFxn/6Xap3P3e7/t8PGbIgIgTh6cavnFNZK/0wM3BB
B31guH0CAwEAAaOCAREwggENMAsGA1UdDwQEAwIBhjAPBgNVHRMBAf8EBTADAQH/
MB0GA1UdDgQWBBR/jbFOTKKYCtyLJ79iBWk8JRKzwjAQBgkrBgEEAYI3FQEEAwIB
ADCBuwYDVR0gBIGzMIGwMIGtBgwrBgEEAaVrgUgBAQEwgZwwcgYIKwYBBQUHAgIw
Zh5kAEEAbQBhAHoAbwBuAC4AYwBvAG0AIABJAG4AdABlAHIAbgBhAGwAIABDAGUA
cgB0AGkAZgBpAGMAYQB0AGUAIABQAHIAYQBjAHQAaQBjAGUAIABTAHQAYQB0AGUA
bQBlAG4AdDAmBggrBgEFBQcCARYaaHR0cDovL3BraS5hbWF6b24uY29tL2Nwcy8w
DQYJKoZIhvcNAQEFBQADggEBAHQBbp49lpDzeZwT0S125zVpKnie8tSgnY0AjW/h
QMHcDSIGCA2j1d8Sx+Kf+0mheRa4fG0Hm5xk0BbdmV61dB9bcMBtZWvmQBlO/iH+
7/06oBVkI67FgxRmp/AmI/JubjGP12eWXoX2YXtSvkjsP49f4ya4k2wTNrcypwlr
Fx5+sjnRdOf24IyDGjr/HnoupYPjoDGtgF7hiMXwVD1UFHPhLVxLQojuYDjSLl3I
5zaeacRPp76IhA8YfNCJO56t4JGEbJsuQqLfIKF7hTDoqpDipJVUBh/WcmOsNiTd
FQccX3klxYIfJOHixp9MdxMRM1bHwX0xZaUX3qBngHz85GU=
-----END CERTIFICATE-----

Badge

Tried on Chrome, Safari, and Firefox

Badge

chalupa-dns-sinkhole.corp.amazon.com certificate name does not match input

Badge

Weird, the link indicates the certificate is invalid.

Badge

Will do! thank you so much

Userlevel 2
Badge +2

Probably easier to go through on the line together

Userlevel 2
Badge +2

@mark.fanslow If you’d like, we do office hours where we can help get you through any hurdles. You can book here: https://calendly.com/eag-consult

Badge

I am still having some issues getting the right syntax for the query. What format should I be going for? JSON?

Badge

then I want to paginate through all users

Badge

"query": "{ bcusers { accounts { emails { value } connector { provider { displayValue } } } } } "
}'

Badge

it looks like i have some syntax issues converting this query to powershell

Userlevel 2
Badge +2


Userlevel 2
Badge +2

Here’s the request object I use in NodeJS:

Badge

trying to convert that to powershell and get a response currently

Userlevel 2
Badge +2

{ saasusers(filter: {email: {eq: "ex@mple.com"}}) {   connector {     id   }   emails{     primary     value   } }}

Userlevel 2
Badge +2

Here is a query to look for a specific user with email:

Badge

so there is the schema!

Reply