查询私有网关自定义域名列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
eas:ListGatewayDomains |
list |
*全部资源
|
无 | 无 |
请求语法
GET /api/v2/gateways/{ClusterId}/{GatewayId}/domains HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ClusterId |
string |
是 |
私有网关所在地域。 |
cn-shanghai |
| GatewayId |
string |
是 |
私有网关 ID。如何获取私有网关 ID,请参见接口 ListGateway 返回结果中的 GatewayId 字段。 |
gw-1uhcqmsc7x22****** |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| RequestId |
string |
请求 ID。 |
40325405-579C-4D82**** |
| Message |
string |
请求返回信息。 |
Successfully get custom domains |
| CustomDomains |
array<object> |
自定义域名列表。 |
|
|
object |
自定义域名详情。 |
||
| Type |
string |
域名类型。 枚举值:
|
intranet |
| CertificateId |
string |
域名绑定的 SSL 证书 ID。请在数字证书管理服务完成上传或购买证书后获取证书 ID。 |
1473**25 |
| Domain |
string |
自定义域名。 |
test.com |
| CertificateName |
string |
SSL 证书名称。 |
cert-9955038 |
| CertificateStartDate |
string |
证书签发日期。 |
2018-07-13 |
| CertificateEndDate |
string |
证书过期时间。 |
2023-10-25 |
| CreateTime |
string |
域名创建时间。 |
2020-05-19T14:19:42Z |
| UpdateTime |
string |
域名更新时间。 |
2021-05-19T14:19:42Z |
| CertificateStatus |
string |
域名状态。 枚举值:
|
Succeeded |
示例
正常返回示例
JSON格式
{
"RequestId": "40325405-579C-4D82****",
"Message": "Successfully get custom domains",
"CustomDomains": [
{
"Type": "intranet",
"CertificateId": "1473**25",
"Domain": "test.com",
"CertificateName": "cert-9955038",
"CertificateStartDate": "2018-07-13",
"CertificateEndDate": "2023-10-25",
"CreateTime": "2020-05-19T14:19:42Z",
"UpdateTime": "2021-05-19T14:19:42Z",
"CertificateStatus": "Succeeded"
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。