google-cloud-0.0.4: Client for the Google Cloud APIs

Safe HaskellNone
LanguageHaskell2010

Google.Cloud.Compute.Metadata

Synopsis

Documentation

readKey :: String -> Cloud ByteString #

Convenience function to read a metadata value from the server. When talking to the metadata server one has to supply a Metadata-Flavor header, otherwise the server refuses to communicate.

readJSON :: FromJSON a => String -> Cloud a #

Like getJSON but for reading from the metadata server.

newtype ProjectId #

The ProjectId is a string which the user can freely chose when creating a new project in the Google cloud. It is globally unique.

Constructors

ProjectId 

Fields

newtype NumericProjectId #

The NumericProjectId can also be used to refer to a project on Google cloud. It is globally unique.

type Attribute = (ByteString, ByteString) #

A project or instance metadata attribute is a key-value pair.

newtype InstanceId #

The ID of an instance. This is a unique, numerical ID that is generated by Google Compute Engine. This is useful for identifying instances if you do not want to use instance names.

Constructors

InstanceId 

newtype MachineType #

The fully-qualified machine type name of the instance's host machine.

Constructors

MachineType 

Fields

internalHostname :: Cloud String #

The internal hostname of the instance.

newtype Zone #

The instance's zone.

Constructors

Zone 

Fields

serviceAccountToken :: String -> Cloud Token #

Fetch an access token for the given service account.