1. 接口描述
接口请求域名: cdn.tencentcloudapi.com 。
DescribeDomainsConfig 用于查询内容分发网络加速域名(含境内、境外)的所有配置信息。
默认接口请求频率限制:20次/秒。
推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。
2. 输入参数
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
参数名称 | 必选 | 类型 | 描述 |
---|---|---|---|
Action | 是 | String | 公共参数,本接口取值:DescribeDomainsConfig。 |
Version | 是 | String | 公共参数,本接口取值:2018-06-06。 |
Region | 否 | String | 公共参数,本接口不需要传递此参数。 |
Offset | 否 | Integer | 分页查询偏移量,默认为 0 示例值:0 |
Limit | 否 | Integer | 分页查询限制数目,默认为 100,最大可设置为 1000 示例值:1 |
Filters.N | 否 | Array of DomainFilter | 查询条件过滤器,复杂类型 |
Sort | 否 | Sort | 排序规则 |
3. 输出参数
参数名称 | 类型 | 描述 |
---|---|---|
Domains | Array of DetailDomain | 域名列表 |
TotalNumber | Integer | 符合查询条件的域名总数 用于分页查询 示例值:201 |
RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
4. 示例
示例1 查询域名详细配置
输入示例
https://cdn.tencentcloudapi.com/?Action=DescribeDomainsConfig
&Offset=0
&Limit=1
&<公共请求参数>
输出示例
{
"Response": {
"RequestId": "07f7dd0b-3936-4bdb-9a85-92b4e20d1b03",
"Domains": [
{
"AccessControl": {
"Switch": "off",
"AccessControlRules": [],
"ReturnCode": 403
},
"AccessPort": [
80,
8080,
443
],
"Advance": "on",
"AdvanceSet": [
{
"Name": "edge",
"Value": "on"
},
{
"Name": "last",
"Value": "off"
},
{
"Name": "full",
"Value": "off"
},
{
"Name": "quic",
"Value": "off"
}
],
"AdvancedAuthentication": {
"Switch": "off",
"TypeA": null,
"TypeB": null,
"TypeC": null,
"TypeD": null,
"TypeE": null,
"TypeF": null
},
"AppId": 123456789,
"Area": "global",
"Authentication": {
"Switch": "off",
"TypeA": null,
"TypeB": null,
"TypeC": null,
"TypeD": null
},
"AwsPrivateAccess": {
"Switch": "off",
"AccessKey": "",
"SecretKey": ""
},
"BandwidthAlert": {
"Switch": "off",
"BpsThreshold": 10000000000,
"CounterMeasure": "RETURN_404",
"LastTriggerTime": null
},
"Cache": {
"RuleCache": [
{
"CacheConfig": {
"Cache": {
"CacheTime": 86400,
"CompareMaxAge": "off",
"IgnoreCacheControl": "off",
"IgnoreSetCookie": "off",
"Switch": "on"
},
"NoCache": {
"Switch": "off",
"Revalidate": "off"
},
"FollowOrigin": {
"Switch": "off"
}
},
"RulePaths": [
"*"
],
"RuleType": "all"
}
],
"SimpleCache": null,
"AdvancedCache": null
},
"CacheKey": {
"FullUrlCache": "off",
"CacheTag": {
"Switch": "off",
"Value": null
},
"Cookie": {
"Switch": "off",
"Value": ""
},
"Header": {
"Switch": "off",
"Value": ""
},
"IgnoreCase": "off",
"KeyRules": [
{
"FullUrlCache": "on",
"IgnoreCase": "off",
"QueryString": {
"Switch": "off",
"Action": null,
"Value": ""
},
"RulePaths": [
".1"
],
"RuleType": "file",
"RuleTag": "user"
}
],
"QueryString": {
"Switch": "off",
"Reorder": "off",
"Action": null,
"Value": ""
},
"Scheme": {
"Switch": "off"
}
},
"Cname": "www.test.com.cdn.dnsv1.com",
"Compatibility": {
"Code": 0
},
"Compression": {
"Switch": "on",
"CompressionRules": [
{
"Compress": true,
"FileExtensions": [
"js",
"html",
"css",
"xml",
"json",
"shtml",
"htm"
],
"MinLength": 256,
"MaxLength": 2097152,
"Algorithms": [
"gzip"
]
}
]
},
"CreateTime": "2020-12-14 21:14:36",
"Disable": "normal",
"Domain": "www.test.com",
"DownstreamCapping": {
"Switch": "off",
"CappingRules": []
},
"ErrorPage": {
"Switch": "off",
"PageRules": []
},
"FollowRedirect": {
"Switch": "off"
},
"ForceRedirect": {
"Switch": "off",
"RedirectType": "http",
"RedirectStatusCode": 302,
"CarryHeaders": "off"
},
"Https": {
"Switch": "off",
"Http2": "off",
"Spdy": "off",
"OcspStapling": "off",
"VerifyClient": "off",
"CertInfo": null,
"ClientCertInfo": null,
"TlsVersion": [
"TLSv1",
"TLSv1.1",
"TLSv1.2"
],
"Hsts": {
"Switch": "off",
"MaxAge": 0,
"IncludeSubDomains": "off"
},
"SslStatus": "closed"
},
"ImageOptimization": {
"WebpAdapter": {
"Switch": "off"
},
"TpgAdapter": {
"Switch": "off"
},
"GuetzliAdapter": {
"Switch": "off"
}
},
"IpFilter": {
"Switch": "off",
"FilterType": "blacklist",
"Filters": [],
"FilterRules": []
},
"IpFreqLimit": {
"Switch": "off",
"Qps": null
},
"Ipv6": {
"Switch": "off"
},
"Ipv6Access": {
"Switch": "off"
},
"MaxAge": {
"MaxAgeRules": [
{
"MaxAgeType": "all",
"MaxAgeContents": [
"*"
],
"MaxAgeTime": 0,
"FollowOrigin": "on"
}
],
"Switch": "on"
},
"OfflineCache": {
"Switch": "off"
},
"Origin": {
"Origins": [
"1.1.1.1"
],
"OriginType": "ip",
"ServerName": "www.a.com",
"CosPrivateAccess": "off",
"OriginPullProtocol": "http",
"BackupOrigins": [
"2.2.2.2"
],
"BackupOriginType": "ip",
"BackupServerName": "www.a.com",
"PathRules": [],
"BasePath": null,
"PathBasedOrigin": [],
"Sni": {
"Switch": "off",
"ServerName": null
}
},
"OriginAuthentication": null,
"OriginCombine": {
"Switch": "off"
},
"OriginPullOptimization": {
"Switch": "off",
"OptimizationType": ""
},
"OriginPullTimeout": {
"ConnectTimeout": 5,
"ReceiveTimeout": 10
},
"PostMaxSize": {
"Switch": "off",
"MaxSize": 33554432
},
"ProjectId": 0,
"Quic": {
"Switch": "off"
},
"RangeOriginPull": {
"Switch": "off"
},
"Readonly": "normal",
"Referer": {
"Switch": "off",
"RefererRules": [
{
"RuleType": "all",
"RulePaths": [
"*"
],
"RefererType": "whitelist",
"Referers": [
"1.1.1.1"
],
"AllowEmpty": false
}
]
},
"RequestHeader": {
"Switch": "off",
"HeaderRules": []
},
"ResourceId": "cdn-5ndlcoas",
"ResponseHeader": {
"HeaderRules": [],
"Switch": "off"
},
"ResponseHeaderCache": {
"Switch": "on"
},
"SecurityConfig": {
"Switch": "off"
},
"Seo": {
"Switch": "off"
},
"ServiceType": "web",
"SpecificConfig": {
"Mainland": null,
"Overseas": null
},
"Status": "online",
"StatusCodeCache": {
"CacheRules": [
{
"StatusCode": "403",
"CacheTime": 0
}
],
"Switch": "on"
},
"Tag": [
{
"TagKey": "testfornewtag",
"TagValue": "brandnew"
},
{
"TagKey": "zzz",
"TagValue": "aaa"
}
],
"UpdateTime": "2021-03-16 21:04:04",
"UrlRedirect": {
"Switch": "off",
"PathRules": []
},
"UserAgentFilter": {
"Switch": "off",
"FilterRules": []
},
"VideoSeek": {
"Switch": "off"
},
"OssPrivateAccess": null,
"WebSocket": null,
"RemoteAuthentication": null,
"ShareCname": null,
"ParentHost": null,
"RuleEngine": null
}
],
"TotalNumber": 1
}
}
5. 开发者资源
腾讯云 API 平台
腾讯云 API 平台 是综合 API 文档、错误码、API Explorer 及 SDK 等资源的统一查询平台,方便您从同一入口查询及使用腾讯云提供的所有 API 服务。
API Inspector
用户可通过 API Inspector 查看控制台每一步操作关联的 API 调用情况,并自动生成各语言版本的 API 代码,也可前往 API Explorer 进行在线调试。
SDK
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
- Tencent Cloud SDK 3.0 for Python: GitHub Gitee
- Tencent Cloud SDK 3.0 for Java: GitHub Gitee
- Tencent Cloud SDK 3.0 for PHP: GitHub Gitee
- Tencent Cloud SDK 3.0 for Go: GitHub Gitee
- Tencent Cloud SDK 3.0 for Node.js: GitHub Gitee
- Tencent Cloud SDK 3.0 for .NET: GitHub Gitee
- Tencent Cloud SDK 3.0 for C++: GitHub Gitee
- Tencent Cloud SDK 3.0 for Ruby: GitHub Gitee
命令行工具
6. 错误码
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
错误码 | 描述 |
---|---|
InternalError.CamSystemError | 内部鉴权系统错误。 |
InternalError.CdnConfigError | 域名配置更新失败。 |
InternalError.CdnDbError | 内部数据错误,请联系腾讯云工程师进一步排查。 |
InternalError.CdnQuerySystemError | 内部查询错误,请重试或联系客服人员解决。 |
InternalError.CdnSystemError | 系统错误,请联系腾讯云工程师进一步排查。 |
InternalError.Error | 内部服务错误,请联系腾讯云工程师进一步排查。 |
InternalError.ProxyServer | 内部服务错误,请联系腾讯云工程师进一步排查。 |
InternalError.RouteError | 内部服务错误,请联系腾讯云工程师进一步排查。 |
InvalidParameter.CDNStatusInvalidDomain | 域名状态不合法。 |
InvalidParameter.CdnCertNoCertInfo | 证书无效,请确认后重试。 |
InvalidParameter.CdnInterfaceError | 内部接口错误,请联系腾讯云工程师进一步排查。 |
InvalidParameter.CdnParamError | 参数错误,请参考文档中示例参数填充。 |
InvalidParameter.CdnStatInvalidProjectId | 项目ID错误,请确认后重试。 |
InvalidParameter.CdnStatTooManyDomains | 查询的域名数量超过限制。 |
ResourceNotFound.CdnHostNotExists | 未查询到该域名,请确认域名是否正确。 |
ResourceNotFound.CdnUserNotExists | 未开通CDN服务,请开通后使用此接口。 |
UnauthorizedOperation.CdnCamUnauthorized | 子账号未配置cam策略。 |
UnauthorizedOperation.CdnHostUnauthorized | CDN子账号加速域名未授权。 |
UnauthorizedOperation.CdnProjectUnauthorized | 子账号项目未授权。 |
UnauthorizedOperation.CdnTagUnauthorized | 子账号标签未授权。 |
UnauthorizedOperation.CdnUserAuthFail | CDN用户认证失败。 |
UnauthorizedOperation.CdnUserAuthWait | CDN用户待认证。 |
UnauthorizedOperation.CdnUserIsSuspended | 加速服务已停服,请重启加速服务后重试。 |
UnauthorizedOperation.OpNoAuth | 暂不支持此操作,请联系腾讯云工程师处理。 |
UnauthorizedOperation.OperationTooOften | 操作超出调用频次限制。 |