CDN Pro
查询某个加速项目的信息,包括已创建的版本数以及哪些版本已部署等。
Open API在线调试功能提供可视化界面在线调试API、支持生成代码示例、快速检索查看API文档等能力。前往调试
参数名称 | 类型 | 必填 | 描述 |
---|---|---|---|
propertyId | String | 是 |
参数名称 | 类型 | 描述 |
---|---|---|
name | String | 加速项目的名称。 |
description | String | 加速项目的描述。 |
versionInProduction | Integer | 部署到生产环境的加速项目版本。如果尚未部署加速项目,则将省略该字段。 |
versionInStaging | Integer | 部署到演练环境的加速项目版本。如果尚未部署加速项目,则将省略该字段。 |
creationTime | String | RFC 3339格式的日期,表示创建加速项目的时间。 |
lastUpdateTime | String | RFC 3339格式的日期,表示加速项目的最近更新时间。 |
versions | Integer | 加速项目的版本数量。 |
legacyType | String | 取值范围: wsapro,webpro,vodpro,downloadpro 服务类型,即全站加速,网页加速,点播加速及下载加速。 |
错误代码(code) | 描述(message) | HTTP状态码 | 语义 |
---|---|---|---|
InvalidPropertyId | The specified property ID does not exist. | 404 | 指定的加速项目ID不存在。 |
#!/bin/bash username="example_username" apiKey="example_apiKey" date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"` password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64` curl -i --url "https://open.chinanetcenter.com/cdn/properties/{propertyID}" \ -X "GET" \ -u "$username:$password" \ -H "Date: $date" \ -H "Accept: application/json"
{ "name": "Test20190827", "description": "testing ....", "versions": 1, "lastUpdateTime": "2019-08-27T19:33:38Z", "creationTime": "2019-08-27T19:15:17Z" }