Skip to main content

GetObject

Description

GetObject is used to obtain an object. this operation requires you to have read permission on the object.

Request Method

POST

Request Path

/apsara/route/OneRouter/GetObject

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
response-cache-controlBODYstringNoNo-cacheSet the cache-control header of the OSS return request. type: string default value: none
response-content-dispositionBODYstringNoattachment; filename:testing.txtsets the content-disposition header of the OSS return request. type: string default value: none
response-content-languageBODYstringNoChinesesets the content-language header of the OSS return request.
regionIdBODYstringYesNo sample value for this parameter.region id
response-expiresBODYstringNoFri, 24 Feb 2012 17:00:00 GMTsets the expires header of the OSS return request.
response-content-encodingBODYstringNoutf-8sets the content-encoding header of the OSS return request. type: string default value: none
response-content-typeBODYstringNotextSet the content-type header of the OSS return request.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}