Updates service authentication rules through the UpdateAuthPolicy operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:UpdateAuthPolicy |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
No |
The rule name. |
demo-test |
| Source |
string |
No |
The service source that the application accesses. |
edasmsc |
| Id |
string |
Yes |
The rule ID. |
432 |
| Region |
string |
No |
The region. |
cn-hangzhou |
| Enable |
string |
No |
Specifies whether to enable the rule. |
true |
| AppId |
string |
No |
The application ID. |
abcde@12345 |
| Protocol |
string |
No |
The Protocol Type. Valid values:
|
SPRING_CLOUD |
| AuthRule |
string |
No |
The content of the service authentication rule. |
[{\"all\":true,\"appIds\":[\"f6xqzbao96@4adfaf3c92c947a\"],\"black\":false}] |
| K8sNamespace |
string |
No |
The namespace ID of the Kubernetes cluster. |
c19c6c500e1ff4d7abc7bed9b8236*** |
| AcceptLanguage |
string |
No |
The language in which you want the results to be displayed. Valid values: zh-CN and en-US. Default value: zh-CN. The value zh-CN indicates Chinese, and the value en-US indicates English. |
zh |
Response elements
|
Parameter |
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 |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "83E3909D-D26F-5D97-B73B-407A26***",
"Message": "",
"Data": "{}",
"Code": 500,
"Success": true
}
Error codes
|
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 |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.