CreateResourceAccount_资源目录_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.

接口说明

在资源目录内,成员作为资源容器,是一种资源分组单位。成员通常用于指代一个项目或应用,每个成员中的资源相对其他成员中的资源是物理隔离的。

本文将提供一个示例,在资源夹fd-r23M55****下创建一个成员,其成员显示名称为Dev,账号名称前缀为alice

流控信息

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

授权信息

当前云产品暂无权限信息透出。

请求参数

字段名称字段详情
DisplayNamestring

成员显示名称。展开详情

示例值:Dev参考取值来源:
    SetMemberDisplayNameSyncStatus
ParentFolderIdstring

父资源夹 ID。

示例值:fd-r23M55****参考取值来源:
    UpdateFolder
    CreateFolder
    GetFolder
PayerAccountIdstring

结算账号 ID。置空则采用新创建的成员自主结算。

示例值:12323344****参考取值来源:
    GetPayerForAccount
AccountNamePrefixstring

账号名称前缀。置空则系统随机生成。展开详情

示例值:alice
Tagarray<object>

成员的标签。

ResellAccountTypestring

成员的身份类型。取值:展开详情

示例值:resell
DryRunboolean

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

示例值:false

请求说明

关于公共请求参数的详情,请参见公共参数

返回参数

字段名称字段详情
Accountobject

成员信息。

RequestIdstring

请求 ID。

示例值:B356A415-D860-43E5-865A-E2193D62BBD6

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
MissingParameter.Account.DisplayName
You must specify DisplayName.诊断
400
InvalidParameter.Account.DisplayName
The DisplayName of account is invalid.诊断
400
InvalidParameter.Account.DisplayName.Length
The DisplayName of the account exceeds the length limit.诊断
400
InvalidParameter.ParentFolderId
The ParentFolderId is invalid.诊断
400
InvalidParameter.Account.AccountNamePrefix
The account name prefix is invalid.诊断
400
InvalidParameter.Account.AccountNamePrefix.Length
The account name prefix exceeds the length limit.诊断
400
NotSupport.Site.Action
Site does not allow current action.诊断
404
EntityNotExists.ResourceDirectory
The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account.诊断
404
EntityNotExists.Folder
The resource directory folder does not exist.诊断
409
LimitExceeded.Account
The maximum number of member accounts in a resource directory exceeds the limit.诊断
409
InvalidParameter.Account.DisplayName.AlreadyUsed
The displayname of account has been used.诊断
409
EntityAlreadyExists.ResourceDirectory.Account
The email address that the system generates when you create a member account already exists. Try again later.诊断
409
Invalid.PayRelation
Failed to create a member. The specified billing account is unavailable. Please change to another billing account and try again.诊断
409
NotSupport.PayerAccountInAnotherResourceDirectory
The specified settlement account does not exist in the resource directory. You must specify a valid settlement account.诊断
409
CreateAccountDisabled
The specified resource directory cannot create a new account.诊断
409
PaymentAccountEnterpriseVerifyError
The type of the payment account is not enterprise verified.诊断
409
PaymentAccountFinancialRelationshipVerifyError
The payment account must not be the beneficiary account from other financial relationships.诊断
409
PaymentAccountEnterpriseTypeError
The type of the payment account is not enterprise.诊断
409
PaymentAccountFinancialRelationshipsChangeFrequencyVerifyError
The financial relationship of payment account changes too frequently. Please try again later.诊断
409
MemberAccountVirtualCloudOperatorVerifyError
The type of the member account must not be virtual operator.诊断
409
MemberAccountResellerVerifyError
The type of the member account must not be reseller.诊断
409
PaymentAccountVirtualCloudOperatorVerifyError
The type of the payment account must not be virtual operator.诊断
409
PaymentAccountResellerVerifyError
The type of the payment account must not be reseller.诊断
409
PaymentAccountCreditIdentityTypeError
The identity of the payment account is not credit.诊断
409
InconsistentEnterpriseNameError
The enterprise name of the payment account and the member account must be consistent.诊断
409
PaymentAccountEnterpriseInvoiceError
No enterprise invoice header information is set for the payment account.诊断
409
UnknownFinancialError
An unknown financial error occurred.诊断
409
BusinessRestricted
Business is restricted. Please contact your customer service manager.诊断
409
FundAccountHasArrearsAmount
There are arrears in the current payment account. You cannot change the payment account. Please settle the arrears and try again.诊断
409
FundAccountOwnerPayedByOthers
If the payment has been made by another account, it is not allowed to be used as the main payment account.诊断
409
UserOwnFundAccountPayForOthers
If the account has been used as the main payment account, it is not allowed to set up payment by others.诊断
409
EcoRelationCheckFailed
Accounts associated with partners are not allowed to set up agency payment relationships.诊断
409
NotSupport.SettingResellAccountType
The current account does not support setting the resellAccountType for members.诊断

变更历史

变更时间变更内容概要操作
2024-03-14
变更错误码409
新增请求参数DryRun
2024-01-05
变更错误码409
2023-04-27
删除返回参数

相关示例