Call the CreateUploadOSSFileJob operation to create a task to upload multiple objects without attachments.
Debugging
Parameters
| Parameter | Type | Is it required? | Example | Description |
|---|---|---|---|---|
| FileSource | String | Yes | datacorrect |
The purpose of uploading attachments. the valid values and descriptions are as follows:
|
| FileName | String | Yes | test.sql |
The name of the file. Note It must end with TXT or SQL, for example, test.txt.
|
| UploadTarget | Object | Yes |
The information about Alert rules. |
|
| Endpoint | String | Yes | http://oss-cn-hangzhou.aliyuncs.com |
The connection address of the destination instance instance. |
| BucketName | String | Yes | test_bucket |
This operation only supports the unique identifier of a bucket. |
| ObjectName | String | Yes | test.sql |
// specify the object name. |
| Tid | Long | No | -1 |
The tenant has expired. Note The information of the tenant's chart is taken from the avatar in the upper-right
corner of the system. For more information, see View tenant information .
|
| RegionId | String | No | cn-hangzhou |
Select the service region of the destination region to call this operation. For more information about the valid values, see switchegionfigure parameter description . Note select based on the location of the application nearby.
|
return data
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 4E1D2B4D-3E53-4ABC-999D-1D2520B3471A |
The error message returned because the request already exists. |
| Success | Boolean | true |
Whether the request is successful. |
| ErrorMessage | String | UnknownError |
Error message. |
| ErrorCode | String | UnknownError |
Error code. |
| JobKey | String | 65254a4c1614235217749100e |
The upload attachment task was able to query the attachment Upload progress and task details. For more information, see GetUserUploadFileJob . |
Examples
Sample requests
http(s)://dms-enterprise.aliyuncs.com/? invileoource=datacorrect &FileName=test.sql&uploploadprojectype=uplobjectname&uploploadpointarget={"ploadpoint":"http://oss-cn-hangzhou.aliyuncs.com","uploucketnameame":"test_bucket","objectreame":"test.sql"} &jobid=-1&public request parameters
Sample success responses
XML Format
HTTP/1.1 200 OK Content-Type:application/xml <CreateUploadOSSFileJobResponse> <JobKey>7000005000007000009000000</JobKey> <RequestId>44355324-9534-4AF4-B7AA-8EDE3C767889</RequestId> <Success>true</Success> </CreateUploadOSSFileJobResponse>
JSON Format
HTTP/1.1 200 OK Content-Type:application/json { "JobKey" : "7000005000007000009000000", "RequestId" : "44355324-9534-4AF4-B7AA-8EDE3C767889", "Success" : true }
Error code
Access error Center For more information, see error codes.