调用DescribePrefixLists查询一个或多个前缀列表的信息。
接口说明
请求参数AddressFamily
、PrefixListId.N
和PrefixListName
类似于过滤器,为逻辑与(AND)关系。如果某一参数为空,则过滤器不起作用。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
RegionId | string | 是 | 地域 ID。您可以调用 DescribeRegions 查看最新的阿里云地域列表。 | cn-chengdu |
PrefixListName | string | 否 | 前缀列表的名称。 | PrefixListNameSample |
NextToken | string | 否 | 查询凭证(Token)。取值为上一次调用该接口返回的 | AAAAAdDWBF2**** |
MaxResults | integer | 否 | 分页查询时每页行数。 最大值:100。 默认值:10。 | 10 |
AddressFamily | string | 否 | 前缀列表的地址族。取值范围:
默认值:空,查询所有前缀列表信息。 | IPv4 |
PrefixListId | array | 否 | 前缀列表 ID。N 的取值范围:0~100。 | |
string | 否 | 前缀列表 ID。N 的取值范围:0~100。 | pl-x1j1k5ykzqlixdcy**** |
返回参数
示例
正常返回示例
JSON
格式
{
"NextToken": "AAAAAdDWBF2****",
"RequestId": "38793DB8-A4B2-4AEC-BFD3-111234E9188D",
"PrefixLists": {
"PrefixList": [
{
"CreationTime": "2021-02-20T07:11Z",
"AssociationCount": 1,
"MaxEntries": 20,
"Description": "This is description.",
"AddressFamily": "IPv4",
"PrefixListName": "PrefixListNameSample",
"PrefixListId": "pl-x1j1k5ykzqlixdcy****"
}
]
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidParameter | %s | 无效的参数。 |
400 | LimitExceed.PrefixListId | The specified number of PrefixListId exceeds the limit. | PrefixListId的数量超出限制。 |
404 | InvalidRegionId.NotFound | The specified RegionId does not exist. | 指定的地域 ID 不存在。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2023-11-13 | OpenAPI 错误码发生变更 | 查看变更详情 |