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.

terminateInstances


terminateInstances method allows you to terminate only the BMC Cloud Lifecycle Management services whose servers are mapped to AWS VMs.

Note

terminateInstances method of CLM AWS SDK allows you to terminate the services and not the individual servers. If you have used a server ID for terminating an instance, then it checks the corresponding service and if it contains only single server object then it terminates that service, if not a CloudException is thrown stating "Service Offering Instance contains more than one Compute Container. Hence, we can't decommission the individual Compute Container as requested."

This operation can be performed by specifying either of following: 

  • Service ID(s) from BMC Cloud Lifecycle Management.
  • Service name(s) from BMC Cloud Lifecycle Management.
  • Server instance ID(s) from BMC Cloud Lifecycle Management. 

The following table depicts how terminateInstances method is used: 

Before you begin

Prior to using this CLM AWS SDK method, ensure that the following prerequisites are met:

Request

Using com.amazonaws.services.ec2.model.TerminateInstancesRequest

Using com.bmc.cloud.sdk.aws.model.TerminateServicesRequest

Extends: com.amazonaws.services.ec2.model.TerminateInstancesRequest

Response

com.amazonaws.services.ec2.model.TerminateInstancesResult

Extends: None

Method

Belongs To

Usage as per AWS SDK

Usage as per CLM AWS SDK

Remarks

getTerminatingInstances() 

AWS 

  • getCurrentState()

  • getInstanceId() 

  • getPreviousState() 

  • getCurrentState()

  • getInstanceId() 

  • getPreviousState()

PENDING,RUNNING, 
SHUTTING_DOWN,TERMINATED, 
STOPPING,STOPPED 

Instance ID is mapped to server ID.

Related topic

CLM-AWS-SDK-use-cases

 

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