Package io.micronaut.discovery.cloud
Interface ComputeInstanceMetadata
- All Known Implementing Classes:
AbstractComputeInstanceMetadata
,DigitalOceanInstanceMetadata
public interface ComputeInstanceMetadata
An interface modelling common Cloud platform compute instance metadata.
- Since:
- 1.0
- Author:
- rvanderwerf, Graeme Rocher
-
Method Details
-
getMetadata
The metadata as a map.- Returns:
- A map of metadata
-
getInterfaces
List<NetworkInterface> getInterfaces()The network interfaces attached to the compute instance.- Returns:
- The
NetworkInterface
instances
-
getComputePlatform
ComputePlatform getComputePlatform()- Returns:
- The
ComputePlatform
-
getTags
The tags attached to the instance.- Returns:
- A map of tags
-
getName
String getName()The name of the instance. Usually the same asgetInstanceId()
. Some cloud platforms assign unique IDs- Returns:
- The name of the instance
-
getInstanceId
String getInstanceId()- Returns:
- The instance id
-
getMachineType
String getMachineType()- Returns:
- The machine type
-
getAvailabilityZone
String getAvailabilityZone()- Returns:
- The availability zone of the instance
-
getRegion
String getRegion()- Returns:
- The region of the instance
-
getLocalHostname
String getLocalHostname()- Returns:
- The local host name of the instance
-
getPrivateHostname
String getPrivateHostname()- Returns:
- The private host name of the instance
-
getPublicHostname
String getPublicHostname()- Returns:
- The public host name of the instance
-
getPublicIpV4
String getPublicIpV4()- Returns:
- The public IP of the instance
-
getPublicIpV6
String getPublicIpV6()- Returns:
- The public IP v6 of the instance
-
getPrivateIpV4
String getPrivateIpV4()- Returns:
- The private IP of the instance
-
getPrivateIpV6
String getPrivateIpV6()- Returns:
- The private IP v6 of the instance
-
getDescription
String getDescription()- Returns:
- A description of the instance
-
getAccount
String getAccount()- Returns:
- The account the instance is associated with
-
getImageId
String getImageId()- Returns:
- The ID of the image used for the instance
-
isCached
boolean isCached()- Returns:
- Is this cached instance metadata
-