身份策略授权参考
云服务在IAM预置了常用的权限,称为系统身份策略。如果IAM系统身份策略无法满足授权要求,管理员可以根据各服务支持的授权项,创建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。
- 资源类型列中必需资源在表中用星号(*)标识,表示使用此操作必须指定该资源类型。
关于CodeArts Req定义的资源类型的详细信息请参见资源类型(Resource)。
- “条件键”列包括了可以在身份策略语句的Condition元素中支持指定的键值。
- 如果该授权项资源类型列存在值,则表示条件键仅对列举的资源类型生效。
- 如果该授权项资源类型列没有值(-),则表示条件键对整个授权项生效。
- 如果此列条件键没有值(-),表示此操作不支持指定条件键。
关于CodeArts Req定义的条件键的详细信息请参见条件(Condition)。
- “别名”列包括了可以在身份策略中配置的策略授权项。通过这些授权项,可以控制支持策略授权的API访问。详细信息请参见身份策略兼容性说明。
您可以在身份策略语句的Action元素中指定以下CodeArts Req的相关操作。
|
授权项 |
描述 |
访问级别 |
资源类型(*为必须) |
条件键 |
别名 |
|---|---|---|---|---|---|
|
codeartsreq::createTenantConfiguration |
授予权限以创建租户配置。 |
Write |
- |
- |
- |
|
codeartsreq::listOffering |
授予权限以获取已经安装的服务。 |
Read |
- |
- |
- |
|
codeartsreq::updateTenantConfiguration |
授予权限以更新租户配置。 |
Write |
- |
- |
|
|
codeartsreq::setImportedWorkitemCreator |
授予权限以设置导入工作项创建者。 |
Write |
- |
- |
|
|
codeartsreq::deleteTenantConfiguration |
授予权限以删除租户配置。 |
Write |
- |
- |
|
|
codeartsreq:workitem:get |
授予权限以查看工作项资源。 |
Read |
- |
- |
|
|
codeartsreq:workitem:list |
授予权限以查询工作项资源。 |
List |
- |
- |
|
|
codeartsreq:workitem:create |
授予权限以创建工作项资源。 |
Write |
- |
- |
|
|
codeartsreq:workitem:update |
授予权限以更新工作项资源。 |
Write |
- |
- |
|
|
codeartsreq:workitem:collaborate |
授予权限以更新工作项资源。 |
Write |
- |
- |
|
|
codeartsreq:workitem:delete |
授予权限以删除工作项资源。 |
Write |
- |
- |
|
|
codeartsreq:workitem:import |
授予权限以导入工作项资源。 |
Write |
- |
- |
|
|
codeartsreq:workitem:export |
授予权限以导出工作项资源。 |
Read |
- |
- |
|
|
codeartsreq:iteration:get |
授予权限以查看迭代资源。 |
Read |
- |
- |
|
|
codeartsreq:iteration:list |
授予权限以查询迭代资源。 |
List |
- |
- |
|
|
codeartsreq:iteration:create |
授予权限以创建迭代资源。 |
Write |
- |
- |
|
|
codeartsreq:iteration:update |
授予权限以更新迭代资源。 |
Write |
- |
- |
|
|
codeartsreq:iteration:delete |
授予权限以删除迭代资源。 |
Write |
- |
- |
|
|
codeartsreq:iteration:import |
授予权限以导入迭代资源。 |
Write |
- |
- |
|
|
codeartsreq:iteration:export |
授予权限以导出迭代资源。 |
Read |
- |
- |
|
|
codeartsreq:plan:get |
授予权限以查看规划资源。 |
Read |
- |
- |
|
|
codeartsreq:plan:list |
授予权限以查询规划资源。 |
List |
- |
- |
|
|
codeartsreq:plan:create |
授予权限以创建规划资源。 |
Write |
- |
- |
|
|
codeartsreq:plan:update |
授予权限以更新规划资源。 |
Write |
- |
- |
|
|
codeartsreq:plan:delete |
授予权限以删除规划资源。 |
Write |
- |
- |
|
|
codeartsreq:plan:import |
授予权限以导入规划资源。 |
Write |
- |
- |
|
|
codeartsreq:plan:export |
授予权限以导出规划资源。 |
Read |
- |
- |
|
|
codeartsreq:plan:baseline |
授予权限以基线规划资源。 |
Write |
- |
- |
|
|
codeartsreq:report:get |
授予权限以查看报表资源。 |
Read |
- |
- |
|
|
codeartsreq:report:list |
授予权限以查询报表资源。 |
List |
- |
- |
|
|
codeartsreq:report:create |
授予权限以创建报表资源。 |
Write |
- |
- |
|
|
codeartsreq:report:update |
授予权限以更新报表资源。 |
Write |
- |
- |
|
|
codeartsreq:report:delete |
授予权限以删除报表资源。 |
Write |
- |
- |
|
|
codeartsreq:dashboard:get |
授予权限以查看仪表盘资源。 |
Read |
- |
- |
|
|
codeartsreq:dashboard:list |
授予权限以查询仪表盘资源。 |
List |
- |
- |
|
|
codeartsreq:dashboard:create |
授予权限以创建仪表盘资源。 |
Write |
- |
- |
|
|
codeartsreq:dashboard:update |
授予权限以更新仪表盘资源。 |
Write |
- |
- |
|
|
codeartsreq:dashboard:delete |
授予权限以删除仪表盘资源。 |
Write |
- |
- |
|
|
codeartsreq:recycleBin:get |
授予权限以查看回收站资源。 |
Read |
- |
- |
|
|
codeartsreq:recycleBin:list |
授予权限以查询回收站资源。 |
List |
- |
- |
|
|
codeartsreq:recycleBin:update |
授予权限以更新回收站资源。 |
Write |
- |
- |
|
|
codeartsreq:recycleBin:delete |
授予权限以删除回收站资源。 |
Write |
- |
- |
|
|
codeartsreq:defect:get |
授予权限以查看缺陷资源。 |
Read |
- |
- |
|
|
codeartsreq:defect:list |
授予权限以查询缺陷资源。 |
List |
- |
- |
|
|
codeartsreq:defect:create |
授予权限以创建缺陷资源。 |
Write |
- |
- |
|
|
codeartsreq:defect:update |
授予权限以更新缺陷资源。 |
Write |
- |
- |
|
|
codeartsreq:defect:delete |
授予权限以删除缺陷资源。 |
Write |
- |
- |
|
|
codeartsreq:defect:import |
授予权限以导入缺陷资源。 |
Write |
- |
- |
|
|
codeartsreq:defect:export |
授予权限以导出缺陷资源。 |
Read |
- |
- |
|
|
codeartsreq:defect:collaborate |
授予权限以协同缺陷资源。 |
Write |
- |
- |
|
|
codeartsreq:configuration:get |
授予权限以查看工作配置资源。 |
Read |
- |
- |
|
|
codeartsreq:configuration:list |
授予权限以查询工作配置资源。 |
List |
- |
- |
|
|
codeartsreq:configuration:share |
授予权限以共享工作配置资源。 |
Read |
- |
- |
|
|
codeartsreq:configuration:create |
授予权限以创建工作配置资源。 |
Write |
- |
- |
|
|
codeartsreq:configuration:update |
授予权限以更新工作配置资源。 |
Write |
- |
- |
|
|
codeartsreq:configuration:delete |
授予权限以删除工作配置资源。 |
Write |
- |
- |
|
|
codeartsreq:feature:get |
授予权限以查看特性资源。 |
Read |
- |
- |
|
|
codeartsreq:feature:list |
授予权限以查询特性资源。 |
List |
- |
- |
|
|
codeartsreq:feature:create |
授予权限以创建特性资源。 |
Write |
- |
- |
|
|
codeartsreq:feature:update |
授予权限以更新特性资源。 |
Write |
- |
- |
|
|
codeartsreq:feature:delete |
授予权限以删除特性资源。 |
Write |
- |
- |
|
|
codeartsreq:feature:import |
授予权限以导入特性资源。 |
Write |
- |
- |
|
|
codeartsreq:feature:export |
授予权限以导出特性资源。 |
Read |
- |
- |
|
|
codeartsreq:featureSet:get |
授予权限以查看特性集资源。 |
Read |
- |
- |
|
|
codeartsreq:featureSet:list |
授予权限以查询特性集资源。 |
List |
- |
- |
|
|
codeartsreq:featureSet:create |
授予权限以创建特性集资源。 |
Write |
- |
- |
|
|
codeartsreq:featureSet:baseline |
授予权限以基线特性集资源。 |
Write |
- |
- |
|
|
codeartsreq:featureSet:update |
授予权限以更新特性集资源。 |
Write |
- |
- |
|
|
codeartsreq:featureSet:delete |
授予权限以删除特性集资源。 |
Write |
- |
- |
|
|
codeartsreq:featureSet:import |
授予权限以导入特性集资源。 |
Write |
- |
- |
|
|
codeartsreq:featureSet:export |
授予权限以导出特性集资源。 |
Read |
- |
- |
|
|
codeartsreq:developmentRequirement:get |
授予权限以查看研发需求资源。 |
Read |
- |
- |
|
|
codeartsreq:developmentRequirement:list |
授予权限以查询研发需求资源。 |
List |
- |
- |
|
|
codeartsreq:developmentRequirement:create |
授予权限以创建研发需求资源。 |
Write |
- |
- |
|
|
codeartsreq:developmentRequirement:update |
授予权限以更新研发需求资源。 |
Write |
- |
- |
|
|
codeartsreq:developmentRequirement:collaborate |
授予权限以协同研发需求资源。 |
Write |
- |
- |
|
|
codeartsreq:developmentRequirement:delete |
授予权限以删除研发需求资源。 |
Write |
- |
- |
|
|
codeartsreq:developmentRequirement:import |
授予权限以导入研发需求资源。 |
Write |
- |
- |
|
|
codeartsreq:developmentRequirement:export |
授予权限以导出研发需求资源。 |
Read |
- |
- |
|
|
codeartsreq:review:get |
授予权限以查看评审资源。 |
Read |
- |
- |
|
|
codeartsreq:review:list |
授予权限以查询评审资源。 |
List |
- |
- |
|
|
codeartsreq:review:create |
授予权限以创建评审资源。 |
Write |
- |
- |
|
|
codeartsreq:review:update |
授予权限以更新评审资源。 |
Write |
- |
- |
|
|
codeartsreq:review:delete |
授予权限以删除评审资源。 |
Write |
- |
- |
|
|
codeartsreq:rawRequirement:get |
授予权限以查看原始需求资源。 |
Read |
- |
- |
|
|
codeartsreq:rawRequirement:list |
授予权限以查询原始需求资源。 |
List |
- |
- |
|
|
codeartsreq:rawRequirement:create |
授予权限以创建原始需求资源。 |
Write |
- |
- |
|
|
codeartsreq:rawRequirement:update |
授予权限以更新原始需求资源。 |
Write |
- |
- |
|
|
codeartsreq:rawRequirement:collaborate |
授予权限以协同原始需求资源。 |
Write |
- |
- |
|
|
codeartsreq:rawRequirement:delete |
授予权限以删除原始需求资源。 |
Write |
- |
- |
|
|
codeartsreq:rawRequirement:import |
授予权限以导入原始需求资源。 |
Write |
- |
- |
|
|
codeartsreq:rawRequirement:export |
授予权限以导出原始需求资源。 |
Read |
- |
- |
|
|
codeartsreq:task:get |
授予权限以查看任务资源。 |
Read |
- |
- |
|
|
codeartsreq:task:list |
授予权限以查询任务资源。 |
List |
- |
- |
|
|
codeartsreq:task:create |
授予权限以创建任务资源。 |
Write |
- |
- |
|
|
codeartsreq:task:update |
授予权限以更新任务资源。 |
Write |
- |
- |
|
|
codeartsreq:task:delete |
授予权限以删除任务资源。 |
Write |
- |
- |
|
|
codeartsreq:project:get |
授予权限以查看项目资源。 |
Read |
- |
- |
|
|
codeartsreq:project:list |
授予权限以查询项目资源。 |
List |
- |
- |
|
|
codeartsreq:project:create |
授予权限以创建项目资源。 |
Write |
- |
- |
|
|
codeartsreq:project:update |
授予权限以更新项目资源。 |
Write |
- |
- |
|
|
codeartsreq:project:delete |
授予权限以删除项目资源。 |
Write |
- |
- |
|
|
codeartsreq:member:get |
授予权限以查看成员资源。 |
Read |
- |
- |
|
|
codeartsreq:member:list |
授予权限以查询成员资源。 |
List |
- |
- |
|
|
codeartsreq:member:create |
授予权限以创建成员资源。 |
Write |
- |
- |
|
|
codeartsreq:member:update |
授予权限以更新成员资源。 |
Write |
- |
- |
|
|
codeartsreq:member:delete |
授予权限以删除成员资源。 |
Write |
- |
- |
|
|
codeartsreq:custom:get |
授予权限以查看自定义资源。 |
Read |
- |
- |
|
|
codeartsreq:custom:list |
授予权限以查询自定义资源。 |
List |
- |
- |
|
|
codeartsreq:custom:create |
授予权限以创建自定义资源。 |
Write |
- |
- |
|
|
codeartsreq:custom:update |
授予权限以更新自定义资源。 |
Write |
- |
- |
|
|
codeartsreq:custom:delete |
授予权限以删除自定义资源。 |
Write |
- |
- |
|
|
codeartsreq:tag:get |
授予权限以查看标签资源。 |
Read |
- |
- |
|
|
codeartsreq:tag:list |
授予权限以查询标签资源。 |
List |
- |
- |
|
|
codeartsreq:tag:create |
授予权限以创建标签资源。 |
Write |
- |
- |
|
|
codeartsreq:tag:update |
授予权限以更新标签资源。 |
Write |
- |
- |
|
|
codeartsreq:tag:delete |
授予权限以删除标签资源。 |
Write |
- |
- |
|
|
codeartsreq:workhour:get |
授予权限以查看工时资源。 |
Read |
- |
- |
|
|
codeartsreq:workhour:list |
授予权限以查询工时资源。 |
List |
- |
- |
|
|
codeartsreq:workhour:create |
授予权限以创建工时资源。 |
Write |
- |
- |
|
|
codeartsreq:workhour:update |
授予权限以更新工时资源。 |
Write |
- |
- |
|
|
codeartsreq:workhour:delete |
授予权限以删除工时资源。 |
Write |
- |
- |
|
|
codeartsreq:attachment:get |
授予权限以获取附件详情。 |
Read |
- |
- |
|
|
codeartsreq:attachment:download |
授予权限以下载附件资源。 |
Read |
- |
- |
|
|
codeartsreq:attachment:list |
授予权限以查询附件资源。 |
List |
- |
- |
|
|
codeartsreq:attachment:upload |
授予权限以创建附件资源。 |
Write |
- |
- |
|
|
codeartsreq:attachment:delete |
授予权限以删除附件资源。 |
Write |
- |
- |
|
|
codeartsreq:release:get |
授予权限以查看发布计划资源。 |
Read |
- |
- |
|
|
codeartsreq:release:list |
授予权限以查询发布计划资源。 |
List |
- |
- |
|
|
codeartsreq:release:create |
授予权限以创建发布计划资源。 |
Write |
- |
- |
|
|
codeartsreq:release:update |
授予权限以更新发布计划资源。 |
Write |
- |
- |
|
|
codeartsreq:release:delete |
授予权限以删除发布计划资源。 |
Write |
- |
- |
|
|
codeartsreq:risk:get |
授予权限以查看风险资源。 |
Read |
- |
- |
|
|
codeartsreq:risk:list |
授予权限以查询风险资源。 |
List |
- |
- |
|
|
codeartsreq:risk:create |
授予权限以创建风险资源。 |
Write |
- |
- |
|
|
codeartsreq:risk:update |
授予权限以更新风险资源。 |
Write |
- |
- |
|
|
codeartsreq:risk:delete |
授予权限以删除风险资源。 |
Write |
- |
- |
|
|
codeartsreq:workflow:get |
授予权限以查看工作流资源。 |
Read |
- |
- |
|
|
codeartsreq:workflow:list |
授予权限以查询工作流资源。 |
List |
- |
- |
|
|
codeartsreq:workflow:create |
授予权限以创建工作流资源。 |
Write |
- |
- |
|
|
codeartsreq:workflow:update |
授予权限以更新工作流资源。 |
Write |
- |
- |
|
|
codeartsreq:workflow:delete |
授予权限以删除工作流资源。 |
Write |
- |
- |
|
|
codeartsreq:workflow:execute |
授予权限以运行工作流资源。 |
Write |
- |
- |
|
|
codeartsreq:automation:get |
授予权限以查看自动化资源。 |
Read |
- |
- |
|
|
codeartsreq:automation:list |
授予权限以查询自动化资源。 |
List |
- |
- |
|
|
codeartsreq:automation:create |
授予权限以创建自动化资源。 |
Write |
- |
- |
|
|
codeartsreq:automation:update |
授予权限以更新自动化资源。 |
Write |
- |
- |
|
|
codeartsreq:automation:delete |
授予权限以删除自动化资源。 |
Write |
- |
- |
|
|
codeartsreq:automation:execute |
授予权限以执行自动化资源。 |
Write |
- |
- |
|
|
codeartsreq:report:export |
授予权限以下载报表。 |
Read |
- |
- |
|
|
codeartsreq::showGuide |
授予权限以显示用户指导。 |
Read |
- |
- |
|
|
codeartsreq::listValidModels |
授予权限以查询可用的模型。 |
Read |
- |
- |
|
|
codeartsreq:attachment:update |
授予权限以更新附件。 |
Write |
- |
- |
|
|
codeartsreq:featureSet:createBaseline |
授予权限以创建基线快照。 |
Write |
- |
- |
|
|
codeartsreq:featureSet:listBaseline |
授予权限以获取基线快照列表。 |
List |
- |
- |
|
|
codeartsreq:featureSet:getBaseline |
授予权限以获取基线快照详情。 |
Read |
- |
- |
|
|
codeartsreq::downloadImportAndExportRecord |
授予权限以下载导入导出记录。 |
Read |
- |
- |
|
|
codeartsreq::queryRecordList |
授予权限以查询导入导出记录列表。 |
Read |
- |
- |
|
|
codeartsreq::getUnReachableActivity |
授予权限以校验不可达事件。 |
Read |
- |
- |
|
|
codeartsreq::showWorkItemFlowRightObjectInfo |
授予权限以查询工作流实体信息。 |
Read |
- |
- |
|
|
codeartsreq::saveBehavior |
授予权限以保存看板用户行为。 |
Write |
- |
- |
|
|
codeartsreq::updateIssueAccessorySize |
授予权限以更新scrum工作项的附件大小。 |
Write |
- |
- |
|
|
codeartsreq::updateJobCache |
授予权限以更新scrum用户操作历史缓存。 |
Write |
- |
- |
|
|
codeartsreq::listScrumJobCache |
授予权限以查询scrum用户操作历史缓存列表。 |
List |
- |
- |
|
|
codeartsreq::createJobCache |
授予权限以创建scrum用户操作缓存。 |
Write |
- |
- |
|
|
codeartsreq::showHCSLicense |
授予权限以查询HCS许可。 |
Read |
- |
- |
|
|
codeartsreq:workhour:export |
授予权限以下载工时。 |
Read |
- |
- |
CodeArts Req的API通常对应着一个或多个授权项。表2展示了API与授权项的关系,以及该API需要依赖的授权项。
|
API |
对应的授权项 |
依赖的授权项 |
|---|---|---|
|
- |
codeartsreq:rawRequirement:update |
- |
|
codeartsreq:workhour:create |
- |
|
|
- |
codeartsreq:iteration:create |
- |
|
- |
codeartsreq:member:create |
- |
|
- |
codeartsreq:project:create |
- |
|
- |
codeartsreq:developmentRequirement:create |
- |
|
- |
codeartsreq:workitem:create |
- |
|
- |
codeartsreq:rawRequirement:create |
- |
|
- |
codeartsreq:developmentRequirement:create |
- |
|
- |
codeartsreq:developmentRequirement:delete |
- |
|
- |
codeartsreq:workitem:delete |
- |
|
codeartsreq:workitem:delete |
- |
|
|
codeartsreq:iteration:delete |
- |
|
|
DELETE /v1/planservice/projects/{project_id}/plans/batch-delete |
codeartsreq:plan:delete |
- |
|
- |
codeartsreq:project:delete |
- |
|
- |
codeartsreq:iteration:delete |
- |
|
- |
codeartsreq:rawRequirement:delete |
- |
|
- |
codeartsreq:workitem:list |
- |
|
PUT /v1/planservice/projects/{project_id}/plans/batch-baseline |
codeartsreq:plan:baseline |
- |
|
codeartsreq:member:update |
- |
|
|
- |
codeartsreq:developmentRequirement:update |
- |
|
codeartsreq:workitem:update |
- |
|
|
- |
codeartsreq:workitem:update |
- |
|
codeartsreq:configuration:delete |
- |
|
|
PUT /v1/planservice/projects/{project_id}/plans/{plan_id}/status |
codeartsreq:plan:update |
- |
|
- |
codeartsreq:rawRequirement:update |
- |
|
codeartsreq:custom:create |
- |
|
|
codeartsreq:review:create |
- |
|
|
- |
codeartsreq:featureSet:create |
- |
|
codeartsreq:configuration:create |
- |
|
|
POST /v1/ipdprojectservice/projects/{project_id}/process-instances |
codeartsreq:workflow:create |
- |
|
codeartsreq:workitem:create |
- |
|
|
POST /v1/ipdprojectservice/projects/{project_id}/issues/{issue_id}/attachments/upload |
codeartsreq:attachment:upload |
- |
|
- |
codeartsreq:tag:create |
- |
|
codeartsreq:workitem:create |
- |
|
|
codeartsreq:iteration:create |
- |
|
|
codeartsreq:plan:create |
- |
|
|
- |
codeartsreq:project:create |
- |
|
- |
codeartsreq:release:create |
- |
|
codeartsreq:configuration:create |
- |
|
|
codeartsreq:configuration:create |
- |
|
|
codeartsreq:workitem:create |
- |
|
|
POST /v1/ipdprojectservice/projects/{project_id}/work-items/{workitem_id}/work-hour |
codeartsreq:workhour:create |
- |
|
DELETE /v4/projects/{project_id}/issues/{issue_id}/attachments/{attachment_id} |
codeartsreq:attachment:upload |
- |
|
DELETE /v1/ipdprojectservice/projects/{project_id}/feature-sets/{feature_set_id} |
codeartsreq:featureSet:delete |
- |
|
DELETE /v1/ipdprojectservice/projects/{project_id}/review/{id} |
codeartsreq:review:delete |
- |
|
codeartsreq:workitem:update |
- |
|
|
DELETE /v1/ipdprojectservice/projects/{project_id}/tags/{label_id} |
codeartsreq:tag:delete |
- |
|
- |
codeartsreq:configuration:delete |
- |
|
DELETE /v1/ipdprojectservice/projects/{project_id}/process-instances/{id} |
codeartsreq:workflow:delete |
- |
|
codeartsreq:workitem:delete |
- |
|
|
codeartsreq:iteration:delete |
- |
|
|
- |
codeartsreq:project:delete |
- |
|
- |
codeartsreq:member:delete |
- |
|
- |
codeartsreq:release:delete |
- |
|
codeartsreq:configuration:delete |
- |
|
|
DELETE /v1/projects/{project_id}/work-items/{issue_id}/work-hour/{workhour_id} |
codeartsreq:workhour:delete |
- |
|
GET /v4/projects/{project_id}/issues/{issue_id}/attachments/{attachment_id} |
codeartsreq:attachment:download |
- |
|
codeartsreq:attachment:download |
- |
|
|
- |
codeartsreq:attachment:download |
- |
|
codeartsreq:workitem:get |
- |
|
|
GET /v1/ipdprojectservice/projects/{project_id}/attachments/download/{id} |
codeartsreq:attachment:get |
- |
|
- |
codeartsreq:plan:export |
- |
|
- |
codeartsreq:plan:export |
- |
|
- |
codeartsreq:plan:import |
- |
|
GET /v4/projects/{project_id}/issues/{issue_id}/associated-issues |
codeartsreq:workitem:list |
- |
|
GET /v4/projects/{project_id}/issues/{issue_id}/associate-test-cases |
codeartsreq:workitem:get |
- |
|
GET /v4/projects/{project_id}/issues/{issue_id}/associated-wikis |
codeartsreq:attachment:list |
- |
|
codeartsreq:workitem:list |
- |
|
|
- |
codeartsreq:plan:import |
- |
|
GET /v1/ipdprojectservice/projects/{project_id}/review/issues/{issue_id}/approvers |
codeartsreq:configuration:get |
- |
|
- |
codeartsreq:workitem:get |
- |
|
codeartsreq:configuration:list |
- |
|
|
POST /v1/ipdprojectservice/projects/{project_id}/issues/query |
codeartsreq:workitem:list |
- |
|
- |
codeartsreq:project:list |
- |
|
POST /v1/ipdprojectservice/projects/{project_id}/review/query |
codeartsreq:review:list |
- |
|
codeartsreq:developmentRequirement:list |
- |
|
|
- |
codeartsreq:workitem:list |
- |
|
- |
codeartsreq:developmentRequirement:list |
- |
|
GET /v4/projects/{project_id}/issues/{issue_id}/associated-commits |
codeartsreq:workitem:get |
- |
|
codeartsreq:workitem:list |
- |
|
|
codeartsreq:custom:list |
- |
|
|
codeartsreq:workitem:list |
- |
|
|
codeartsreq:workitem:list |
- |
|
|
codeartsreq:workitem:list |
- |
|
|
- |
codeartsreq:configuration:list |
- |
|
- |
codeartsreq:release:get |
- |
|
- |
codeartsreq:plan:list |
- |
|
codeartsreq:plan:list |
- |
|
|
codeartsreq:plan:get |
- |
|
|
- |
codeartsreq:plan:get |
- |
|
codeartsreq:project:get |
- |
|
|
- |
codeartsreq:member:list |
- |
|
- |
codeartsreq:project:list |
- |
|
- |
codeartsreq:member:list |
- |
|
- |
codeartsreq:release:get |
- |
|
- |
codeartsreq:iteration:list |
- |
|
- |
codeartsreq:release:list |
- |
|
codeartsreq:project:list |
- |
|
|
codeartsreq:defect:list |
- |
|
|
codeartsreq:developmentRequirement:list |
- |
|
|
codeartsreq:configuration:list |
- |
|
|
codeartsreq:workitem:list |
- |
|
|
codeartsreq:iteration:list |
- |
|
|
codeartsreq:configuration:list |
- |
|
|
codeartsreq:member:list |
- |
|
|
codeartsreq:workhour:list |
- |
|
|
codeartsreq:workhour:list |
- |
|
|
- |
codeartsreq:developmentRequirement:list |
- |
|
codeartsreq:configuration:list |
- |
|
|
codeartsreq:rawRequirement:list |
- |
|
|
codeartsreq:configuration:list |
- |
|
|
codeartsreq:workitem:get |
- |
|
|
codeartsreq:workitem:get |
- |
|
|
codeartsreq:workitem:list |
- |
|
|
codeartsreq:review:update |
- |
|
|
- |
codeartsreq:rawRequirement:update |
- |
|
codeartsreq:workitem:list |
- |
|
|
- |
codeartsreq:plan:get |
- |
|
- |
codeartsreq:plan:list |
- |
|
GET /v1/ipdprojectservice/projects/{project_id}/feature-set/query |
codeartsreq:featureSet:list |
- |
|
- |
codeartsreq:configuration:list |
- |
|
codeartsreq:member:get |
- |
|
|
codeartsreq:project:list |
- |
|
|
GET /v1/ipdprojectservice/projects/{project_id}/issue/get-attached-wikis |
codeartsreq:attachment:get |
- |
|
codeartsreq:attachment:list |
- |
|
|
- |
codeartsreq:configuration:get |
- |
|
GET /v2/ipdprojectservice/projects/{project_id}/issues/{issue_id} |
codeartsreq:workitem:get |
- |
|
GET /v1/ipdprojectservice/projects/{project_id}/process-instances/{id} |
codeartsreq:workflow:get |
- |
|
POST /v1/ipdprojectservice/projects/{project_id}/process-instances/query |
codeartsreq:workflow:list |
- |
|
codeartsreq:review:get |
- |
|
|
- |
codeartsreq:member:list |
- |
|
- |
codeartsreq:tag:get |
- |
|
codeartsreq:developmentRequirement:get |
- |
|
|
codeartsreq:developmentRequirement:get |
- |
|
|
- |
codeartsreq:workitem:get |
- |
|
codeartsreq:workitem:list |
- |
|
|
- |
codeartsreq:workitem:list |
- |
|
codeartsreq:workitem:get |
- |
|
|
codeartsreq:workflow:get |
- |
|
|
codeartsreq:iteration:get |
- |
|
|
- |
codeartsreq:configuration:list |
- |
|
- |
codeartsreq:plan:get |
- |
|
- |
codeartsreq:project:get |
- |
|
- |
codeartsreq:release:get |
- |
|
codeartsreq:project:get |
- |
|
|
codeartsreq:workhour:get |
- |
|
|
- |
codeartsreq:developmentRequirement:get |
- |
|
codeartsreq:rawRequirement:get |
- |
|
|
GET /v1/ipdprojectservice/projects/{project_id}/snapshots-feature/query |
codeartsreq:featureSet:getBaseline |
- |
|
GET /v1/ipdprojectservice/projects/{project_id}/snapshots/version |
codeartsreq:featureSet:getBaseline |
- |
|
- |
codeartsreq:dashboard:get |
- |
|
codeartsreq:workitem:list |
- |
|
|
GET /v1/ipdprojectservice/projects/{project_id}/work-hour/options |
codeartsreq:configuration:get |
- |
|
POST /v1/ipdprojectservice/projects/{project_id}/work-hour/query |
codeartsreq:workhour:get |
- |
|
codeartsreq:configuration:get |
- |
|
|
- |
codeartsreq:workitem:list |
- |
|
- |
codeartsreq:featureSet:update |
- |
|
PUT /v1/ipdprojectservice/projects/{project_id}/tags/{label_id} |
codeartsreq:tag:update |
- |
|
- |
codeartsreq:configuration:update |
- |
|
PUT /v1/ipdprojectservice/projects/{project_id}/process-instances/{id} |
codeartsreq:workflow:update |
- |
|
codeartsreq:workitem:update |
- |
|
|
codeartsreq:iteration:update |
- |
|
|
codeartsreq:member:update |
- |
|
|
- |
codeartsreq:plan:update |
- |
|
codeartsreq:plan:update |
- |
|
|
- |
codeartsreq:plan:update |
- |
|
- |
codeartsreq:project:update |
- |
|
- |
codeartsreq:member:update |
- |
|
- |
codeartsreq:release:update |
- |
|
codeartsreq:configuration:update |
- |
|
|
codeartsreq:configuration:update |
- |
|
|
- |
codeartsreq:developmentRequirement:update |
- |
|
- |
codeartsreq:configuration:update |
- |
|
PUT /v1/projects/{project_id}/work-items/{issue_id}/work-hour/{workhour_id} |
codeartsreq:workhour:update |
- |
|
POST /v4/projects/{project_id}/issues/{issue_id}/attachments/upload |
codeartsreq:attachment:upload |
- |
|
codeartsreq:workitem:create |
- |
资源类型(Resource)
CodeArts Req服务不支持在身份策略中的资源中指定资源进行权限控制。如需允许访问CodeArts Req服务,请在身份策略的Resource元素中使用通配符号*,表示身份策略将应用到所有资源。
条件(Condition)
条件键概述
条件(Condition)是身份策略生效的特定条件,包括条件键和运算符。
- 条件键表示身份策略语句的Condition元素中的键值。根据适用范围,分为全局级条件键和服务级条件键。
- 全局级条件键(前缀为g:)适用于所有操作,在鉴权过程中,云服务不需要提供用户身份信息,系统将自动获取并鉴权。详情请参见:全局条件键。
- 服务级条件键(前缀通常为服务缩写,如codearts req:)仅适用于对应服务的操作,详情请参见表3。
- 单值/多值表示API调用时请求中与条件关联的值数。单值条件键在API调用时的请求中最多包含一个值,多值条件键在API调用时请求可以包含多个值。例如:g:SourceVpce是单值条件键,表示仅允许通过某个VPC终端节点发起请求访问某资源,一个请求最多包含一个VPC终端节点ID值。g:TagKeys是多值条件键,表示请求中携带的所有标签的key组成的列表,当用户在调用API请求时传入标签可以传入多个值。
- 运算符与条件键、条件值一起构成完整的条件判断语句,当请求信息满足该条件时,身份策略才能生效。支持的运算符请参见:运算符。
CodeArts Req支持的服务级条件键
CodeArts Req定义了以下可以在自定义身份策略的Condition元素中使用的条件键,您可以使用这些条件键进一步细化身份策略语句应用的条件。