Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for vGPU data source #2047

Closed
4 tasks done
mristok opened this issue Oct 27, 2023 · 2 comments · Fixed by #2048
Closed
4 tasks done

Add support for vGPU data source #2047

mristok opened this issue Oct 27, 2023 · 2 comments · Fixed by #2048
Labels
enhancement Type: Enhancement

Comments

@mristok
Copy link
Contributor

mristok commented Oct 27, 2023

Community Guidelines

  • I have read and agree to the HashiCorp Community Guidelines .
  • Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
  • Do not leave "+1" or other comments that do not add relevant information or questions.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Description

Add support for new data source to query a specified host for a specific (search by name) or all vGPU profiles available on the host.

Use Case(s)

The ability to search for or simply query for all available vGPU profiles on a given host gives admins the ability to confirm vGPU availability before attempting to consume the vGPU resource.

Potential Terraform Provider Configuration

Query a specific host for all available vGPU profiles

data "vsphere_datacenter" "datacenter" {
  name = "datacenter"
}

data "vsphere_host" "host01" {
  name          = "host01.test.com"
  datacenter_id = data.vsphere_datacenter.datacenter.id
}

data "vsphere_host_vgpu_profile" "vgpu_profiles" {
  host_id = data.vsphere_host.host01.id
}

Query a specific host for a specific vGPU profile name: grid_a100d-80c

data "vsphere_datacenter" "datacenter" {
  name = "datacenter"
}

data "vsphere_host" "host01" {
  name          = "host01.test.com"
  datacenter_id = data.vsphere_datacenter.datacenter.id
}

data "vsphere_host_vgpu_profile" "vgpu_profiles" {
  host_id = data.vsphere_host.host01.id
  name    = "grid_a100d-80c"
}

References

No response

@mristok mristok added the enhancement Type: Enhancement label Oct 27, 2023
@github-actions
Copy link

Hello, mristok! 🖐

Thank you for submitting an issue for this provider. The issue will now enter into the issue lifecycle.

If you want to contribute to this project, please review the contributing guidelines and information on submitting pull requests.

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Type: Enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant