QueryRequest Constructors

Definition

Overloads

QueryRequest()

Initializes a new instance of the QueryRequest class.

QueryRequest(IList<String>, String, QueryRequestOptions, IList<FacetRequest>)

Initializes a new instance of the QueryRequest class. This constructor is used in the older versions of ResourceGraph package and is needed for the backward compatibility.

QueryRequest(String, IList<String>, IList<String>, QueryRequestOptions, IList<FacetRequest>)

Initializes a new instance of the QueryRequest class.

QueryRequest()

Initializes a new instance of the QueryRequest class.

public QueryRequest ();
Public Sub New ()

Applies to

QueryRequest(IList<String>, String, QueryRequestOptions, IList<FacetRequest>)

Initializes a new instance of the QueryRequest class. This constructor is used in the older versions of ResourceGraph package and is needed for the backward compatibility.

public QueryRequest (System.Collections.Generic.IList<string> subscriptions, string query, Microsoft.Azure.Management.ResourceGraph.Models.QueryRequestOptions options = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ResourceGraph.Models.FacetRequest> facets = default);
new Microsoft.Azure.Management.ResourceGraph.Models.QueryRequest : System.Collections.Generic.IList<string> * string * Microsoft.Azure.Management.ResourceGraph.Models.QueryRequestOptions * System.Collections.Generic.IList<Microsoft.Azure.Management.ResourceGraph.Models.FacetRequest> -> Microsoft.Azure.Management.ResourceGraph.Models.QueryRequest
Public Sub New (subscriptions As IList(Of String), query As String, Optional options As QueryRequestOptions = Nothing, Optional facets As IList(Of FacetRequest) = Nothing)

Parameters

subscriptions
IList<String>

Azure subscriptions against which to execute the query.

query
String

The resources query.

options
QueryRequestOptions

The query evaluation options

facets
IList<FacetRequest>

An array of facet requests to be computed against the query result.

Applies to

QueryRequest(String, IList<String>, IList<String>, QueryRequestOptions, IList<FacetRequest>)

Initializes a new instance of the QueryRequest class.

public QueryRequest (string query, System.Collections.Generic.IList<string> subscriptions = default, System.Collections.Generic.IList<string> managementGroups = default, Microsoft.Azure.Management.ResourceGraph.Models.QueryRequestOptions options = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ResourceGraph.Models.FacetRequest> facets = default);
new Microsoft.Azure.Management.ResourceGraph.Models.QueryRequest : string * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.ResourceGraph.Models.QueryRequestOptions * System.Collections.Generic.IList<Microsoft.Azure.Management.ResourceGraph.Models.FacetRequest> -> Microsoft.Azure.Management.ResourceGraph.Models.QueryRequest
Public Sub New (query As String, Optional subscriptions As IList(Of String) = Nothing, Optional managementGroups As IList(Of String) = Nothing, Optional options As QueryRequestOptions = Nothing, Optional facets As IList(Of FacetRequest) = Nothing)

Parameters

query
String

The resources query.

subscriptions
IList<String>

Azure subscriptions against which to execute the query.

managementGroups
IList<String>

Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ]

options
QueryRequestOptions

The query evaluation options

facets
IList<FacetRequest>

An array of facet requests to be computed against the query result.

Applies to