VMware vCenter でのイメージの追加
VMware vCenter に VNF を展開する場合は、VMware vCenter ですでに使用可能なアウトオブバンドイメージを使用するか、ESC ポータルで、あるいは REST API または NETCONF API を使用してイメージを作成できます。展開属性の詳細については、「Cisco Elastic Services Controller Deployment Attributes」を参照してください。
ノースバウンド API を使用したイメージの追加
(注) |
VMware vCenter に VNF を展開する場合は、VMware vCenter ですでに使用可能なアウトオブバンドイメージを使用するか、ESC ポータルで、あるいは REST API または NETCONF API を使用してイメージを作成できます。 |
イメージを作成するための NETCONF 要求:
<?xml version="1.0" encoding="UTF-8"?>
<esc_datamodel xmlns:ns2="urn:ietf:params:xml:ns:netconf:notification:1.0" xmlns:ns1="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:ns3="http://www.cisco.com/esc/esc_notifications" xmlns:ns0="http://www.cisco.com/esc/esc" xmlns="http://www.cisco.com/esc/esc">
<images>
<image>
<name>cirrosimage-indep</name>
<src>http://172.16.0.0:/share/images/esc_automated_test_images/cirros-0.3.3-x86_64-disk.img</src>
<disk_format>qcow2</disk_format>
<container_format>bare</container_format>
<serial_console>true</serial_console>
<disk_bus>virtio</disk_bus>
</image>
</images>
</esc_datamodel>
イメージが正常に作成された時の NETCONF 通知:
<?xml version="1.0" encoding="UTF-8"?>
<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
<eventTime>2015-07-13T13:46:50.339+00:00</eventTime>
<escEvent xmlns="http://www.cisco.com/esc/esc">
<status>SUCCESS</status>
<status_message>Image creation completed successfully.</status_message>
<image>cirrosimage-indep</image>
<vm_source>
</vm_source>
<vm_target>
</vm_target>
<event>
<type>CREATE_IMAGE</type>
</event>
</escEvent>
</notification>
(注) |
NETCONF API を使用したイメージの追加の詳細については、Cisco Elastic Services Controller API ガイド [英語] を参照してください。ESC VM から REST API ドキュメントに直接アクセスする場合は、REST ノースバウンド APIを参照してください。ESC ポータルを使用したイメージの追加と削除の詳細については、ESC ポータルを使用した VMware vCenter リソースの管理を参照してください。 |