Menambahkan versi layanan untuk sebuah gerbang.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:AddGatewayServiceVersion |
create |
*Gateway
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ServiceId |
integer |
No |
ID layanan. |
33 |
| ServiceVersion |
string |
No |
Versi layanan. |
{\"name\":\"v1\",\"labels\":[{\"key\":\"version\",\"value\":\"v1\"}]} |
| GatewayUniqueId |
string |
No |
ID unik gerbang. |
gw-913a49bab6c5461187a3305fb8da**** |
| AcceptLanguage |
string |
No |
Bahasa tanggapan. Nilai valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data structure. |
||
| RequestId |
string |
The ID of the request. |
BA4046B6-CFC6-583C-B608-DD75011A590F |
| HttpStatusCode |
integer |
The HTTP status code returned. |
403 |
| Message |
string |
The message returned. |
The request is successfully processed. |
| Code |
integer |
The status code returned. The value 200 indicates that the request is successfully processed. |
200 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Data |
integer |
The ID of the gateway service. |
330 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "BA4046B6-CFC6-583C-B608-DD75011A590F",
"HttpStatusCode": 403,
"Message": "The request is successfully processed.\n",
"Code": 200,
"Success": true,
"Data": 330
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
| 404 | NotFound | Not found:%s | The resource does not exist:%s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.