Retrieving information about a single resource manager
Uses this definition to retrieves information about a specific Lenovo XClarity Administrator resource manager.
Usage
resource "lxco_manager" "manager" {
uuid = string
}
output "manager" {
value = data.lxco_manager.manager
}
Example
The following example retrieves information about a specific resource manager.
terraform {
required_providers {
lxco = {
source = "lenovo.com/xclarity/lxco"
version = "0.1"
}
}
}
provider "lxco" {
host = "192.0.2.0"
# username = ""
# password = ""
}
# Fetch details for a specific resource manager
resource "lxco_manager" "manager" {
uuid = "00632D78DE644E23B712E200FE449787"
}
# Return details for the resource manager
output "manager" {
value = data.lxco_manager.manager
}
Inputs
Name | Required / Optional | Type | Description | ||
---|---|---|---|---|---|
uuid | Required | String | Resource manager UUID |
Outputs
Name | Type | Description | ||
---|---|---|---|---|
auth_type | String | Authentication type. This is always basic. | ||
hostname | String | Resource manager host name | ||
password | String | Password to use for basic authentication | ||
port | Integer | Resource manager port | ||
type | String | Type of resource manager. This can be one of the following values.
| ||
username | String | Username to use for basic authentication | ||
uuid | String | Resource manager UUID |
The following example is returned if the request is successful.
{
"auth_type": "basic",
"hostname": "109.0.2.10,"
"port": 443,
"password": "password",
"type": "XClarity Administrator",
"username": "userid",
"uuid": "8D735FCEFBCD49118C68169312166C68"
}
Give documentation feedback