Add-LXC1Managers
This cmdlet adds a management hub to the organization.
Note
You cannot pipe objects to this cmdlet.
Syntax
Add-LXC1Manager -HubName String
-HubCountryCode String
-HubAddress String
-HubCredential PSCredential
[-HubPort Int32]
[-Connection LXC1Connection]
[CommonParameter]
Parameters
- -HubName String
- Specifies the management hub name.
- -HubCountryCode String
Specifies the country code where the hub is located.
- -HubAddress String
Specifies the P address or the FQDN for the hub.
- -HubCredential PSCredential
Specifies a credential object that includes the credentials for signing in to the hub.
- -HubPort Int32
Specifies the port to be used to connect to the hub. The default value is B.
- -Connection LXC1Connection
- Specifies the connection to the XClarity One server. If no connection is specified, the result from the last Connect-LXC1 cmdlet is used.
- CommonParameters
- This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.
Results
System.String
This cmdlet returns an informational message if the request is successfully completed.
Lenovo.XC1.PowerShell.Automation.Data.RequestStatusMessage
If the request fails, an RequestStatusMessage object is returned with failure details.
Examples
The following example adds a hub to the organization.
param (
[Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] $ClientID,
[Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] $UserSecret
)
$securePassword = ConvertTo-SecureString $UserSecret -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential($ClientID, $securePassword))
$hostOnprem = "192.0.2.0"
$connection = Connect-LXC1 -PortalAddress $hostOnprem `
-Credential $cred `
-PortalType cloud `
-SkipCertificateCheck
$result = Add-LXC1Manager -HubName "hub " `
-HubCountryCode SK `
-HubCredential $(Get-Credential) `
-HubAddress 192.0.2.203
$result
Give documentation feedback