查詢私有網路資訊
更新時間:2017-09-08 01:04:56
描述
查詢私有網路資訊,可根據查詢條件檢索到多條記錄。
請求引數
引數名 | 引數型別 | 是否必填 | 引數說明 |
---|---|---|---|
Action | String | 是 | 操作方法 |
Region | String | 是 | 機房標識,取值參見地域列表 |
Offset | Integer | 否 | 記錄偏移量,不指定取 0 |
Count | Integer | 否 | 記錄數量,不指定為全部 |
Id.N | String | 否 | 私有網路標識,支援批次,N為自然數,格式:&Id.0=xxx&Id.1=xxx等 |
Name | String | 否 | 名稱 |
StartTime | String | 否 | 建立開始時間 格式yyyy-MM-dd HH:mm:ss |
EndTime | String | 否 | 建立結束時間 格式yyyy-MM-dd HH:mm:ss |
返回引數
名稱 | 型別 | 說明 |
---|---|---|
Action | String | 執行的操作 |
TaskId | String | 請求標識 |
TotalCount | Integer | 過濾條件下總共記錄數 |
NetworkSet | NetworktemType | 由NetworktemType組成的陣列格式,返回私有網路的資訊 |
NetworktemType節點
私有網路資訊的資料型別
名稱 | 型別 | 說明 |
---|---|---|
Id | String | 網路標識 |
Uuid | String | UUID |
Name | String | 名稱 |
Description | String | 描述 |
Cidr | String | IP 地址範圍 |
Type | String | 型別, DEFAULT CUSTOMER,預設為CUSTOMER |
Dhcp | Boolean | 是否啟用 DHCP |
Gateway | String | 閘道器地址,主要影響到 DHCP 服務的路由資訊 |
ProductStatus | String | 產品狀態,正常:NORMAL 過期:OVERTIMER 欠費:ARREARAGE |
IpStart | String | 起始 IP 地址 |
IpEnd | String | 終止 IP 地址 |
SpecialLineId | String | 所屬專線 |
CreateTime | DateTime | 建立時間 |
BindingSet | BindingSetItemType | 由BindingSetItemType組成的陣列格式,返回綁定了私有網路的資源 |
UserId | String | 所屬使用者ID |
SubnetId | String | 管理員用,私有網路子網標識 |
SubnetUuid | String | 管理員用,私有子網uuid |
SubnetLongId | String | 管理員用,私有子網LongId |
BindingSetItemType節點
綁定了私有網路的資源資料型別
名稱 | 型別 | 說明 |
---|---|---|
ResourceId | String | 資源標識 |
ResourceName | String | 資源名稱 |
ResourceType | String | 資源型別:INSTANCE,ROUTER,LOADBALANCE |
ResourceEips | List | 資源繫結對應的IP |
請求示例
https://api.chinac.com/?Action=DescribeNetworks
&Name=Obi-wan
&公共引數
返回示例
{ "code": 10000, "message": "", "data": ``` { "TaskId": "mirrorz0011520170510091646931", "Action": "DescribeNetworks", "TotalCount": 1, "NetworkSet": [{ "Id": "n-169ih3kdh632x", "Name": "666", "Description": null, "Cidr": "10.10.66.0/24", "Type": "CUSTOMER", "Dhcp": "true", "Gateway": "10.10.66.1", "ProductStatus": "NORMAL", "IpStart": "10.10.66.2", "IpEnd": "10.10.66.254", "CreateTime": "2017-04-20T13:17:06 +0800", "SpecialLineId": null, "Ips": ["10.10.66.5", "10.10.66.2", "10.10.66.1", "10.10.66.3"], "Uuid": "e3df9d1f-0a11-40ce-bc8f-661a639e2e94", "IdLong": "n-169ih3kdh632x-e3df9d1f-0a11-40ce-bc8f-661a639e2e94", "UserId": "18359229", "BindingSet": [{ "ResourceId": "r-il9ih3kder92t", "ResourceName": "666", "ResourceUuid": "8437e39e-395b-401e-822f-d5b9669872d4", "ResourceType": "ROUTER", "ResourceEips": ["172.16.29.65"] }, { "ResourceId": "lb-in9ih3kecj85v", "ResourceName": "clb1704203fpi", "ResourceUuid": "5dfa1edc-7339-482b-a90b-f55a39e469a6", "ResourceType": "LOADBALANCER", "ResourceEips": ["172.16.29.67"] }], "SubnetId": "s-989ih3kdh635q", "SubnetUuid": "c2cd54ce-cbe4-4a48-8de4-3e434333fdc6", "SubnetLongId": "s-989ih3kdh635q-c2cd54ce-cbe4-4a48-8de4-3e434333fdc6" }] } }