全部产品

访问控制

描述

您通过云账号创建的 AIRec 实例,都是该账号自己拥有的资源。默认情况下,账号对自己的资源拥有完整的操作权限。

通过使用阿里云的访问控制 RAM(Resource Access Management)服务,您可以将您云账号下 AIRec 资源的访问及管理权限授予RAM中的子用户。

AIRec API的鉴权规则

当子用户通过API访问 AIRec 时,AIRec 后台会向RAM进行权限检查,以确保调用者拥有相应权限。每个API会根据涉及到的资源以及API的语义来确定需要检查哪些资源的权限。每个API的鉴权规则如下表所示:

操作

API

Action

鉴权规则

获取实例列表

GET /instances

ListInstance

acs:airec:$regionId:$accountId:instance/*

创建实例

POST /instances

CreateInstance

acs:airec:$regionId:$accountId:instance/*

获取实例详情

GET /instances/{instanceId}

DescribeInstance

acs:airec:$regionId:$accountId:instance/$instanceId

删除实例

DELETE /instances/{instanceId}

DeleteInstance

acs:airec:$regionId:$accountId:instance/$instanceId

修改实例详情

PUT /instances/{instanceId}

ModifyInstance

acs:airec:$regionId:$accountId:instance/$instanceId

提升实例配额

POST /instances/{instanceId}/actions/upgrade

UpgradeInstance

acs:airec:$regionId:$accountId:instance/$instanceId

启动数据导入

POST /instances/{instanceId}/actions/import

RunInstance

acs:airec:$regionId:$accountId:instance/$instanceId

校验实例有效性

POST /instances/{instanceId}/actions/validate

ValidateInstance

acs:airec:$regionId:$accountId:instance/$instanceId

获取数据集列表

GET /instances/{instanceId}/dataSets

ListDataSet

acs:airec:$regionId:$accountId:instance/$instanceId/dataSet/*

生效数据集

POST /instances/{instanceId}/dataSets/{versionId}/actions/current

AttachDataSet

acs:airec:$regionId:$accountId:instance/$instanceId/dataSet/$versionId

停止数据集

POST /instances/{instanceId}/dataSets/{versionId}/actions/stop

StopDataSet

acs:airec:$regionId:$accountId:instance/$instanceId/dataSet/$versionId

删除数据集

POST /instances/{instanceId}/dataSets/{versionId}

DeleteDataSet

acs:airec:$regionId:$accountId:instance/$instanceId/dataSet/$versionId

获取数据集报告

GET /instances/{instanceId}/dataSets/{versionId}/report

DescribeDataSetReport

acs:airec:$regionId:$accountId:instance/$instanceId/dataSet/$versionId

获取数据集错误信息

GET /instances/{instanceId}/dataSets/{versionId}/messages

DescribeDataSetMessage

acs:airec:$regionId:$accountId:instance/$instanceId/dataSet/$versionId

获取实例数据源列表

GET /instances/{instanceId}/dataSources

ListDataSource

acs:airec:$regionId:$accountId:instance/$instanceId/dataSource/*

修改实例数据源

PUT /instances/{instanceId}/dataSources/{tableName}

ModifyDataSource

acs:airec:$regionId:$accountId:instance/$instanceId/dataSource/$tableName

创建打散配置

POST /instances/{instanceId}/diversifies

CreateDiversify

acs:airec:$regionId:$accountId:instance/$instanceId/diversify/*

获取打散列表

GET /instances/{instanceId}/diversifies

ListDiversify

acs:airec:$regionId:$accountId:instance/$instanceId/diversify/*

获取打散配置

GET /instances/{instanceId}/diversifies/{name}

DescribeDiversify

acs:airec:$regionId:$accountId:instance/$instanceId/diversify/$name

修改打散配置

PUT /instances/{instanceId}/diversifies/{name}

ModifyDiversify

acs:airec:$regionId:$accountId:instance/$instanceId/diversify/$name

删除打散配置

DELETE /instances/{instanceId}/diversifies/{name}

DeleteDiversify

acs:airec:$regionId:$accountId:instance/$instanceId/diversify/$name

推送文档

POST /instances/{instanceId}/tables/{tableName}/actions/bulk

PushDocument

acs:airec:$regionId:$accountId:instance/$instanceId/table/$tableName

获取推荐结果

GET /instances/{instanceId}/actions/recommend

Recommend

acs:airec:$regionId:$accountId:instance/$instanceId

推送干预数据

POST /instances/{instanceId}/actions/intervene

PushIntervention

acs:airec:$regionId:$accountId:instance/$instanceId

创建混排

POST /instances/{instanceId}/mixes

CreateMix

acs:airec:$regionId:$accountId:instance/$instanceId/mix/*

获取混排列表

GET /instances/{instanceId}/mixes

ListMix

acs:airec:$regionId:$accountId:instance/$instanceId/mix/*

获取混排配置

GET /instances/{instanceId}/mixes/{name}

DescribeMix

acs:airec:$regionId:$accountId:instance/$instanceId/mix/$name

修改混排配置

PUT /instances/{instanceId}/mixes/{name}

ModifyMix

acs:airec:$regionId:$accountId:instance/$instanceId/mix/$name

删除混排配置

DELETE /instances/{instanceId}/mixes/{name}

DeleteMix

acs:airec:$regionId:$accountId:instance/$instanceId/mix/$name

获取配额信息

GET /instances/{instanceId}/quota

DescribeQuota

acs:airec:$regionId:$accountId:instance/$instanceId/quota

获取实例渠道和场景列表

GET /instances/{instanceId}/dashboard/parameters

ListDashboardParameters

acs:airec:$regionId:$accountId:instance/$instanceId/dashboard

获取实例仪表盘

GET /instances/{instanceId}/dashboard/statistics

ListDashboard

acs:airec:$regionId:$accountId:instance/$instanceId/dashboard

获取实例跨渠道用户列表

GET /instances/{instanceId}/dashboard/uid

ListDashboardUid

acs:airec:$regionId:$accountId:instance/$instanceId/dashboard

获取实例任务列表

GET /instances/{instanceId}/tasks

ListInstanceTask

acs:airec:$regionId:$accountId:instance/$instanceId/task