Bir örneğin erişim denetimi ilkesini değiştirir.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ots:UpdateInstancePolicy |
update |
*Instance
|
None | None |
Request syntax
POST /v2/openapi/updateinstancepolicy HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
İstek parametresinin gövde bilgileri. |
|
| InstanceName |
string |
Yes |
Örneğin adı. |
my-test-12345 |
| Policy |
string |
Yes |
Örneğin JSON biçimindeki erişim denetimi ilkesi. |
{ "Version": "1", "Statement": [ { "Action": [ "ots:*" ], "Resource": [ "acs:ots:*:13791xxxxxxxxxxx:instance/myinstance*" ], "Principal": [ "*" ], "Effect": "Allow", "Condition": { "StringEquals": { "ots:TLSVersion": [ "1.2" ] }, "IpAddress": { "acs:SourceIp": [ "192.168.0.1", "172.16.0.1" ] } } } ] } |
| PolicyVersion |
integer |
Yes |
Örnek erişim denetimi ilkesinin sürümü. |
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Yanıt yapısı. |
||
| requestId |
string |
İstek kimliği. Bu kimliği sorunları gidermek ve tespit etmek için kullanabilirsiniz. |
31D8120C-AC52-5CA9-BE4A-E4C6316E19AD |
| Code |
string |
Yanıt durum kodu. |
200 |
| Message |
string |
Yanıt ileti açıklaması. |
success |
Examples
Success response
JSON format
{
"requestId": "31D8120C-AC52-5CA9-BE4A-E4C6316E19AD",
"Code": "200",
"Message": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.