开发者社区 问答 正文

如何查询L2节点vip列表?



DescribeL2VipsByDomain



描述

  • 按域名查询L2节点vip列表。配置白名单后才可以生效
  • 注:支持日峰值带宽为 [backcolor=transparent]1Gbps 以上的用户提工单申请该接口调用权限,立即申请
  • 使用场景介绍,请了解:CDN的回源地址有哪些?


请求参数

参数类型必须描述
ActionString操作接口名,系统规定参数,取值:DescribeL2VipsByDomain
DomainNameString域名,取值范围: 只支持单个域名,需加白名单


返回参数

名称类型描述
DomainNameString域名
VipsVip[]Vip列表


特定错误码

ErrorCode 错误码Message 错误信息HTTP 返回码语义
MissingParameterThe specified value of parameter “DomainName” can not be empty.400参数DomainName不能为空


示例


请求示例 https://cdn.aliyuncs.com?Action=DescribeL2VipsByDomain&DomainName=xxxx.com&<公共请求参数>

返回示例 {
  "Vips": {
    "Vip": [
      "1.1.1.1/25",
      "2.2.2.2/25"
    ]
  },
  "RequestId": "820E7900-5CA9-4AEF-B0DD-20ED5F64BE55",
  "DomainName": "xxxx.com"
}

展开
收起
青衫无名 2017-10-24 11:27:01 2978 分享 版权
阿里云 AI 助理回答

The DescribeL2VipsByDomain API is a service provided by Alibaba Cloud Content Delivery Network (CDN) that allows users to query the Layer 2 (L2) node VIP list based on a specified domain name. This feature is particularly useful for managing and monitoring CDN configurations, especially when you need to know the IP addresses (VIPs) used at the L2 nodes for your domain's CDN resources.

Usage Scenarios

This API is helpful in scenarios where you want to: - Monitor CDN Infrastructure: Understand which VIPs are serving your content to ensure proper routing and troubleshoot any delivery issues. - Whitelist Management: If you have specific security policies or firewall rules that require whitelisting of IP addresses, this API helps identify the necessary VIPs to include in your whitelist. - Traffic Analysis and Optimization: Gain insights into your CDN network topology, which can aid in traffic management and optimization strategies.

Prerequisites

Before using this API, note the following: - Permission Application: Users with daily peak bandwidth exceeding 1Gbps must submit a ticket to request access to use this API. - Whitelisting: The domain for which you are querying VIPs must be added to a whitelist before this API call can return valid results.

Request Parameters

  • Action: String, required. Set this parameter to DescribeL2VipsByDomain.
  • DomainName: String, required. Specify the domain name for which you want to retrieve the L2 VIPs. Only one domain at a time is supported.

Response Parameters

  • DomainName: The domain name for which the VIPs were queried.
  • Vips.Vip[]: An array containing the VIP list associated with the specified domain.

Error Codes

Specific error codes include: - MissingParameter: The error message "The specified value of parameter 'DomainName' can not be empty." indicates that the DomainName parameter was not provided in the request, resulting in a 400 Bad Request HTTP status code.

Example Request

A sample request URL would look like this:

https://cdn.aliyuncs.com?Action=DescribeL2VipsByDomain&DomainName=yourdomain.com

Replace yourdomain.com with the actual domain name you wish to query.

Remember to authenticate your API requests with appropriate access keys and遵循阿里云API调用的最佳实践,包括签名请求、处理响应等。

有帮助
无帮助
AI 助理回答生成答案可能存在不准确,仅供参考
0 条回答
写回答
取消 提交回答
问答地址: