Memperbarui status consumer tempat gateway melakukan operasi autentikasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:UpdateGatewayAuthConsumerStatus |
*Gateway
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| GatewayUniqueId |
string |
Yes |
ID unik gateway. |
gw-685f661467b54f48b7b7a76605ce**** |
| Id |
integer |
Yes |
ID consumer. |
1 |
| ConsumerStatus |
boolean |
Yes |
Status consumer. Nilai yang valid:
|
true |
| AcceptLanguage |
string |
No |
Bahasa respons. Nilai yang valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
RestResult<List> |
||
| RequestId |
string |
ID permintaan. |
56D9E600-6348-4260-B35F-583413F**** |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
| Code |
integer |
Kode respons. Kode status 200 menunjukkan bahwa permintaan berhasil. |
200 |
| ErrorCode |
string |
Kode error yang dikembalikan jika permintaan gagal. |
mse-100-000 |
| HttpStatusCode |
integer |
Kode status HTTP. |
200 |
| Message |
string |
Pesan yang dikembalikan. |
The request is successfully processed. |
| DynamicCode |
string |
Bagian dinamis dalam pesan error. |
code |
| DynamicMessage |
string |
Bagian dinamis dalam pesan error. Parameter ini digunakan untuk menggantikan variabel **%s** dalam parameter ErrMessage. Catatan
Jika nilai yang dikembalikan dari parameter ErrMessage adalah The Value of Input Parameter %s is not valid dan nilai yang dikembalikan dari parameter DynamicMessage adalah DtsJobId, maka parameter DtsJobId yang ditentukan tidak valid. |
The specified parameter is invalid. |
| Data |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "56D9E600-6348-4260-B35F-583413F****",
"Success": true,
"Code": 200,
"ErrorCode": "mse-100-000",
"HttpStatusCode": 200,
"Message": "The request is successfully processed.\n",
"DynamicCode": "code",
"DynamicMessage": "The specified parameter is invalid.",
"Data": true
}
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.