UploadFileByOSS
Upload files to the ATP platform using OSS.
Try it now
Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
grace:UploadFileByOSS |
create |
*All Resource
|
None | None |
Request syntax
POST /UploadFileByOSS HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| endpoint |
string |
Yes |
OSS endpoint |
https://oss-cn-hangzhou.aliyuncs.com |
| bucketName |
string |
Yes |
OSS bucket name |
mybucket |
| objectName |
string |
Yes |
Object name |
heap.bin |
| type |
string |
Yes |
File type Valid values:
|
thread_dump |
| displayName |
string |
No |
Display name |
heap.bin |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| name |
string |
File name |
1597871211794192-1665457027646-grace-storage1-heap.bin |
| requestId |
string |
Request ID. |
E7D6CC4E-C216-5313-A9A5-B5DA619ED431 |
Examples
Success response
JSON format
{
"name": "1597871211794192-1665457027646-grace-storage1-heap.bin",
"requestId": "E7D6CC4E-C216-5313-A9A5-B5DA619ED431"
}
Error codes
See Error CodesError Codes for a complete list.
Release notes
See Release NotesRelease Notes for a complete list.