Commit 9fe85df
committed
fix(iam/group): use global CloudControl endpoint for global services
Global services like IAM Group must use cloudcontrol.volcengineapi.com
(no regional subdomain) instead of the regional endpoint. Sending any
request to cloudcontrol.cn-shanghai.volcengineapi.com causes:
RegionNotSupport: service [iam] not support region [cn-shanghai]
Add GlobalCloudControlAPIClient to providerData and the Provider interface,
initialized with endpoint cloudcontrol.volcengineapi.com. genericResource
selects the global client when globalService=true.1 parent cb494c6 commit 9fe85df
File tree
3 files changed
+43
-14
lines changed- internal
- generic
- provider
- service/cloudcontrol
3 files changed
+43
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
445 | | - | |
| 445 | + | |
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
| 554 | + | |
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
628 | | - | |
| 628 | + | |
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
708 | | - | |
| 708 | + | |
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
| |||
842 | 842 | | |
843 | 843 | | |
844 | 844 | | |
845 | | - | |
| 845 | + | |
846 | 846 | | |
847 | 847 | | |
848 | 848 | | |
| |||
891 | 891 | | |
892 | 892 | | |
893 | 893 | | |
894 | | - | |
895 | | - | |
| 894 | + | |
896 | 895 | | |
897 | 896 | | |
898 | 897 | | |
899 | 898 | | |
900 | 899 | | |
901 | 900 | | |
902 | 901 | | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
903 | 911 | | |
904 | 912 | | |
905 | 913 | | |
| |||
951 | 959 | | |
952 | 960 | | |
953 | 961 | | |
954 | | - | |
| 962 | + | |
955 | 963 | | |
956 | 964 | | |
957 | 965 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
| |||
433 | 440 | | |
434 | 441 | | |
435 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
436 | 453 | | |
437 | | - | |
438 | | - | |
439 | | - | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
440 | 458 | | |
441 | 459 | | |
442 | 460 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
0 commit comments