Import-LXCAConfigPattern
This cmdlet imports configuration-pattern settings into Lenovo XClarity Administrator.
Note
You cannot pipe objects to this cmdlet.
Syntax
Import-LXCAConfigPattern [-Connection Connection]
-Settings String
[CommonParameter]
Parameters
- -Connection LXCAConnection
- Specifies the connection to the Lenovo XClarity Administrator server. If no connection is specified, the result from the last Connect-LXCA cmdlet is used.
- -Settings String
- Specifies the configuration-pattern settings. The settings must be in the correct JSON format.
To ensure the correct format, use an existing configuration pattern as a template.
- 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
This cmdlet returns the ID of the imported configuration pattern.
Examples
The following example imports the configuration-pattern settings from a local file to the XClarity Administrator server
$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred
$settings = Get-Content Path c:\pattern_setting.txt
Import-LXCAConfigPattern Setting $settings
Disconnect-LXCA
Related links
Give documentation feedback