更新时间:2025-12-02 gmt 08:00

高性能弹性文件服务 sfs turbo-j9九游会登录

云服务在iam预置了常用的权限,称为系统身份策略。如果iam系统身份策略无法满足授权要求,管理员可以根据各j9九游会登录的服务支持的授权项,创建iam自定义身份策略来进行精细的访问控制,iam自定义身份策略是对系统身份策略的扩展和补充。

除iam服务外,organizations服务中的服务控制策略(service control policy,以下简称scp)也可以使用这些授权项元素设置访问控制策略。

scp不直接进行授权,只划定权限边界。将scp绑定到组织单元或者成员账号时,并没有直接对组织单元或成员账号授予操作权限,而是规定了成员账号或组织单元包含的成员账号的授权范围。iam身份策略授予权限的有效性受scp限制,只有在scp允许范围内的权限才能生效。

iam服务与organizations服务在使用这些元素进行访问控制时,存在着一些区别,详情请参见:iam服务与organizations服务权限访问控制的区别

本章节介绍iam服务身份策略授权场景中自定义身份策略和组织服务中scp使用的元素,这些元素包含了操作(action)、资源(resource)和条件(condition)。

操作(action)

操作(action)即为身份策略中支持的授权项。

  • “访问级别”列描述如何对操作进行分类(list、read和write等)。此分类可帮助您了解在身份策略中相应操作对应的访问级别。
  • “资源类型”列指每个操作是否支持资源级权限。
    • 资源类型支持通配符号*表示所有。如果此列没有值(-),则必须在身份策略语句的resource元素中指定所有资源类型(“*”)。
    • 如果该列包含资源类型,则必须在具有该操作的语句中指定该资源的urn。
    • 资源类型列中必需资源在表中用星号(*)标识,表示使用此操作必须指定该资源类型。

    关于sfs turbo定义的资源类型的详细信息请参见资源类型(resource)

  • “条件键”列包括了可以在身份策略语句的condition元素中支持指定的键值。
    • 如果该授权项资源类型列存在值,则表示条件键仅对列举的资源类型生效。
    • 如果该授权项资源类型列没有值(-),则表示条件键对整个授权项生效。
    • 如果此列条件键没有值(-),表示此操作不支持指定条件键。

    关于sfs turbo定义的条件键的详细信息请参见条件键

  • 别名”列包括了可以在身份策略中配置的策略授权项。通过这些授权项,可以控制支持策略授权的api访问。详细信息请参见身份策略兼容性说明

您可以在身份策略语句的action元素中指定以下sfs turbo的相关操作。

表1 sfs turbo支持的授权项

操作项

描述

访问级别

资源类型(*为必须)

条件键

别名

sfsturbo:shares:createshare

授予创建弹性文件系统的权限。

write

shares *

  • g:enterpriseprojectid
  • g:tagkeys
  • g:requesttag/
  • sfsturbo:cryptkeyid
  • cbr:vaultid

-

sfsturbo:shares:deleteshare

授予删除弹性文件系统的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:getallshares

授予查询弹性文件系统列表的权限。

list

-

  • g:enterpriseprojectid
  • g:requesttag/
  • g:tagkeys

-

sfsturbo:shares:getshare

授予查询弹性文件系统的权限。

read

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:extendshare

授予扩容弹性文件系统的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:updatehpcshare

授予更新弹性文件系统的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:updatesharesecuritygroup

授予修改文件系统绑定的安全组的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:addtag

授予创建弹性文件系统共享标签的权限。

tagging

shares *

  • g:resourcetag/
  • g:tagkeys

-

sfsturbo:shares:gettag

授予查询弹性文件系统共享标签的权限。

read

shares *

g:enterpriseprojectid

-

sfsturbo:shares:deletetag

授予删除弹性文件系统共享标签的权限。

tagging

shares *

  • g:resourcetag/
  • g:tagkeys

-

sfsturbo:shares:batchrestag

授予批量添加弹性文件系统共享标签的权限。

tagging

shares *

  • g:resourcetag/
  • g:tagkeys

-

sfsturbo:shares:getalltag

授予查询弹性文件系统共享标签列表的权限。

list

-

g:enterpriseprojectid

-

sfsturbo:shares:renameshare

授予修改弹性文件系统名称的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:showclientipinfo

授予查询弹性文件系统客户端挂载 ip 列表的权限。

read

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:adddatarepository

授予设置弹性文件系统数据存储库的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:createdatarepositorytask

授予创建弹性文件系统数据存储库任务的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:deletedatarepositorytask

授予删除弹性文件系统数据存储库任务的权限。

write

shares *

  • g:resourcetag/ g:enterpriseprojectid

-

sfsturbo:shares:getdatarepositorytask

授予查询弹性文件系统数据存储库任务的权限。

read

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:getalldatarepositorytasks

授予查询弹性文件系统数据存储库任务列表的权限。

list

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:getazinfo

授予查询当前地区可用区信息的权限。

read

-

-

-

sfsturbo:shares:getquota

授予查询弹性文件系统配额的权限。

read

-

-

-

sfsturbo:shares:getflavors

授予查询弹性文件系统规格的权限。

read

-

-

-

sfsturbo:shares:checksharename

授予检查弹性文件系统名称的权限。

read

-

-

-

sfsturbo:shares:createfsdir

授予创建弹性文件系统目录的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:showfsdir

授予查询弹性文件系统目录的权限。

read

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:deletefsdir

授予删除弹性文件系统目录的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:createfsdirquota

授予创建弹性文件系统目录配额的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:showfsdirquota

授予查询弹性文件系统目录配额的权限。

read

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:deletefsdirquota

授予删除弹性文件系统目录配额的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:updatefsdirquota

授予更新弹性文件系统目录配额的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:batchcreatefsdirquotas

授予批量创建弹性文件系统目录配额的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:listfsdirquotas

授予查询弹性文件系统目录配额列表的权限。

list

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:showfsdirusage

授予查询弹性文件系统目录资源使用情况的权限。

read

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:createfsasynctask

授予创建弹性文件系统异步任务的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:showfsasynctask

授予查询弹性文件系统异步任务详情的权限。

read

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:listfsasynctasks

授予查询弹性文件系统异步任务列表的权限。

list

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:deletefsasynctask

授予删除弹性文件系统异步任务的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:createbackendtarget

授予创建弹性文件系统后端存储库的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:showbackendtargetinfo

授予查询弹性文件系统后端存储库详情的权限。

read

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:listbackendtargets

授予查询弹性文件系统后端存储库列表的权限。

list

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:deletebackendtarget

授予删除弹性文件系统后端存储库的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:updateobstargetpolicy

授予修改弹性文件系统与 obs 后端存储库之间自动数据流转策略的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:updateobstargetattributes

授予修改弹性文件系统后端存储库属性的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:listpermrules

授予查询弹性文件系统权限规则列表的权限。

list

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:showpermrule

授予查询弹性文件系统权限规则详情的权限。

read

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:createpermrule

授予创建弹性文件系统权限规则的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:updatepermrule

授予修改文件系统权限规则的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:deletepermrule

授予删除弹性文件系统权限规则的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:showldap

授予查询弹性文件系统ldap配置的权限。

read

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:createldap

授予创建弹性文件系统ldap配置的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:updateldap

授予修改文件系统ldap配置的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:deleteldap

授予删除弹性文件系统ldap配置的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:addactivedirectorydomain

授予弹性文件系统加入ad域的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:deleteactivedirectorydomain

授予弹性文件系统退出ad域的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:showactivedirectorydomain

授予弹性文件系统查询ad域的权限。

read

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:updateactivedirectorydomain

授予弹性文件系统修改ad域配置的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:getjob

授予查询弹性文件系统任务详情的权限。

read

-

-

-

sfsturbo:shares:changechargemode

授予变更弹性文件系统计费模式的权限。

write

shares *

  • g:resourcetag/
  • g:enterpriseprojectid

-

sfsturbo:shares:getflavors

授予查询弹性文件系统规格的权限。

read

shares *

-

-

sfs turbo的api通常对应着一个或多个操作项。表2展示了api与操作项的关系,以及该api需要依赖的操作项。

表2 api与授权项的关系

api

对应的授权项

依赖的授权项

post /v1/{project_id}/sfs-turbo/shares

sfsturbo:shares:createshare

  • billing:order:pay
  • billing:contract:viewdiscount
  • vpc:vpcs:get
  • vpc:subnets:get
  • vpc:securitygroups:get
  • vpc:securitygroups:create
  • vpc:ports:get
  • vpc:ports:create
  • vpc:ports:update
  • vpc:securitygrouprules:get
  • vpc:securitygrouprules:create
  • vpc:quotas:list
  • cbr:backups:get
  • cbr:vaults:addresources
  • evs:types:get
  • kms:cmk:listgrants
  • kms:cmk:creategrant
  • kms:cmk:get
  • sfsturbo:shares:getazinfo
  • sfsturbo:shares:getquota
  • sfsturbo:shares:getflavors
  • sfsturbo:shares:checksharename
  • eps:enterpriseprojects:list

get /v1/{project_id}/sfs-turbo/shares/detail

sfsturbo:shares:getallshares

-

get /v1/{project_id}/sfs-turbo/shares/{share_id}

sfsturbo:shares:getshare

-

delete /v1/{project_id}/sfs-turbo/shares/{share_id}

sfsturbo:shares:deleteshare

  • vpc:ports:get
  • vpc:ports:delete
  • vpc:securitygrouprules:delete
  • vpc:securitygroups:delete

post /v1/{project_id}/sfs-turbo/shares/{share_id}/action

sfsturbo:shares:extendshare

  • billing:order:pay
  • vpc:vpcs:get
  • vpc:subnets:get
  • vpc:ports:get
  • vpc:ports:create
  • vpc:ports:update

post /v1/{project_id}/sfs-turbo/shares/{share_id}/action

sfsturbo:shares:updatesharesecuritygroup

  • vpc:ports:update
  • vpc:securitygroups:get
  • vpc:securitygrouprules:create
  • vpc:securitygrouprules:delete

post /v1/{project_id}/sfs-turbo/{share_id}/tags

sfsturbo:shares:addtag

-

get /v1/{project_id}/sfs-turbo/{share_id}/tags

sfsturbo:shares:gettag

-

delete /v1/{project_id}/sfs-turbo/{share_id}/tags/{key}

sfsturbo:shares:deletetag

-

post /v1/{project_id}/sfs-turbo/{share_id}/tags/action

sfsturbo:shares:batchrestag

-

post /v1/{project_id}/sfs-turbo/resource_instances/action

sfsturbo:shares:getalltag

-

post /v1/{project_id}/sfs-turbo/shares/{share_id}/action

sfsturbo:shares:renameshare

-

post /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/{feature}/tasks

sfsturbo:shares:createfsasynctask

-

get /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/{feature}/tasks

sfsturbo:shares:listfsasynctasks

-

get /v1/{project_id}/sfs- turbo/shares/{share_id}/fs/{feature}/tasks/{task_id}

sfsturbo:shares:showfsasynctask

-

delete /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/{feature}/tasks/{task_id}

sfsturbo:shares:deletefsasynctask

-

post /v1/{project_id}/sfs-turbo/shares/{share_id}/action

sfsturbo:shares:adddatarepository

-

post /v1/{project_id}/sfs-turbo/shares/{share_id}/targets

sfsturbo:shares:createbackendtarget

  • obs:bucket:putbucketpolicy
  • vpc:ports:get
  • vpc:ports:create
  • vpc:subnets:get

get /v1/{project_id}/sfs-turbo/shares/{share_id}/targets

sfsturbo:shares:listbackendtargets

-

get /v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}

sfsturbo:shares:showbackendtargetinfo

-

delete /v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}

sfsturbo:shares:deletebackendtarget

-

post /v1/{project_id}/sfs-turbo/{share_id}/hpc-cache/task

sfsturbo:shares:createdatarepositorytask

obs:bucket:headbucket

get /v1/{project_id}/sfs-turbo/{share_id}/hpc-cache/task/{task_id}

sfsturbo:shares:getdatarepositorytask

-

get /v1/{project_id}/sfs-turbo/{share_id}/hpc-cache/tasks

sfsturbo:shares:getalldatarepositorytasks

-

put /v1/{project_id}/sfs-turbo/shares/{share_id}

sfsturbo:shares:updatehpcshare

-

post /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/dir-quota

sfsturbo:shares:createfsdirquota

-

put /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/dir-quota

sfsturbo:shares:updatefsdirquota

-

get /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/dir-quota

sfsturbo:shares:showfsdirquota

-

delete /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/dir-quota

sfsturbo:shares:deletefsdirquota

-

post /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/dir

sfsturbo:shares:createfsdir

-

get /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/dir

sfsturbo:shares:showfsdir

-

delete /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/dir

sfsturbo:shares:deletefsdir

-

get /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/dir-usage

sfsturbo:shares:showfsdirusage

-

post /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules

sfsturbo:shares:createpermrule

-

get /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules

sfsturbo:shares:listpermrules

-

get /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}

sfsturbo:shares:showpermrule

-

put /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}

sfsturbo:shares:updatepermrule

-

delete /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}

sfsturbo:shares:deletepermrule

-

post /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/ldap

sfsturbo:shares:createldap

-

get /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/ldap

sfsturbo:shares:showldap

-

put /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/ldap

sfsturbo:shares:updateldap

-

delete /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/ldap

sfsturbo:shares:deleteldap

-

get /v1/{project_id}/sfs-turbo/jobs/{job_id}

sfsturbo:shares:getjob

-

post /v1/{project_id}/sfs-turbo/shares/{share_id}/action

sfsturbo:shares:showclientipinfo

-

delete /v1/{project_id}/sfs-turbo/{share_id}/hpc-cache/task/{task_id}

sfsturbo:shares:deletedatarepositorytask

-

put /v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}/policy

sfsturbo:shares:updateobstargetpolicy

-

put /v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}/attributes

sfsturbo:shares:updateobstargetattributes

-

post /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/active-directory-domain

sfsturbo:shares:addactivedirectorydomain

-

delete /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/active-directory-domain

sfsturbo:shares:deleteactivedirectorydomain

-

get /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/active-directory-domain

sfsturbo:shares:showactivedirectorydomain

-

put /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/active-directory-domain

sfsturbo:shares:updateactivedirectorydomain

-

post /v2/{project_id}/sfs-turbo/shares/{share_id}/change-charge-mode

sfsturbo:shares:changechargemode

-

get /v1/{project_id}/sfs-turbo/share-types

sfsturbo:shares:getflavors

-

资源类型(resource)

资源类型(resource)表示身份策略所作用的资源。如表3中的某些操作指定了可以在该操作指定的资源类型,则必须在具有该操作的身份策略语句中指定该资源的urn,策略仅作用于此资源;如未指定,resource默认为“*”,则策略将应用到所有资源。您也可以在身份策略中设置条件,从而指定资源类型。

sfs turbo定义了以下可以在身份策略的resource元素中使用的资源类型。

表3 sfs turbo支持的资源类型

资源类型

urn

shares

shares *

条件键

条件(condition)是身份策略生效的特定条件,包括条件键运算符

  • 条件键表示身份策略语句的condition元素中的键值。根据适用范围,分为全局级条件键和服务级条件键。
    • 全局级条件键(前缀为g:)适用于所有操作,在鉴权过程中,云服务不需要提供用户身份信息,系统将自动获取并鉴权。详情请参见:全局条件键
    • 服务级条件键(前缀通常为服务缩写,如sfs turbo仅适用于对应服务的操作,详情请参见表4
    • 单值/多值表示api调用时请求中与条件关联的值数。单值条件键在api调用时的请求中最多包含一个值,多值条件键在api调用时请求可以包含多个值。例如:g:sourcevpce是单值条件键,表示仅允许通过某个vpc终端节点发起请求访问某资源,一个请求最多包含一个vpc终端节点id值。g:tagkeys是多值条件键,表示请求中携带的所有标签的key组成的列表,当用户在调用api请求时传入标签可以传入多个值。
  • 运算符与条件键、条件值一起构成完整的条件判断语句,当请求信息满足该条件时,身份策略才能生效。支持的运算符请参见:运算符

sfs turbo支持的服务级条件键

sfs turbo定义了以下可以在身份策略的condition元素中使用的条件键,您可以使用这些条件键进一步细化身份策略语句应用的条件。

表4 sfs turbo支持的服务级条件键

服务级条件键

类型

单值/多值

说明

sfsturbo:cryptkeyid

string

单值

根据请求参数中指定的密钥id过滤访问。

相关文档

网站地图