This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.resourcegraph.getGraphQuery
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Get a single graph query by its resourceName. Azure REST API version: 2020-04-01-preview.
Other available API versions: 2018-09-01-preview, 2019-04-01, 2021-03-01, 2022-10-01, 2024-04-01.
Using getGraphQuery
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getGraphQuery(args: GetGraphQueryArgs, opts?: InvokeOptions): Promise<GetGraphQueryResult>
function getGraphQueryOutput(args: GetGraphQueryOutputArgs, opts?: InvokeOptions): Output<GetGraphQueryResult>def get_graph_query(resource_group_name: Optional[str] = None,
                    resource_name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetGraphQueryResult
def get_graph_query_output(resource_group_name: Optional[pulumi.Input[str]] = None,
                    resource_name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetGraphQueryResult]func LookupGraphQuery(ctx *Context, args *LookupGraphQueryArgs, opts ...InvokeOption) (*LookupGraphQueryResult, error)
func LookupGraphQueryOutput(ctx *Context, args *LookupGraphQueryOutputArgs, opts ...InvokeOption) LookupGraphQueryResultOutput> Note: This function is named LookupGraphQuery in the Go SDK.
public static class GetGraphQuery 
{
    public static Task<GetGraphQueryResult> InvokeAsync(GetGraphQueryArgs args, InvokeOptions? opts = null)
    public static Output<GetGraphQueryResult> Invoke(GetGraphQueryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGraphQueryResult> getGraphQuery(GetGraphQueryArgs args, InvokeOptions options)
public static Output<GetGraphQueryResult> getGraphQuery(GetGraphQueryArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:resourcegraph:getGraphQuery
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ResourceGroup stringName 
- The name of the resource group.
- ResourceName string
- The name of the Graph Query resource.
- ResourceGroup stringName 
- The name of the resource group.
- ResourceName string
- The name of the Graph Query resource.
- resourceGroup StringName 
- The name of the resource group.
- resourceName String
- The name of the Graph Query resource.
- resourceGroup stringName 
- The name of the resource group.
- resourceName string
- The name of the Graph Query resource.
- resource_group_ strname 
- The name of the resource group.
- resource_name str
- The name of the Graph Query resource.
- resourceGroup StringName 
- The name of the resource group.
- resourceName String
- The name of the Graph Query resource.
getGraphQuery Result
The following output properties are available:
- Id string
- Azure resource Id
- Location string
- The location of the resource
- Name string
- Azure resource name. This is GUID value. The display name should be assigned within properties field.
- Query string
- KQL query that will be graph.
- ResultKind string
- Enum indicating a type of graph query.
- SystemData Pulumi.Azure Native. Resource Graph. Outputs. System Data Response 
- Metadata pertaining to creation and last modification of the resource.
- TimeModified string
- Date and time in UTC of the last modification that was made to this graph query definition.
- Type string
- Azure resource type
- Description string
- The description of a graph query.
- Etag string
- This will be used to handle Optimistic Concurrency.
- Dictionary<string, string>
- Resource tags
- Id string
- Azure resource Id
- Location string
- The location of the resource
- Name string
- Azure resource name. This is GUID value. The display name should be assigned within properties field.
- Query string
- KQL query that will be graph.
- ResultKind string
- Enum indicating a type of graph query.
- SystemData SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- TimeModified string
- Date and time in UTC of the last modification that was made to this graph query definition.
- Type string
- Azure resource type
- Description string
- The description of a graph query.
- Etag string
- This will be used to handle Optimistic Concurrency.
- map[string]string
- Resource tags
- id String
- Azure resource Id
- location String
- The location of the resource
- name String
- Azure resource name. This is GUID value. The display name should be assigned within properties field.
- query String
- KQL query that will be graph.
- resultKind String
- Enum indicating a type of graph query.
- systemData SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- timeModified String
- Date and time in UTC of the last modification that was made to this graph query definition.
- type String
- Azure resource type
- description String
- The description of a graph query.
- etag String
- This will be used to handle Optimistic Concurrency.
- Map<String,String>
- Resource tags
- id string
- Azure resource Id
- location string
- The location of the resource
- name string
- Azure resource name. This is GUID value. The display name should be assigned within properties field.
- query string
- KQL query that will be graph.
- resultKind string
- Enum indicating a type of graph query.
- systemData SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- timeModified string
- Date and time in UTC of the last modification that was made to this graph query definition.
- type string
- Azure resource type
- description string
- The description of a graph query.
- etag string
- This will be used to handle Optimistic Concurrency.
- {[key: string]: string}
- Resource tags
- id str
- Azure resource Id
- location str
- The location of the resource
- name str
- Azure resource name. This is GUID value. The display name should be assigned within properties field.
- query str
- KQL query that will be graph.
- result_kind str
- Enum indicating a type of graph query.
- system_data SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- time_modified str
- Date and time in UTC of the last modification that was made to this graph query definition.
- type str
- Azure resource type
- description str
- The description of a graph query.
- etag str
- This will be used to handle Optimistic Concurrency.
- Mapping[str, str]
- Resource tags
- id String
- Azure resource Id
- location String
- The location of the resource
- name String
- Azure resource name. This is GUID value. The display name should be assigned within properties field.
- query String
- KQL query that will be graph.
- resultKind String
- Enum indicating a type of graph query.
- systemData Property Map
- Metadata pertaining to creation and last modification of the resource.
- timeModified String
- Date and time in UTC of the last modification that was made to this graph query definition.
- type String
- Azure resource type
- description String
- The description of a graph query.
- etag String
- This will be used to handle Optimistic Concurrency.
- Map<String>
- Resource tags
Supporting Types
SystemDataResponse  
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi