在使用RAM账号调用基因分析平台产品API前,需要主账号通过创建授权策略对RAM账号进行授权。在授权策略中,使用资源描述符(Alibaba Cloud Resource Name, ARN)指定授权资源。
可授权的基因分析平台资源类型
在进行RAM子账号授权时,基因分析平台资源的描述方式如下:
| 资源类型 | 授权策略中的资源描述方法 | 
|---|---|
| * | acs:easygene:$regionid:$accountid:* | 
| Workspace | acs:easygene:$regionid:$accountid:workspace/$workspace | 
| acs:easygene:$regionid:$accountid:workspace/* | |
| acs:easygene:*:$accountid:workspace/* | |
| acs:easygene:*:*:workspace/* | |
| App | acs:easygene:$regionid:$accountid:workspace/$workspace/app/$appName | 
| acs:easygene:$regionid:$accountid:workspace/$workspace/app/* | |
| Run | acs:easygene:$regionid:$accountid:workspace/$workspace/run/$runId | 
| acs:easygene:$regionid:$accountid:workspace/$workspace/run/* | |
| Template | acs:easygene:$regionid:$accountid:workspace/$workspace/template/$templateName | 
| acs:easygene:$regionid:$accountid:workspace/$workspace/template/* | |
| Entity | acs:easygene:$regionid:$accountid:workspace/$workspace/entity/$entityType | 
| acs:easygene:$regionid:$accountid:workspace/$workspace/entity/* | |
| Submission | acs:easygene:$regionid:$accountid:workspace/$workspace/submission/$submissionId | 
| acs:easygene:$regionid:$accountid:workspace/$workspace/submission/* | 
| 参数名称 | 说明 | 
|---|---|
| $regionid | 地域ID,可用*代替。 | 
| $accountid | 云账号数字ID,可用*代替。 | 
| $workspace | 工作空间名称,可用*代替。 | 
| $appName | 应用的名称。 | 
| $runId | 运行任务的ID。 | 
| $templateName | 应用模板的名称。 | 
| $entityType | 实体表格的类型。 | 
| $submissionId | 投递ID。 | 
可授权的基因分析平台接口
下表列举了基因分析平台中可授权的API及其描述方式:
| API | 资源描述 | 
|---|---|
| CreateWorkspace | acs:easygene:$regionid:$accountid:workspace/* | 
| GetWorkspace | acs:easygene:$regionid:$accountid:workspace/$workspace | 
| DeleteWorkspace | acs:easygene:$regionid:$accountid:workspace/$workspace | 
| ListWorkspaces | acs:easygene:$regionid:$accountid:workspace/* | 
| UpdateWorkspace | acs:easygene:$regionid:$accountid:workspace/$workspace | 
| CreateApp | acs:easygene:$regionid:$accountid:workspace/$workspace/app/* | 
| GetApp | acs:easygene:$regionid:$accountid:workspace/$workspace/app/$appName | 
| DeleteApp | acs:easygene:$regionid:$accountid:workspace/$workspace/app/$appName | 
| ListApps | acs:easygene:$regionid:$accountid:workspace/$workspace/app/* | 
| InstallGlobalApp | acs:easygene:$regionid:$accountid:workspace/$workspace/app/* | 
| CreateRun | acs:easygene:$regionid:$accountid:workspace/$workspace/run/* | 
| GetRun | acs:easygene:$regionid:$accountid:workspace/$workspace/run/$runId | 
| ListRuns | acs:easygene:$regionid:$accountid:workspace/$workspace/run/* | 
| AbortRun | acs:easygene:$regionid:$accountid:workspace/$workspace/run/$runId | 
| DeleteRun | acs:easygene:$regionid:$accountid:workspace/$workspace/run/$runId | 
| CreateTemplate | acs:easygene:$regionid:$accountid:workspace/$workspace/template/* | 
| GetTemplate | acs:easygene:$regionid:$accountid:workspace/$workspace/template/$templateName | 
| DeleteTemplate | acs:easygene:$regionid:$accountid:workspace/$workspace/template/$templateName | 
| ListTemplates | acs:easygene:$regionid:$accountid:workspace/$workspace/template/* | 
| UpdateTemplate | acs:easygene:$regionid:$accountid:workspace/$workspace/template/$templateName | 
| CreateEntity | acs:easygene:$regionid:$accountid:workspace/$workspace/entity/* | 
| GetEntity | acs:easygene:$regionid:$accountid:workspace/$workspace/entity/$entityType | 
| ListEntityItems | acs:easygene:$regionid:$accountid:workspace/$workspace/entity/$entityType | 
| ListEntities | acs:easygene:$regionid:$accountid:workspace/$workspace/entity/* | 
| UpdateEntity | acs:easygene:$regionid:$accountid:workspace/$workspace/entity/$entityType | 
| UploadEntity | acs:easygene:$regionid:$accountid:workspace/$workspace/entity/* | 
| DownloadEntity | acs:easygene:$regionid:$accountid:workspace/$workspace/entity/$entityType | 
| DeleteEntityItems | acs:easygene:$regionid:$accountid:workspace/$workspace/entity/$entityType | 
| CopyPublicEntity | acs:easygene:$regionid:$accountid:workspace/$workspace/entity/* | 
| CreateSubmission | acs:easygene:$regionid:$accountid:workspace/$workspace/submission/* | 
| GetSubmission | acs:easygene:$regionid:$accountid:workspace/$workspace/submission/$submissionId | 
| ListSubmissions | acs:easygene:$regionid:$accountid:workspace/$workspace/submission/* | 
| AbortSubmission | acs:easygene:$regionid:$accountid:workspace/$workspace/submission/$submissionId | 
| DeleteSubmission | acs:easygene:$regionid:$accountid:workspace/$workspace/submission/$submissionId | 
| ResumeSubmission | acs:easygene:$regionid:$accountid:workspace/$workspace/submission/$submissionId |