Command Central 10.3 | Command Central Developer Reference | Using the Command Line Interface | Landscape Commands | sagcc get landscape environments
 
sagcc get landscape environments
Retrieves information about a specified environment. Information about an environment can include:
*Alias name
*Display name
*Description, or null if none is assigned
*Information about the installations in the environment
Syntax
*Command Central syntax:
sagcc get landscape environments  env_alias [nodes]  [options]        
     
 options:        
[{--accept | -a} content_type]        
[{--debug | -d}]        
[{--error | -r} file]        
[{--format | -f} {tsv args | text | xml | csv args | json}]        
[{--log | -l} file]        
[{--output | -o} file]        
[{--password | -p} password]        
[{--quiet | -q}]        
[{--server | -s} url]        
[{--username | -u} user_name]
*Not applicable to Platform Manager.
Arguments and Options
Argument or Option
Description
env_alias
Required. Specifies the alias name of the environment whose information you want to retrieve.
[nodes]
Optional. Indicates you want the command to return the information about the installations in the environment.
If you omit the nodes parameter, the returned information will not include the list of installations in the environment.
[options]
Optional. Refer to the command syntax for a list of the options the command supports. For a description of the options, see Common Options.
Examples When Executing on Command Central
*To execute a command on the Command Central server with host name “rubicon” and port “8090” to retrieve information for the “dev1” environment, using the authorization of the user with user name “Administrator” and password “manage”, and have the information returned to the console in XML format:
sagcc get landscape environments dev1 --format xml --server       
http://rubicon:8090/cce --username Administrator --password manage
*To execute a command on the Command Central server with host name “rubicon” and port “8090” to retrieve information for the “dev1” environment and include information about its installations, using the authorization of the user with user name “Administrator” and password “manage”, and have the information returned to the console in JavaScript Object Notation format:
sagcc get landscape environments dev1 --format json --server       
http://rubicon:8090/cce --username Administrator --password manage