您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

获取映像存储根文件夹大小Get Image Store Root Folder Size

获取映像存储根目录的文件夹大小。Get the folder size at the root of the image store.

返回映像存储区的根文件夹和子文件夹中的文件的总大小。Returns the total size of files at the root and children folders in image store.

请求Request

方法Method 请求 URIRequest URI
GETGET /ImageStore/$/FolderSize?api-version=6.5&timeout={timeout}

参数Parameters

名称Name 类型Type 必选Required 位置Location
api-version 字符串string Yes 查询Query
timeout 整数 (int64) integer (int64) No 查询Query

api-version

类型 : stringType : string
是否 必需 :是Required : Yes
默认6.5Default : 6.5

API 的版本。The version of the API. 此参数是必需的,其值必须是 "6.5"。This parameter is required and its value must be '6.5'.

Service Fabric REST API 版本基于引入或更改 API 的运行时版本。Service Fabric REST API version is based on the runtime version in which the API was introduced or was changed. Service Fabric 运行时支持 API 的多个版本。Service Fabric runtime supports more than one version of the API. 此版本是 API 的最新支持版本。This version is the latest supported version of the API. 如果传递的 API 版本较低,则返回的响应可能与此规范中所述的响应不同。If a lower API version is passed, the returned response may be different from the one documented in this specification.

此外,运行时还接受高于当前版本的运行时最新支持版本的任何版本。Additionally the runtime accepts any version that is higher than the latest supported version up to the current version of the runtime. 因此,如果最新的 API 版本为6.0,运行时为6.1,则运行时将接受该 API 的版本6.1。So if the latest API version is 6.0 and the runtime is 6.1, the runtime will accept version 6.1 for that API. 但是,API 的行为将按记录的6.0 版本进行。However the behavior of the API will be as per the documented 6.0 version.


timeout

类型 :整数 (int64) Type : integer (int64)
是否 必需 :否Required : No
默认60Default : 60
InclusiveMaximum4294967295InclusiveMaximum : 4294967295
InclusiveMinimum1InclusiveMinimum : 1

执行操作的服务器超时,以秒为单位。The server timeout for performing the operation in seconds. 此超时指定客户端可以等待请求的操作完成的持续时间。This timeout specifies the time duration that the client is willing to wait for the requested operation to complete. 此参数的默认值为 60 秒。The default value for this parameter is 60 seconds.

响应Responses

HTTP 状态代码HTTP Status Code 说明Description 响应架构Response Schema
200 (正常)200 (OK) 成功的操作将在映像存储中返回200状态代码和请求的文件夹大小。A successful operation will return 200 status code and the requested folder size in image store.
FolderSizeInfoFolderSizeInfo
所有其他状态代码All other status codes 详细的错误响应。The detailed error response.
FabricErrorFabricError