OBJECT

Machine

An image contains the software packages that will be available on newly-provisioned instance. In the case of hardware virtual machines, the image also includes the operating system

link GraphQL Schema definition

  • type Machine {
  • # Unique id for this instance'
  • id: ID
  • # The "friendly" name for this instance'
  • name: String
  • # The type of instance (e.g. lx)'
  • brand: Brand
  • # The current state of this instance (e.g. running)'
  • state: MachineState
  • # The image id this instance was provisioned with'
  • image: Image
  • # The amount of RAM this instance has (in MiB)'
  • memory: Int
  • # The amount of disk this instance has (in MiB)'
  • disk: Int
  • # Any additional metadata this instance has',
  • #
  • # Arguments
  • # name: Name of metadata value to retrieve
  • metadata(name: String): [KeyValue]
  • # The complete set of tags associated with this machine
  • #
  • # Arguments
  • # name: Name of tag value to retrieve
  • tags(name: String): [KeyValue]
  • # When this instance was created
  • created: String
  • # When this instance's details was last updated
  • updated: String
  • # Whether this instance is a Docker container, if present
  • docker: Boolean
  • # The IP addresses this instance has
  • ips: [String]
  • # The networks of the nics this instance has
  • networks: [Network]
  • # IP address of the primary nic of this instance
  • primary_ip: String
  • # Whether firewall rules are enforced on this instance
  • firewall_enabled: Boolean
  • # List of FirewallRules affecting this machine
  • #
  • # Arguments
  • # id: Unique identifier for this rule
  • firewall_rules(id: ID): [FirewallRule]
  • # UUID of the server on which the instance is located
  • compute_node: ID
  • # The id or name of the package used to create this instance
  • package: Package
  • # DNS names of the instance (if the instance is using CNS)
  • dns_names: [String]
  • # The snapshots based on this instance
  • #
  • # Arguments
  • # name: Snapshot name
  • snapshots(name: String): [Snapshot]
  • # Provides a list of an instance's accomplished actions. Results are sorted from
  • # newest to oldest action
  • actions: [Action]
  • }