EnableResourceDirectory_资源目录_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

您可以使用当前登录账号或新创建管理账号两种方式开通资源目录。更多信息,请参见开通资源目录

流控信息

请求速率为20/1(s)。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
resourcemanager:EnableResourceDirectory
Create
全部资源
*

请求参数

字段名称字段详情
MANamestring

新管理账号名称。展开详情

示例值:user01@rdadmin.aliyunid.com
MASecureMobilePhonestring

新创建管理账号的安全手机号码。展开详情

示例值:xx-13900001234
VerificationCodestring

验证码。展开详情

示例值:123456
EnableModestring

开通方式。取值:展开详情

示例值:CurrentAccount
DryRunboolean

是否只预检此次请求。取值:展开详情

示例值:false

返回参数

字段名称字段详情
ResourceDirectoryobject

资源目录信息。

RequestIdstring

请求 ID。

示例值:EC2FE94D-A4A2-51A1-A493-5C273A36C46A

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
409
NotSupport.AccountInAnotherResourceDirectory
The specified account is an Alibaba Cloud account or already exists in another resource directory.诊断
409
Invalid.EnterpriseName
You must specify the enterprise name.诊断
409
EnterpriseRealNameVerificationError
The specified account does not pass enterprise real-name verification. We recommend you first complete enterprise real-name verification for the account.诊断
409
EntityAlreadyExists.ResourceDirectory
The resource directory for the account is already enabled. We recommend that you do not enable the resource directory again.诊断
409
InvalidParameter.ManagementAccountName.AlreadyUsed
The ManagementAccountName has been used.诊断
409
Invalid.VerificationCode
The verification code is invalid.诊断
409
InvalidParameter.ManagementAccountName
The management account name is in the wrong format.诊断
409
InvalidParameter.ManagementAccountSecurityInfo
The parameter management account secure mobile phone is invalid.诊断
409
MissingSecureMobilePhone
Secure mobile phone is missing.诊断
409
MissingSecurityInfo
Security info is missing.诊断
409
NotSupport.Account.Site
The caller is not a China site account, which is not supported.诊断
409
Invalid.AccountType
The specified profile type of account is invalid.诊断

变更历史

变更时间变更内容概要操作
2023-12-21
变更错误码409
新增请求参数DryRun

相关示例