Skip to content

Export host_id attribute from virtual_machine resources #602

@sebhoss

Description

@sebhoss

Description

It would be great if the opennebula_virtual_machine resource could export information about the host it is running on.

New or affected resources and data sources

opennebula_virtual_machine

Potential terraform configuration

resource "opennebula_virtual_machine" "example" {
  name = "some-vm"
  ...
}

data "opennebula_host" "example" {
  id = opennebula_virtual_machine.example.host_id
}

// use data.opennebula_host.example to access more information about the host

References

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions