Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

get vm by IP/hostname using data source  #114

@ankujuniyal

Description

@ankujuniyal

Hi Right now you can get instance by deployment id or request id.
(https://registry.terraform.io/providers/vmware/vra7/latest/docs/data-sources/vra7_deployment#example-usages)
what if i got vm through VRA itself. then I want to perform day 1 action using terraform.

using API its possible get vm using hostname.

https://VRA/catalog-service/api/consumer/resources/types/Infrastructure.Machine/?
params = (
('$filter', 'name eq '+''' + str(vm_hostname)+'''),
('$skip', '0'),
('$top', '10'),
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions