public interface BaremetalCloudClient extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate() |
com.oracle.bmc.core.model.Instance |
createInstance(String name,
BaremetalCloudAgentTemplate template)
Creates an instance with the specified template
|
List<com.oracle.bmc.identity.model.AvailabilityDomain> |
getAvailabilityDomainsList(String tenantId)
Get the available domain list
|
List<com.oracle.bmc.identity.model.Compartment> |
getCompartmentsList(String tenantId)
Get the compartment list
|
List<com.oracle.bmc.core.model.Image> |
getImagesList(String tenantId)
Get the available image list
|
String |
getInstanceIp(BaremetalCloudAgentTemplate template,
String instanceId)
Get an instance public or private ip with the specified instance id
|
com.oracle.bmc.core.model.Instance.LifecycleState |
getInstanceState(String instanceId)
Check instance's state
|
List<com.oracle.bmc.core.model.Shape> |
getShapesList(String tenantId,
String availableDomain,
String imageId)
Get the shape list
|
com.oracle.bmc.core.responses.GetSubnetResponse |
getSubNet(String subnetId)
Get the sub net
|
List<com.oracle.bmc.core.model.Subnet> |
getSubNetList(String tenantId,
String vcnId)
Get the sub net list
|
List<com.oracle.bmc.core.model.Vcn> |
getVcnList(String tenantId)
Get the Virtual Cloud Network list
|
String |
terminateInstance(String instanceId)
Terminate instance with the specified instance id
|
com.oracle.bmc.core.model.Instance |
waitForInstanceProvisioningToComplete(String instanceId)
Creates an instance with the specified instance id
|
com.oracle.bmc.core.model.Instance |
waitForInstanceTerminationToComplete(String instanceId)
Wait for the termination with the specified instance id to complete
|
closevoid authenticate()
throws com.oracle.bmc.model.BmcException
com.oracle.bmc.model.BmcException - if an error occurscom.oracle.bmc.core.model.Instance createInstance(String name, BaremetalCloudAgentTemplate template) throws Exception
template - the instance configurationname - instance nameException - if an error occurscom.oracle.bmc.core.model.Instance waitForInstanceProvisioningToComplete(String instanceId) throws Exception
instanceId - the instance id created beforeException - if an error occursString getInstanceIp(BaremetalCloudAgentTemplate template, String instanceId) throws Exception
instanceId - the instance id created beforetemplate - baremetal cloud agent templateException - if an error occursList<com.oracle.bmc.identity.model.Compartment> getCompartmentsList(String tenantId) throws Exception
tenantId - the tenant idException - if an error occursList<com.oracle.bmc.identity.model.AvailabilityDomain> getAvailabilityDomainsList(String tenantId) throws Exception
tenantId - the tenant idException - if an error occursList<com.oracle.bmc.core.model.Image> getImagesList(String tenantId) throws Exception
tenantId - the tenant idException - if an error occursList<com.oracle.bmc.core.model.Shape> getShapesList(String tenantId, String availableDomain, String imageId) throws Exception
tenantId - the tenant idavailableDomain - available domainimageId - image idException - if an error occursList<com.oracle.bmc.core.model.Vcn> getVcnList(String tenantId) throws Exception
tenantId - the tenant idException - if an error occursList<com.oracle.bmc.core.model.Subnet> getSubNetList(String tenantId, String vcnId) throws Exception
tenantId - the tenant idvcnId - vcn idException - if an error occurscom.oracle.bmc.core.responses.GetSubnetResponse getSubNet(String subnetId) throws Exception
subnetId - subnet idException - if an error occursString terminateInstance(String instanceId) throws Exception
instanceId - the instance id created beforeException - if an error occurscom.oracle.bmc.core.model.Instance waitForInstanceTerminationToComplete(String instanceId) throws Exception
instanceId - the instance id created beforeException - if an error occursCopyright © 2016–2018. All rights reserved.