本文介绍了对象存储访问控制API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了整个SoftLayer API文档,但是找不到关于如何管理哪些门户网站用户可以访问对象存储身份验证端点以获取访问令牌的参考.

I have looked all through the SoftLayer API documentation, but I cannot find any reference to how one manages which portal users may access the Object Storage authentication endpoints to get the access token.

推荐答案

如果您希望用户有权访问对象存储,则必须授予以下权限:

if you wish an user have access to the object storage you have to grant the following permissions:

管理CDN帐户",管理CDN文件传输"和管理存储"

"Manage CDN Account", "Manage CDN File Transfer" and "Manage Storage"

删除上面的权限,以免您的用户访问对象存储

Remove the permissions above in order to not let your user to access the object storage

请参阅:

http://knowledgelayer.softlayer.com/faq/can-user-have-cdn-and-storagelayer-permissions-granted-be-prohibited-accessing-object-storage http://knowledgelayer.softlayer.com/faq/can-sub -用户访问对象存储 http://knowledgelayer.softlayer.com/procedure/manage-object-storage-user

使用API​​,您可以使用以下方法设置权限:

using API you can set the permissions using these methods:

http://sldn.softlayer.com/reference/services/SoftLayer_User_Customer/addBulkPortalPermission http://sldn.softlayer.com/reference/services/SoftLayer_User_Customer/removeBulkPortalPermission

这里是一个例子: https://gist.github.com/underscorephil/7583408

这篇关于对象存储访问控制API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-21 01:49