service
This topic describes the verbs, command-line arguments, and API parameters available for the service noun in the BMC Cloud Lifecycle Management SDK.
create
Use service-create from the command line to create a service from the specified offering.
Use service_create in the API to create a service from the specified offering. This command returns a ServiceOfferingInstance API object with the same attributes and relationships.
obj.guid # returns the GUID
obj.name # returns the name
...
Command-line argument | API parameter | Description | Required? |
---|---|---|---|
--offeringname | offeringName | Name of the offering to use for the new service. | Yes |
--servicename | serviceName | Name of the new service. | Yes |
--quantity | quantity | Number of services to create. | Yes |
--serverusername | userName | User name with administrator access on the servers to configure. | Yes |
--serverpassword | password | Password for the administrator user. | Yes |
--serverhostprefix | hostNamePrefix | Hostname prefix to use for all servers created for this service. | Yes |
--tenantname | tenantName | Name of the tenant for the new service. | Yes |
--onbehalfuser |
| Perform the action as the specified user name. |
|
-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. |
|
| gcac | Instance of gcac authentication instance. |
|
delete
Use service-delete from the command line to delete the specified service.
Use service_delete in the API to delete the specified service. This command returns a ServiceOfferingInstance API object with the same attributes and relationships.
obj.guid # returns the GUID
obj.name # returns the name
...
Command-line argument | API parameter | Description | Required? |
---|---|---|---|
--servicename | serviceName | Name of the service to delete. | Yes |
--waitfor |
| Time in seconds to wait for a response from the server, otherwise return running task details. |
|
| gcac | Instance of gcac authentication instance. |
|
list
Use service-list from the command line to list available services.
Use service_list in the API to list available services. This command returns a list of ServiceOfferingInstance API objects with the same attributes and relationships.
obj[n].guid returns the GUID
obj[n].name returns the name
...
Command-line argument | API parameter | Description | Required? |
---|---|---|---|
-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. |
|
| gcac | Instance of gcac authentication instance. |
|
offboard
Use service-offboard from the command line to offboard the specified service.
Use service_offboard in the API to offboard the specified service. This command returns a ServiceOfferingInstance API object with the same attributes and relationships.
obj.guid # returns the GUID
obj.name # returns the name
...
Command-line argument | API parameter | Description | Required? |
---|---|---|---|
--servicename | serviceName | Name of the service to offboard. | Yes |
--retainvm | retainVM | Indicate whether to keep the servers for this service enrolled in their provider after the service is offboarded. The value can be True or False. | Yes |
--waitfor |
| Time in seconds to wait for a response from the server, otherwise return running task details. |
|
| gcac | Instance of gcac authentication instance. |
|
onboard
Use service-onboard from the command line to onboard the specified server as a new service.
Use service_onboard in the API to onboard the specified server as a new service. This command returns a ServiceOfferingInstance API object with the same attributes and relationships.
obj.guid # returns the GUID
obj.name # returns the name
...
Command-line argument | API parameter | Description | Required? |
---|---|---|---|
--providername | providerName | Name of the provider of the server. | Yes |
--environmentname | environmentName | Name of the environment of the server. To discover the environment name use the environment-list command. | Yes |
--offeringname | offeringName | Name of the offering to associate with the new service. | Yes |
--tenantname | tenantName | Name of the service owner's tenant. | Yes |
--ownername | ownerName | Name of the service owner. | Yes |
--virtualcentername | virtualCenterName | Name of the VMWare vCenter host to onboard. | Yes |
--virtualguestname | virtualGuestName | Name of the virtual guest or virtual machine to onboard. | Yes |
--waitfor |
| Time in seconds to wait for a response from the server, otherwise return running task details. |
|
| gcac | Instance of gcac authentication instance. |
|
refresh
Use service-refresh from the command line to synchronize the states of all servers in the specified service to make them current with their actual configuration.
Use service_refresh in the API to synchronize the states of all servers in the specified service to make them current with their actual configuration. This command returns a ServiceOfferingInstance API object with the same attributes and relationships.
obj.guid # returns the GUID
obj.name # returns the name
...
Command-line argument | API parameter | Description | Required? |
---|---|---|---|
--servicename | service_name | Name of the service 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 a response from the server, otherwise return running task details. |
|
| gcac | Instance of gcac authentication instance. |
|
start
Use service-start from the command line to start the specified service and all of its servers.
Use service_start in the API to start the specified service and all of its servers. This command returns a ServiceOfferingInstance API object with the same attributes and relationships.
obj.guid # returns the GUID
obj.name # returns the name
...
Command-line argument | API parameter | Description | Required? |
---|---|---|---|
--servicename | serviceName | Name of the service to start. | Yes |
--waitfor |
| Time in seconds to wait for a response from the server, otherwise return running task details. |
|
| gcac | Instance of gcac authentication instance. |
|
stop
Use service-stop from the command line to stop the specified service and all of its servers.
Use service_stop in the API to stop the specified service and all of its servers. This command returns a ServiceOfferingInstance API object with the same attributes and relationships.
obj.guid # returns the GUID
obj.name # returns the name
...
Command-line argument | API parameter | Description | Required? |
---|---|---|---|
--servicename | serviceName | Name of the service to stop. | Yes |
--waitfor |
| Time in seconds to wait for a response from the server, otherwise return running task details. |
|
| gcac | Instance of the gcac authentication instance. |
|
transfer
Use service-transfer from the command line to transfer ownership of a service to another user.
Use service_transfer in the API to transfer ownership of a service to another user. This command returns a ServiceOfferingInstance API object with the same attributes and relationships.
obj.guid # returns the GUID
obj.name # returns the name
...
Command-line argument | API parameter | Description | Required? |
---|---|---|---|
--servicename | service_name | Name of the service to transfer. | Yes |
--touser | to_user | User name of the new owner. | Yes |
--totenant | to_tenant | Name of the new owner's tenant. | Yes |
--waitfor |
| Time in seconds to wait for a response from the server, otherwise return running task details. |
|
| gcac | Instance of the gcac authentication instance. |
|
update-option
Use service-update-option from the command line to update a service with the specified option.
Use service_update in the API to update a service with the specified option. This command returns a ServiceOfferingInstance API object with the same attributes and relationships.
obj.guid # returns the GUID
obj.name # returns the name
...
Command-line argument | API parameter | Description | Required? |
---|---|---|---|
--servicename | service_name | Name of the service to update. | Yes |
--servername | server_name | Name of the server to update. | Yes |
--optionname | option_name | Name of the option to add or update | Yes |
--optionchoicename | option_choice_name | A choice available in the specified option. | 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 a response from the server, otherwise return running task details. |
|
| gcac | Instance of the gcac authentication instance. |
|