查看私有閘道詳情。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
eas:DescribeGateway |
get |
*Gateway
|
無 | 無 |
請求文法
GET /api/v2/gateways/{ClusterId}/{GatewayId} HTTP/1.1
路徑參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClusterId |
string |
是 |
私有閘道所在地域。 |
cn-wulanchabu |
| GatewayId |
string |
是 |
私有閘道 ID。如何取得私有閘道 ID,請參見 ListResources 介面返回結果中的 private_gateway_id 欄位。 |
gw-1uhcqmsc7x22****** |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
當前API無需請求參數
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回結果。 |
||
| RequestId |
string |
請求 ID。 |
40325405-579C-4D82**** |
| GatewayId |
string |
私有閘道 ID。 |
gw-1uhcqmsc7x22****** |
| GatewayName |
string |
私有閘道別名。 |
mygateway1 |
| CreateTime |
string |
私有閘道建立時間。使用 UTC 時間。 |
2020-05-19T14:19:42Z |
| UpdateTime |
string |
私有閘道更新時間。使用 UTC 時間。 |
2021-02-24T11:52:17Z |
| IntranetDomain |
string |
內網存取網域。 |
gw-1uhcqmsc7x22******-1801786532******-vpc.cn-wulanchabu.pai-eas.aliyuncs.com |
| InternetEnabled |
boolean |
公網存取是否開啟。 |
true |
| InternetDomain |
string |
公網存取網域。 |
gw-1uhcqmsc7x22******-1801786532******.cn-wulanchabu.pai-eas.aliyuncs.com |
| InstanceType |
string |
私有閘道使用的機型。 枚舉值:
|
2c4g |
| Status |
string |
私有閘道狀態。 枚舉值:
|
Running |
| ExternalClusterId |
string |
自維運叢集 ID。 |
c935eadf284c14c2da57a2a13ad6****** |
| Replicas |
integer |
私有閘道節點數。 |
2 |
| IsDefault |
boolean |
是否預設私有閘道。 |
true |
| InternetStatus |
string |
公網存取開通或關閉狀態。 枚舉值:
|
Running |
| SSLRedirectionEnabled |
boolean |
HTTP 重新導向 HTTPS 是否開啟。 |
true |
| ChargeType |
string |
付費類型。 枚舉值:
|
PrePaid |
| IntranetEnabled |
boolean |
||
| Labels |
array<object> |
||
|
object |
|||
| LabelKey |
string |
key1 |
|
| LabelValue |
string |
value1 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "40325405-579C-4D82****",
"GatewayId": "gw-1uhcqmsc7x22******",
"GatewayName": "mygateway1",
"CreateTime": "2020-05-19T14:19:42Z",
"UpdateTime": "2021-02-24T11:52:17Z",
"IntranetDomain": "gw-1uhcqmsc7x22******-1801786532******-vpc.cn-wulanchabu.pai-eas.aliyuncs.com",
"InternetEnabled": true,
"InternetDomain": "gw-1uhcqmsc7x22******-1801786532******.cn-wulanchabu.pai-eas.aliyuncs.com",
"InstanceType": "2c4g",
"Status": "Running",
"ExternalClusterId": "c935eadf284c14c2da57a2a13ad6******",
"Replicas": 2,
"IsDefault": true,
"InternetStatus": "Running",
"SSLRedirectionEnabled": true,
"ChargeType": "PrePaid",
"IntranetEnabled": false,
"Labels": [
{
"LabelKey": "key1",
"LabelValue": "value1"
}
]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。