Skip to content
This repository was archived by the owner on Jun 3, 2023. It is now read-only.

Commit 238a2a0

Browse files
committed
added documentation
1 parent f2c0502 commit 238a2a0

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

website/docs/d/vm_guest_metrics.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: "xenserver_vm_data_metrics"
3+
---
4+
5+
Provides metrics reported by guest tools.
6+
7+
## Parameters
8+
* [in] vm_uuid - UUID of the VM to obtain metrics from
9+
* [out] disks
10+
* [out] networks
11+
* [out] memory
12+
* [out] os_version
13+
* [out] pv_driver_version
14+
* [out] is_pv_driver_present
15+
* [out] can_use_hotplug_vbd
16+
* [out] can_use_hotplug_vif
17+
* [out] is_live
18+
* [out] last_updated
19+
20+
## Example Usage
21+
22+
```hcl
23+
data "xenserver_vm_guest_metrics" "interfaces" {
24+
vm_uuid = "${vm_uuid}"
25+
}
26+
27+
output "vm_main_interface" {
28+
value = "${data.xenserver_vm_guest_metrics.interfaces.networks[0]}"
29+
}
30+
```

website/docs/d/vm_networks.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: "xenserver_vm_networks"
3+
---
4+
5+
Query information on IP addresses reported by guest tools.
6+
7+
## Parameters
8+
* [in] vm_uuid - UUID of the VM to query information about
9+
* [in] [optional] startup_delay - how many seconds should be passed after VM start before information could be queried. Useful when new VM was just created to wait until it boots and guest tools are started
10+
* [out] ip array of arrays with ip addresses where first index corresponds to interface and second to address
11+
* [out] ipv6 array of arrays with IPv6 addresses where first index corresponds to interface and second to address
12+
13+
## Example Usage
14+
15+
```hcl
16+
data "xenserver_vm_networks" "interfaces" {
17+
vm_uuid = "${vm_uuid}"
18+
}
19+
20+
output "vm_main_ip" {
21+
value = "${${element(data.xenserver_vm_networks.interfaces.ip[0],0)}}"
22+
}
23+
```

0 commit comments

Comments
 (0)