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

Safe HaskellNone
LanguageHaskell2010

Google.Cloud.Compute.Metadata

Synopsis

Documentation

readKey :: String -> Cloud ByteString Source

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 Source

Like getJSON but for reading from the metadata server.

newtype ProjectId Source

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

unProjectId :: Text
 

newtype NumericProjectId Source

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

type Attribute = (ByteString, ByteString) Source

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

newtype InstanceId Source

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 Source

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

Constructors

MachineType 

Fields

unMachineType :: Text
 

internalHostname :: Cloud String Source

The internal hostname of the instance.

newtype Zone Source

The instance's zone.

Constructors

Zone 

Fields

unZone :: Text
 

serviceAccountToken :: String -> Cloud Token Source

Fetch an access token for the given service account.