Skip to content

query api for vmware information #22706

Answered by agrare
jason0 asked this question in Q&A
Sep 18, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hey @jason0 sorry for the late response but yes you absolutely can do this with the ManageIQ API
https://www.manageiq.org/docs/reference/latest/api/examples/queries.html has some example queries, but specifically what you're looking for is:

GET /api/vms?expand=resources&attributes=name,ext_management_system.name

{
  "name": "vms",
  "count": 750,
  "subcount": 750,
  "pages": 1,
  "resources": [
    {
      "href": "http://localhost:3000/api/vms/15",
      "name": "DC0_H0_VM14",
      "id": "15",
      "ext_management_system": {
        "name": "vcsim"
      }
    },
    {
      "href": "http://localhost:3000/api/vms/16",
      "name": "DC0_H0_VM15",
      "id": "16",
      "ext_manageme…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jason0
Comment options

Answer selected by agrare
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants