Class MetadataConfig (2.43.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
Name Description
attributeName String
Returns
Type Description
String

getClusterName()

public static String getClusterName()
Returns
Type Description
String

getContainerName()

public static String getContainerName()
Returns
Type Description
String

getInstanceId()

public static String getInstanceId()
Returns
Type Description
String

getNamespaceId()

public static String getNamespaceId()
Returns
Type Description
String

getProjectId()

public static String getProjectId()
Returns
Type Description
String

getZone()

public static String getZone()
Returns
Type Description
String