Users Guide
– vm — Boolean value indicating that VIRTUALMACHINE type components are to be removed.
– app — Boolean value indicating that SERVICE (application) type components are to be removed.
• scaleDownServiceComponent: Removes the target ServiceComponent object from the Service and returns its
resources to the resource pool. Returned object is the Service with updated components list.
– deployment — The Service to be down scaled.
– component — The ServiceComponent object to be removed from the Service.
• serviceExists: Checks if the Service of the given name exists or not. This is useful for workflow that wait until the service is
deleted.
– serviceName — Name of the Service that is checked for its existence.
• tearDownService: This method deletes the Service and returns all the resources to the resource pools. It returns the Service
object describing the ASM service that is to be deleted from this call.
NOTE: If any of the ServiceComponents objects, in the target Service, is shared, the request fails during the
validation (For example, there is a Service that defines a cluster and supporting servers and storages. There is
another Service that relies on this cluster to provision VM’s). The ASM server (8.2.0 and newer releases) does
not allow the teardown of any shared component.
– deployment — Target Service to be removed; its resources are returned to the resource pools by default.
• tearDownServiceSelective: This method deletes the Service and returns the selected resources to the resource pools. This
method can be helpful when there are shared resources across
Services. It returns the Service object describing the ASM
service that is to be deleted from this call.
NOTE: The sample workflows that use this method forces the teardown of SERVER and VIRTUALMACHINE types
(the same behavior is expected from the ASM UI).
– deployment — Target Service to be removed; its resources are returned to the resource pools only if they are of the
selected types
– storage — Boolean value indicating to remove resources of the STORAGE type.
– server — Boolean value indicating to remove resources of the SERVER type.
– cluster — Boolean value indicating to remove resources of the CLUSTER type.
– vm — Boolean value indicating to remove resources of the VIRTUALMACHINE type.
– app — Boolean value indicating to remove resources of the SERVICE (application) type.
ASMApplianceManager
This is the class that manages the ApplianceHostConfigData objects, which are plugin internal objects to persist the
ASMAppliance objects. This object is used to save or remove the ASMAppliance with the vRO persistent database.
Method:
• save: This method creates (persists) a new vRO resource with the given ASMAppliance object. Persisted password is
encrypted.
– name —User-given name of the ASMAppliance configuration.
– serverUrl —URL used to reach the ASM server (For example, https://asm_server.dell.com).
– userName— The user name to authenticate the REST connection with.
– password—The password for the given username.
– domain—Authentication domain (For example, ASMLOCAL)
– sslTrustAllCerts—Boolean value to decide whether to trust all SSL certificates or not.
• remove: This method removes the vRO resource that contains the ASMAppliance configuration detail. The same effect is
achieved when the vRO administrator removes the vRO resource of the target appliance object.
16