授权信息

更新时间:
复制 MD 格式

访问控制(RAM)是阿里云提供的管理用户身份与资源访问权限的服务。使用 RAM 可以让您避免与其他用户共享阿里云账号密钥,并可按需为用户授予最小权限。RAM 中使用权限策略描述授权的具体内容。

本文为您介绍 AI 安全护栏 为 RAM 权限策略定义的操作(Action)、资源(Resource)和条件(Condition)。 AI 安全护栏 的 RAM 代码(RamCode)为 yundun-greenweb ,支持的授权粒度为 操作级 。各操作的资源授权范围见操作表。

权限策略通用结构

权限策略支持 JSON 格式。以下为使用 Action 元素的权限策略结构示意,尖括号内为占位符,使用时需替换为实际值:

{
  "Version": "1",
  "Statement": [
    {
      "Effect": "<Effect>",
      "Action": "<Action>",
      "Resource": "<Resource>",
      "Condition": {
        "<Condition_operator>": {
          "<Condition_key>": [
            "<Condition_value>"
          ]
        }
      }
    }
  ]
}        

各字段及占位符含义如下:

  • Effect:权限策略效果。取值:Allow(允许)、Deny(拒绝)。

  • Action:允许或拒绝的具体操作。具体信息,请参见操作(Action)。

  • Resource:受操作影响的具体对象,您可以使用资源 ARN 来描述指定资源。具体信息,请参见资源(Resource)。

  • Condition:策略语句生效的条件。可选字段。具体信息,请参见条件(Condition)。

  • Condition_operator:条件运算符,不同类型的条件对应不同的条件运算符。具体信息,请参见权限策略基本元素。

  • Condition_key:条件关键字。

  • Condition_value:条件关键字对应的值。

操作(Action)

下表列出AI 安全护栏的 RAM 操作,这些操作可以在 RAM 权限策略的 Action 元素中使用。

  • 操作:具体的 RAM 权限点,大部分情况下和 OpenAPI 同名。

  • OpenAPI:与该 RAM 操作关联的 OpenAPI。

  • 访问级别:取值为写入(Write)、读取(Read)、列出(List)或其他(Other)。

  • 资源类型:操作支持授权的资源类型。具体说明如下:

    • 必选资源类型前加 * 。

    • 显示“全部资源”且资源 ARN 为 * 时,权限策略中的 Resource 填写 *。

  • 条件关键字:操作支持的产品级条件关键字,不含通用条件关键字。

  • 关联操作:执行该操作还需要具备的其他操作权限。

操作

OpenAPI

访问级别

资源类型

条件关键字

关联操作

yundun-greenweb:PublishAppConfig PublishAppConfig update

*全部资源

*

无 无
yundun-greenweb:GetUploadContent GetUploadContent none

*全部资源

*

无 无
yundun-greenweb:UpdateOssCheckResultsFreeze UpdateOssCheckResultsFreeze update

*全部资源

*

无 无
yundun-greenweb:GetBucketsList GetBucketsList get

*全部资源

*

无 无
yundun-greenweb:ExportCipStats ExportCipStats list

*全部资源

*

无 无
yundun-greenweb:MarkOssV2Result MarkOssV2Result update

*全部资源

*

无 无
yundun-greenweb:QueryCallbackByPage QueryCallbackByPage list

*全部资源

*

无 无
yundun-greenweb:RecoverAppConfigHistory RecoverAppConfigHistory update

*全部资源

*

无 无
yundun-greenweb:ExportKeyword ExportKeyword list

*全部资源

*

无 无
yundun-greenweb:AddKeywordLib AddKeywordLib create

*全部资源

*

无 无
yundun-greenweb:CreateAnswerLib CreateAnswerLib create

*全部资源

*

无 无
yundun-greenweb:DescribeOnlineTestResult DescribeOnlineTestResult get

*全部资源

*

无 无
yundun-greenweb:GetAiAppOverview GetAiAppOverview none

*全部资源

*

无 无
yundun-greenweb:DeleteAppAgent DeleteAppAgent delete

*全部资源

*

无 无
yundun-greenweb:DeleteKeyword DeleteKeyword delete

*全部资源

*

无 无
yundun-greenweb:GetScanResult GetScanResult get

*全部资源

*

无 无
yundun-greenweb:QueryAnswerSampleByPage QueryAnswerSampleByPage list

*全部资源

*

无 无
yundun-greenweb:DescribeOssV2Result DescribeOssV2Result list

*全部资源

*

无 无
yundun-greenweb:AddImageLib AddImageLib create

*全部资源

*

无 无
yundun-greenweb:GetAnswerImportProgress GetAnswerImportProgress get

*全部资源

*

无 无
yundun-greenweb:DeleteCallback DeleteCallback delete

*全部资源

*

无 无
yundun-greenweb:GetAppConfig GetAppConfig get

*全部资源

*

无 无
yundun-greenweb:GetOssCheckStat GetOssCheckStat get

*全部资源

*

无 无
yundun-greenweb:CreateOnlineTest CreateOnlineTest create

*全部资源

*

无 无
yundun-greenweb:AddKeywords AddKeywords create

*全部资源

*

无 无
yundun-greenweb:GetTuneProposalById GetTuneProposalById get

*全部资源

*

无 无
yundun-greenweb:UpdateEventStatus UpdateEventStatus none

*全部资源

*

无 无
yundun-greenweb:ExportScanResult ExportScanResult list

*全部资源

*

无 无
yundun-greenweb:AddKeywordsToLib AddKeywordsToLib create

*全部资源

*

无 无
yundun-greenweb:ListServiceConfigs ListServiceConfigs list

*全部资源

*

无 无
yundun-greenweb:UpdateBackupConfig UpdateBackupConfig update

*全部资源

*

无 无
yundun-greenweb:GetAiAppDetail GetAiAppDetail none

*全部资源

*

无 无
yundun-greenweb:DeleteImagesFromLib DeleteImagesFromLib delete

*全部资源

*

无 无
yundun-greenweb:GetRiskStats GetRiskStats none

*全部资源

*

无 无
yundun-greenweb:ExportResult ExportResult list

*全部资源

*

无 无
yundun-greenweb:OssCheckResultList OssCheckResultList list

*全部资源

*

无 无
yundun-greenweb:ExportAnswerSample ExportAnswerSample list

*全部资源

*

无 无
yundun-greenweb:ListAiAppRiskEventByPage ListAiAppRiskEventByPage list

*全部资源

*

无 无
yundun-greenweb:DeleteKeywordLib DeleteKeywordLib delete

*全部资源

*

无 无
yundun-greenweb:UpdateServiceConfig UpdateServiceConfig update

*全部资源

*

无 无
yundun-greenweb:ModifyServiceInfo ModifyServiceInfo update

*全部资源

*

无 无
yundun-greenweb:AddAnswerSample AddAnswerSample create

*全部资源

*

无 无
yundun-greenweb:ModifyAppAgent ModifyAppAgent update

*全部资源

*

无 无
yundun-greenweb:CancelStockOssCheckTask CancelStockOssCheckTask none

*全部资源

*

无 无
yundun-greenweb:GetAiAppTraceDetail GetAiAppTraceDetail none

*全部资源

*

无 无
yundun-greenweb:ModifyAnswerLib ModifyAnswerLib update

*全部资源

*

无 无
yundun-greenweb:ListAppConfigHistory ListAppConfigHistory list

*全部资源

*

无 无
yundun-greenweb:UpdateScanResultFeedback UpdateScanResultFeedback update

*全部资源

*

无 无
yundun-greenweb:GetUserBuyStatus GetUserBuyStatus get

*全部资源

*

无 无
yundun-greenweb:GetKeywordLib GetKeywordLib get

*全部资源

*

无 无
yundun-greenweb:GetAiAppDetailStat GetAiAppDetailStat none

*全部资源

*

无 无
yundun-greenweb:GetPromptTestResult GetPromptTestResult get

*全部资源

*

无 无
yundun-greenweb:UpdateOssCheckResultsBatchFeedback UpdateOssCheckResultsBatchFeedback update

*全部资源

*

无 无
yundun-greenweb:UpdateImageLib UpdateImageLib update

*全部资源

*

无 无
yundun-greenweb:GetImageSceneLabelListConf GetImageSceneLabelListConf get

*全部资源

*

无 无
yundun-greenweb:GetBackupBucketsList GetBackupBucketsList get

*全部资源

*

无 无
yundun-greenweb:ModifyCallback ModifyCallback update

*全部资源

*

无 无
yundun-greenweb:GetAiAppNodeDetail GetAiAppNodeDetail none

*全部资源

*

无 无
yundun-greenweb:CopyAppConfig CopyAppConfig create

*全部资源

*

无 无
yundun-greenweb:UpdateMetaLog UpdateMetaLog update

*全部资源

*

无 无
yundun-greenweb:GetTextScanResult GetTextScanResult get

*全部资源

*

无 无
yundun-greenweb:GetKeywordImportResult GetKeywordImportResult get

*全部资源

*

无 无
yundun-greenweb:GetUploadInfo GetUploadInfo get

*全部资源

*

无 无
yundun-greenweb:CreateImageLib CreateImageLib create

*全部资源

*

无 无
yundun-greenweb:GetOssCheckStatus GetOssCheckStatus get

*全部资源

*

无 无
yundun-greenweb:DeleteFeatureConfig DeleteFeatureConfig delete

*全部资源

*

无 无
yundun-greenweb:ListImagesFromLib ListImagesFromLib list

*全部资源

*

无 无
yundun-greenweb:GetUploadLink GetUploadLink get

*全部资源

*

无 无
yundun-greenweb:GetExecuteTime GetExecuteTime get

*全部资源

*

无 无
yundun-greenweb:DeleteAnswerLib DeleteAnswerLib delete

*全部资源

*

无 无
yundun-greenweb:GetImageSceneLabelConf GetImageSceneLabelConf get

*全部资源

*

无 无
yundun-greenweb:CopyServiceConfig CopyServiceConfig create

*全部资源

*

无 无
yundun-greenweb:CreatStockOssCheckTask CreatStockOssCheckTask create

*全部资源

*

无 无
yundun-greenweb:CreateAppConfig CreateAppConfig create

*全部资源

*

无 无
yundun-greenweb:GetCipStats GetCipStats get

*全部资源

*

无 无
yundun-greenweb:ModifyAppInfo ModifyAppInfo update

*全部资源

*

无 无
yundun-greenweb:GetJobNameList GetJobNameList get

*全部资源

*

无 无
yundun-greenweb:ExportOssCheckStat ExportOssCheckStat list

*全部资源

*

无 无
yundun-greenweb:ListCallback ListCallback list

*全部资源

*

无 无
yundun-greenweb:AddAppAgent AddAppAgent update

*全部资源

*

无 无
yundun-greenweb:GetQpsStats GetQpsStats get

*全部资源

*

无 无
yundun-greenweb:GetAiAppDetailTopo GetAiAppDetailTopo none

*全部资源

*

无 无
yundun-greenweb:GetServiceConfig GetServiceConfig get

*全部资源

*

无 无
yundun-greenweb:DeleteAnswerSample DeleteAnswerSample delete

*全部资源

*

无 无
yundun-greenweb:GetServiceConf GetServiceConf get

*全部资源

*

无 无
yundun-greenweb:CreateCallback CreateCallback create

*全部资源

*

无 无
yundun-greenweb:ListOssCheckResult ListOssCheckResult list

*全部资源

*

无 无
yundun-greenweb:GetGuardLogStats GetGuardLogStats get

*全部资源

*

无 无
yundun-greenweb:ModifyFeatureConfig ModifyFeatureConfig update

*全部资源

*

无 无
yundun-greenweb:GetFeatureConfig GetFeatureConfig get

*全部资源

*

无 无
yundun-greenweb:UpdateOssCheckResultsUnfreeze UpdateOssCheckResultsUnfreeze update

*全部资源

*

无 无
yundun-greenweb:GetOssCheckFreezeResult GetOssCheckFreezeResult get

*全部资源

*

无 无
yundun-greenweb:ListAppConfigs ListAppConfigs list

*全部资源

*

无 无
yundun-greenweb:ListAiAppWarningByPage ListAiAppWarningByPage none

*全部资源

*

无 无
yundun-greenweb:CreatePreCheck CreatePreCheck create

*全部资源

*

无 无
yundun-greenweb:DeleteOnlineTest DeleteOnlineTest delete

*全部资源

*

无 无
yundun-greenweb:GetStockOssCheckTasksList GetStockOssCheckTasksList get

*全部资源

*

无 无
yundun-greenweb:ListKeywordLibs ListKeywordLibs list

*全部资源

*

无 无
yundun-greenweb:LlmStreamChat LlmStreamChat get

*全部资源

*

无 无
yundun-greenweb:StopOnlineTest StopOnlineTest update

*全部资源

*

无 无
yundun-greenweb:GetServiceLabelConfig GetServiceLabelConfig get

*全部资源

*

无 无
yundun-greenweb:ListKeywords ListKeywords list

*全部资源

*

无 无
yundun-greenweb:GetOssCheckResultDetail GetOssCheckResultDetail get

*全部资源

*

无 无
yundun-greenweb:AddImages2Lib AddImages2Lib create

*全部资源

*

无 无
yundun-greenweb:AddAppConfig AddAppConfig create

*全部资源

*

无 无
yundun-greenweb:UpdateOssCheckResultsFeedBack UpdateOssCheckResultsFeedBack update

*全部资源

*

无 无
yundun-greenweb:GetBackupConfig GetBackupConfig get

*全部资源

*

无 无
yundun-greenweb:GetBackupStatus GetBackupStatus get

*全部资源

*

无 无
yundun-greenweb:ExportTextScanResult ExportTextScanResult list

*全部资源

*

无 无
yundun-greenweb:GetOssCheckTaskInfo GetOssCheckTaskInfo get

*全部资源

*

无 无
yundun-greenweb:QueryLabelConfig QueryLabelConfig get

*全部资源

*

无 无
yundun-greenweb:ListImageLib ListImageLib list

*全部资源

*

无 无
yundun-greenweb:GetAiAppStats GetAiAppStats none

*全部资源

*

无 无
yundun-greenweb:UpdateImageLibFreeInspection UpdateImageLibFreeInspection update

*全部资源

*

无 无
yundun-greenweb:UpdateKeywordLib UpdateKeywordLib update

*全部资源

*

无 无
yundun-greenweb:InitAiAppScan InitAiAppScan get

*全部资源

*

无 无
yundun-greenweb:ListAnswerLib ListAnswerLib list

*全部资源

*

无 无
yundun-greenweb:ListAiAppRiskEvent ListAiAppRiskEvent none

*全部资源

*

无 无
yundun-greenweb:GetScanNum GetScanNum get

*全部资源

*

无 无
yundun-greenweb:UpdateAiAppScanStatus UpdateAiAppScanStatus none

*全部资源

*

无 无
yundun-greenweb:ConfirmAiAppScan ConfirmAiAppScan none

*全部资源

*

无 无
yundun-greenweb:GetGuardStatus GetGuardStatus none

*全部资源

*

无 无
yundun-greenweb:ListAiAppByPage ListAiAppByPage none

*全部资源

*

无 无
yundun-greenweb:QueryCallback QueryCallback list

*全部资源

*

无 无

资源(Resource)

下表列出AI 安全护栏的资源类型及其 ARN 格式。RAM 权限策略语句的 Resource 元素用于指定该语句适用的资源。具体说明如下:

  • ARN 中的 {#} 为变量标识,需要您替换为实际值。例如:{#ramcode} 需要您替换为实际的云服务 RAM 代码。

  • ARN 中的 * 表示全部。例如:

    • {#resourceType}/*:表示全部资源。

    • {#regionId} 为 * 时:表示全部地域。

    • {#accountId} 为 * 时:表示全部阿里云账号。

资源类型

资源 ARN

条件(Condition)

AI 安全护栏未定义产品级别的条件关键字。如需查看适用于所有云产品的通用条件关键字,请参见通用条件关键字。

相关文档

关于条件运算符、自定义权限策略与授权操作,请参见以下文档: