调用GetRecycleBinAttribute接口查询指定通用型NAS文件系统的回收站配置。

调试

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

请求参数

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

接口名称。

固定取值:GetRecycleBinAttribute

FileSystemId String 1ca404****

文件系统ID。

返回数据

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

请求ID。

RecycleBinAttribute Object

回收站描述信息。

Size Long 100

回收站中文件的存储量。单位:Byte。

SecondarySize Long 100

回收站中低频数据存储量。单位:Byte。

Status String Disable

回收站状态。

包括:

  • Enable:回收站已启用。
  • Disable:回收站已关闭。
ReservedDays Long 0

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

当回收站状态为关闭时,该参数返回0。

EnableTime String 2021-05-30T10:08:08Z

回收站开启的时间。

示例

请求示例

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

正常返回示例

XML格式

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

<GetRecycleBinAttributeResponse>
    <RequestId>9E15E394-38A6-457A-A62A-D9797C9A****</RequestId>
    <RecycleBinAttribute>
        <Size>100</Size>
        <SecondarySize>100</SecondarySize>
        <Status>Disable</Status>
        <ReservedDays>0</ReservedDays>
        <EnableTime>2021-05-30T10:08:08Z</EnableTime>
    </RecycleBinAttribute>
</GetRecycleBinAttributeResponse>

JSON格式

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

{
  "RequestId" : "9E15E394-38A6-457A-A62A-D9797C9A****",
  "RecycleBinAttribute" : {
    "Size" : 100,
    "SecondarySize" : 100,
    "Status" : "Disable",
    "ReservedDays" : 0,
    "EnableTime" : "2021-05-30T10:08:08Z"
  }
}

错误码

HttpCode 错误码 错误信息 描述
400 IllegalCharacters The parameter contains illegal characters. 参数非法。
400 MissingFileSystemId FileSystemId is mandatory for this action. 未指定FileSystemId参数。
404 InvalidFileSystem.NotFound The specified file system does not exist. 指定的文件系统不存在。

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