endpoints_config.go 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670
  1. package endpoints
  2. import (
  3. "encoding/json"
  4. "fmt"
  5. "sync"
  6. )
  7. const endpointsJson =`{
  8. "products": [
  9. {
  10. "code": "ecs",
  11. "document_id": "25484",
  12. "location_service_code": "ecs",
  13. "regional_endpoints": [
  14. {
  15. "region": "cn-shanghai",
  16. "endpoint": "ecs-cn-hangzhou.aliyuncs.com"
  17. },
  18. {
  19. "region": "eu-west-1",
  20. "endpoint": "ecs.eu-west-1.aliyuncs.com"
  21. },
  22. {
  23. "region": "cn-huhehaote",
  24. "endpoint": "ecs.cn-huhehaote.aliyuncs.com"
  25. },
  26. {
  27. "region": "me-east-1",
  28. "endpoint": "ecs.me-east-1.aliyuncs.com"
  29. },
  30. {
  31. "region": "ap-southeast-3",
  32. "endpoint": "ecs.ap-southeast-3.aliyuncs.com"
  33. },
  34. {
  35. "region": "ap-southeast-2",
  36. "endpoint": "ecs.ap-southeast-2.aliyuncs.com"
  37. },
  38. {
  39. "region": "ap-south-1",
  40. "endpoint": "ecs.ap-south-1.aliyuncs.com"
  41. },
  42. {
  43. "region": "cn-beijing",
  44. "endpoint": "ecs-cn-hangzhou.aliyuncs.com"
  45. },
  46. {
  47. "region": "cn-hangzhou",
  48. "endpoint": "ecs-cn-hangzhou.aliyuncs.com"
  49. },
  50. {
  51. "region": "cn-shenzhen",
  52. "endpoint": "ecs-cn-hangzhou.aliyuncs.com"
  53. },
  54. {
  55. "region": "ap-northeast-1",
  56. "endpoint": "ecs.ap-northeast-1.aliyuncs.com"
  57. },
  58. {
  59. "region": "ap-southeast-5",
  60. "endpoint": "ecs.ap-southeast-5.aliyuncs.com"
  61. },
  62. {
  63. "region": "eu-central-1",
  64. "endpoint": "ecs.eu-central-1.aliyuncs.com"
  65. },
  66. {
  67. "region": "cn-zhangjiakou",
  68. "endpoint": "ecs.cn-zhangjiakou.aliyuncs.com"
  69. },
  70. {
  71. "region": "cn-qingdao",
  72. "endpoint": "ecs-cn-hangzhou.aliyuncs.com"
  73. },
  74. {
  75. "region": "cn-hongkong",
  76. "endpoint": "ecs-cn-hangzhou.aliyuncs.com"
  77. },
  78. {
  79. "region": "ap-southeast-1",
  80. "endpoint": "ecs-cn-hangzhou.aliyuncs.com"
  81. },
  82. {
  83. "region": "us-west-1",
  84. "endpoint": "ecs-cn-hangzhou.aliyuncs.com"
  85. },
  86. {
  87. "region": "us-east-1",
  88. "endpoint": "ecs-cn-hangzhou.aliyuncs.com"
  89. }
  90. ],
  91. "global_endpoint": "ecs-cn-hangzhou.aliyuncs.com",
  92. "regional_endpoint_pattern": ""
  93. },
  94. {
  95. "code": "chatbot",
  96. "document_id": "60760",
  97. "location_service_code": "beebot",
  98. "regional_endpoints": [
  99. {
  100. "region": "cn-shanghai",
  101. "endpoint": "chatbot.cn-shanghai.aliyuncs.com"
  102. },
  103. {
  104. "region": "cn-hangzhou",
  105. "endpoint": "chatbot.cn-hangzhou.aliyuncs.com"
  106. }
  107. ],
  108. "global_endpoint": "",
  109. "regional_endpoint_pattern": "chatbot.[RegionId].aliyuncs.com"
  110. },
  111. {
  112. "code": "alidns",
  113. "document_id": "29739",
  114. "location_service_code": "alidns",
  115. "regional_endpoints": [
  116. {
  117. "region": "cn-hangzhou",
  118. "endpoint": "alidns.aliyuncs.com"
  119. }
  120. ],
  121. "global_endpoint": "alidns.aliyuncs.com",
  122. "regional_endpoint_pattern": ""
  123. },
  124. {
  125. "code": "itaas",
  126. "document_id": "55759",
  127. "location_service_code": "itaas",
  128. "regional_endpoints": null,
  129. "global_endpoint": "itaas.aliyuncs.com",
  130. "regional_endpoint_pattern": ""
  131. },
  132. {
  133. "code": "csb",
  134. "document_id": "64837",
  135. "location_service_code": "csb",
  136. "regional_endpoints": [
  137. {
  138. "region": "cn-hangzhou",
  139. "endpoint": "csb.cn-hangzhou.aliyuncs.com"
  140. },
  141. {
  142. "region": "cn-beijing",
  143. "endpoint": "csb.cn-beijing.aliyuncs.com"
  144. }
  145. ],
  146. "global_endpoint": "",
  147. "regional_endpoint_pattern": "csb.[RegionId].aliyuncs.com"
  148. },
  149. {
  150. "code": "slb",
  151. "document_id": "27565",
  152. "location_service_code": "slb",
  153. "regional_endpoints": [
  154. {
  155. "region": "cn-hongkong",
  156. "endpoint": "slb.aliyuncs.com"
  157. },
  158. {
  159. "region": "me-east-1",
  160. "endpoint": "slb.me-east-1.aliyuncs.com"
  161. },
  162. {
  163. "region": "ap-southeast-5",
  164. "endpoint": "slb.ap-southeast-5.aliyuncs.com"
  165. },
  166. {
  167. "region": "ap-southeast-2",
  168. "endpoint": "slb.ap-southeast-2.aliyuncs.com"
  169. },
  170. {
  171. "region": "ap-south-1",
  172. "endpoint": "slb.ap-south-1.aliyuncs.com"
  173. },
  174. {
  175. "region": "eu-central-1",
  176. "endpoint": "slb.eu-central-1.aliyuncs.com"
  177. },
  178. {
  179. "region": "cn-shanghai",
  180. "endpoint": "slb.aliyuncs.com"
  181. },
  182. {
  183. "region": "eu-west-1",
  184. "endpoint": "slb.eu-west-1.aliyuncs.com"
  185. },
  186. {
  187. "region": "cn-huhehaote",
  188. "endpoint": "slb.cn-huhehaote.aliyuncs.com"
  189. },
  190. {
  191. "region": "us-west-1",
  192. "endpoint": "slb.aliyuncs.com"
  193. },
  194. {
  195. "region": "cn-zhangjiakou",
  196. "endpoint": "slb.cn-zhangjiakou.aliyuncs.com"
  197. },
  198. {
  199. "region": "cn-qingdao",
  200. "endpoint": "slb.aliyuncs.com"
  201. },
  202. {
  203. "region": "cn-hangzhou",
  204. "endpoint": "slb.aliyuncs.com"
  205. },
  206. {
  207. "region": "cn-shenzhen",
  208. "endpoint": "slb.aliyuncs.com"
  209. },
  210. {
  211. "region": "us-east-1",
  212. "endpoint": "slb.aliyuncs.com"
  213. },
  214. {
  215. "region": "ap-southeast-3",
  216. "endpoint": "slb.ap-southeast-3.aliyuncs.com"
  217. },
  218. {
  219. "region": "cn-beijing",
  220. "endpoint": "slb.aliyuncs.com"
  221. },
  222. {
  223. "region": "ap-southeast-1",
  224. "endpoint": "slb.aliyuncs.com"
  225. },
  226. {
  227. "region": "ap-northeast-1",
  228. "endpoint": "slb.ap-northeast-1.aliyuncs.com"
  229. }
  230. ],
  231. "global_endpoint": "slb.aliyuncs.com",
  232. "regional_endpoint_pattern": ""
  233. },
  234. {
  235. "code": "cloudwf",
  236. "document_id": "58111",
  237. "location_service_code": "cloudwf",
  238. "regional_endpoints": null,
  239. "global_endpoint": "cloudwf.aliyuncs.com",
  240. "regional_endpoint_pattern": ""
  241. },
  242. {
  243. "code": "cloudphoto",
  244. "document_id": "59902",
  245. "location_service_code": "cloudphoto",
  246. "regional_endpoints": [
  247. {
  248. "region": "cn-shanghai",
  249. "endpoint": "cloudphoto.cn-shanghai.aliyuncs.com"
  250. }
  251. ],
  252. "global_endpoint": "",
  253. "regional_endpoint_pattern": "cloudphoto.[RegionId].aliyuncs.com"
  254. },
  255. {
  256. "code": "dds",
  257. "document_id": "61715",
  258. "location_service_code": "dds",
  259. "regional_endpoints": [
  260. {
  261. "region": "ap-southeast-5",
  262. "endpoint": "mongodb.ap-southeast-5.aliyuncs.com"
  263. },
  264. {
  265. "region": "cn-qingdao",
  266. "endpoint": "mongodb.aliyuncs.com"
  267. },
  268. {
  269. "region": "cn-hongkong",
  270. "endpoint": "mongodb.aliyuncs.com"
  271. },
  272. {
  273. "region": "eu-west-1",
  274. "endpoint": "mongodb.eu-west-1.aliyuncs.com"
  275. },
  276. {
  277. "region": "us-west-1",
  278. "endpoint": "mongodb.aliyuncs.com"
  279. },
  280. {
  281. "region": "us-east-1",
  282. "endpoint": "mongodb.aliyuncs.com"
  283. },
  284. {
  285. "region": "me-east-1",
  286. "endpoint": "mongodb.me-east-1.aliyuncs.com"
  287. },
  288. {
  289. "region": "cn-zhangjiakou",
  290. "endpoint": "mongodb.cn-zhangjiakou.aliyuncs.com"
  291. },
  292. {
  293. "region": "cn-shanghai",
  294. "endpoint": "mongodb.aliyuncs.com"
  295. },
  296. {
  297. "region": "cn-shenzhen",
  298. "endpoint": "mongodb.aliyuncs.com"
  299. },
  300. {
  301. "region": "ap-northeast-1",
  302. "endpoint": "mongodb.ap-northeast-1.aliyuncs.com"
  303. },
  304. {
  305. "region": "ap-southeast-1",
  306. "endpoint": "mongodb.aliyuncs.com"
  307. },
  308. {
  309. "region": "ap-southeast-2",
  310. "endpoint": "mongodb.ap-southeast-2.aliyuncs.com"
  311. },
  312. {
  313. "region": "ap-southeast-3",
  314. "endpoint": "mongodb.ap-southeast-3.aliyuncs.com"
  315. },
  316. {
  317. "region": "ap-south-1",
  318. "endpoint": "mongodb.ap-south-1.aliyuncs.com"
  319. },
  320. {
  321. "region": "eu-central-1",
  322. "endpoint": "mongodb.eu-central-1.aliyuncs.com"
  323. },
  324. {
  325. "region": "cn-beijing",
  326. "endpoint": "mongodb.aliyuncs.com"
  327. },
  328. {
  329. "region": "cn-hangzhou",
  330. "endpoint": "mongodb.aliyuncs.com"
  331. },
  332. {
  333. "region": "cn-huhehaote",
  334. "endpoint": "mongodb.cn-huhehaote.aliyuncs.com"
  335. }
  336. ],
  337. "global_endpoint": "mongodb.aliyuncs.com",
  338. "regional_endpoint_pattern": "mongodb.[RegionId].aliyuncs.com"
  339. },
  340. {
  341. "code": "dm",
  342. "document_id": "29434",
  343. "location_service_code": "dm",
  344. "regional_endpoints": [
  345. {
  346. "region": "ap-southeast-2",
  347. "endpoint": "dm.ap-southeast-2.aliyuncs.com"
  348. }
  349. ],
  350. "global_endpoint": "dm.aliyuncs.com",
  351. "regional_endpoint_pattern": "dm.[RegionId].aliyuncs.com"
  352. },
  353. {
  354. "code": "ons",
  355. "document_id": "44416",
  356. "location_service_code": "ons",
  357. "regional_endpoints": [
  358. {
  359. "region": "cn-zhangjiakou",
  360. "endpoint": "ons.cn-zhangjiakou.aliyuncs.com"
  361. },
  362. {
  363. "region": "us-west-1",
  364. "endpoint": "ons.us-west-1.aliyuncs.com"
  365. },
  366. {
  367. "region": "me-east-1",
  368. "endpoint": "ons.me-east-1.aliyuncs.com"
  369. },
  370. {
  371. "region": "us-east-1",
  372. "endpoint": "ons.us-east-1.aliyuncs.com"
  373. },
  374. {
  375. "region": "ap-northeast-1",
  376. "endpoint": "ons.ap-northeast-1.aliyuncs.com"
  377. },
  378. {
  379. "region": "ap-southeast-2",
  380. "endpoint": "ons.ap-southeast-2.aliyuncs.com"
  381. },
  382. {
  383. "region": "ap-southeast-1",
  384. "endpoint": "ons.ap-southeast-1.aliyuncs.com"
  385. },
  386. {
  387. "region": "cn-shanghai",
  388. "endpoint": "ons.cn-shanghai.aliyuncs.com"
  389. },
  390. {
  391. "region": "cn-shenzhen",
  392. "endpoint": "ons.cn-shenzhen.aliyuncs.com"
  393. },
  394. {
  395. "region": "cn-hangzhou",
  396. "endpoint": "ons.cn-hangzhou.aliyuncs.com"
  397. },
  398. {
  399. "region": "ap-south-1",
  400. "endpoint": "ons.cn-hangzhou.aliyuncs.com"
  401. },
  402. {
  403. "region": "eu-central-1",
  404. "endpoint": "ons.eu-central-1.aliyuncs.com"
  405. },
  406. {
  407. "region": "eu-west-1",
  408. "endpoint": "ons.eu-west-1.aliyuncs.com"
  409. },
  410. {
  411. "region": "cn-beijing",
  412. "endpoint": "ons.cn-beijing.aliyuncs.com"
  413. },
  414. {
  415. "region": "ap-southeast-3",
  416. "endpoint": "ons.ap-southeast-3.aliyuncs.com"
  417. },
  418. {
  419. "region": "cn-huhehaote",
  420. "endpoint": "ons.cn-huhehaote.aliyuncs.com"
  421. },
  422. {
  423. "region": "cn-hongkong",
  424. "endpoint": "ons.cn-hongkong.aliyuncs.com"
  425. },
  426. {
  427. "region": "cn-qingdao",
  428. "endpoint": "ons.cn-qingdao.aliyuncs.com"
  429. }
  430. ],
  431. "global_endpoint": "",
  432. "regional_endpoint_pattern": ""
  433. },
  434. {
  435. "code": "polardb",
  436. "document_id": "58764",
  437. "location_service_code": "polardb",
  438. "regional_endpoints": [
  439. {
  440. "region": "cn-qingdao",
  441. "endpoint": "polardb.aliyuncs.com"
  442. },
  443. {
  444. "region": "cn-beijing",
  445. "endpoint": "polardb.aliyuncs.com"
  446. },
  447. {
  448. "region": "cn-hangzhou",
  449. "endpoint": "polardb.aliyuncs.com"
  450. },
  451. {
  452. "region": "cn-shanghai",
  453. "endpoint": "polardb.aliyuncs.com"
  454. },
  455. {
  456. "region": "cn-shenzhen",
  457. "endpoint": "polardb.aliyuncs.com"
  458. },
  459. {
  460. "region": "cn-huhehaote",
  461. "endpoint": "polardb.cn-huhehaote.aliyuncs.com"
  462. },
  463. {
  464. "region": "ap-southeast-5",
  465. "endpoint": "polardb.ap-southeast-5.aliyuncs.com"
  466. },
  467. {
  468. "region": "ap-south-1",
  469. "endpoint": "polardb.ap-south-1.aliyuncs.com"
  470. },
  471. {
  472. "region": "cn-hongkong",
  473. "endpoint": "polardb.aliyuncs.com"
  474. }
  475. ],
  476. "global_endpoint": "",
  477. "regional_endpoint_pattern": "polardb.aliyuncs.com"
  478. },
  479. {
  480. "code": "batchcompute",
  481. "document_id": "44717",
  482. "location_service_code": "batchcompute",
  483. "regional_endpoints": [
  484. {
  485. "region": "us-west-1",
  486. "endpoint": "batchcompute.us-west-1.aliyuncs.com"
  487. },
  488. {
  489. "region": "cn-beijing",
  490. "endpoint": "batchcompute.cn-beijing.aliyuncs.com"
  491. },
  492. {
  493. "region": "cn-hangzhou",
  494. "endpoint": "batchcompute.cn-hangzhou.aliyuncs.com"
  495. },
  496. {
  497. "region": "cn-shanghai",
  498. "endpoint": "batchcompute.cn-shanghai.aliyuncs.com"
  499. },
  500. {
  501. "region": "ap-southeast-1",
  502. "endpoint": "batchcompute.ap-southeast-1.aliyuncs.com"
  503. },
  504. {
  505. "region": "cn-huhehaote",
  506. "endpoint": "batchcompute.cn-huhehaote.aliyuncs.com"
  507. },
  508. {
  509. "region": "cn-qingdao",
  510. "endpoint": "batchcompute.cn-qingdao.aliyuncs.com"
  511. },
  512. {
  513. "region": "cn-zhangjiakou",
  514. "endpoint": "batchcompute.cn-zhangjiakou.aliyuncs.com"
  515. },
  516. {
  517. "region": "cn-shenzhen",
  518. "endpoint": "batchcompute.cn-shenzhen.aliyuncs.com"
  519. }
  520. ],
  521. "global_endpoint": "",
  522. "regional_endpoint_pattern": "batchcompute.[RegionId].aliyuncs.com"
  523. },
  524. {
  525. "code": "cloudauth",
  526. "document_id": "60687",
  527. "location_service_code": "cloudauth",
  528. "regional_endpoints": [
  529. {
  530. "region": "cn-hangzhou",
  531. "endpoint": "cloudauth.aliyuncs.com"
  532. }
  533. ],
  534. "global_endpoint": "cloudauth.aliyuncs.com",
  535. "regional_endpoint_pattern": ""
  536. },
  537. {
  538. "code": "vod",
  539. "document_id": "60574",
  540. "location_service_code": "vod",
  541. "regional_endpoints": [
  542. {
  543. "region": "cn-beijing",
  544. "endpoint": "vod.cn-shanghai.aliyuncs.com"
  545. },
  546. {
  547. "region": "ap-southeast-1",
  548. "endpoint": "vod.ap-southeast-1.aliyuncs.com"
  549. },
  550. {
  551. "region": "eu-central-1",
  552. "endpoint": "vod.eu-central-1.aliyuncs.com"
  553. },
  554. {
  555. "region": "cn-shanghai",
  556. "endpoint": "vod.cn-shanghai.aliyuncs.com"
  557. },
  558. {
  559. "region": "cn-hangzhou",
  560. "endpoint": "vod.cn-shanghai.aliyuncs.com"
  561. },
  562. {
  563. "region": "cn-shenzhen",
  564. "endpoint": "vod.cn-shanghai.aliyuncs.com"
  565. }
  566. ],
  567. "global_endpoint": "",
  568. "regional_endpoint_pattern": ""
  569. },
  570. {
  571. "code": "ram",
  572. "document_id": "28672",
  573. "location_service_code": "ram",
  574. "regional_endpoints": null,
  575. "global_endpoint": "ram.aliyuncs.com",
  576. "regional_endpoint_pattern": ""
  577. },
  578. {
  579. "code": "ess",
  580. "document_id": "25925",
  581. "location_service_code": "ess",
  582. "regional_endpoints": [
  583. {
  584. "region": "me-east-1",
  585. "endpoint": "ess.me-east-1.aliyuncs.com"
  586. },
  587. {
  588. "region": "ap-northeast-1",
  589. "endpoint": "ess.ap-northeast-1.aliyuncs.com"
  590. },
  591. {
  592. "region": "ap-south-1",
  593. "endpoint": "ess.ap-south-1.aliyuncs.com"
  594. },
  595. {
  596. "region": "eu-central-1",
  597. "endpoint": "ess.eu-central-1.aliyuncs.com"
  598. },
  599. {
  600. "region": "cn-shanghai",
  601. "endpoint": "ess.aliyuncs.com"
  602. },
  603. {
  604. "region": "ap-southeast-1",
  605. "endpoint": "ess.aliyuncs.com"
  606. },
  607. {
  608. "region": "cn-huhehaote",
  609. "endpoint": "ess.cn-huhehaote.aliyuncs.com"
  610. },
  611. {
  612. "region": "ap-southeast-2",
  613. "endpoint": "ess.ap-southeast-2.aliyuncs.com"
  614. },
  615. {
  616. "region": "cn-beijing",
  617. "endpoint": "ess.aliyuncs.com"
  618. },
  619. {
  620. "region": "cn-hongkong",
  621. "endpoint": "ess.aliyuncs.com"
  622. },
  623. {
  624. "region": "us-west-1",
  625. "endpoint": "ess.aliyuncs.com"
  626. },
  627. {
  628. "region": "us-east-1",
  629. "endpoint": "ess.aliyuncs.com"
  630. },
  631. {
  632. "region": "ap-southeast-5",
  633. "endpoint": "ess.ap-southeast-5.aliyuncs.com"
  634. },
  635. {
  636. "region": "cn-qingdao",
  637. "endpoint": "ess.aliyuncs.com"
  638. },
  639. {
  640. "region": "ap-southeast-3",
  641. "endpoint": "ess.ap-southeast-3.aliyuncs.com"
  642. },
  643. {
  644. "region": "cn-zhangjiakou",
  645. "endpoint": "ess.cn-zhangjiakou.aliyuncs.com"
  646. },
  647. {
  648. "region": "cn-hangzhou",
  649. "endpoint": "ess.aliyuncs.com"
  650. },
  651. {
  652. "region": "cn-shenzhen",
  653. "endpoint": "ess.aliyuncs.com"
  654. },
  655. {
  656. "region": "eu-west-1",
  657. "endpoint": "ess.eu-west-1.aliyuncs.com"
  658. }
  659. ],
  660. "global_endpoint": "ess.aliyuncs.com",
  661. "regional_endpoint_pattern": "ess.[RegionId].aliyuncs.com"
  662. },
  663. {
  664. "code": "live",
  665. "document_id": "48207",
  666. "location_service_code": "live",
  667. "regional_endpoints": [
  668. {
  669. "region": "cn-beijing",
  670. "endpoint": "live.aliyuncs.com"
  671. },
  672. {
  673. "region": "cn-hangzhou",
  674. "endpoint": "live.aliyuncs.com"
  675. },
  676. {
  677. "region": "ap-northeast-1",
  678. "endpoint": "live.aliyuncs.com"
  679. },
  680. {
  681. "region": "cn-shanghai",
  682. "endpoint": "live.aliyuncs.com"
  683. },
  684. {
  685. "region": "ap-southeast-1",
  686. "endpoint": "live.aliyuncs.com"
  687. },
  688. {
  689. "region": "eu-central-1",
  690. "endpoint": "live.aliyuncs.com"
  691. },
  692. {
  693. "region": "cn-shenzhen",
  694. "endpoint": "live.aliyuncs.com"
  695. }
  696. ],
  697. "global_endpoint": "live.aliyuncs.com",
  698. "regional_endpoint_pattern": ""
  699. },
  700. {
  701. "code": "hpc",
  702. "document_id": "35201",
  703. "location_service_code": "hpc",
  704. "regional_endpoints": [
  705. {
  706. "region": "cn-hangzhou",
  707. "endpoint": "hpc.aliyuncs.com"
  708. },
  709. {
  710. "region": "cn-beijing",
  711. "endpoint": "hpc.aliyuncs.com"
  712. }
  713. ],
  714. "global_endpoint": "hpc.aliyuncs.com",
  715. "regional_endpoint_pattern": ""
  716. },
  717. {
  718. "code": "rds",
  719. "document_id": "26223",
  720. "location_service_code": "rds",
  721. "regional_endpoints": [
  722. {
  723. "region": "me-east-1",
  724. "endpoint": "rds.me-east-1.aliyuncs.com"
  725. },
  726. {
  727. "region": "ap-south-1",
  728. "endpoint": "rds.ap-south-1.aliyuncs.com"
  729. },
  730. {
  731. "region": "cn-hangzhou",
  732. "endpoint": "rds.aliyuncs.com"
  733. },
  734. {
  735. "region": "cn-shenzhen",
  736. "endpoint": "rds.aliyuncs.com"
  737. },
  738. {
  739. "region": "ap-southeast-1",
  740. "endpoint": "rds.aliyuncs.com"
  741. },
  742. {
  743. "region": "ap-southeast-3",
  744. "endpoint": "rds.ap-southeast-3.aliyuncs.com"
  745. },
  746. {
  747. "region": "ap-southeast-2",
  748. "endpoint": "rds.ap-southeast-2.aliyuncs.com"
  749. },
  750. {
  751. "region": "cn-zhangjiakou",
  752. "endpoint": "rds.cn-zhangjiakou.aliyuncs.com"
  753. },
  754. {
  755. "region": "cn-qingdao",
  756. "endpoint": "rds.aliyuncs.com"
  757. },
  758. {
  759. "region": "us-west-1",
  760. "endpoint": "rds.aliyuncs.com"
  761. },
  762. {
  763. "region": "us-east-1",
  764. "endpoint": "rds.aliyuncs.com"
  765. },
  766. {
  767. "region": "ap-southeast-5",
  768. "endpoint": "rds.ap-southeast-5.aliyuncs.com"
  769. },
  770. {
  771. "region": "eu-central-1",
  772. "endpoint": "rds.eu-central-1.aliyuncs.com"
  773. },
  774. {
  775. "region": "cn-beijing",
  776. "endpoint": "rds.aliyuncs.com"
  777. },
  778. {
  779. "region": "cn-shanghai",
  780. "endpoint": "rds.aliyuncs.com"
  781. },
  782. {
  783. "region": "eu-west-1",
  784. "endpoint": "rds.eu-west-1.aliyuncs.com"
  785. },
  786. {
  787. "region": "cn-huhehaote",
  788. "endpoint": "rds.cn-huhehaote.aliyuncs.com"
  789. },
  790. {
  791. "region": "ap-northeast-1",
  792. "endpoint": "rds.ap-northeast-1.aliyuncs.com"
  793. },
  794. {
  795. "region": "cn-hongkong",
  796. "endpoint": "rds.aliyuncs.com"
  797. }
  798. ],
  799. "global_endpoint": "rds.aliyuncs.com",
  800. "regional_endpoint_pattern": ""
  801. },
  802. {
  803. "code": "cloudapi",
  804. "document_id": "43590",
  805. "location_service_code": "apigateway",
  806. "regional_endpoints": [
  807. {
  808. "region": "cn-beijing",
  809. "endpoint": "apigateway.cn-beijing.aliyuncs.com"
  810. },
  811. {
  812. "region": "ap-southeast-2",
  813. "endpoint": "apigateway.ap-southeast-2.aliyuncs.com"
  814. },
  815. {
  816. "region": "ap-south-1",
  817. "endpoint": "apigateway.ap-south-1.aliyuncs.com"
  818. },
  819. {
  820. "region": "us-east-1",
  821. "endpoint": "apigateway.us-east-1.aliyuncs.com"
  822. },
  823. {
  824. "region": "cn-shanghai",
  825. "endpoint": "apigateway.cn-shanghai.aliyuncs.com"
  826. },
  827. {
  828. "region": "us-west-1",
  829. "endpoint": "apigateway.us-west-1.aliyuncs.com"
  830. },
  831. {
  832. "region": "ap-southeast-1",
  833. "endpoint": "apigateway.ap-southeast-1.aliyuncs.com"
  834. },
  835. {
  836. "region": "eu-central-1",
  837. "endpoint": "apigateway.eu-central-1.aliyuncs.com"
  838. },
  839. {
  840. "region": "cn-qingdao",
  841. "endpoint": "apigateway.cn-qingdao.aliyuncs.com"
  842. },
  843. {
  844. "region": "cn-zhangjiakou",
  845. "endpoint": "apigateway.cn-zhangjiakou.aliyuncs.com"
  846. },
  847. {
  848. "region": "cn-huhehaote",
  849. "endpoint": "apigateway.cn-huhehaote.aliyuncs.com"
  850. },
  851. {
  852. "region": "eu-west-1",
  853. "endpoint": "apigateway.eu-west-1.aliyuncs.com"
  854. },
  855. {
  856. "region": "me-east-1",
  857. "endpoint": "apigateway.me-east-1.aliyuncs.com"
  858. },
  859. {
  860. "region": "cn-hangzhou",
  861. "endpoint": "apigateway.cn-hangzhou.aliyuncs.com"
  862. },
  863. {
  864. "region": "ap-northeast-1",
  865. "endpoint": "apigateway.ap-northeast-1.aliyuncs.com"
  866. },
  867. {
  868. "region": "ap-southeast-5",
  869. "endpoint": "apigateway.ap-southeast-5.aliyuncs.com"
  870. },
  871. {
  872. "region": "cn-hongkong",
  873. "endpoint": "apigateway.cn-hongkong.aliyuncs.com"
  874. },
  875. {
  876. "region": "cn-shenzhen",
  877. "endpoint": "apigateway.cn-shenzhen.aliyuncs.com"
  878. },
  879. {
  880. "region": "ap-southeast-3",
  881. "endpoint": "apigateway.ap-southeast-3.aliyuncs.com"
  882. }
  883. ],
  884. "global_endpoint": "",
  885. "regional_endpoint_pattern": "apigateway.[RegionId].aliyuncs.com"
  886. },
  887. {
  888. "code": "sas-api",
  889. "document_id": "28498",
  890. "location_service_code": "sas",
  891. "regional_endpoints": [
  892. {
  893. "region": "cn-hangzhou",
  894. "endpoint": "sas.aliyuncs.com"
  895. }
  896. ],
  897. "global_endpoint": "",
  898. "regional_endpoint_pattern": ""
  899. },
  900. {
  901. "code": "cs",
  902. "document_id": "26043",
  903. "location_service_code": "cs",
  904. "regional_endpoints": null,
  905. "global_endpoint": "cs.aliyuncs.com",
  906. "regional_endpoint_pattern": ""
  907. },
  908. {
  909. "code": "jaq",
  910. "document_id": "35037",
  911. "location_service_code": "jaq",
  912. "regional_endpoints": null,
  913. "global_endpoint": "jaq.aliyuncs.com",
  914. "regional_endpoint_pattern": ""
  915. },
  916. {
  917. "code": "r-kvstore",
  918. "document_id": "60831",
  919. "location_service_code": "redisa",
  920. "regional_endpoints": [
  921. {
  922. "region": "cn-huhehaote",
  923. "endpoint": "r-kvstore.cn-huhehaote.aliyuncs.com"
  924. },
  925. {
  926. "region": "cn-zhangjiakou",
  927. "endpoint": "r-kvstore.cn-zhangjiakou.aliyuncs.com"
  928. },
  929. {
  930. "region": "cn-beijing",
  931. "endpoint": "r-kvstore.aliyuncs.com"
  932. },
  933. {
  934. "region": "cn-shanghai",
  935. "endpoint": "r-kvstore.aliyuncs.com"
  936. },
  937. {
  938. "region": "ap-south-1",
  939. "endpoint": "r-kvstore.ap-south-1.aliyuncs.com"
  940. },
  941. {
  942. "region": "eu-central-1",
  943. "endpoint": "r-kvstore.eu-central-1.aliyuncs.com"
  944. },
  945. {
  946. "region": "cn-hangzhou",
  947. "endpoint": "r-kvstore.aliyuncs.com"
  948. },
  949. {
  950. "region": "cn-shenzhen",
  951. "endpoint": "r-kvstore.aliyuncs.com"
  952. },
  953. {
  954. "region": "me-east-1",
  955. "endpoint": "r-kvstore.me-east-1.aliyuncs.com"
  956. },
  957. {
  958. "region": "ap-northeast-1",
  959. "endpoint": "r-kvstore.ap-northeast-1.aliyuncs.com"
  960. },
  961. {
  962. "region": "cn-hongkong",
  963. "endpoint": "r-kvstore.cn-hongkong.aliyuncs.com"
  964. },
  965. {
  966. "region": "ap-southeast-2",
  967. "endpoint": "r-kvstore.ap-southeast-2.aliyuncs.com"
  968. },
  969. {
  970. "region": "eu-west-1",
  971. "endpoint": "r-kvstore.eu-west-1.aliyuncs.com"
  972. },
  973. {
  974. "region": "ap-southeast-5",
  975. "endpoint": "r-kvstore.ap-southeast-5.aliyuncs.com"
  976. },
  977. {
  978. "region": "us-west-1",
  979. "endpoint": "r-kvstore.aliyuncs.com"
  980. },
  981. {
  982. "region": "ap-southeast-1",
  983. "endpoint": "r-kvstore.ap-southeast-1.aliyuncs.com"
  984. },
  985. {
  986. "region": "ap-southeast-3",
  987. "endpoint": "r-kvstore.ap-southeast-3.aliyuncs.com"
  988. },
  989. {
  990. "region": "cn-qingdao",
  991. "endpoint": "r-kvstore.aliyuncs.com"
  992. },
  993. {
  994. "region": "us-east-1",
  995. "endpoint": "r-kvstore.aliyuncs.com"
  996. }
  997. ],
  998. "global_endpoint": "r-kvstore.aliyuncs.com",
  999. "regional_endpoint_pattern": ""
  1000. },
  1001. {
  1002. "code": "drds",
  1003. "document_id": "51111",
  1004. "location_service_code": "drds",
  1005. "regional_endpoints": [
  1006. {
  1007. "region": "ap-southeast-1",
  1008. "endpoint": "drds.ap-southeast-1.aliyuncs.com"
  1009. },
  1010. {
  1011. "region": "cn-hangzhou",
  1012. "endpoint": "drds.cn-hangzhou.aliyuncs.com"
  1013. }
  1014. ],
  1015. "global_endpoint": "drds.aliyuncs.com",
  1016. "regional_endpoint_pattern": "drds.aliyuncs.com"
  1017. },
  1018. {
  1019. "code": "waf",
  1020. "document_id": "62847",
  1021. "location_service_code": "waf",
  1022. "regional_endpoints": [
  1023. {
  1024. "region": "cn-hangzhou",
  1025. "endpoint": "wafopenapi.cn-hangzhou.aliyuncs.com"
  1026. }
  1027. ],
  1028. "global_endpoint": "",
  1029. "regional_endpoint_pattern": ""
  1030. },
  1031. {
  1032. "code": "sts",
  1033. "document_id": "28756",
  1034. "location_service_code": "sts",
  1035. "regional_endpoints": null,
  1036. "global_endpoint": "sts.aliyuncs.com",
  1037. "regional_endpoint_pattern": ""
  1038. },
  1039. {
  1040. "code": "cr",
  1041. "document_id": "60716",
  1042. "location_service_code": "cr",
  1043. "regional_endpoints": null,
  1044. "global_endpoint": "cr.aliyuncs.com",
  1045. "regional_endpoint_pattern": ""
  1046. },
  1047. {
  1048. "code": "arms",
  1049. "document_id": "42924",
  1050. "location_service_code": "arms",
  1051. "regional_endpoints": [
  1052. {
  1053. "region": "cn-hangzhou",
  1054. "endpoint": "arms.cn-hangzhou.aliyuncs.com"
  1055. },
  1056. {
  1057. "region": "cn-shanghai",
  1058. "endpoint": "arms.cn-shanghai.aliyuncs.com"
  1059. },
  1060. {
  1061. "region": "cn-hongkong",
  1062. "endpoint": "arms.cn-hongkong.aliyuncs.com"
  1063. },
  1064. {
  1065. "region": "ap-southeast-1",
  1066. "endpoint": "arms.ap-southeast-1.aliyuncs.com"
  1067. },
  1068. {
  1069. "region": "cn-shenzhen",
  1070. "endpoint": "arms.cn-shenzhen.aliyuncs.com"
  1071. },
  1072. {
  1073. "region": "cn-qingdao",
  1074. "endpoint": "arms.cn-qingdao.aliyuncs.com"
  1075. },
  1076. {
  1077. "region": "cn-beijing",
  1078. "endpoint": "arms.cn-beijing.aliyuncs.com"
  1079. }
  1080. ],
  1081. "global_endpoint": "",
  1082. "regional_endpoint_pattern": "arms.[RegionId].aliyuncs.com"
  1083. },
  1084. {
  1085. "code": "iot",
  1086. "document_id": "30557",
  1087. "location_service_code": "iot",
  1088. "regional_endpoints": [
  1089. {
  1090. "region": "us-east-1",
  1091. "endpoint": "iot.us-east-1.aliyuncs.com"
  1092. },
  1093. {
  1094. "region": "ap-northeast-1",
  1095. "endpoint": "iot.ap-northeast-1.aliyuncs.com"
  1096. },
  1097. {
  1098. "region": "us-west-1",
  1099. "endpoint": "iot.us-west-1.aliyuncs.com"
  1100. },
  1101. {
  1102. "region": "eu-central-1",
  1103. "endpoint": "iot.eu-central-1.aliyuncs.com"
  1104. },
  1105. {
  1106. "region": "cn-shanghai",
  1107. "endpoint": "iot.cn-shanghai.aliyuncs.com"
  1108. },
  1109. {
  1110. "region": "ap-southeast-1",
  1111. "endpoint": "iot.ap-southeast-1.aliyuncs.com"
  1112. }
  1113. ],
  1114. "global_endpoint": "",
  1115. "regional_endpoint_pattern": "iot.[RegionId].aliyuncs.com"
  1116. },
  1117. {
  1118. "code": "vpc",
  1119. "document_id": "34962",
  1120. "location_service_code": "vpc",
  1121. "regional_endpoints": [
  1122. {
  1123. "region": "us-west-1",
  1124. "endpoint": "vpc.aliyuncs.com"
  1125. },
  1126. {
  1127. "region": "us-east-1",
  1128. "endpoint": "vpc.aliyuncs.com"
  1129. },
  1130. {
  1131. "region": "cn-hangzhou",
  1132. "endpoint": "vpc.aliyuncs.com"
  1133. },
  1134. {
  1135. "region": "cn-shenzhen",
  1136. "endpoint": "vpc.aliyuncs.com"
  1137. },
  1138. {
  1139. "region": "ap-southeast-1",
  1140. "endpoint": "vpc.aliyuncs.com"
  1141. },
  1142. {
  1143. "region": "cn-huhehaote",
  1144. "endpoint": "vpc.cn-huhehaote.aliyuncs.com"
  1145. },
  1146. {
  1147. "region": "me-east-1",
  1148. "endpoint": "vpc.me-east-1.aliyuncs.com"
  1149. },
  1150. {
  1151. "region": "ap-northeast-1",
  1152. "endpoint": "vpc.ap-northeast-1.aliyuncs.com"
  1153. },
  1154. {
  1155. "region": "ap-southeast-3",
  1156. "endpoint": "vpc.ap-southeast-3.aliyuncs.com"
  1157. },
  1158. {
  1159. "region": "eu-central-1",
  1160. "endpoint": "vpc.eu-central-1.aliyuncs.com"
  1161. },
  1162. {
  1163. "region": "ap-southeast-5",
  1164. "endpoint": "vpc.ap-southeast-5.aliyuncs.com"
  1165. },
  1166. {
  1167. "region": "ap-south-1",
  1168. "endpoint": "vpc.ap-south-1.aliyuncs.com"
  1169. },
  1170. {
  1171. "region": "cn-zhangjiakou",
  1172. "endpoint": "vpc.cn-zhangjiakou.aliyuncs.com"
  1173. },
  1174. {
  1175. "region": "cn-beijing",
  1176. "endpoint": "vpc.aliyuncs.com"
  1177. },
  1178. {
  1179. "region": "ap-southeast-2",
  1180. "endpoint": "vpc.ap-southeast-2.aliyuncs.com"
  1181. },
  1182. {
  1183. "region": "cn-qingdao",
  1184. "endpoint": "vpc.aliyuncs.com"
  1185. },
  1186. {
  1187. "region": "cn-shanghai",
  1188. "endpoint": "vpc.aliyuncs.com"
  1189. },
  1190. {
  1191. "region": "cn-hongkong",
  1192. "endpoint": "vpc.aliyuncs.com"
  1193. },
  1194. {
  1195. "region": "eu-west-1",
  1196. "endpoint": "vpc.eu-west-1.aliyuncs.com"
  1197. }
  1198. ],
  1199. "global_endpoint": "vpc.aliyuncs.com",
  1200. "regional_endpoint_pattern": ""
  1201. },
  1202. {
  1203. "code": "aegis",
  1204. "document_id": "28449",
  1205. "location_service_code": "vipaegis",
  1206. "regional_endpoints": [
  1207. {
  1208. "region": "ap-southeast-3",
  1209. "endpoint": "aegis.ap-southeast-3.aliyuncs.com"
  1210. },
  1211. {
  1212. "region": "cn-hangzhou",
  1213. "endpoint": "aegis.cn-hangzhou.aliyuncs.com"
  1214. }
  1215. ],
  1216. "global_endpoint": "aegis.cn-hangzhou.aliyuncs.com",
  1217. "regional_endpoint_pattern": ""
  1218. },
  1219. {
  1220. "code": "domain",
  1221. "document_id": "42875",
  1222. "location_service_code": "domain",
  1223. "regional_endpoints": [
  1224. {
  1225. "region": "cn-hangzhou",
  1226. "endpoint": "domain.aliyuncs.com"
  1227. },
  1228. {
  1229. "region": "ap-southeast-1",
  1230. "endpoint": "domain-intl.aliyuncs.com"
  1231. }
  1232. ],
  1233. "global_endpoint": "domain.aliyuncs.com",
  1234. "regional_endpoint_pattern": "domain.aliyuncs.com"
  1235. },
  1236. {
  1237. "code": "cdn",
  1238. "document_id": "27148",
  1239. "location_service_code": "cdn",
  1240. "regional_endpoints": [
  1241. {
  1242. "region": "cn-hangzhou",
  1243. "endpoint": "cdn.aliyuncs.com"
  1244. }
  1245. ],
  1246. "global_endpoint": "cdn.aliyuncs.com",
  1247. "regional_endpoint_pattern": ""
  1248. },
  1249. {
  1250. "code": "qualitycheck",
  1251. "document_id": "50807",
  1252. "location_service_code": "qualitycheck",
  1253. "regional_endpoints": [
  1254. {
  1255. "region": "cn-hangzhou",
  1256. "endpoint": "qualitycheck.cn-hangzhou.aliyuncs.com"
  1257. }
  1258. ],
  1259. "global_endpoint": "",
  1260. "regional_endpoint_pattern": ""
  1261. },
  1262. {
  1263. "code": "emr",
  1264. "document_id": "28140",
  1265. "location_service_code": "emr",
  1266. "regional_endpoints": [
  1267. {
  1268. "region": "us-east-1",
  1269. "endpoint": "emr.us-east-1.aliyuncs.com"
  1270. },
  1271. {
  1272. "region": "ap-southeast-5",
  1273. "endpoint": "emr.ap-southeast-5.aliyuncs.com"
  1274. },
  1275. {
  1276. "region": "eu-central-1",
  1277. "endpoint": "emr.eu-central-1.aliyuncs.com"
  1278. },
  1279. {
  1280. "region": "eu-west-1",
  1281. "endpoint": "emr.eu-west-1.aliyuncs.com"
  1282. },
  1283. {
  1284. "region": "us-west-1",
  1285. "endpoint": "emr.aliyuncs.com"
  1286. },
  1287. {
  1288. "region": "ap-southeast-1",
  1289. "endpoint": "emr.aliyuncs.com"
  1290. },
  1291. {
  1292. "region": "ap-south-1",
  1293. "endpoint": "emr.ap-south-1.aliyuncs.com"
  1294. },
  1295. {
  1296. "region": "me-east-1",
  1297. "endpoint": "emr.me-east-1.aliyuncs.com"
  1298. },
  1299. {
  1300. "region": "cn-beijing",
  1301. "endpoint": "emr.aliyuncs.com"
  1302. },
  1303. {
  1304. "region": "cn-shanghai",
  1305. "endpoint": "emr.aliyuncs.com"
  1306. },
  1307. {
  1308. "region": "cn-hongkong",
  1309. "endpoint": "emr.cn-hongkong.aliyuncs.com"
  1310. },
  1311. {
  1312. "region": "cn-huhehaote",
  1313. "endpoint": "emr.cn-huhehaote.aliyuncs.com"
  1314. },
  1315. {
  1316. "region": "ap-northeast-1",
  1317. "endpoint": "emr.ap-northeast-1.aliyuncs.com"
  1318. },
  1319. {
  1320. "region": "ap-southeast-3",
  1321. "endpoint": "emr.ap-southeast-3.aliyuncs.com"
  1322. },
  1323. {
  1324. "region": "cn-hangzhou",
  1325. "endpoint": "emr.aliyuncs.com"
  1326. },
  1327. {
  1328. "region": "ap-southeast-2",
  1329. "endpoint": "emr.ap-southeast-2.aliyuncs.com"
  1330. },
  1331. {
  1332. "region": "cn-zhangjiakou",
  1333. "endpoint": "emr.cn-zhangjiakou.aliyuncs.com"
  1334. },
  1335. {
  1336. "region": "cn-qingdao",
  1337. "endpoint": "emr.cn-qingdao.aliyuncs.com"
  1338. },
  1339. {
  1340. "region": "cn-shenzhen",
  1341. "endpoint": "emr.aliyuncs.com"
  1342. }
  1343. ],
  1344. "global_endpoint": "emr.aliyuncs.com",
  1345. "regional_endpoint_pattern": "emr.[RegionId].aliyuncs.com"
  1346. },
  1347. {
  1348. "code": "httpdns",
  1349. "document_id": "52679",
  1350. "location_service_code": "httpdns",
  1351. "regional_endpoints": null,
  1352. "global_endpoint": "httpdns-api.aliyuncs.com",
  1353. "regional_endpoint_pattern": ""
  1354. },
  1355. {
  1356. "code": "push",
  1357. "document_id": "30074",
  1358. "location_service_code": "push",
  1359. "regional_endpoints": null,
  1360. "global_endpoint": "cloudpush.aliyuncs.com",
  1361. "regional_endpoint_pattern": ""
  1362. },
  1363. {
  1364. "code": "cms",
  1365. "document_id": "28615",
  1366. "location_service_code": "cms",
  1367. "regional_endpoints": [
  1368. {
  1369. "region": "cn-qingdao",
  1370. "endpoint": "metrics.cn-hangzhou.aliyuncs.com"
  1371. },
  1372. {
  1373. "region": "cn-hangzhou",
  1374. "endpoint": "metrics.cn-hangzhou.aliyuncs.com"
  1375. },
  1376. {
  1377. "region": "eu-west-1",
  1378. "endpoint": "metrics.eu-west-1.aliyuncs.com"
  1379. },
  1380. {
  1381. "region": "eu-central-1",
  1382. "endpoint": "metrics.cn-hangzhou.aliyuncs.com"
  1383. },
  1384. {
  1385. "region": "ap-northeast-1",
  1386. "endpoint": "metrics.ap-northeast-1.aliyuncs.com"
  1387. },
  1388. {
  1389. "region": "ap-south-1",
  1390. "endpoint": "metrics.ap-south-1.aliyuncs.com"
  1391. },
  1392. {
  1393. "region": "cn-beijing",
  1394. "endpoint": "metrics.cn-hangzhou.aliyuncs.com"
  1395. },
  1396. {
  1397. "region": "cn-shenzhen",
  1398. "endpoint": "metrics.cn-hangzhou.aliyuncs.com"
  1399. },
  1400. {
  1401. "region": "ap-southeast-1",
  1402. "endpoint": "metrics.cn-hangzhou.aliyuncs.com"
  1403. },
  1404. {
  1405. "region": "ap-southeast-2",
  1406. "endpoint": "metrics.cn-hangzhou.aliyuncs.com"
  1407. },
  1408. {
  1409. "region": "ap-southeast-5",
  1410. "endpoint": "metrics.ap-southeast-5.aliyuncs.com"
  1411. },
  1412. {
  1413. "region": "cn-huhehaote",
  1414. "endpoint": "metrics.cn-huhehaote.aliyuncs.com"
  1415. },
  1416. {
  1417. "region": "cn-zhangjiakou",
  1418. "endpoint": "metrics.cn-hangzhou.aliyuncs.com"
  1419. },
  1420. {
  1421. "region": "me-east-1",
  1422. "endpoint": "metrics.cn-hangzhou.aliyuncs.com"
  1423. },
  1424. {
  1425. "region": "ap-southeast-3",
  1426. "endpoint": "metrics.ap-southeast-3.aliyuncs.com"
  1427. },
  1428. {
  1429. "region": "cn-shanghai",
  1430. "endpoint": "metrics.cn-hangzhou.aliyuncs.com"
  1431. },
  1432. {
  1433. "region": "cn-hongkong",
  1434. "endpoint": "metrics.cn-hangzhou.aliyuncs.com"
  1435. },
  1436. {
  1437. "region": "us-west-1",
  1438. "endpoint": "metrics.cn-hangzhou.aliyuncs.com"
  1439. },
  1440. {
  1441. "region": "us-east-1",
  1442. "endpoint": "metrics.cn-hangzhou.aliyuncs.com"
  1443. }
  1444. ],
  1445. "global_endpoint": "metrics.cn-hangzhou.aliyuncs.com",
  1446. "regional_endpoint_pattern": ""
  1447. },
  1448. {
  1449. "code": "nas",
  1450. "document_id": "62598",
  1451. "location_service_code": "nas",
  1452. "regional_endpoints": [
  1453. {
  1454. "region": "ap-southeast-5",
  1455. "endpoint": "nas.ap-southeast-5.aliyuncs.com"
  1456. },
  1457. {
  1458. "region": "ap-south-1",
  1459. "endpoint": "nas.ap-south-1.aliyuncs.com"
  1460. },
  1461. {
  1462. "region": "us-west-1",
  1463. "endpoint": "nas.us-west-1.aliyuncs.com"
  1464. },
  1465. {
  1466. "region": "ap-southeast-3",
  1467. "endpoint": "nas.ap-southeast-3.aliyuncs.com"
  1468. },
  1469. {
  1470. "region": "cn-zhangjiakou",
  1471. "endpoint": "nas.cn-zhangjiakou.aliyuncs.com"
  1472. },
  1473. {
  1474. "region": "ap-northeast-1",
  1475. "endpoint": "nas.ap-northeast-1.aliyuncs.com"
  1476. },
  1477. {
  1478. "region": "cn-hangzhou",
  1479. "endpoint": "nas.cn-hangzhou.aliyuncs.com"
  1480. },
  1481. {
  1482. "region": "cn-qingdao",
  1483. "endpoint": "nas.cn-qingdao.aliyuncs.com"
  1484. },
  1485. {
  1486. "region": "cn-beijing",
  1487. "endpoint": "nas.cn-beijing.aliyuncs.com"
  1488. },
  1489. {
  1490. "region": "ap-southeast-2",
  1491. "endpoint": "nas.ap-southeast-2.aliyuncs.com"
  1492. },
  1493. {
  1494. "region": "cn-shenzhen",
  1495. "endpoint": "nas.cn-shenzhen.aliyuncs.com"
  1496. },
  1497. {
  1498. "region": "eu-central-1",
  1499. "endpoint": "nas.eu-central-1.aliyuncs.com"
  1500. },
  1501. {
  1502. "region": "cn-huhehaote",
  1503. "endpoint": "nas.cn-huhehaote.aliyuncs.com"
  1504. },
  1505. {
  1506. "region": "cn-shanghai",
  1507. "endpoint": "nas.cn-shanghai.aliyuncs.com"
  1508. },
  1509. {
  1510. "region": "cn-hongkong",
  1511. "endpoint": "nas.cn-hongkong.aliyuncs.com"
  1512. },
  1513. {
  1514. "region": "ap-southeast-1",
  1515. "endpoint": "nas.ap-southeast-1.aliyuncs.com"
  1516. },
  1517. {
  1518. "region": "us-east-1",
  1519. "endpoint": "nas.us-east-1.aliyuncs.com"
  1520. }
  1521. ],
  1522. "global_endpoint": "",
  1523. "regional_endpoint_pattern": ""
  1524. },
  1525. {
  1526. "code": "cds",
  1527. "document_id": "62887",
  1528. "location_service_code": "codepipeline",
  1529. "regional_endpoints": [
  1530. {
  1531. "region": "cn-beijing",
  1532. "endpoint": "cds.cn-beijing.aliyuncs.com"
  1533. }
  1534. ],
  1535. "global_endpoint": "cds.cn-beijing.aliyuncs.com",
  1536. "regional_endpoint_pattern": ""
  1537. },
  1538. {
  1539. "code": "green",
  1540. "document_id": "28427",
  1541. "location_service_code": "green",
  1542. "regional_endpoints": [
  1543. {
  1544. "region": "us-west-1",
  1545. "endpoint": "green.us-west-1.aliyuncs.com"
  1546. },
  1547. {
  1548. "region": "cn-beijing",
  1549. "endpoint": "green.cn-beijing.aliyuncs.com"
  1550. },
  1551. {
  1552. "region": "ap-southeast-1",
  1553. "endpoint": "green.ap-southeast-1.aliyuncs.com"
  1554. },
  1555. {
  1556. "region": "cn-shanghai",
  1557. "endpoint": "green.cn-shanghai.aliyuncs.com"
  1558. },
  1559. {
  1560. "region": "cn-hangzhou",
  1561. "endpoint": "green.cn-hangzhou.aliyuncs.com"
  1562. }
  1563. ],
  1564. "global_endpoint": "green.aliyuncs.com",
  1565. "regional_endpoint_pattern": ""
  1566. },
  1567. {
  1568. "code": "ccc",
  1569. "document_id": "63027",
  1570. "location_service_code": "ccc",
  1571. "regional_endpoints": [
  1572. {
  1573. "region": "cn-shanghai",
  1574. "endpoint": "ccc.cn-shanghai.aliyuncs.com"
  1575. },
  1576. {
  1577. "region": "cn-hangzhou",
  1578. "endpoint": "ccc.cn-hangzhou.aliyuncs.com"
  1579. }
  1580. ],
  1581. "global_endpoint": "",
  1582. "regional_endpoint_pattern": "ccc.[RegionId].aliyuncs.com"
  1583. },
  1584. {
  1585. "code": "ros",
  1586. "document_id": "28899",
  1587. "location_service_code": "ros",
  1588. "regional_endpoints": [
  1589. {
  1590. "region": "cn-hangzhou",
  1591. "endpoint": "ros.aliyuncs.com"
  1592. }
  1593. ],
  1594. "global_endpoint": "ros.aliyuncs.com",
  1595. "regional_endpoint_pattern": ""
  1596. },
  1597. {
  1598. "code": "mts",
  1599. "document_id": "29212",
  1600. "location_service_code": "mts",
  1601. "regional_endpoints": [
  1602. {
  1603. "region": "ap-northeast-1",
  1604. "endpoint": "mts.ap-northeast-1.aliyuncs.com"
  1605. },
  1606. {
  1607. "region": "cn-shanghai",
  1608. "endpoint": "mts.cn-shanghai.aliyuncs.com"
  1609. },
  1610. {
  1611. "region": "cn-hongkong",
  1612. "endpoint": "mts.cn-hongkong.aliyuncs.com"
  1613. },
  1614. {
  1615. "region": "cn-shenzhen",
  1616. "endpoint": "mts.cn-shenzhen.aliyuncs.com"
  1617. },
  1618. {
  1619. "region": "us-west-1",
  1620. "endpoint": "mts.us-west-1.aliyuncs.com"
  1621. },
  1622. {
  1623. "region": "cn-zhangjiakou",
  1624. "endpoint": "mts.cn-zhangjiakou.aliyuncs.com"
  1625. },
  1626. {
  1627. "region": "eu-west-1",
  1628. "endpoint": "mts.eu-west-1.aliyuncs.com"
  1629. },
  1630. {
  1631. "region": "ap-south-1",
  1632. "endpoint": "mts.ap-south-1.aliyuncs.com"
  1633. },
  1634. {
  1635. "region": "cn-beijing",
  1636. "endpoint": "mts.cn-beijing.aliyuncs.com"
  1637. },
  1638. {
  1639. "region": "cn-hangzhou",
  1640. "endpoint": "mts.cn-hangzhou.aliyuncs.com"
  1641. },
  1642. {
  1643. "region": "ap-southeast-1",
  1644. "endpoint": "mts.ap-southeast-1.aliyuncs.com"
  1645. },
  1646. {
  1647. "region": "eu-central-1",
  1648. "endpoint": "mts.eu-central-1.aliyuncs.com"
  1649. }
  1650. ],
  1651. "global_endpoint": "",
  1652. "regional_endpoint_pattern": ""
  1653. }
  1654. ]
  1655. }`
  1656. var initOnce sync.Once
  1657. var data interface{}
  1658. func getEndpointConfigData() interface{} {
  1659. initOnce.Do(func() {
  1660. err := json.Unmarshal([]byte(endpointsJson), &data)
  1661. if err != nil {
  1662. panic(fmt.Sprintf("init endpoint config data failed. %s", err))
  1663. }
  1664. })
  1665. return data
  1666. }