All Products
Search
Document Center

Security Center:CreateBatchUploadUrl

Last Updated:Oct 24, 2025

Queries the parameters that are required to upload a file for detection.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:CreateBatchUploadURLnone
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
Md5ListarrayYes

The identifiers of files. Only MD5 hash values are supported.

stringYes

The identifiers of files. Only MD5 hash values are supported.

a479262288e03f6a90dc282ea3******
TypeintegerYes

The type of the file. Valid values:

  • 0: unknown file
  • 1: binary file
  • 2: webshell file
  • 4: script file
Note If you do not know the type of the file, set this parameter to 0.
0

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

DA62490B-7883-5EB4-8601-F2D1D9******
UploadUrlListarray<object>

An array consisting of the parameters that are required to upload a file.

UploadUrListobject
PublicUrlstring

The public endpoint of the URL to which the file is uploaded.

http://example.com
InternalUrlstring

The internal endpoint of the URL to which the file is uploaded.

http://example.com
Expirestring

The timestamp when the values of the parameters expire. Unit: milliseconds.

1658562101370
Contextobject

The signature information.

AccessIdstring

The AccessKey ID that is used to access the OSS bucket.

yourAccessKeyID
Policystring

The policy that poses limits on file upload. For example, the policy can limit the size of the file.

eyJleHBpcmF0aW9uIjoiMjAyMi0wNy0yM1QxMDo1ODoxMC****
Signaturestring

The signature that is used to upload the file.

wDhPgVdnY/bkKFYcYFl+4crl****
OssKeystring

The key of the file that is used after the file is uploaded to the OSS bucket.

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

Indicates whether the file exists in the cloud. Valid values:

  • true: The file exists in the cloud. You do not need to upload the file.
  • false: The file does not exist in the cloud. You must upload the file.
false
Md5string

The identifier of the file.

2f8dc248a0fbb96c69e45acad2******

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.