Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.apigee/v1.getHostQuery
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Get status of a query submitted at host level. If the query is still in progress, the state is set to “running” After the query has completed successfully, state is set to “completed”
Using getHostQuery
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 getHostQuery(args: GetHostQueryArgs, opts?: InvokeOptions): Promise<GetHostQueryResult>
function getHostQueryOutput(args: GetHostQueryOutputArgs, opts?: InvokeOptions): Output<GetHostQueryResult>def get_host_query(host_query_id: Optional[str] = None,
                   organization_id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetHostQueryResult
def get_host_query_output(host_query_id: Optional[pulumi.Input[str]] = None,
                   organization_id: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetHostQueryResult]func LookupHostQuery(ctx *Context, args *LookupHostQueryArgs, opts ...InvokeOption) (*LookupHostQueryResult, error)
func LookupHostQueryOutput(ctx *Context, args *LookupHostQueryOutputArgs, opts ...InvokeOption) LookupHostQueryResultOutput> Note: This function is named LookupHostQuery in the Go SDK.
public static class GetHostQuery 
{
    public static Task<GetHostQueryResult> InvokeAsync(GetHostQueryArgs args, InvokeOptions? opts = null)
    public static Output<GetHostQueryResult> Invoke(GetHostQueryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetHostQueryResult> getHostQuery(GetHostQueryArgs args, InvokeOptions options)
public static Output<GetHostQueryResult> getHostQuery(GetHostQueryArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:apigee/v1:getHostQuery
  arguments:
    # arguments dictionaryThe following arguments are supported:
- HostQuery stringId 
- OrganizationId string
- HostQuery stringId 
- OrganizationId string
- hostQuery StringId 
- organizationId String
- hostQuery stringId 
- organizationId string
- host_query_ strid 
- organization_id str
- hostQuery StringId 
- organizationId String
getHostQuery Result
The following output properties are available:
- Created string
- Creation time of the query.
- EnvgroupHostname string
- Hostname is available only when query is executed at host level.
- Error string
- Error is set when query fails.
- ExecutionTime string
- ExecutionTime is available only after the query is completed.
- Name string
- Asynchronous Query Name.
- QueryParams Pulumi.Google Native. Apigee. V1. Outputs. Google Cloud Apigee V1Query Metadata Response 
- Contains information like metrics, dimenstions etc of the AsyncQuery.
- ReportDefinition stringId 
- Asynchronous Report ID.
- Result
Pulumi.Google Native. Apigee. V1. Outputs. Google Cloud Apigee V1Async Query Result Response 
- Result is available only after the query is completed.
- ResultFile stringSize 
- ResultFileSize is available only after the query is completed.
- ResultRows string
- ResultRows is available only after the query is completed.
- Self string
- Self link of the query. Example: /organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bdor following format if query is running at host level:/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd
- State string
- Query state could be "enqueued", "running", "completed", "failed".
- Updated string
- Last updated timestamp for the query.
- Created string
- Creation time of the query.
- EnvgroupHostname string
- Hostname is available only when query is executed at host level.
- Error string
- Error is set when query fails.
- ExecutionTime string
- ExecutionTime is available only after the query is completed.
- Name string
- Asynchronous Query Name.
- QueryParams GoogleCloud Apigee V1Query Metadata Response 
- Contains information like metrics, dimenstions etc of the AsyncQuery.
- ReportDefinition stringId 
- Asynchronous Report ID.
- Result
GoogleCloud Apigee V1Async Query Result Response 
- Result is available only after the query is completed.
- ResultFile stringSize 
- ResultFileSize is available only after the query is completed.
- ResultRows string
- ResultRows is available only after the query is completed.
- Self string
- Self link of the query. Example: /organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bdor following format if query is running at host level:/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd
- State string
- Query state could be "enqueued", "running", "completed", "failed".
- Updated string
- Last updated timestamp for the query.
- created String
- Creation time of the query.
- envgroupHostname String
- Hostname is available only when query is executed at host level.
- error String
- Error is set when query fails.
- executionTime String
- ExecutionTime is available only after the query is completed.
- name String
- Asynchronous Query Name.
- queryParams GoogleCloud Apigee V1Query Metadata Response 
- Contains information like metrics, dimenstions etc of the AsyncQuery.
- reportDefinition StringId 
- Asynchronous Report ID.
- result
GoogleCloud Apigee V1Async Query Result Response 
- Result is available only after the query is completed.
- resultFile StringSize 
- ResultFileSize is available only after the query is completed.
- resultRows String
- ResultRows is available only after the query is completed.
- self String
- Self link of the query. Example: /organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bdor following format if query is running at host level:/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd
- state String
- Query state could be "enqueued", "running", "completed", "failed".
- updated String
- Last updated timestamp for the query.
- created string
- Creation time of the query.
- envgroupHostname string
- Hostname is available only when query is executed at host level.
- error string
- Error is set when query fails.
- executionTime string
- ExecutionTime is available only after the query is completed.
- name string
- Asynchronous Query Name.
- queryParams GoogleCloud Apigee V1Query Metadata Response 
- Contains information like metrics, dimenstions etc of the AsyncQuery.
- reportDefinition stringId 
- Asynchronous Report ID.
- result
GoogleCloud Apigee V1Async Query Result Response 
- Result is available only after the query is completed.
- resultFile stringSize 
- ResultFileSize is available only after the query is completed.
- resultRows string
- ResultRows is available only after the query is completed.
- self string
- Self link of the query. Example: /organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bdor following format if query is running at host level:/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd
- state string
- Query state could be "enqueued", "running", "completed", "failed".
- updated string
- Last updated timestamp for the query.
- created str
- Creation time of the query.
- envgroup_hostname str
- Hostname is available only when query is executed at host level.
- error str
- Error is set when query fails.
- execution_time str
- ExecutionTime is available only after the query is completed.
- name str
- Asynchronous Query Name.
- query_params GoogleCloud Apigee V1Query Metadata Response 
- Contains information like metrics, dimenstions etc of the AsyncQuery.
- report_definition_ strid 
- Asynchronous Report ID.
- result
GoogleCloud Apigee V1Async Query Result Response 
- Result is available only after the query is completed.
- result_file_ strsize 
- ResultFileSize is available only after the query is completed.
- result_rows str
- ResultRows is available only after the query is completed.
- self str
- Self link of the query. Example: /organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bdor following format if query is running at host level:/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd
- state str
- Query state could be "enqueued", "running", "completed", "failed".
- updated str
- Last updated timestamp for the query.
- created String
- Creation time of the query.
- envgroupHostname String
- Hostname is available only when query is executed at host level.
- error String
- Error is set when query fails.
- executionTime String
- ExecutionTime is available only after the query is completed.
- name String
- Asynchronous Query Name.
- queryParams Property Map
- Contains information like metrics, dimenstions etc of the AsyncQuery.
- reportDefinition StringId 
- Asynchronous Report ID.
- result Property Map
- Result is available only after the query is completed.
- resultFile StringSize 
- ResultFileSize is available only after the query is completed.
- resultRows String
- ResultRows is available only after the query is completed.
- self String
- Self link of the query. Example: /organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bdor following format if query is running at host level:/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd
- state String
- Query state could be "enqueued", "running", "completed", "failed".
- updated String
- Last updated timestamp for the query.
Supporting Types
GoogleCloudApigeeV1AsyncQueryResultResponse      
- Expires string
- Query result will be unaccessable after this time.
- Self string
- Self link of the query results. Example: /organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/resultor following format if query is running at host level:/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result
- Expires string
- Query result will be unaccessable after this time.
- Self string
- Self link of the query results. Example: /organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/resultor following format if query is running at host level:/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result
- expires String
- Query result will be unaccessable after this time.
- self String
- Self link of the query results. Example: /organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/resultor following format if query is running at host level:/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result
- expires string
- Query result will be unaccessable after this time.
- self string
- Self link of the query results. Example: /organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/resultor following format if query is running at host level:/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result
- expires str
- Query result will be unaccessable after this time.
- self str
- Self link of the query results. Example: /organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/resultor following format if query is running at host level:/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result
- expires String
- Query result will be unaccessable after this time.
- self String
- Self link of the query results. Example: /organizations/myorg/environments/myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/resultor following format if query is running at host level:/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result
GoogleCloudApigeeV1QueryMetadataResponse     
- Dimensions List<string>
- Dimensions of the AsyncQuery.
- EndTimestamp string
- End timestamp of the query range.
- Metrics List<string>
- Metrics of the AsyncQuery. Example: ["name:message_count,func:sum,alias:sum_message_count"]
- OutputFormat string
- Output format.
- StartTimestamp string
- Start timestamp of the query range.
- TimeUnit string
- Query GroupBy time unit.
- Dimensions []string
- Dimensions of the AsyncQuery.
- EndTimestamp string
- End timestamp of the query range.
- Metrics []string
- Metrics of the AsyncQuery. Example: ["name:message_count,func:sum,alias:sum_message_count"]
- OutputFormat string
- Output format.
- StartTimestamp string
- Start timestamp of the query range.
- TimeUnit string
- Query GroupBy time unit.
- dimensions List<String>
- Dimensions of the AsyncQuery.
- endTimestamp String
- End timestamp of the query range.
- metrics List<String>
- Metrics of the AsyncQuery. Example: ["name:message_count,func:sum,alias:sum_message_count"]
- outputFormat String
- Output format.
- startTimestamp String
- Start timestamp of the query range.
- timeUnit String
- Query GroupBy time unit.
- dimensions string[]
- Dimensions of the AsyncQuery.
- endTimestamp string
- End timestamp of the query range.
- metrics string[]
- Metrics of the AsyncQuery. Example: ["name:message_count,func:sum,alias:sum_message_count"]
- outputFormat string
- Output format.
- startTimestamp string
- Start timestamp of the query range.
- timeUnit string
- Query GroupBy time unit.
- dimensions Sequence[str]
- Dimensions of the AsyncQuery.
- end_timestamp str
- End timestamp of the query range.
- metrics Sequence[str]
- Metrics of the AsyncQuery. Example: ["name:message_count,func:sum,alias:sum_message_count"]
- output_format str
- Output format.
- start_timestamp str
- Start timestamp of the query range.
- time_unit str
- Query GroupBy time unit.
- dimensions List<String>
- Dimensions of the AsyncQuery.
- endTimestamp String
- End timestamp of the query range.
- metrics List<String>
- Metrics of the AsyncQuery. Example: ["name:message_count,func:sum,alias:sum_message_count"]
- outputFormat String
- Output format.
- startTimestamp String
- Start timestamp of the query range.
- timeUnit String
- Query GroupBy time unit.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.