Skip to content

Commit b669564

Browse files
author
David Scott
committed
Split 'VM import/export' out of HTTP
Signed-off-by: David Scott <[email protected]>
1 parent 84979a1 commit b669564

File tree

3 files changed

+22
-19
lines changed

3 files changed

+22
-19
lines changed

_data/navbar.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
- xen-api/evolution.md
2222
- xen-api/vm-lifecycle.md
2323
- xen-api/snapshots.md
24+
- xen-api/importexport.md
2425
- xen-api/consoles.md
2526
- xen-api/install-vms.md
2627
- xen-api/networking.md

xen-api/http.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,6 @@ XenServer exposes an HTTP interface on each host, that can be used
77
to perform various operations. This chapter describes the available
88
mechanisms.
99

10-
VM Import and Export
11-
--------------------
12-
13-
Because the import and export of VMs can take some time to complete, an
14-
asynchronous HTTP interface to the import and export operations is
15-
provided. To perform an export using the XenServer API, construct
16-
an HTTP GET call providing a valid session ID, task ID and VM UUID, as
17-
shown in the following pseudo code:
18-
19-
task = Task.create()
20-
result = HTTP.get(
21-
server, 80, "/export?session_id=&task_id=&ref=");
22-
23-
For the import operation, use an HTTP PUT call as demonstrated in the
24-
following pseudo code:
25-
26-
task = Task.create()
27-
result = HTTP.put(
28-
server, 80, "/import?session_id=&task_id=&ref=");
2910

3011
Getting XenServer Performance Statistics
3112
---------------------------------------------

xen-api/importexport.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: VM import/export
3+
layout: default
4+
---
5+
6+
Because the import and export of VMs can take some time to complete, an
7+
asynchronous HTTP interface to the import and export operations is
8+
provided. To perform an export using the XenServer API, construct
9+
an HTTP GET call providing a valid session ID, task ID and VM UUID, as
10+
shown in the following pseudo code:
11+
12+
task = Task.create()
13+
result = HTTP.get(
14+
server, 80, "/export?session_id=&task_id=&ref=");
15+
16+
For the import operation, use an HTTP PUT call as demonstrated in the
17+
following pseudo code:
18+
19+
task = Task.create()
20+
result = HTTP.put(
21+
server, 80, "/import?session_id=&task_id=&ref=");

0 commit comments

Comments
 (0)