GET length/{bucket}/{path}?key={key}&requestTime={requestTime}&signature={signature}
Gets the length of a file located at the given bucket and path.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
bucket |
The bucket where the file is stored. |
string |
Required |
path |
The path to the file. |
string |
Required |
key |
The key that was used to sign this request. |
string |
Required |
requestTime |
The time the request was made. |
integer |
Required |
signature |
The signature that proves that you are who you say you are. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
A response containing the file length.
GetFileLengthResponseName | Description | Type | Additional information |
---|---|---|---|
FileLength | integer |
None. |
|
Success | boolean |
None. |
|
Error | string |
None. |
Response Formats
application/xml, text/xml
Sample:
<GetFileLengthResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Error>sample string 3</Error> <Success>true</Success> <FileLength>1</FileLength> </GetFileLengthResponse>
application/json, text/json
Sample:
{ "FileLength": 1, "Success": true, "Error": "sample string 3" }