Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

server


This topic describes the verbs, command-line arguments, and API parameters available for the server noun in the BMC Cloud Lifecycle Management SDK.

list

Use server-list from the command line to list servers for the specified service.

Command-line syntax
python com/bmc/cloud/sdk/commandline/clmcmd.py server-list [-h] [-l] [-u] [-n] [-s] [-k FIELD_NAME [FIELD_NAME ...]] [--filter FIELD_NAME=VALUE [FIELD_NAME=VALUE ...]] --servicename NAME

Use server_list in the API to list servers for the specified service. This command returns a list of ComputeContainer API objects with the same attributes and relationships.

API syntax
obj = server_list(gcac, service_name, filters=None)

obj[n].guid returns the GUID
obj[n].name returns the name
...

Command-line argument

API parameter

Description

Required?

--servicename
service_name

Name of the service for which to list servers.

Yes

-l

 

List all fields. This parameter does not need a value.

 

-u

 

List only GUIDs. This parameter does not need a value.

 

-n

 

List only names. This parameter does not need a value.

 

-s

 

List GUIDs, names, and status (if applicable). This parameter does not need a value.

 

-k

 

List the field names specified in the value for this parameter.

 

--filter
filters

List the output that matches the specified filters.

 

 

gcac

Instance of the gcac authentication instance.

 

refresh

Use server-refresh from the command line to synchronize the state of the specified server to make it current with its actual configuration.

Command-line syntax
python com/bmc/cloud/sdk/commandline/clmcmd.py server-refresh [-h] [-l] [-u] [-n] [-s] [-k FIELD_NAME [FIELD_NAME ...]] [--waitfor TIME_OUT_SECONDS] --servicename NAME --servername NAME

Use server_refresh in the API to synchronize the state of the specified server to make it current with its actual configuration. This command returns a ComputeContainer API object with the same attributes and relationships.

API syntax
obj = server_refresh(gcac, server_name=None, service_name=None)

obj.guid # returns the GUID
obj.name # returns the name
...

Command-line argument

API parameter

Description

Required?

--servicename
service_name

Name of the service containing the server to refresh.

Yes

--servername
server_name

Name of the server to refresh.

Yes

-l

 

List all fields. This parameter does not need a value.

 

-u

 

List only GUIDs. This parameter does not need a value.

 

-n

 

List only names. This parameter does not need a value.

 

-s

 

List GUIDs, names, and status (if applicable). This parameter does not need a value.

 

-k

 

List the field names specified in the value for this parameter.

 

--waitfor

 

Time in seconds to wait for response from the server, otherwise return running task details.

 

 

gcac

Instance of the gcac authentication instance.

 

start

Use server-start from the command line to start a server in a specified service.

Command-line syntax
python com/bmc/cloud/sdk/commandline/clmcmd.py server-start [-h] [--waitfor TIME_OUT_SECONDS] --servicename NAME --servername NAME

Use server_start in the API to start a server in a specified service. This command returns a ComputeContainer API object with the same attributes and relationships.

API syntax
obj = server_start(gcac, service_name, server_name)

obj.guid # returns the GUID
obj.name # returns the name
...

Command-line argument

API parameter

Description

Required?

--servicename
service_name

Name of the service containing the server to start.

Yes

--servername
server_name

Name of the server to start.

Yes

--waitfor

 

Time in seconds to wait for response from the server, otherwise return running task details.

 

 

gcac

Instance of the gcac authentication instance.

 

stop

Use server-stop from the command line to stop a server in a specified service.

Command-line syntax
python com/bmc/cloud/sdk/commandline/clmcmd.py server-stop [-h] [--waitfor TIME_OUT_SECONDS] --servicename NAME --servername NAME

Use server_stop in the API to stop a server in a specified service. This command returns a ComputeContainer API object with the same attributes and relationships.

API syntax
obj = server_stop(gcac, service_name, server_name)

obj.guid # returns the GUID
obj.name # returns the name
...

Command-line argument

API parameter

Description

Required?

--servicename
service_name

Name of the service containing the server to stop.

Yes

--servername
server_name

Name of the server to stop.

Yes

--waitfor

 

Time in seconds to wait for response from the server, otherwise return running task details.

 

 

gcac

Instance of the gcac authentication instance.

 

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*