I'm automating some IBM Cloud workflows. One of the things I need to do is retrieve a list of resource groups via the REST API similar to bx resource groups
. I can trace the REST call:
$ IBMCLOUD_TRACE=true bx resource groups
Retrieving all resource groups under account Chris Snow's Account as xxxxx...
REQUEST: [2018-09-26T06:05:52+01:00]
GET /v1/resource_groups?account_id=xxxxxx HTTP/1.1
Host: resource-manager.bluemix.net
Accept: application/json
Accept-Language: en-US
Accept-Language: en
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: IBM Cloud CLI 0.10.0 / darwin
Are different hosts used depending on region? If so, how can I determine which host to send the request to? I was hoping to find the api docs for this call at https://console.bluemix.net/apidocs but I couldn't see it.