{"base_path":null,"components":null,"consumes":"[\"application/json\",\"application/json;charset=utf-8\"]","definitions":{"BaseResponse":{"description":"API响应基类。","properties":{"encoded_authorization_message":{"description":"加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。","readOnly":true,"type":"string"},"error_code":{"description":"错误码。","maxLength":12,"minLength":0,"type":"string"},"error_msg":{"description":"错误描述。","maxLength":1000,"minLength":0,"type":"string"}}},"ChangeUserPrivilegeGroupDesktopInfo":{"description":"修改桌面用户权限请求桌面信息。","properties":{"attach_user_infos":{"description":"待修改用户权限组的用户信息。未传该参数的桌面的用于将应用上层结构的参数user_privilege_group作为其用户的用户权限组。","items":{"$ref":"#/definitions/ChangeUserPrivilegeGroupUserInfo"},"maxItems":500,"minItems":0,"type":"array","x-maxLength":500,"x-minLength":0},"desktop_id":{"description":"待修改的桌面ID。","maxLength":255,"minLength":1,"type":"string"}},"required":["desktop_id"]},"ChangeUserPrivilegeGroupReq":{"description":"批量修改用户权限组请求。","properties":{"desktops":{"description":"桌面信息列表。","items":{"$ref":"#/definitions/ChangeUserPrivilegeGroupDesktopInfo"},"maxItems":1000,"minItems":1,"type":"array","x-maxLength":1000,"x-minLength":1},"user_privilege_group":{"description":"桌面用户所属的用户权限组。desktops参数中,各个桌面所属的未传的桌面用户将应用该权限组。\n- sudo:Linux管理员组。\n- default:Linux默认用户组。\n- administrators:Windows管理员组。管理员拥有对该桌面的完全访问权,可以做任何需要的更改(禁用操作除外)。\n- users:Windows标准用户组。标准用户可以使用大多数软件,并可以更改不影响其他用户的系统设置。","maxLength":255,"minLength":1,"type":"string"}},"required":["desktops"]},"ChangeUserPrivilegeGroupRsp":{"description":"修改桌面用户权限响应。","properties":{"job_id":{"description":"任务id。","maxLength":255,"minLength":1,"type":"string"}}},"ChangeUserPrivilegeGroupUserInfo":{"description":"桌面分配用户信息。","properties":{"type":{"default":"USER","description":"对象类型,可选值为:\n- USER:用户。\n- GROUP:用户组。","enum":["USER","GROUP"],"maxLength":20,"minLength":1,"type":"string"},"user_name":{"description":"桌面分配对象的名称,当type类型USER时填写用户名字;当type类型GROUP时填写用户组名称。","maxLength":64,"minLength":1,"type":"string","x-isSensitive":true},"user_privilege_group":{"description":"桌面用户所属的用户组。\n- sudo:Linux管理员组。\n- default:Linux默认用户组。\n- administrators:Windows管理员组。管理员拥有对该桌面的完全访问权,可以做任何需要的更改(禁用操作除外)。\n- users:Windows标准用户组。标准用户可以使用大多数软件,并可以更改不影响其他用户的系统设置。","maxLength":255,"minLength":1,"type":"string"}},"required":["type","user_name"]}},"description":null,"group_id":"7383c32d5d5e4d0481c071faeb994404","host":"workspace.cn-north-4.myhuaweicloud.com","id":"6a0cc74812a74137802a63e96fc21ae2","info_version":"v2","method":"post","name":"ChangeUserPrivilegeGroup","parameters":{},"paths":{"/v2/{project_id}/desktops/change-user-privilege-group":{"post":{"description":"批量修改用户权限组。","operationId":"ChangeUserPrivilegeGroup","parameters":[{"description":"项目ID。","in":"path","maxLength":255,"minLength":1,"name":"project_id","required":true,"type":"string","x-annotations":"@Size(max = 255, min = 1)","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"批量修改用户权限组的请求。","in":"body","name":"ChangeUserPrivilegeGroupRequestBody","required":true,"schema":{"$ref":"#/definitions/ChangeUserPrivilegeGroupReq"}}],"responses":{"200":{"description":"正常。","examples":{"application/json":{"job_id":"string"}},"schema":{"$ref":"#/definitions/ChangeUserPrivilegeGroupRsp"}},"400":{"description":"由于包含语法错误,当前请求无法被服务器理解。","schema":{"$ref":"#/definitions/BaseResponse"}},"401":{"description":"鉴权失败。","schema":{"$ref":"#/definitions/BaseResponse"}},"403":{"description":"没有操作权限。","schema":{"$ref":"#/definitions/BaseResponse"}},"404":{"description":"找不到资源。","schema":{"$ref":"#/definitions/BaseResponse"}},"409":{"description":"操作冲突。","schema":{"$ref":"#/definitions/BaseResponse"}},"500":{"description":"服务内部错误,具体返回错误码请参见错误码说明。","schema":{"$ref":"#/definitions/BaseResponse"}}},"summary":"批量修改用户权限组","tags":["Desktop"],"x-api-type":"open-api","x-apiexplorer-hide":"N","x-apig-group":"internal_token,public","x-apigateway-request-type":"public","x-is-registered":"Y","x-methodAnnotations":["@EnableAuth","@WksIamAuthMeta(resourceField = \"desktops.![desktopId]\")","@IamAuthMeta(authLevel = IamAuthLevel.INSTANCE_LIST, abacAction = \"workspace:desktops:changeUserPrivilegeGroup\", needApigwJwtAuthCheck = false, authContextInitializerName = \"workspaceInstanceListAuthContextInitializer\", needRbacCheck = false, needAbacResourceCheck = true)","@CtsMeta(serviceType = \"Workspace\", resourceType = \"workspace\", traceName = \"changeUserPrivilegeGroup\")"],"x-request-examples-1":{"desktops":[{"attach_user_infos":[{"type":"user","user_name":"string","user_privilege_group":"string"}],"desktop_id":"string"}]},"x-request-examples-text-1":{"desktops":[{"attach_user_infos":[{"type":"user","user_name":"string","user_privilege_group":"string"}],"desktop_id":"string"}]},"x-support-sdk":"Y"}}},"product_short":"Workspace","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":{"apig-auth-app":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-type":"AppSigv1"},"apig-auth-iam":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM"},"apig-auth-iam-used-authn5":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-opt":{"inner-auth-type":"iam_auth_n5"},"x-apigateway-auth-type":"IAM"}},"summary":"批量修改用户权限组","tags":"桌面","uri":null,"version":"2.0"}