InviteAccountToResourceDirectory_资源目录_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:InviteAccountToResourceDirectory
Create
Handshake
acs:resourcemanager:*:{#accountId}:handshake/*
Folder
acs:resourcemanager:*:{#accountId}:folder/{#ResourceDirectoryPath}

请求参数

字段名称字段详情
TargetEntitystring

被邀请账号 ID 或登录邮箱。

示例值:someone@example.com
TargetTypestring

被邀请账号类型。取值:展开详情

示例值:Email
Notestring

备注。展开详情

示例值:欢迎您加入
Tagarray<object>

标签。

ParentFolderIdstring

父资源夹 ID。

示例值:r-b1****参考取值来源:
    CreateFolder
    UpdateFolder
    GetFolder

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:9B34724D-54B0-4A51-B34D-4512372FE1BE
Handshakeobject

邀请信息。

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
MissingParameter.TargetEntity
You must specify TargetEntity.诊断
400
InvalidParameter.TargetEntity
The TargetEntity is invalid.诊断
400
MissingParameter.TargetType
You must specify TargetType.诊断
400
InvalidParameter.TargetType
The TargetType is invalid.诊断
400
InvalidParameter.Note.Length
The length of the invitation note exceeds the limit.诊断
400
InvalidParameter.Note
The Note is invalid.诊断
400
InvalidParameter.ParentFolderId
The ParentFolderId is invalid.诊断
400
InvalidParameter.AccountId
The AccountId is invalid.诊断
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
LimitExceeded.InvitationRate
The number of invitations sent exceeds the limit.诊断
409
EntityAlreadyExists.Handshake
Handshakes with the same target entity already exist.诊断
409
Invalid.AccountType
The specified profile type of account is invalid.诊断
409
EntityAlreadyExists.ResourceDir.Account
This resource directory account already exists.诊断
409
LimitExceeded.Invitation.InvalidTarget
The maximum number of invalid targets that can be invited by a single account is exceeded.诊断
409
NotSupport.AccountInAnotherResourceDirectory
The invited account already belongs to another resource directory. To continue, remove the account from the other resource directory.诊断
409
LegalEntityMismatch
The account does not have the same legal entity as the management account.诊断

变更历史

变更时间变更内容概要操作
2023-12-08
变更错误码409
2023-10-25
变更错误码409
2023-09-04
变更错误码409
2023-05-24
变更错误码400
变更错误码409
2023-04-28
变更错误码400
变更错误码404
新增请求参数ParentFolderId

相关示例