Memperbarui aturan otentikasi layanan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:UpdateAuthPolicy |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
No |
Nama aturan. |
demo-test |
| Source |
string |
No |
Sumber layanan yang diakses aplikasi. |
edasmsc |
| Id |
string |
Yes |
ID aturan. |
432 |
| Region |
string |
No |
Wilayah. |
cn-hangzhou |
| Enable |
string |
No |
Apakah akan mengaktifkan aturan. |
true |
| AppId |
string |
No |
ID aplikasi. |
abcde@12345 |
| Protocol |
string |
No |
Jenis Protokol. Nilai valid:
|
SPRING_CLOUD |
| AuthRule |
string |
No |
Konten aturan otentikasi layanan. |
[{\"all\":true,\"appIds\":[\"f6xqzbao96@4adfaf3c92c947a\"],\"black\":false}] |
| K8sNamespace |
string |
No |
ID namespace Kluster Kubernetes. |
c19c6c500e1ff4d7abc7bed9b8236*** |
| AcceptLanguage |
string |
No |
Bahasa untuk menampilkan hasil. Nilai valid: zh-CN dan en-US. Nilai default: zh-CN. Nilai zh-CN menunjukkan bahasa Mandarin, dan nilai en-US menunjukkan bahasa Inggris. |
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The request ID. |
83E3909D-D26F-5D97-B73B-407A26*** |
| Message |
string |
The message that is returned for the request. |
请求处理成功 |
| Data |
string |
The returned data. |
{} |
| Code |
integer |
The response code. |
500 |
| Success |
boolean |
The result of the request. Valid values: - true: The request is successful. - false: The request failed. |
true |
Contoh
Respons sukses
JSONformat
{
"HttpStatusCode": 200,
"RequestId": "83E3909D-D26F-5D97-B73B-407A26***",
"Message": "请求处理成功",
"Data": "{}",
"Code": 500,
"Success": 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.