NICの一覧取得
注意事項
・なし
リクエスト
・リクエストパラメータ
Parameter Name | Description | Required |
virtualmachineid | the ID of the vm | true |
nicid | the ID of the nic to to list IPs | false |
・リクエストサンプル
$ ./kick_api.sh command=listNics virtualmachineid=85a02372-43da-4778-af44-bfb9e96ff532 nicid=ce79ea87-c9b2-4942-ab9c-728ef5f11db4
レスポンス
・レスポンスボディ
Response Name | Description |
id | the ID of the nic |
broadcasturi | the broadcast uri of the nic |
gateway | the gateway of the nic |
ip6address | the IPv6 address of network |
ip6cidr | the cidr of IPv6 network |
ip6gateway | the gateway of IPv6 network |
ipaddress | the ip address of the nic |
isdefault | true if nic is default, false otherwise |
isolationuri | the isolation uri of the nic |
macaddress | true if nic is default, false otherwise |
netmask | the netmask of the nic |
networkid | the ID of the corresponding network |
networkname | the name of the corresponding network |
secondaryip | the Secondary ipv4 addr of nic |
traffictype | the traffic type of the nic |
type | the type of the nic |
・レスポンスサンプル
【API実行結果】
<?xml version=”1.0″ encoding=”UTF-8″?>
<listnicsresponse cloud-stack-version=”4.3.0.2″>
<count>1</count>
<nic>
<id>ce79ea87-c9b2-4942-ab9c-728ef5f11db4</id>
<networkid>19a2e758-163f-40a8-b977-1932dcbe2bc3</networkid>
<netmask>255.255.255.0</netmask>
<gateway>192.168.4.1</gateway>
<ipaddress>192.168.4.22</ipaddress>
<isdefault>false</isdefault>
<macaddress>06:77:58:00:0c:61</macaddress>
<secondaryip>
<id>313d2c5d-88d9-4c17-bd78-99bbb5d2b785</id>
<ipaddress>192.168.4.51</ipaddress>
</secondaryip>
</nic>
</listnicsresponse>