Skip to content

Get Group Query

resourcegroups_get_group_query R Documentation

Retrieves the resource query associated with the specified resource group

Description

Retrieves the resource query associated with the specified resource group. For more information about resource queries, see Create a tag-based group in Resource Groups.

Minimum permissions

To run this command, you must have the following permissions:

  • resource-groups:GetGroupQuery

Usage

resourcegroups_get_group_query(GroupName, Group)

Arguments

GroupName

Don't use this parameter. Use Group instead.

Group

The name or the ARN of the resource group to query.

Value

A list with the following syntax:

list(
  GroupQuery = list(
    GroupName = "string",
    ResourceQuery = list(
      Type = "TAG_FILTERS_1_0"|"CLOUDFORMATION_STACK_1_0",
      Query = "string"
    )
  )
)

Request syntax

svc$get_group_query(
  GroupName = "string",
  Group = "string"
)