Is it possible to get corresponding endpoint?

What is the problem you are having with rclone?

My IBM COS has buckets in several endpoints.
When I run rclone lsd I can see all of the buckets but can I also get the corresponding endpoints for each of the buckets? This feature would enable me to modify the config file to the correct endpoint for actual file transfers.

What is your rclone version (output from rclone version)

1.50.2

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Ubuntu 18

Which cloud storage system are you using? (eg Google Drive)

IBM COS

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone lsd, rclone ls IBM:xxx

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

lsd:
2019/12/26 15:26:39 DEBUG : rclone: Version "v1.50.2" starting with parameters ["./rclone" "lsd" "-vv" "IBM:"]
2019/12/26 15:26:39 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
-1 2019-12-18 17:15:00 -1 xxx123
-1 2019-12-18 17:42:49 -1 xxx124
-1 2019-12-18 18:45:29 -1 newlocationxxx1
2019/12/26 15:26:40 DEBUG : 5 go routines active
2019/12/26 15:26:40 DEBUG : rclone: Version "v1.50.2" finishing with parameters ["./rclone" "lsd" "-vv" "IBM:"]

When endpoint is correct:
2019/12/26 15:24:40 DEBUG : rclone: Version "v1.50.2" starting with parameters ["./rclone" "lsd" "IBM:xxx123" "-vv"]
2019/12/26 15:24:40 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2019/12/26 15:24:41 DEBUG : 5 go routines active
2019/12/26 15:24:41 DEBUG : rclone: Version "v1.50.2" finishing with parameters ["./rclone" "lsd" "IBM:xxx123" "-vv"]

When endpoint is not correct:
2019/12/26 15:25:31 DEBUG : rclone: Version "v1.50.2" starting with parameters ["./rclone" "lsd" "IBM:xxx124" "-vv"]
2019/12/26 15:25:31 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2019/12/26 15:25:37 ERROR : : error listing: directory not found
2019/12/26 15:25:37 Failed to lsd with 2 errors: last error was: directory not found

Unfortunately getting the correct endpoint for a bucket isn't part of the S3 protocol as var as I know.

So you'll have to supply the --s3-endpoint flag or add the endpoint config value.

What you could do, let's say you have buckets in useast and uswest, you could make two configs called ibmuseast and ibmuswest and use those.

As I was reading this post: https://github.com/rclone/rclone/issues/2915
and trying out the "Auto detect region for buckets on operation failure" in rclone 1.46
Is it possible as lsd auto detects the region, also output the successfully connect region?

That works using the error messages that are provided. I don't know whether IBM COS provides error messages in the format for rclone to parse.

What is the error message with -vv --dump bodies?