All Products
Search
Document Center

ENS:DescribeDataDownloadURL

Last Updated:Nov 18, 2024

Queries the download URLs of application data on file servers and returns the file servers on which data is pushed.

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:
    • The required resource types are displayed in bold characters.
    • 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
ens:DescribeDataDownloadURLget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
AppIdstringYes

The ID of the application.

474bdef0-d149-4695-abfb-52912d9143f0
DataNamestringYes

The name of the data file.

mirror_file/pk-1642597182026-878199448832413.tar
DataVersionstringYes

The version number of the data file.

7895
ServerFilterStrategystringNo

The condition that you want to use to filter file servers. You can specify multiple canary release policies. By default, all resources are queried.

{\"name\": \"ScheduleToRegionId\",\"parameters\":{\"operator\": \"In\",\"values\": [\"cn-shijiazhuang-telecom_unicom_cmcc\"]}}
ExpireTimeoutlongNo

This parameter is reserved.

600

Response parameters

ParameterTypeDescriptionExample
object
Dataobject

The download URLs of data files.

ServerListarray<object>

The file servers.

ServerListobject
Hoststring

The host address of the file server.

1.1.1.1:8080
RegionIdstring

The ID of the Edge Node Service (ENS) node.

cn-chenzhou-5
Urlstring

The download URL of the data file.

/file/1450088842124331/97a32f2a-aa2c-436a-b19c-05b20d258618/f0313053530fc727f81b7d03fad93cd2/e4c2e8edac362acab7123654b9e73432?ak=edgepaas-innerapi-daily&ts=1611229454&sign=Yycbax%2F4OsTgm6BLoxR6lPs5gKE%3D
ExpireTimestring

The time when the data file expires. The time is displayed in UTC.

2021-12-10T03:36:27Z
RequestIdstring

The ID of the request.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
Codelong

The HTTP status code.

0
Messagestring

The response message. Success is returned for a successful request.

Success

Examples

Sample success responses

JSONformat

{
  "Data": {
    "ServerList": [
      {
        "Host": "1.1.1.1:8080",
        "RegionId": "cn-chenzhou-5"
      }
    ],
    "Url": "/file/1450088842124331/97a32f2a-aa2c-436a-b19c-05b20d258618/f0313053530fc727f81b7d03fad93cd2/e4c2e8edac362acab7123654b9e73432?ak=edgepaas-innerapi-daily&ts=1611229454&sign=Yycbax%2F4OsTgm6BLoxR6lPs5gKE%3D",
    "ExpireTime": "2021-12-10T03:36:27Z"
  },
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "Code": 0,
  "Message": "Success"
}

Error codes

HTTP status codeError codeError message
400NoPermissionPermission denied.
400InvalidParameter.%sThe specified field %s invalid. Please check it again.

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

Change history

Change timeSummary of changesOperation
No change history