Mengirim file dari Object Storage Service (OSS) atau tautan unduhan publik ke satu atau beberapa ponsel cloud.
Deskripsi operasi
Use this operation to send files or folders from Object Storage Service (OSS) to cloud phones.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AndroidInstanceIdList |
array |
Yes |
ID satu atau beberapa instans ponsel cloud. |
|
|
string |
No |
The instance ID of a cloud phone. |
acp-34pqe4r0kd9kn**** |
|
| SourceFilePath |
string |
Yes |
Jalur tujuan pada ponsel cloud. Catatan
Jika |
/sdcard/Download |
| UploadType |
string |
Yes |
Tipe penyimpanan file sumber. Nilai valid:
Valid values:
|
OSS |
| UploadEndpoint |
string |
No |
Titik akhir layanan Object Storage Service (OSS). Parameter ini wajib diisi jika Catatan
Jika instans ponsel cloud dan Bucket OSS berada di wilayah yang sama, Anda dapat menentukan Titik akhir internal untuk mempercepat transfer data dan menghindari biaya transfer data publik. Misalnya, Titik akhir internal untuk wilayah China (Hangzhou) adalah |
oss-cn-hangzhou-internal.aliyuncs.com |
| UploadUrl |
string |
Yes |
Catatan
URI harus dalam format
|
oss://cloudphone-saved-bucket-example/send/a.txt |
| TargetFileName |
string |
No |
Nama file tujuan pada ponsel cloud. Catatan
Parameter ini bersifat opsional dan hanya berlaku ketika |
test.txt |
| AutoInstall |
boolean |
No |
Apakah akan menginstal aplikasi secara otomatis setelah file diunggah. |
true |
| ClientToken |
string |
No |
Token yang dihasilkan klien yang memastikan idempotensi permintaan dan mencegah pengiriman duplikat. Token dapat berisi hingga 100 karakter. |
425F351C-3F8E-5218-A520-B6311D0D**** |
| FileMd5 |
string |
No |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Data |
array<object> |
The details of the created tasks. |
425F351C-3F8E-5218-A520-B6311D0D**** |
|
object |
The details of a single task. |
||
| AndroidInstanceId |
string |
The instance ID. |
acp-34pqe4r0kd9kn**** |
| TaskId |
string |
The ID of the individual task for a specific cloud phone. |
t-4ks224ujixw**** |
| RequestId |
string |
A unique identifier for the request. If you encounter an issue, provide this request ID to technical support for troubleshooting. |
425F351C-3F8E-5218-A520-B6311D0D**** |
| TaskId |
string |
The batch task ID. |
t-ehs0yoedj0xe9**** |
Contoh
Respons sukses
JSONformat
{
"Data": [
{
"AndroidInstanceId": "acp-34pqe4r0kd9kn****",
"TaskId": "t-4ks224ujixw****"
}
],
"RequestId": "425F351C-3F8E-5218-A520-B6311D0D****",
"TaskId": "t-ehs0yoedj0xe9****"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.