【问题标题】:Which SoftLayer Permissions allow which actions?哪些 SoftLayer 权限允许哪些操作?
【发布时间】:2019-04-25 00:54:36
【问题描述】:

SoftLayer (IBM Cloud Infrastructure) API 具有大量权限,其名称如下:

{'keyName': 'ACCESS_ALL_GUEST', 'name': 'All Guest Access'}

{'keyName': 'SERVER_ADD', 'name': 'Add Server'}

这些都可以使用 API 调用来检索 client['SoftLayer_User_Customer_CustomerPermission_Permission'].getAllObjects()

但是,我找不到任何交叉引用需要哪些权限才能允许用户执行任何给定功能。例如,“添加服务器”是否只需要订购裸机服务器?这可能被认为是不言自明的,但很多/大多数并不那么明显。

有这样的交叉引用吗?到目前为止,我们不得不求助于猜测并尝试添加内容,直到操作成功为止,这并不理想。

【问题讨论】:

    标签: ibm-cloud-infrastructure


    【解决方案1】:

    您可以使用SoftLayer_User_Permission_Action::getAllObjects 这不是交叉引用,但您将获得您希望使用的权限的描述,响应将是一组权限,如下所示:

    {
        "createDate": null,
        "description": "Add new servers to the account.",
        "id": 1267,
        "key": "XX_1",
        "keyName": "SERVER_ADD",
        "modifyDate": null,
        "name": "Add Server"
    },
    {
        "createDate": null,
        "description": "Modify the account and company profile associated with this account.",
        "id": 1268,
        "key": "A_2",
        "keyName": "COMPANY_EDIT",
        "modifyDate": null,
        "name": "Edit Company Profile"
    },
    {
        "createDate": null,
        "description": "Upgrade any servers on the account.",
        "id": 1269,
        "key": "A_5",
        "keyName": "SERVER_UPGRADE",
        "modifyDate": null,
        "name": "Upgrade Server"
    },
    

    【讨论】:

    • 谢谢!我希望更详细一点,但这仍然是一个重要的帮助。例如,订购 VSI 需要哪些权限?光看描述我看不出来。
    • 要订购 VSI,您需要 SERVER_ADD 权限,如post中所述
    猜你喜欢
    • 2014-11-16
    • 2011-06-07
    • 1970-01-01
    • 1970-01-01
    • 2021-09-05
    • 1970-01-01
    • 2019-11-11
    • 1970-01-01
    • 2018-02-07
    相关资源
    最近更新 更多