GenerateFileUrlByKey

Updated at:

Generate a temporary public URL.

Try it now

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.

Try it now

RAM authorization

The following table describes the authorization information of the API. You can use it in the Action element of a RAM permission policy statement to grant a RAM user or RAM role the permission to call this API. Details are as follows:

  • Action: the specific permission point.

  • Access level: the access level of each operation. Valid values: Write, Read, or List.

  • Resource type: the resource types that support authorization for the operation. Details are as follows:

    • Required resource types are marked with a leading asterisk (*).
    • For operations that do not support resource-level authorization, All resources is used.
  • Condition key: the condition keys defined by the cloud service itself.

  • Dependent action: the other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.

ActionAccess levelResource typeCondition keyDependent action
aimiaobi:GenerateFileUrlByKeyget
*All resources
*
    None
None

Request parameters

ParameterTypeRequiredDescriptionExample
AgentKeystringYes

Unique workspace identity: AgentKey

xxxxx_p_efm
FileKeystringNo

File key. Format: protocol://serverInstance/bucketPath/fileKey

oss://default/oss-bucket-name/aimiaobi/2021/07/01/1625126400000/1.docx
FileNamestringNo

File name

test.docx

Response elements

ElementTypeDescriptionExample
object

PlainResult

Codestring

Status code

successful
Datastring

Business data

https://www.example.com/a.txt
HttpStatusCodeinteger

HTTP status code

200
Messagestring

Error message

successful
RequestIdstring

Unique request ID

1813ceee-7fe5-41b4-87e5-982a4d18cca5
Successboolean

Whether the request is successful: true for success, false for failure

true

Examples

Success response

JSON format

{
  "Code": "successful",
  "Data": "https://www.example.com/a.txt",
  "HttpStatusCode": 200,
  "Message": "successful",
  "RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
  "Success": true
}

Error codes

Visit the Error Center to view more error codes.

Release notes

Change timeChange summaryOperation
2024-03-04OpenAPI request parameters changedView change details