获取创建租户的约束条件
更新时间:2026-01-08
获取创建租户的约束条件
接口描述
本接口用于获取创建租户的约束条件。
请求结构
Plain Text
1GET /v{version}/ddc/instance/{instanceId}/tenant/constraints?tenantModel=MySQL HTTP/1.1
2Host: ddc.bj.baidubce.com
3Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
| 参数名称 | 类型 | 是否必选 | 参数位置 | 描述 |
|---|---|---|---|---|
| version | String | 是 | URL参数 | API版本号。 |
| instanceId | String | 是 | URL参数 | 集群ID |
| tenantModel | String | 否 | Query参数 | 租户模式。当前支持 Oracle 模式(Oracle)、MySQL 模式(MySQL)。 |
响应头域
除公共头域外,无其它特殊头域。
响应参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| charsetList | List<String> | 可选字符集。 |
| defaultTimeZone | String | 默认时区。 |
| tenantModeList | List<String> | 租户模式,Oracle 或者 MySQL。 |
| timeZoneList | List<TimeZone> | 时区可选列表。 |
| zoneList | List<Zone> | 时区可选列表。 |
TimeZone
| 参数名称 | 类型 | 描述 |
|---|---|---|
| timeZone | String | 时区。 |
| description | String | 时区描述。 |
Zone
| 参数名称 | 类型 | 描述 |
|---|---|---|
| name | String | zone名称。 |
| replicaType | String | 该 zone 的副本类型。 |
请求示例
Plain Text
1GET https://ddc.bj.baidubce.com/v1/ddc/ob/instance/ob7dzp0pck3li8/tenant/constraints?tenantModel=MySQL
2Host: ddc.bj.baidubce.com
3Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
响应示例
Plain Text
1HTTP/1.1 200 OK
2Content-Type: application/json;charset=UTF-8
3Date: Wed, 08 Jul 2015 03:28:11 GMT
4x-bce-request-id: d8752367-38e8-45e4-b4c7-e53be3137ce5
5Server: BWS
6{
7 "charsetList": [
8 "utf8mb4",
9 "utf16",
10 "gbk",
11 "gb18030",
12 "binary"
13 ],
14 "defaultTimeZone": "Asia/Shanghai",
15 "tenantModeList": [
16 "MySQL"
17 ],
18 "timeZoneList": [
19 {
20 "timeZone": "-12:00",
21 "description": "(UTC-12:00) -12:00"
22 },
23 {
24 "timeZone": "Pacific/Midway",
25 "description": "(UTC-11:00) Pacific/Midway"
26 },
27 {
28 "timeZone": "US/Samoa",
29 "description": "(UTC-11:00) US/Samoa"
30 },
31 {
32 "timeZone": "US/Hawaii",
33 "description": "(UTC-10:00) US/Hawaii"
34 },
35 {
36 "timeZone": "Pacific/Marquesas",
37 "description": "(UTC-09:30) Pacific/Marquesas"
38 },
39 {
40 "timeZone": "US/Aleutian",
41 "description": "(UTC-10:00) US/Aleutian"
42 },
43 {
44 "timeZone": "US/Alaska",
45 "description": "(UTC-09:00) US/Alaska"
46 },
47 {
48 "timeZone": "US/Pacific",
49 "description": "(UTC-08:00) US/Pacific"
50 },
51 {
52 "timeZone": "US/Mountain",
53 "description": "(UTC-07:00) US/Mountain"
54 },
55 {
56 "timeZone": "America/Chicago",
57 "description": "(UTC-06:00) America/Chicago"
58 },
59 {
60 "timeZone": "US/Central",
61 "description": "(UTC-06:00) US/Central"
62 },
63 {
64 "timeZone": "America/New_York",
65 "description": "(UTC-05:00) America/New_York"
66 },
67 {
68 "timeZone": "America/Toronto",
69 "description": "(UTC-05:00) America/Toronto"
70 },
71 {
72 "timeZone": "US/Eastern",
73 "description": "(UTC-05:00) US/Eastern"
74 },
75 {
76 "timeZone": "America/Buenos_Aires",
77 "description": "(UTC-03:00) America/Buenos_Aires"
78 },
79 {
80 "timeZone": "America/Sao_Paulo",
81 "description": "(UTC-02:00) America/Sao_Paulo"
82 },
83 {
84 "timeZone": "America/St_Johns",
85 "description": "(UTC-03:30) America/St_Johns"
86 },
87 {
88 "timeZone": "Canada/Newfoundland",
89 "description": "(UTC-03:30) Canada/Newfoundland"
90 },
91 {
92 "timeZone": "Brazil/DeNoronha",
93 "description": "(UTC-02:00) Brazil/DeNoronha"
94 },
95 {
96 "timeZone": "Atlantic/Cape_Verde",
97 "description": "(UTC-01:00) Atlantic/Cape_Verde"
98 },
99 {
100 "timeZone": "Atlantic/Reykjavik",
101 "description": "(UTC+00:00) Atlantic/Reykjavik"
102 },
103 {
104 "timeZone": "UTC",
105 "description": "(UTC+00:00) UTC"
106 },
107 {
108 "timeZone": "Europe/London",
109 "description": "(UTC+00:00) Europe/London"
110 },
111 {
112 "timeZone": "Europe/Dublin",
113 "description": "(UTC+00:00) Europe/Dublin"
114 },
115 {
116 "timeZone": "Africa/Johannesburg",
117 "description": "(UTC+02:00) Africa/Johannesburg"
118 },
119 {
120 "timeZone": "Europe/Berlin",
121 "description": "(UTC+01:00) Europe/Berlin"
122 },
123 {
124 "timeZone": "Europe/Madrid",
125 "description": "(UTC+01:00) Europe/Madrid"
126 },
127 {
128 "timeZone": "Europe/Paris",
129 "description": "(UTC+01:00) Europe/Paris"
130 },
131 {
132 "timeZone": "Europe/Rome",
133 "description": "(UTC+01:00) Europe/Rome"
134 },
135 {
136 "timeZone": "Europe/Amsterdam",
137 "description": "(UTC+01:00) Europe/Amsterdam"
138 },
139 {
140 "timeZone": "Europe/Stockholm",
141 "description": "(UTC+01:00) Europe/Stockholm"
142 },
143 {
144 "timeZone": "Europe/Zurich",
145 "description": "(UTC+01:00) Europe/Zurich"
146 },
147 {
148 "timeZone": "Asia/Bahrain",
149 "description": "(UTC+03:00) Asia/Bahrain"
150 },
151 {
152 "timeZone": "Asia/Riyadh",
153 "description": "(UTC+03:00) Asia/Riyadh"
154 },
155 {
156 "timeZone": "Asia/Tel_Aviv",
157 "description": "(UTC+02:00) Asia/Tel_Aviv"
158 },
159 {
160 "timeZone": "Europe/Bucharest",
161 "description": "(UTC+02:00) Europe/Bucharest"
162 },
163 {
164 "timeZone": "Europe/Istanbul",
165 "description": "(UTC+02:00) Europe/Istanbul"
166 },
167 {
168 "timeZone": "Europe/Moscow",
169 "description": "(UTC+03:00) Europe/Moscow"
170 },
171 {
172 "timeZone": "Asia/Baku",
173 "description": "(UTC+04:00) Asia/Baku"
174 },
175 {
176 "timeZone": "Asia/Dubai",
177 "description": "(UTC+04:00) Asia/Dubai"
178 },
179 {
180 "timeZone": "Asia/Kabul",
181 "description": "(UTC+04:30) Asia/Kabul"
182 },
183 {
184 "timeZone": "Asia/Tehran",
185 "description": "(UTC+03:30) Asia/Tehran"
186 },
187 {
188 "timeZone": "Asia/Tashkent",
189 "description": "(UTC+05:00) Asia/Tashkent"
190 },
191 {
192 "timeZone": "Indian/Maldives",
193 "description": "(UTC+05:00) Indian/Maldives"
194 },
195 {
196 "timeZone": "Asia/Colombo",
197 "description": "(UTC+05:30) Asia/Colombo"
198 },
199 {
200 "timeZone": "Asia/Kathmandu",
201 "description": "(UTC+05:45) Asia/Kathmandu"
202 },
203 {
204 "timeZone": "Asia/Bishkek",
205 "description": "(UTC+06:00) Asia/Bishkek"
206 },
207 {
208 "timeZone": "Asia/Dhaka",
209 "description": "(UTC+06:00) Asia/Dhaka"
210 },
211 {
212 "timeZone": "Asia/Rangoon",
213 "description": "(UTC+06:30) Asia/Rangoon"
214 },
215 {
216 "timeZone": "Asia/Bangkok",
217 "description": "(UTC+07:00) Asia/Bangkok"
218 },
219 {
220 "timeZone": "Asia/Ho_Chi_Minh",
221 "description": "(UTC+07:00) Asia/Ho_Chi_Minh"
222 },
223 {
224 "timeZone": "Asia/Jakarta",
225 "description": "(UTC+07:00) Asia/Jakarta"
226 },
227 {
228 "timeZone": "Asia/Shanghai",
229 "description": "(UTC+08:00) Asia/Shanghai"
230 },
231 {
232 "timeZone": "Asia/Manila",
233 "description": "(UTC+08:00) Asia/Manila"
234 },
235 {
236 "timeZone": "Asia/Singapore",
237 "description": "(UTC+08:00) Asia/Singapore"
238 },
239 {
240 "timeZone": "Asia/Hong_Kong",
241 "description": "(UTC+08:00) Asia/Hong_Kong"
242 },
243 {
244 "timeZone": "Asia/Taipei",
245 "description": "(UTC+08:00) Asia/Taipei"
246 },
247 {
248 "timeZone": "Australia/Eucla",
249 "description": "(UTC+08:45) Australia/Eucla"
250 },
251 {
252 "timeZone": "Asia/Seoul",
253 "description": "(UTC+09:00) Asia/Seoul"
254 },
255 {
256 "timeZone": "Asia/Tokyo",
257 "description": "(UTC+09:00) Asia/Tokyo"
258 },
259 {
260 "timeZone": "Australia/Melbourne",
261 "description": "(UTC+11:00) Australia/Melbourne"
262 },
263 {
264 "timeZone": "Australia/Sydney",
265 "description": "(UTC+11:00) Australia/Sydney"
266 },
267 {
268 "timeZone": "Australia/Lord_Howe",
269 "description": "(UTC+11:00) Australia/Lord_Howe"
270 },
271 {
272 "timeZone": "Asia/Sakhalin",
273 "description": "(UTC+11:00) Asia/Sakhalin"
274 },
275 {
276 "timeZone": "Pacific/Auckland",
277 "description": "(UTC+13:00) Pacific/Auckland"
278 },
279 {
280 "timeZone": "Pacific/Fiji",
281 "description": "(UTC+13:00) Pacific/Fiji"
282 },
283 {
284 "timeZone": "Asia/Kolkata",
285 "description": "(UTC+05:30) Asia/Kolkata"
286 }
287 ],
288 "zoneList": [
289 {
290 "name": "cn-bd-b",
291 "replicaType": "FULL"
292 },
293 {
294 "name": "cn-bd-c",
295 "replicaType": "FULL"
296 }
297 ]
298}
评价此篇文章
