修改共享单元信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
resourcesharing:UpdateResourceShare |
update |
*全部资源
|
|
无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
ResourceShareId |
string |
是 |
共享单元 ID。 |
rs-qSkW1HBY**** |
ResourceShareName |
string |
是 |
新的共享单元名称。 长度范围:1~50 个字符。 格式:允许输入英文字母、数字、中文、英文句点(.)、下划线(_)或短划线(-)。 |
new |
AllowExternalTargets |
boolean |
否 |
是否允许共享给资源目录外的账号。取值:
|
false |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
返回结果。 |
||
RequestId |
string |
请求 ID。 |
2860A3A4-D8C1-4EF4-954E-84A3945E26E5 |
ResourceShare |
object |
共享单元信息。 |
|
UpdateTime |
string |
共享单元更新时间。 |
2020-12-04T08:55:25.382Z |
ResourceShareName |
string |
共享单元名称。 |
new |
ResourceShareOwner |
string |
共享单元归属者。 |
151266687691**** |
CreateTime |
string |
共享单元创建时间。 |
2020-12-03T08:02:22.413Z |
ResourceShareId |
string |
共享单元 ID。 |
rs-qSkW1HBY**** |
ResourceShareStatus |
string |
共享单元状态。取值:
说明
Deleted 状态的共享单元记录,会在 48~96 小时内被系统自动删除。 |
Active |
AllowExternalTargets |
boolean |
是否允许共享给资源目录外的账号。取值:
|
false |
示例
正常返回示例
JSON
格式
{
"RequestId": "2860A3A4-D8C1-4EF4-954E-84A3945E26E5",
"ResourceShare": {
"UpdateTime": "2020-12-04T08:55:25.382Z",
"ResourceShareName": "new",
"ResourceShareOwner": "151266687691****",
"CreateTime": "2020-12-03T08:02:22.413Z",
"ResourceShareId": "rs-qSkW1HBY****",
"ResourceShareStatus": "Active",
"AllowExternalTargets": false
}
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | MissingParameter.ResourceShareId | You must specify ResourceShareId. | ResourceShareId参数缺失。 |
400 | InvalidParameter.ResourceShareId | The ResourceShareId is invalid. | ResourceShareId参数错误。 |
400 | MissingParameter.ResourceShareName | You must specify ResourceShareName. | 共享单元名称缺失。 |
400 | InvalidParameter.ResourceShareName | The ResourceShareName is invalid. | 共享单元名称无效。 |
400 | InvalidParameter.ResourceShareName.Length | The maximum length of ResourceShareName exceeds 50 characters. | 共享单元名称字数超长(最大50字符)。 |
400 | InvalidParameter | The specified parameter is invalid. | 参数无效。 |
404 | EntityNotExists.ResourceShare | The resource share does not exist in the current account. | 共享单元不在当前账号内。 |
409 | OperationNotPermitted | You do not have permission to do this operation. | 无权限操作此功能。 |
409 | ResourceShareStatusMismatchAction | The status of the resource share does not allow the specified operation. | 共享单元的状态不支持当前操作。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。