调用EnableRecycleBin接口为通用型NAS文件系统开启回收站功能。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String EnableRecycleBin

接口名称。

固定取值:EnableRecycleBin

FileSystemId String 1ca404****

待开启回收站功能的文件系统ID。

ReservedDays Long 3

回收站中文件的保留时间。单位:天。

取值范围:1~180

默认值:3

返回数据

名称 类型 示例值 描述
RequestId String 9E15E394-38A6-457A-A62A-D9797C9A****

请求ID。

示例

请求示例

http(s)://[Endpoint]/?Action=EnableRecycleBin
&FileSystemId=1ca404****
&ReservedDays=3
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<EnableRecycleBinResponse>
    <RequestId>9E15E394-38A6-457A-A62A-D9797C9A****</RequestId>
</EnableRecycleBinResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "9E15E394-38A6-457A-A62A-D9797C9A****"
}

错误码

HttpCode 错误码 错误信息 描述
400 IllegalCharacters The parameter contains illegal characters. 参数非法。
400 MissingFileSystemId FileSystemId is mandatory for this action. 缺少FileSystemId参数。
403 OperationDenied.RecycleBinEnabled The recycle bin is already enabled. 回收站已经处于开启状态。
404 InvalidFileSystem.NotFound The specified file system does not exist. 指定的文件系统不存在。

访问错误中心查看更多错误码。