All Products
Search
Document Center

Cloud Backup:CreateTempFileUploadUrl

Last Updated:Jun 11, 2026

Menghasilkan parameter dan tanda tangan yang diperlukan untuk URL unggah file.

Deskripsi operasi

  1. You can directly upload a file to Object Storage Service (OSS) by using a form based on the returned value of this operation.

  2. For more information about how to upload a file to OSS by using a form, see OSS documentation.

  3. The system periodically deletes files that are uploaded to OSS.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

hbr:CreateTempFileUploadUrl

create

*All Resource

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

FileName

string

Yes

Nama file yang akan diunggah.

file-list.txt

Elemen respons

Element

Type

Description

Example

object

Endpoint

string

The endpoint that is used to upload the file to OSS.

oss-cn-shenzhen.aliyuncs.com

RequestId

string

The ID of the request.

F4EEB401-DD21-588D-AE3B-1E835C7655E1

ExpireTime

integer

The expiration time of the signature that is used to upload the file to OSS. This value is a UNIX timestamp. Unit: seconds.

1654326678

Success

boolean

Indicates whether the call is successful. Valid values:

  • true: The call is successful.

  • false: The call fails.

true

Code

string

The HTTP status code. The status code 200 indicates that the call is successful.

200

TempFileKey

string

The key that is used to upload the file to OSS.

temp/1440155109798732/upload/2022-07-29/49bed34c-b430-4e7e-89b1-4be2b734f95c/iaclone.diff

Message

string

The message that is returned. If the call is successful, "successful" is returned. If the call fails, an error message is returned.

successful

BucketName

string

The name of the OSS bucket to which the file is uploaded.

hbr-temp-bucket

OssAccessKeyId

string

The AccessKey ID that is used to upload the file to OSS.

LTAI****Up

Policy

string

The policy that is used to upload the file to OSS.

eyJleH****V19

Signature

string

The signature that is used to upload the file to OSS.

RmhI****0A=

Contoh

Respons sukses

JSONformat

{
  "Endpoint": "oss-cn-shenzhen.aliyuncs.com",
  "RequestId": "F4EEB401-DD21-588D-AE3B-1E835C7655E1",
  "ExpireTime": 1654326678,
  "Success": true,
  "Code": "200",
  "TempFileKey": "temp/1440155109798732/upload/2022-07-29/49bed34c-b430-4e7e-89b1-4be2b734f95c/iaclone.diff",
  "Message": "successful",
  "BucketName": "hbr-temp-bucket",
  "OssAccessKeyId": "LTAI****Up",
  "Policy": "eyJleH****V19",
  "Signature": "RmhI****0A="
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.