调用DeleteProjectMember,从DataWorks工作空间移除用户。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DeleteProjectMember |
系统规定参数。取值:DeleteProjectMember。 |
ProjectId | Long | 是 | 27 |
Dataworks工作空间的ID。 |
UserId | String | 是 | 1234 |
用户ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 1AFAE64E-D1BE-432B-A9**** |
请求ID。 |
示例
请求示例
http(s)://[Endpoint]/?Action=DeleteProjectMember
&ProjectId=27
&UserId=1234
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteProjectMemberResponse>
<RequestId>1AFAE64E-D1BE-432B-A9****</RequestId>
</DeleteProjectMemberResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "1AFAE64E-D1BE-432B-A9****"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Invalid.Tenant.ConnectionNotExists | The connection does not exist. | 数据源不存在。 |
400 | Invalid.Tenant.ProjectNotExists | The project does not exist. | 项目不存在。 |
400 | Invalid.Tenant.UserNotInProject | The user is not in the project. | 用户不在项目中。 |
400 | Invalid.Tenant.UserAlreadyInProject | The user already exists in the project. | 待添加用户已经存在于工作空间中。 |
400 | Invalid.Tenant.UserNotInTenant | The user is not in the tenant. | 待添加成员不在租户中。 |
403 | Invalid.Tenant.UserIsNotProjectOwnerOrAdmin | The user is not a project administrator or owner. | 用户不是项目负责人或者项目管理员。 |
403 | Invalid.Tenant.UserNotInTenant | The user is not in tenant. | 用户不在租户中。 |
访问错误中心查看更多错误码。