最近更新时间:2023.05.19 15:49:35
首次发布时间:2021.02.23 10:42:24
通过指定服务 ID 以及获取文件类型,从而得到符合条件的文件 URL 详情。
说明
veImageX 在全球多个区域部署,每个区域有自己对应的 OpenAPI 域名,不支持跨区域调用。具体详情请查看服务地址。
以下请求参数列表仅列出了该接口的部分公共参数,完整公共参数列表见公共参数。
参数 | 类型 | 是否必选 | 描述 |
---|---|---|---|
Action | String | 是 | 接口名称。 |
Version | String | 是 | 接口版本。veImageX 当前 API 的版本为 2018-08-01 。 |
ServiceId | String | 是 | 服务 ID。 |
Type | Integer | 是 | 获取类型,取值如下所示:
|
UrlPattern | String | 否 | URL 格式,若指定 URL 格式则仅返回 URL 中包含该字符串的 URL 列表。 |
Offset | Integer | 否 | 分页偏移,默认 0。 |
Limit | Integer | 否 | 获取 URL 个数,最大值为 100。 |
参数 | 类型 | 描述 |
---|---|---|
ServiceId | String | 服务 ID。 |
Total | Integer | 符合条件的 URL 总数 |
UpdateUrls | Array of UpdateUrls | 符合条件的 URL 列表。 |
Status | String | 当前存储状态,取值为:正常、未审核、禁用。 |
参数 | 类型 | 描述 |
---|---|---|
ImageUrl | String | 图片 URL。 |
UpdateAt | String | URL 更新时间,即图像更新时的服务器当地时间。 |
GET https://imagex.volcengineapi.com/?Action=GetImageUpdateFiles&Version=2018-08-01&ServiceId=WMKp6UXe*&Type=1
{ "ResponseMetadata": { "RequestId": "2019052718371101022507411117783", "Action": "GetImageUpdateFiles", "Version": "2018-08-01", "Service": "imagex", "Region": "cn-north-1" }, "Result": { "ServiceId": "WMKp6UXe*", "Total": 1, "UpdateUrls": [ { "ImageUrl": "domain-xxx/img/bkt/key~tpl:param.format", "UpdateAt": "2019-05-27 18:26:09" } ], "Status": "正常" } }
{ "ResponseMetadata": { "RequestId": "2019052718395201022507411128672", "Action": "GetImageUpdateFiles", "Version": "2018-08-01", "Service": "imagex", "Region": "cn-north-1", "Error": { "CodeN": 600003, "Code": "", "Message": "parameter not valid" } } }
访问公共错误码获取详细信息。