Identifying API Resource Collection Options from Horizon (VDI) v4H Adapters
search cancel

Identifying API Resource Collection Options from Horizon (VDI) v4H Adapters

book

Article ID: 386765

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

This article will provide methods to collect available resources for the Horizon/VDI/v4H adapters available in Aria Operations.  Note that this method can be used for any Aria Operations adapter.

Environment

Aria Operations 8.x

Cause

There is no comprehensive list of available resources in product documentation.  These solutions allow you to query available objects and resources for this adapter.

Resolution

The following are the API calls to navigate the available resources for an adapter:

  • Get the name (adapter-kind) of the VDI adapter:
    • GET /suite-api/api/adapterkinds
    • Locate the VDI adapter and get the kind (e.g. <ops:adapter-kind key="CASAdapter">)
  • Get the resource-kinds available for the VDI adapter:
    • GET /suite-api/api/adapterkinds/CASAdapter
    • This should show you all of the API topics for this adapter you can query (e.g. <ops:resourceKinds>CloudAccount</ops:resourceKinds>)
  • Lastly, if you need to query sub-categories, you can use:
    • GET /suite-api/api/adapterkinds/CASAdapter/resourcekinds/CloudAccount