All Products
Search
Document Center

Security Center:CreateBatchUploadUrl

Last Updated:Aug 28, 2026

Obtains upload URLs and parameters for submitting files for detection.

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.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-sas:CreateBatchUploadURL

none

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Md5List

array

Yes

File identifiers. Only MD5 hash values are supported.

string

No

File identifiers. Only MD5 hash values are supported.

a479262288e03f6a90dc282ea3******

Type

integer

Yes

The file type. Valid values:

  • 0: unknown file

  • 1: binary file

  • 2: webshell file

  • 4: script file

Note

If the file type is unknown, set this parameter to 0.

0

Response elements

Element

Type

Description

Example

object

The response structure.

RequestId

string

The request ID.

DA62490B-7883-5EB4-8601-F2D1D9******

UploadUrlList

array<object>

The upload parameters for each file.

array<object>

PublicUrl

string

The public upload URL.

http://example.com

InternalUrl

string

The internal upload URL.

http://example.com

Expire

string

The expiration timestamp of the upload parameters. Unit: milliseconds.

1658562101370

Context

object

The signature information.

AccessId

string

The AccessKey ID for accessing the OSS bucket.

yourAccessKeyID

Policy

string

The upload policy that specifies constraints such as file size limits.

eyJleHBpcmF0aW9uIjoiMjAyMi0wNy0yM1QxMDo1ODoxMC****

Signature

string

The signature for the file upload.

wDhPgVdnY/bkKFYcYFl+4crl****

OssKey

string

The OSS object key assigned to the uploaded file.

1/2022/06/23/15/41/16559701077444693a0c6-33b2-4cc2-a99f-9f38b8b8****

FileExist

boolean

Whether the file already exists in the cloud. Valid values:

  • true: The file exists. No upload required.

  • false: The file does not exist. Upload required.

false

Md5

string

The MD5 hash of the file.

2f8dc248a0fbb96c69e45acad2******

Examples

Success response

JSON format

{
  "RequestId": "DA62490B-7883-5EB4-8601-F2D1D9******",
  "UploadUrlList": [
    {
      "PublicUrl": "http://example.com",
      "InternalUrl": "http://example.com",
      "Expire": "1658562101370",
      "Context": {
        "AccessId": "yourAccessKeyID",
        "Policy": "eyJleHBpcmF0aW9uIjoiMjAyMi0wNy0yM1QxMDo1ODoxMC****",
        "Signature": "wDhPgVdnY/bkKFYcYFl+4crl****",
        "OssKey": "1/2022/06/23/15/41/16559701077444693a0c6-33b2-4cc2-a99f-9f38b8b8****"
      },
      "FileExist": false,
      "Md5": "2f8dc248a0fbb96c69e45acad2******"
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

500 ServerError ServerError
403 NoPermission caller has no permission You are not authorized to do this operation.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.