Interface BaremetalCloudClient
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
SDKBaremetalCloudClient
-
Method Summary
Modifier and TypeMethodDescriptionvoidcom.oracle.bmc.core.model.InstancecreateInstance(String name, BaremetalCloudAgentTemplate template) Creates an instance with the specified templateList<com.oracle.bmc.identity.model.AvailabilityDomain> getAvailabilityDomainsList(String compartmentId) Get the available domain responseList<com.oracle.bmc.identity.model.Compartment> Get the compartment listList<com.oracle.bmc.core.model.Image> getImagesList(String compartmentId) Get the available image listgetInstanceIp(BaremetalCloudAgentTemplate template, String instanceId) Get an instance public or private ip with the specified instance idcom.oracle.bmc.core.model.Instance.LifecycleStategetInstanceState(String instanceId) Check instance's stateInteger[]getMinMaxMemory(String compartmentId, String availableDomain, String imageId, String shape) Get the memory options of Flex shapesInteger[]getMinMaxOcpus(String compartmentId, String availableDomain, String imageId, String shape) Get the OCPUs optionsList<com.oracle.bmc.core.model.NetworkSecurityGroup> getNsgIdsList(String compartmentId) Get the network security group listList<com.oracle.bmc.core.model.Shape> getShapesList(String compartmentId, String availableDomain, String imageId) Get the shape listList<com.oracle.bmc.core.model.Instance> getStoppedInstances(String compartmentId, String availableDomain) Get a list of stopped instances on OCIcom.oracle.bmc.core.responses.GetSubnetResponseGet the sub netList<com.oracle.bmc.core.model.Subnet> getSubNetList(String tenantId, String vcnId) Get the sub net listList<com.oracle.bmc.identity.model.TagNamespaceSummary> getTagNamespaces(String compartmentId) Start instance with the specified instance idcom.oracle.bmc.identity.model.TenancyGet root compartmentList<com.oracle.bmc.core.model.Vcn> getVcnList(String tenantId) Get the Virtual Cloud Network listcom.oracle.bmc.core.model.InstancestartInstance(String instanceId) Start instance with the specified instance idstopInstance(String instanceId) Stop instance with the specified instance idterminateInstance(String instanceId) Terminate instance with the specified instance idcom.oracle.bmc.core.model.InstancewaitForInstanceProvisioningToComplete(String instanceId) Creates an instance with the specified instance idcom.oracle.bmc.core.model.InstancewaitForInstanceTerminationToComplete(String instanceId) Wait for the termination with the specified instance id to completeMethods inherited from interface AutoCloseable
close
-
Method Details
-
authenticate
void authenticate() throws com.oracle.bmc.model.BmcException- Throws:
com.oracle.bmc.model.BmcException- if an error occurs
-
createInstance
com.oracle.bmc.core.model.Instance createInstance(String name, BaremetalCloudAgentTemplate template) throws Exception Creates an instance with the specified template- Parameters:
name- instance nametemplate- the instance configuration- Returns:
- Instance
- Throws:
Exception- if an error occurs
-
waitForInstanceProvisioningToComplete
-
getInstanceIp
Get an instance public or private ip with the specified instance id- Parameters:
template- baremetal cloud agent templateinstanceId- the instance id created before- Returns:
- the instance ip
- Throws:
Exception- if an error occurs
-
getCompartmentsList
-
getTenant
-
getAvailabilityDomainsList
-
getImagesList
-
getShapesList
List<com.oracle.bmc.core.model.Shape> getShapesList(String compartmentId, String availableDomain, String imageId) throws Exception Get the shape list- Parameters:
compartmentId- the compartment idavailableDomain- available domainimageId- image id- Returns:
- shape list
- Throws:
Exception- if an error occurs
-
getMinMaxOcpus
Integer[] getMinMaxOcpus(String compartmentId, String availableDomain, String imageId, String shape) throws Exception Get the OCPUs options- Parameters:
compartmentId- the compartment idavailableDomain- available domainimageId- image idshape- shape name- Returns:
- an array with min (array[0]) and max (array[1])
- Throws:
Exception- if an error occurs
-
getMinMaxMemory
Integer[] getMinMaxMemory(String compartmentId, String availableDomain, String imageId, String shape) throws Exception Get the memory options of Flex shapes- Parameters:
compartmentId- the compartment idavailableDomain- available domainimageId- image idshape- shape name- Returns:
- an array with min (array[0]) and max (array[1])
- Throws:
Exception- if an error occurs
-
getVcnList
-
getSubNetList
-
getNsgIdsList
-
getSubNet
-
terminateInstance
-
waitForInstanceTerminationToComplete
-
getInstanceState
-
getStoppedInstances
List<com.oracle.bmc.core.model.Instance> getStoppedInstances(String compartmentId, String availableDomain) throws Exception Get a list of stopped instances on OCI- Parameters:
compartmentId- the compartment idavailableDomain- available domain or null for any AD- Returns:
- Instance.LifecycleState
- Throws:
Exception- if an error occurs
-
stopInstance
-
startInstance
-
getTagNamespaces
-