IBM-Cloud / bluemix-go

Go library for accessing the Bluemix API
Apache License 2.0
37 stars 88 forks source link

endpoint specification documentation? #361

Open clnperez opened 2 years ago

clnperez commented 2 years ago

I'm not finding much in the way of whether or not there's a mechanism to override endpoints. I did find this: https://github.com/IBM-Cloud/bluemix-go/blob/master/session/session.go#L83 -- but it's not clear what that's for without a lot of digging through the code.

clnperez commented 2 years ago

@hkantare?

clnperez commented 2 years ago

For example, could I use something aside from cloud.ibm.com, like xyz.cloud.ibm.com?

clnperez commented 2 years ago

Maybe this is the same, and the TF uses this file? https://github.com/IBM-Cloud/terraform-provider-ibm/blob/7fbcf165cad71ce243d6c4bb92975cfc6c21da9b/website/docs/guides/custom-service-endpoints.html.md

[edit] looks like it to me: https://github.com/IBM-Cloud/terraform-provider-ibm/blob/bb361b7b02a3aa2e7f2e0de89bdc8193c4390b65/ibm/conns/config.go#L3268