public class SDKBaremetalCloudClient extends Object implements BaremetalCloudClient
| Constructor and Description |
|---|
SDKBaremetalCloudClient(com.oracle.bmc.auth.SimpleAuthenticationDetailsProvider provider,
String regionId) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate() |
void |
close() |
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
|
public SDKBaremetalCloudClient(com.oracle.bmc.auth.SimpleAuthenticationDetailsProvider provider,
String regionId)
public void authenticate()
throws com.oracle.bmc.model.BmcException
authenticate in interface BaremetalCloudClientcom.oracle.bmc.model.BmcException - if an error occurspublic com.oracle.bmc.core.model.Instance createInstance(String name, BaremetalCloudAgentTemplate template) throws Exception
BaremetalCloudClientcreateInstance in interface BaremetalCloudClientname - instance nametemplate - the instance configurationException - if an error occurspublic void close()
throws Exception
close in interface AutoCloseableExceptionpublic com.oracle.bmc.core.model.Instance waitForInstanceProvisioningToComplete(String instanceId) throws Exception
BaremetalCloudClientwaitForInstanceProvisioningToComplete in interface BaremetalCloudClientinstanceId - the instance id created beforeException - if an error occurspublic String getInstanceIp(BaremetalCloudAgentTemplate template, String instanceId) throws Exception
BaremetalCloudClientgetInstanceIp in interface BaremetalCloudClienttemplate - baremetal cloud agent templateinstanceId - the instance id created beforeException - if an error occurspublic List<com.oracle.bmc.identity.model.Compartment> getCompartmentsList(String tenantId) throws Exception
BaremetalCloudClientgetCompartmentsList in interface BaremetalCloudClienttenantId - the tenant idException - if an error occurspublic List<com.oracle.bmc.identity.model.AvailabilityDomain> getAvailabilityDomainsList(String tenantId) throws Exception
BaremetalCloudClientgetAvailabilityDomainsList in interface BaremetalCloudClienttenantId - the tenant idException - if an error occurspublic List<com.oracle.bmc.core.model.Image> getImagesList(String tenantId) throws Exception
BaremetalCloudClientgetImagesList in interface BaremetalCloudClienttenantId - the tenant idException - if an error occurspublic List<com.oracle.bmc.core.model.Shape> getShapesList(String tenantId, String availableDomain, String imageId) throws Exception
BaremetalCloudClientgetShapesList in interface BaremetalCloudClienttenantId - the tenant idavailableDomain - available domainimageId - image idException - if an error occurspublic List<com.oracle.bmc.core.model.Vcn> getVcnList(String tenantId) throws Exception
BaremetalCloudClientgetVcnList in interface BaremetalCloudClienttenantId - the tenant idException - if an error occurspublic List<com.oracle.bmc.core.model.Subnet> getSubNetList(String tenantId, String vcnId) throws Exception
BaremetalCloudClientgetSubNetList in interface BaremetalCloudClienttenantId - the tenant idvcnId - vcn idException - if an error occurspublic com.oracle.bmc.core.responses.GetSubnetResponse getSubNet(String subnetId) throws Exception
BaremetalCloudClientgetSubNet in interface BaremetalCloudClientsubnetId - subnet idException - if an error occurspublic String terminateInstance(String instanceId) throws Exception
BaremetalCloudClientterminateInstance in interface BaremetalCloudClientinstanceId - the instance id created beforeException - if an error occurspublic com.oracle.bmc.core.model.Instance waitForInstanceTerminationToComplete(String instanceId) throws Exception
BaremetalCloudClientwaitForInstanceTerminationToComplete in interface BaremetalCloudClientinstanceId - the instance id created beforeException - if an error occurspublic com.oracle.bmc.core.model.Instance.LifecycleState getInstanceState(String instanceId) throws Exception
BaremetalCloudClientgetInstanceState in interface BaremetalCloudClientinstanceId - the instance id created beforeException - if an error occursCopyright © 2016–2018. All rights reserved.