根据源地址池ID获取单条源地址池信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| Id | long | 是 | 源地址池 ID,可通过调用 ListOriginPools 接口获取。 | 1038520525196928 |
| SiteId | long | 是 | 站点 ID,可通过调用 ListSites 接口获取。 | 216558609793952 |
返回参数
示例
正常返回示例
JSON格式
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"Id": 0,
"Name": "pool1",
"SiteId": 0,
"RecordName": "pool1.example.com",
"Enabled": true,
"References": {
"LoadBalancers": [
{
"Name": "lb1.example.com",
"Id": 0
}
],
"DnsRecords": [
{
"Name": "www.example.com",
"Id": 0
}
],
"IPARecords": [
{
"Name": "ipa.example.com",
"Id": 0
}
]
},
"ReferenceLBCount": 5,
"Origins": [
{
"Id": 0,
"Name": "origin1",
"Address": "www.example.com",
"Enabled": true,
"Weight": 50,
"Type": "ip_domain",
"Header": {
"Host": [
"example.com"
]
},
"AuthConf": {
"AuthType": "public",
"AccessKey": "yourAccessKeyID",
"SecretKey": "yourAccessKeySecret",
"Version": "v4",
"Region": "us-east-1\n"
},
"IpVersionPolicy": ""
}
]
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
| 400 | OriginPoolNotExist | The specified origin pool does not exist or does not belong to your account or website. Check and try again. | 传入的源地址池不存在,或该地址池不属于当前用户和站点,请您确认后重试。 |
| 404 | SiteNotFound | The website does not exist or does not belong to you. | 站点不存在,或者不属于你。 |
访问错误中心查看更多错误码。
变更历史
| 变更时间 | 变更内容概要 | 操作 |
|---|---|---|
| 2025-11-07 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |
