Package io.micronaut.discovery.cloud
Interface ComputeInstanceMetadata
-
- All Known Implementing Classes:
AbstractComputeInstanceMetadata,DigitalOceanInstanceMetadata
public interface ComputeInstanceMetadataAn interface modelling common Cloud platform compute instance metadata.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetAccount()java.lang.StringgetAvailabilityZone()io.micronaut.context.env.ComputePlatformgetComputePlatform()java.lang.StringgetDescription()java.lang.StringgetImageId()java.lang.StringgetInstanceId()java.util.List<NetworkInterface>getInterfaces()The network interfaces attached to the compute instance.java.lang.StringgetLocalHostname()java.lang.StringgetMachineType()java.util.Map<java.lang.String,java.lang.String>getMetadata()The metadata as a map.java.lang.StringgetName()The name of the instance.java.lang.StringgetPrivateHostname()java.lang.StringgetPrivateIpV4()java.lang.StringgetPrivateIpV6()java.lang.StringgetPublicHostname()java.lang.StringgetPublicIpV4()java.lang.StringgetPublicIpV6()java.lang.StringgetRegion()java.util.Map<java.lang.String,java.lang.String>getTags()The tags attached to the instance.booleanisCached()
-
-
-
Method Detail
-
getMetadata
java.util.Map<java.lang.String,java.lang.String> getMetadata()
The metadata as a map.- Returns:
- A map of metadata
-
getInterfaces
java.util.List<NetworkInterface> getInterfaces()
The network interfaces attached to the compute instance.- Returns:
- The
NetworkInterfaceinstances
-
getComputePlatform
io.micronaut.context.env.ComputePlatform getComputePlatform()
- Returns:
- The
ComputePlatform
-
getTags
java.util.Map<java.lang.String,java.lang.String> getTags()
The tags attached to the instance.- Returns:
- A map of tags
-
getName
java.lang.String getName()
The name of the instance. Usually the same asgetInstanceId(). Some cloud platforms assign unique IDs- Returns:
- The name of the instance
-
getInstanceId
java.lang.String getInstanceId()
- Returns:
- The instance id
-
getMachineType
java.lang.String getMachineType()
- Returns:
- The machine type
-
getAvailabilityZone
java.lang.String getAvailabilityZone()
- Returns:
- The availability zone of the instance
-
getRegion
java.lang.String getRegion()
- Returns:
- The region of the instance
-
getLocalHostname
java.lang.String getLocalHostname()
- Returns:
- The local host name of the instance
-
getPrivateHostname
java.lang.String getPrivateHostname()
- Returns:
- The private host name of the instance
-
getPublicHostname
java.lang.String getPublicHostname()
- Returns:
- The public host name of the instance
-
getPublicIpV4
java.lang.String getPublicIpV4()
- Returns:
- The public IP of the instance
-
getPublicIpV6
java.lang.String getPublicIpV6()
- Returns:
- The public IP v6 of the instance
-
getPrivateIpV4
java.lang.String getPrivateIpV4()
- Returns:
- The private IP of the instance
-
getPrivateIpV6
java.lang.String getPrivateIpV6()
- Returns:
- The private IP v6 of the instance
-
getDescription
java.lang.String getDescription()
- Returns:
- A description of the instance
-
getAccount
java.lang.String getAccount()
- Returns:
- The account the instance is associated with
-
getImageId
java.lang.String getImageId()
- Returns:
- The ID of the image used for the instance
-
isCached
boolean isCached()
- Returns:
- Is this cached instance metadata
-
-