Skip to main content

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

NameRequired / OptionalTypeDescription
uuidRequiredStringResource manager UUID

Outputs

NameTypeDescription
auth_typeStringAuthentication type. This is always basic.
hostnameStringResource manager host name
passwordStringPassword to use for basic authentication
portIntegerResource manager port
typeStringType of resource manager. This can be one of the following values.
  • Schneider EcoStruxure IT
  • vRealize Operations Manager
  • XClarity Administrator
usernameStringUsername to use for basic authentication
uuidStringResource 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"
}