Group Tree for an Inventory

get

/api/v2/inventories/{id}/tree/

Make a GET request to this resource to retrieve a hierarchical view of groups associated with the selected inventory.

The resulting data structure contains a list of root groups, with each group also containing a list of its children.

Results

Each group data structure includes the following fields:

  • id: Database ID for this group. (integer)
  • type: Data type for this group. (choice)
  • url: URL for this group. (string)
  • related: Data structure with URLs of related resources. (object)
  • summary_fields: Data structure with name/description for related resources. The output for some objects may be limited for performance reasons. (object)
  • created: Timestamp when this group was created. (datetime)
  • modified: Timestamp when this group was last modified. (datetime)
  • name: Name of this group. (string)
  • description: Optional description of this group. (string)
  • inventory: (id)
  • variables: Group variables in JSON or YAML format. (json)
  • children: (field)

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

Body ()
Root Schema : GroupTree
Type: object
Show Source
Back to Top