Menambahkan informasi otorisasi untuk sebuah gerbang.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:AddAuthResource |
create |
*Gateway
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AuthId |
integer |
No |
ID Catatan otorisasi. |
13 |
| DomainId |
integer |
No |
ID domain. |
128 |
| Path |
string |
No |
Path. |
/abc |
| GatewayUniqueId |
string |
Yes |
ID unik gerbang. |
gw-86575c0bc9f04ecfbacb92b8e392**** |
| MatchType |
string |
No |
Tipe pencocokan. Nilai valid:
|
exact |
| IgnoreCase |
boolean |
No |
Apakah pencocokan tidak peka huruf besar/kecil. Nilai default: true. |
true |
| AuthResourceHeaderList |
array<object> |
No |
Header Sumber daya otentikasi. |
|
|
object |
No |
|||
| HeaderKey |
string |
No |
The parameter of the HTTP header. |
Access-Control-Allow-Origin |
| HeaderMethod |
string |
No |
The header matching mode. Valid values:
Valid values:
|
EQUAL |
| HeaderValue |
string |
No |
The parameter value of the HTTP header. |
* |
| 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. |
4BBCF560-4DD7-5DBD-B849-CCB135BBBAB7 |
| HttpStatusCode |
integer |
The HTTP status code returned. |
403 |
| Message |
string |
The error message. |
You are not authorized to perform this operation. |
| Code |
integer |
The status code returned. |
200 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Data |
integer |
The data structure. |
24 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "4BBCF560-4DD7-5DBD-B849-CCB135BBBAB7",
"HttpStatusCode": 403,
"Message": "You are not authorized to perform this operation.",
"Code": 200,
"Success": true,
"Data": 24
}
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.