Class MetadataConfig (2.23.0)

public class MetadataConfig

Retrieves Google Cloud project-id and a limited set of instance attributes from Metadata server. See Also: https://cloud.google.com/compute/docs/storing-retrieving-metadata

Inheritance

java.lang.Object > MetadataConfig

Static Methods

getAttribute(String attributeName)

public static String getAttribute(String attributeName)
Parameter
NameDescription
attributeNameString
Returns
TypeDescription
String

getClusterName()

public static String getClusterName()
Returns
TypeDescription
String

getContainerName()

public static String getContainerName()
Returns
TypeDescription
String

getInstanceId()

public static String getInstanceId()
Returns
TypeDescription
String

getNamespaceId()

public static String getNamespaceId()
Returns
TypeDescription
String

getProjectId()

public static String getProjectId()
Returns
TypeDescription
String

getZone()

public static String getZone()
Returns
TypeDescription
String