This interface is intended for pro-code deployment only; other scenarios are currently not supported. It is used to apply for a temporary file upload lease. After obtaining the lease, you must upload the file manually.
Operation description
- This interface is intended for pro-code deployment only; other scenarios are currently not supported. 2. After obtaining the temporary file upload lease via this interface, upload the file manually.
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.
Debug
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 Resourcesis 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.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| sfm:ApplyTempStorageLease | none | *All Resources * |
| none |
Request syntax
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| FileName | string | Yes | The file name, including the file extension. | example.txt |
| SizeInBytes | long | Yes | The size of the file, in bytes. | 1024 |
| WorkspaceId | string | Yes | The Model Studio workspace ID. | llm-mbhn96xxxx |
Response parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| object | Schema of Response | ||
| Code | string | The status code. | DataCenter.FileTooLarge |
| Data | object | The returned data fields. | |
| TempStorageLeaseId | string | Unique lease ID. This parameter is required when retrieving the uploaded file within the application later. | 1e6a159107384782be5e45ac4759b247.1719325231035 |
| Param | object | HTTP parameters used for uploading the file. | |
| Headers | any | K-V fields to be included in the Header; both Key and Value are strings. | Content-Type: application/json |
| Method | string | HTTP method for the call. Valid values: PUT POST | PUT |
| Url | string | Authorized URL for the file upload. | https://bailian-datahub-data-origin-prod.oss-cn-hangzhou.aliyuncs.com/1005426495169178/10024405/68abd1dea7b6404d8f7d7b9f7fbd332d.1716698936847.pdf?Expires=1716699536&OSSAccessKeyId=YOUR_ACCESS_KEY_ID&Signature=YOUR_SIGNATURE |
| Message | string | The error message. | User not authorized to operate on the specified resource |
| RequestId | string | The request ID. | 778C0B3B-xxxx-5FC1-A947-36EDD13606AB |
| Status | string | The HTTP status code returned. | 200 |
| Success | boolean | Indicates whether the request was successful. |
Examples
Sample success responses
JSONformat
Error codes
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2025-11-04 | Add Operation | View Change Details |