本文章介绍如何通过自定义策略限制子账号访问 IP,设置成功后,子账号将通过所设置的 IP 管理主账号下的资源,或者拒绝子账号通过设置的 IP 管理主账号下资源。
服务选择对应的云服务如示例(文字识别),操作与资源选择全部,条件选择来源IP(以42.开头IP示例),后面输入你允许访问的IP。不允许此ip访问,可添加其他条件设置。
Array
(
[Response] => Array
(
[Error] => Array
(
[Code] => AuthFailure.UnauthorizedOperation
[Message] => You are not authorized to perform this operation. Check your CAM policies, and ensure that you are using the correct access keys. [[request id:ba337318-e58e-4a01-bd1f-bc9c17be8f54]you are not authori
zed to perform operation (ocr:IDCardOCR)
resource (*) has no permission
]
)
[RequestId] => ba337318-e58e-4a01-bd1f-bc9c17be8f54
)
)
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。