azure-native.resourcegraph.getGraphQuery
Explore with Pulumi AI
Get a single graph query by its resourceName.
Uses Azure REST API version 2024-04-01.
Other available API versions: 2020-04-01-preview, 2021-03-01, 2022-10-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native resourcegraph [ApiVersion]
. See the version guide for details.
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 dictionary
The following arguments are supported:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Resource
Name string - The name of the Graph Query resource.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Resource
Name string - The name of the Graph Query resource.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- resource
Name String - The name of the Graph Query resource.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- resource
Name string - The name of the Graph Query resource.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- resource_
name str - The name of the Graph Query resource.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- resource
Name String - The name of the Graph Query resource.
getGraphQuery Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Azure resource Id
- 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.
- Result
Kind string - Enum indicating a type of graph query.
- System
Data Pulumi.Azure Native. Resource Graph. Outputs. System Data Response - The system metadata relating to this resource.
- Time
Modified 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. If not present, it will always overwrite the existing resource without checking conflict.
- Location string
- The location of the resource
- Dictionary<string, string>
- Resource tags
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Azure resource Id
- 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.
- Result
Kind string - Enum indicating a type of graph query.
- System
Data SystemData Response - The system metadata relating to this resource.
- Time
Modified 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. If not present, it will always overwrite the existing resource without checking conflict.
- Location string
- The location of the resource
- map[string]string
- Resource tags
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Azure resource Id
- 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.
- result
Kind String - Enum indicating a type of graph query.
- system
Data SystemData Response - The system metadata relating to this resource.
- time
Modified 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. If not present, it will always overwrite the existing resource without checking conflict.
- location String
- The location of the resource
- Map<String,String>
- Resource tags
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- Azure resource Id
- 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.
- result
Kind string - Enum indicating a type of graph query.
- system
Data SystemData Response - The system metadata relating to this resource.
- time
Modified 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. If not present, it will always overwrite the existing resource without checking conflict.
- location string
- The location of the resource
- {[key: string]: string}
- Resource tags
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- Azure resource Id
- 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 - The system metadata relating to this 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. If not present, it will always overwrite the existing resource without checking conflict.
- location str
- The location of the resource
- Mapping[str, str]
- Resource tags
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Azure resource Id
- 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.
- result
Kind String - Enum indicating a type of graph query.
- system
Data Property Map - The system metadata relating to this resource.
- time
Modified 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. If not present, it will always overwrite the existing resource without checking conflict.
- location String
- The location of the resource
- Map<String>
- Resource tags
Supporting Types
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0