InitResourceDirectory_资源管理_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:InitResourceDirectory
    Create
    全部资源
    *

    返回参数

    字段名称字段详情
    RequestIdstring

    请求 ID。

    示例值:CD76D376-2517-4924-92C5-DBC52262F93A
    ResourceDirectoryobject

    资源目录信息。

    返回示例

    错误码

    全局错误码
    HTTP 状态码错误码错误信息操作
    409
    NotSupport.AccountInAnotherResourceDirectory
    The specified account is an Alibaba Cloud account or already exists in another resource directory.诊断
    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
    Invalid.AccountType
    The specified profile type of account is invalid.诊断
    409
    Invalid.EnterpriseName
    You must specify the enterprise name.诊断
    409
    NotSupport.Account.Site
    The caller is not a China site account, which is not supported.诊断
    409
    EntityAlreadyExists.ResourceDirectory
    The resource directory for the account is already enabled. We recommend that you do not enable the resource directory again.诊断

    变更历史

    暂无变更历史

    相关示例

    2024年08月20日