{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"AssignShareFolderReq":{"description":"共享目录分配关联对象。","properties":{"add_items":{"description":"增加的成员列表。","items":{"$ref":"#/definitions/Assignment"},"maxItems":200,"minItems":0,"type":"array"},"del_items":{"description":"移除的成员列表。","items":{"$ref":"#/definitions/Attachment"},"maxItems":200,"minItems":0,"type":"array"},"storage_claim_id":{"description":"WKS存储目录声明ID。","example":"xxx-xxx-x-xxx","maxLength":128,"minLength":1,"type":"string"}},"required":["storage_claim_id"]},"Assignment":{"description":"授权描述。","properties":{"attach":{"description":"目标。","example":"USER001@local.com","maxLength":128,"minLength":1,"type":"string"},"attach_type":{"$ref":"#/definitions/AttachType"},"policy_statement_id":{"description":"策略ID。","example":"1","maxLength":128,"minLength":1,"type":"string"}},"required":["attach","attach_type","policy_statement_id"]},"AttachType":{"description":"关联对象类型:\n* `USER` - 用户\n* `USER_GROUP` - 用户组","enum":["USER","USER_GROUP"],"example":"USER","type":"string"},"Attachment":{"description":"配置关联成员。","properties":{"attach":{"description":"目标。","example":"USER001***@local.com","maxLength":128,"minLength":1,"type":"string"},"attach_type":{"$ref":"#/definitions/AttachType"}},"required":["attach","attach_type"]},"BaseResp":{"description":"API响应基类。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00149901","maxLength":16,"minLength":1,"type":"string"},"error_msg":{"description":"错误描述。","example":"The request message is invalid.","maxLength":255,"minLength":1,"type":"string"}}}},"description":null,"group_id":"fe7dbee2e20f4aa589be7dce935a38ad","host":"appstream.cn-north-4.myhuaweicloud.com","id":"3b922d6ad0d14f1792aed4a0e3cacb18","info_version":"v1","method":"post","name":"UpdateShareFolderAssignment","parameters":{},"paths":{"/v1/{project_id}/persistent-storages/{storage_id}/actions/assign-share-folder":{"post":{"description":"批量添加或者移除共享目录成员。","operationId":"UpdateShareFolderAssignment","parameters":[{"description":"用户Token。\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":102400,"minLength":1,"name":"X-Auth-Token","required":false,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX..."},{"description":"项目ID。","in":"path","maxLength":128,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"WKS存储ID。","in":"path","maxLength":128,"minLength":1,"name":"storage_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"分配共享目录用户。","in":"body","name":"UpdateShareFolderAssignmentRequestBody","required":true,"schema":{"$ref":"#/definitions/AssignShareFolderReq"}}],"responses":{"200":{"description":"成功响应。","examples":{}},"400":{"description":"由于包含语法错误,当前请求无法被服务器理解。","schema":{"$ref":"#/definitions/BaseResp"}},"401":{"description":"鉴权失败。","schema":{"$ref":"#/definitions/BaseResp"}},"403":{"description":"没有操作权限。","schema":{"$ref":"#/definitions/BaseResp"}},"404":{"description":"找不到资源。","schema":{"$ref":"#/definitions/BaseResp"}},"405":{"description":"请求中指定的方法不被允许。","schema":{"$ref":"#/definitions/BaseResp"}},"500":{"description":"服务内部错误,具体返回错误码请参见错误码说明。","schema":{"$ref":"#/definitions/BaseResp"}},"503":{"description":"服务不可用。","schema":{"$ref":"#/definitions/BaseResp"}}},"schemes":["https"],"security":[{"apig-auth-iam-used-authn5":[]}],"summary":"修改共享目录成员","tags":["Persistent"],"x-api-type":"open-api","x-apiexplorer-hide":"N","x-apig-group":"internal_token,public","x-apigateway-backend":{"httpVpcEndpoints":{"description":"","method":"POST","name":"wks-appcenter-lb","path":"/v1/{project_id}/persistent-storages/{storage_id}/actions/assign-share-folder","scheme":"https","timeout":30000},"parameters":[{"description":"","in":"header","name":"X-Auth-Token","origin":"request","value":"X-Auth-Token"},{"description":"","in":"path","name":"project_id","origin":"request","value":"project_id"},{"description":"","in":"path","name":"storage_id","origin":"request","value":"storage_id"}],"type":"HTTP-VPC"},"x-apigateway-cors":false,"x-apigateway-match-mode":"NORMAL","x-apigateway-ratelimit":"workspace_base_get","x-apigateway-request-type":"public","x-is-registered":"Y","x-order":6,"x-request-examples-1":{"add_items":[{"attach":"USER001***@local.com","attach_type":"USER","policy_statement_id":1}],"del_items":[{"attach":"USER001***@local.com","attach_type":"USER"}],"storage_claim_id":544959151881584640},"x-request-examples-url-1":"POST /v1/a4da8115c9d8464ead3a38309130523f/persistent-storages/544959151881584640/actions/assign-share-folder","x-support-sdk":"Y"}}},"product_short":"WorkspaceApp","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"}