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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getAccount()
java.lang.String
getAvailabilityZone()
io.micronaut.context.env.ComputePlatform
getComputePlatform()
java.lang.String
getDescription()
java.lang.String
getImageId()
java.lang.String
getInstanceId()
java.util.List<NetworkInterface>
getInterfaces()
The network interfaces attached to the compute instance.java.lang.String
getLocalHostname()
java.lang.String
getMachineType()
java.util.Map<java.lang.String,java.lang.String>
getMetadata()
The metadata as a map.java.lang.String
getName()
The name of the instance.java.lang.String
getPrivateHostname()
java.lang.String
getPrivateIpV4()
java.lang.String
getPrivateIpV6()
java.lang.String
getPublicHostname()
java.lang.String
getPublicIpV4()
java.lang.String
getPublicIpV6()
java.lang.String
getRegion()
java.util.Map<java.lang.String,java.lang.String>
getTags()
The tags attached to the instance.boolean
isCached()
-
-
-
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
NetworkInterface
instances
-
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
-
-