獲取IPv4網關列表
更新時間 2023-07-06 09:22:03
最近更新時間: 2023-07-06 09:22:03
分享文章
接口功能介紹
獲取IPv4網關列表
接口約束
無
URI
GET /v4/vpc/ipv4-gw/list
請求參數
Query 參數
| 參數 | 參數類型 | 是否必填 | 說明 | 示例 |
|---|---|---|---|---|
| regionID | String | 是 | 區域id | 81f7728662dd11ec810800155d307d5b |
| vpcID | String | 否 | 關聯的vpcID | vpc-xxxx |
響應參數
| 參數 | 參數類型 | 說明 | 示例 |
|---|---|---|---|
| statusCode | Integer | 返回狀態碼(800為成功,900為失敗) | 800 |
| message | String | statusCode為900時的錯誤信息; statusCode為800時為success, 英文 | success |
| description | String | statusCode為900時的錯誤信息; statusCode為800時為成功, 中文 | 成功 |
| errorCode | String | statusCode為900時為業務細分錯誤碼,三段式:product.module.code; statusCode為800時為SUCCESS | SUCCESS |
| returnObj | Array of Objects | 接口業務數據 | 見下表 |
表 returnObj
| 參數 | 參數類型 | 說明 | 示例 |
|---|---|---|---|
| name | String | IPv4網關名稱 | test-igw |
| description | String | IPv4網關描述 | 網關描述 |
| vpcID | String | 虛擬私有云 id | vpc-62cjmqu83m |
| id | String | IPv4網關id | igw-oc9m7pqqb8 |
| routeTableID | String | 關聯的網關路由表ID | rtb-nt76686qqt |
| createdAt | String | 創建時間 | 2022-12-12T07:25:30Z |
| updatedAt | String | 更新時間 | 2022-12-12T07:25:30Z |
請求示例
GET /v4/vpc/ipv4-gw/list?regionID=81f7728662dd11ec810800155d307d5b&vpcID=vpc-62cjmqu83m
請求體Body
無
響應示例
{
"statusCode": 800,
"errorCode": "SUCCESS",
"message": "success",
"description": "成功",
"returnObj": [{
"name": "test-for-me",
"description": "",
"vpcID": "vpc-62cjmqu83m",
"id": "igw-oc9m7pqqb8",
"routeTableID": "rtb-nt76686qqt",
"creatdAt": "2022-12-12T07:25:30Z",
"updateAt": "2022-12-12T07:25:30Z"
}]
}
狀態碼
| 狀態碼 | 描述 |
|---|---|
| 200 | 表示請求成功。 |
錯誤碼
請參考 錯誤碼說明。