查询域名标签
更新时间:2024-04-08
本接口用于查询指定加速域名关联的标签。
| Method | Path | 说明 | 
|---|---|---|
| GET | /v2/domain/{domain}/config?tags | 查询域名关联的标签 | 
domain: 需要查询CDN的加速域名
请求示例:
                Plain Text
                
            
            1GET /v2/domain/myself.baidu.com/config?tags HTTP/1.1
2Host: cdn.baidubce.com响应体 (Response Body)
| 参数 | 类型 | 说明 | 
|---|---|---|
| tags | Tag[] | 关联的标签集合 | 
Tag 类型如下:
| 参数 | 可选 | 类型 | 说明 | 
|---|---|---|---|
| tagKey | 必选 | string | 标签的键,可包含大小写字母、数字、中文以及-_ /.特殊字符,长度 1-65 | 
| tagValue | 可选 | string | 标签的值,可包含大小写字母、数字、中文以及-_ /.特殊字符,长度 0-65 | 
响应示例:
                Plain Text
                
            
            1HTTP/1.1 200 OK
2Server: nginx/1.16.1
3Date: Wed, 27 Mar 2024 09:18:42 GMT
4Content-Type: application/json; charset=utf-8
5x-bce-request-id: 1aac6c57-a648-4ea2-92f3-e47da03ecec6
6
7{"tags":[{"tagKey":"group","tagValue":"download"},{"tagKey":"service","tagValue":"下载"}]}