1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudGuard
  5. getAdhocQueries
Oracle Cloud Infrastructure v1.40.0 published on Wednesday, Jun 12, 2024 by Pulumi

oci.CloudGuard.getAdhocQueries

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.40.0 published on Wednesday, Jun 12, 2024 by Pulumi

    This data source provides the list of Adhoc Queries in Oracle Cloud Infrastructure Cloud Guard service.

    Returns a list of all adhoc queries (AdhocQuery resources) for a compartment identified by compartmentId. List is returned in a AdhocQueryCollection resource with page of AdhocQuerySummary resources.

    The ListAdhocQueries operation returns only the adhoc queries in ‘compartmentId’ passed. The list does not include any subcompartments of the compartmentId passed.

    The parameter accessLevel specifies whether to return only those compartments for which the requestor has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn’t have access to even one of the child compartments. This is valid only when compartmentIdInSubtree is set to true.

    The parameter compartmentIdInSubtree applies when you perform ListAdhocQueries on the compartmentId passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree to true and accessLevel to ACCESSIBLE.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAdhocQueries = oci.CloudGuard.getAdhocQueries({
        compartmentId: compartmentId,
        accessLevel: adhocQueryAccessLevel,
        adhocQueryStatus: adhocQueryAdhocQueryStatus,
        compartmentIdInSubtree: adhocQueryCompartmentIdInSubtree,
        timeEndedFilterQueryParam: adhocQueryTimeEndedFilterQueryParam,
        timeStartedFilterQueryParam: adhocQueryTimeStartedFilterQueryParam,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_adhoc_queries = oci.CloudGuard.get_adhoc_queries(compartment_id=compartment_id,
        access_level=adhoc_query_access_level,
        adhoc_query_status=adhoc_query_adhoc_query_status,
        compartment_id_in_subtree=adhoc_query_compartment_id_in_subtree,
        time_ended_filter_query_param=adhoc_query_time_ended_filter_query_param,
        time_started_filter_query_param=adhoc_query_time_started_filter_query_param)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/CloudGuard"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := CloudGuard.GetAdhocQueries(ctx, &cloudguard.GetAdhocQueriesArgs{
    			CompartmentId:               compartmentId,
    			AccessLevel:                 pulumi.StringRef(adhocQueryAccessLevel),
    			AdhocQueryStatus:            pulumi.StringRef(adhocQueryAdhocQueryStatus),
    			CompartmentIdInSubtree:      pulumi.BoolRef(adhocQueryCompartmentIdInSubtree),
    			TimeEndedFilterQueryParam:   pulumi.StringRef(adhocQueryTimeEndedFilterQueryParam),
    			TimeStartedFilterQueryParam: pulumi.StringRef(adhocQueryTimeStartedFilterQueryParam),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testAdhocQueries = Oci.CloudGuard.GetAdhocQueries.Invoke(new()
        {
            CompartmentId = compartmentId,
            AccessLevel = adhocQueryAccessLevel,
            AdhocQueryStatus = adhocQueryAdhocQueryStatus,
            CompartmentIdInSubtree = adhocQueryCompartmentIdInSubtree,
            TimeEndedFilterQueryParam = adhocQueryTimeEndedFilterQueryParam,
            TimeStartedFilterQueryParam = adhocQueryTimeStartedFilterQueryParam,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.CloudGuard.CloudGuardFunctions;
    import com.pulumi.oci.CloudGuard.inputs.GetAdhocQueriesArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var testAdhocQueries = CloudGuardFunctions.getAdhocQueries(GetAdhocQueriesArgs.builder()
                .compartmentId(compartmentId)
                .accessLevel(adhocQueryAccessLevel)
                .adhocQueryStatus(adhocQueryAdhocQueryStatus)
                .compartmentIdInSubtree(adhocQueryCompartmentIdInSubtree)
                .timeEndedFilterQueryParam(adhocQueryTimeEndedFilterQueryParam)
                .timeStartedFilterQueryParam(adhocQueryTimeStartedFilterQueryParam)
                .build());
    
        }
    }
    
    variables:
      testAdhocQueries:
        fn::invoke:
          Function: oci:CloudGuard:getAdhocQueries
          Arguments:
            compartmentId: ${compartmentId}
            accessLevel: ${adhocQueryAccessLevel}
            adhocQueryStatus: ${adhocQueryAdhocQueryStatus}
            compartmentIdInSubtree: ${adhocQueryCompartmentIdInSubtree}
            timeEndedFilterQueryParam: ${adhocQueryTimeEndedFilterQueryParam}
            timeStartedFilterQueryParam: ${adhocQueryTimeStartedFilterQueryParam}
    

    Using getAdhocQueries

    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 getAdhocQueries(args: GetAdhocQueriesArgs, opts?: InvokeOptions): Promise<GetAdhocQueriesResult>
    function getAdhocQueriesOutput(args: GetAdhocQueriesOutputArgs, opts?: InvokeOptions): Output<GetAdhocQueriesResult>
    def get_adhoc_queries(access_level: Optional[str] = None,
                          adhoc_query_status: Optional[str] = None,
                          compartment_id: Optional[str] = None,
                          compartment_id_in_subtree: Optional[bool] = None,
                          filters: Optional[Sequence[_cloudguard.GetAdhocQueriesFilter]] = None,
                          time_ended_filter_query_param: Optional[str] = None,
                          time_started_filter_query_param: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetAdhocQueriesResult
    def get_adhoc_queries_output(access_level: Optional[pulumi.Input[str]] = None,
                          adhoc_query_status: Optional[pulumi.Input[str]] = None,
                          compartment_id: Optional[pulumi.Input[str]] = None,
                          compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
                          filters: Optional[pulumi.Input[Sequence[pulumi.Input[_cloudguard.GetAdhocQueriesFilterArgs]]]] = None,
                          time_ended_filter_query_param: Optional[pulumi.Input[str]] = None,
                          time_started_filter_query_param: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetAdhocQueriesResult]
    func GetAdhocQueries(ctx *Context, args *GetAdhocQueriesArgs, opts ...InvokeOption) (*GetAdhocQueriesResult, error)
    func GetAdhocQueriesOutput(ctx *Context, args *GetAdhocQueriesOutputArgs, opts ...InvokeOption) GetAdhocQueriesResultOutput

    > Note: This function is named GetAdhocQueries in the Go SDK.

    public static class GetAdhocQueries 
    {
        public static Task<GetAdhocQueriesResult> InvokeAsync(GetAdhocQueriesArgs args, InvokeOptions? opts = null)
        public static Output<GetAdhocQueriesResult> Invoke(GetAdhocQueriesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAdhocQueriesResult> getAdhocQueries(GetAdhocQueriesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:CloudGuard/getAdhocQueries:getAdhocQueries
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment in which to list resources.
    AccessLevel string
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    AdhocQueryStatus string
    The status of the adhoc query created. Default value for state is provisioning. If no value is specified state is provisioning.
    CompartmentIdInSubtree bool
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the setting of accessLevel.
    Filters List<GetAdhocQueriesFilter>
    TimeEndedFilterQueryParam string
    End time for a filter. If end time is not specified, end time will be set to current time.
    TimeStartedFilterQueryParam string
    Start time for a filter. If start time is not specified, start time will be set to current time - 30 days.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    AccessLevel string
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    AdhocQueryStatus string
    The status of the adhoc query created. Default value for state is provisioning. If no value is specified state is provisioning.
    CompartmentIdInSubtree bool
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the setting of accessLevel.
    Filters []GetAdhocQueriesFilter
    TimeEndedFilterQueryParam string
    End time for a filter. If end time is not specified, end time will be set to current time.
    TimeStartedFilterQueryParam string
    Start time for a filter. If start time is not specified, start time will be set to current time - 30 days.
    compartmentId String
    The OCID of the compartment in which to list resources.
    accessLevel String
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    adhocQueryStatus String
    The status of the adhoc query created. Default value for state is provisioning. If no value is specified state is provisioning.
    compartmentIdInSubtree Boolean
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the setting of accessLevel.
    filters List<GetAdhocQueriesFilter>
    timeEndedFilterQueryParam String
    End time for a filter. If end time is not specified, end time will be set to current time.
    timeStartedFilterQueryParam String
    Start time for a filter. If start time is not specified, start time will be set to current time - 30 days.
    compartmentId string
    The OCID of the compartment in which to list resources.
    accessLevel string
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    adhocQueryStatus string
    The status of the adhoc query created. Default value for state is provisioning. If no value is specified state is provisioning.
    compartmentIdInSubtree boolean
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the setting of accessLevel.
    filters GetAdhocQueriesFilter[]
    timeEndedFilterQueryParam string
    End time for a filter. If end time is not specified, end time will be set to current time.
    timeStartedFilterQueryParam string
    Start time for a filter. If start time is not specified, start time will be set to current time - 30 days.
    compartment_id str
    The OCID of the compartment in which to list resources.
    access_level str
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    adhoc_query_status str
    The status of the adhoc query created. Default value for state is provisioning. If no value is specified state is provisioning.
    compartment_id_in_subtree bool
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the setting of accessLevel.
    filters Sequence[cloudguard.GetAdhocQueriesFilter]
    time_ended_filter_query_param str
    End time for a filter. If end time is not specified, end time will be set to current time.
    time_started_filter_query_param str
    Start time for a filter. If start time is not specified, start time will be set to current time - 30 days.
    compartmentId String
    The OCID of the compartment in which to list resources.
    accessLevel String
    Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
    adhocQueryStatus String
    The status of the adhoc query created. Default value for state is provisioning. If no value is specified state is provisioning.
    compartmentIdInSubtree Boolean
    Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the setting of accessLevel.
    filters List<Property Map>
    timeEndedFilterQueryParam String
    End time for a filter. If end time is not specified, end time will be set to current time.
    timeStartedFilterQueryParam String
    Start time for a filter. If start time is not specified, start time will be set to current time - 30 days.

    getAdhocQueries Result

    The following output properties are available:

    AdhocQueryCollections List<GetAdhocQueriesAdhocQueryCollection>
    The list of adhoc_query_collection.
    CompartmentId string
    Compartment OCID of the adhoc query
    Id string
    The provider-assigned unique ID for this managed resource.
    AccessLevel string
    AdhocQueryStatus string
    CompartmentIdInSubtree bool
    Filters List<GetAdhocQueriesFilter>
    TimeEndedFilterQueryParam string
    TimeStartedFilterQueryParam string
    AdhocQueryCollections []GetAdhocQueriesAdhocQueryCollection
    The list of adhoc_query_collection.
    CompartmentId string
    Compartment OCID of the adhoc query
    Id string
    The provider-assigned unique ID for this managed resource.
    AccessLevel string
    AdhocQueryStatus string
    CompartmentIdInSubtree bool
    Filters []GetAdhocQueriesFilter
    TimeEndedFilterQueryParam string
    TimeStartedFilterQueryParam string
    adhocQueryCollections List<GetAdhocQueriesAdhocQueryCollection>
    The list of adhoc_query_collection.
    compartmentId String
    Compartment OCID of the adhoc query
    id String
    The provider-assigned unique ID for this managed resource.
    accessLevel String
    adhocQueryStatus String
    compartmentIdInSubtree Boolean
    filters List<GetAdhocQueriesFilter>
    timeEndedFilterQueryParam String
    timeStartedFilterQueryParam String
    adhocQueryCollections GetAdhocQueriesAdhocQueryCollection[]
    The list of adhoc_query_collection.
    compartmentId string
    Compartment OCID of the adhoc query
    id string
    The provider-assigned unique ID for this managed resource.
    accessLevel string
    adhocQueryStatus string
    compartmentIdInSubtree boolean
    filters GetAdhocQueriesFilter[]
    timeEndedFilterQueryParam string
    timeStartedFilterQueryParam string
    adhocQueryCollections List<Property Map>
    The list of adhoc_query_collection.
    compartmentId String
    Compartment OCID of the adhoc query
    id String
    The provider-assigned unique ID for this managed resource.
    accessLevel String
    adhocQueryStatus String
    compartmentIdInSubtree Boolean
    filters List<Property Map>
    timeEndedFilterQueryParam String
    timeStartedFilterQueryParam String

    Supporting Types

    GetAdhocQueriesAdhocQueryCollection

    GetAdhocQueriesAdhocQueryCollectionItem

    AdhocQueryDetails List<GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetail>
    Detailed information about the adhoc query.
    AdhocQueryRegionalDetails List<GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryRegionalDetail>
    Instance level status for each region
    CompartmentId string
    The OCID of the compartment in which to list resources.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    ErrorMessage string
    Error message to show on UI in case of failure
    FreeformTags Dictionary<string, object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    OCID for the adhoc query
    State string
    The current lifecycle state of the resource.
    Status string
    Status of the adhoc query
    SystemTags Dictionary<string, object>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the adhoc query was created. Format defined by RFC3339.
    TimeUpdated string
    The date and time the adhoc query was updated. Format defined by RFC3339.
    AdhocQueryDetails []GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetail
    Detailed information about the adhoc query.
    AdhocQueryRegionalDetails []GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryRegionalDetail
    Instance level status for each region
    CompartmentId string
    The OCID of the compartment in which to list resources.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    ErrorMessage string
    Error message to show on UI in case of failure
    FreeformTags map[string]interface{}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    OCID for the adhoc query
    State string
    The current lifecycle state of the resource.
    Status string
    Status of the adhoc query
    SystemTags map[string]interface{}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the adhoc query was created. Format defined by RFC3339.
    TimeUpdated string
    The date and time the adhoc query was updated. Format defined by RFC3339.
    adhocQueryDetails List<GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetail>
    Detailed information about the adhoc query.
    adhocQueryRegionalDetails List<GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryRegionalDetail>
    Instance level status for each region
    compartmentId String
    The OCID of the compartment in which to list resources.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    errorMessage String
    Error message to show on UI in case of failure
    freeformTags Map<String,Object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    OCID for the adhoc query
    state String
    The current lifecycle state of the resource.
    status String
    Status of the adhoc query
    systemTags Map<String,Object>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the adhoc query was created. Format defined by RFC3339.
    timeUpdated String
    The date and time the adhoc query was updated. Format defined by RFC3339.
    adhocQueryDetails GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetail[]
    Detailed information about the adhoc query.
    adhocQueryRegionalDetails GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryRegionalDetail[]
    Instance level status for each region
    compartmentId string
    The OCID of the compartment in which to list resources.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    errorMessage string
    Error message to show on UI in case of failure
    freeformTags {[key: string]: any}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id string
    OCID for the adhoc query
    state string
    The current lifecycle state of the resource.
    status string
    Status of the adhoc query
    systemTags {[key: string]: any}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the adhoc query was created. Format defined by RFC3339.
    timeUpdated string
    The date and time the adhoc query was updated. Format defined by RFC3339.
    adhoc_query_details Sequence[cloudguard.GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetail]
    Detailed information about the adhoc query.
    adhoc_query_regional_details Sequence[cloudguard.GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryRegionalDetail]
    Instance level status for each region
    compartment_id str
    The OCID of the compartment in which to list resources.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    error_message str
    Error message to show on UI in case of failure
    freeform_tags Mapping[str, Any]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id str
    OCID for the adhoc query
    state str
    The current lifecycle state of the resource.
    status str
    Status of the adhoc query
    system_tags Mapping[str, Any]
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time the adhoc query was created. Format defined by RFC3339.
    time_updated str
    The date and time the adhoc query was updated. Format defined by RFC3339.
    adhocQueryDetails List<Property Map>
    Detailed information about the adhoc query.
    adhocQueryRegionalDetails List<Property Map>
    Instance level status for each region
    compartmentId String
    The OCID of the compartment in which to list resources.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    errorMessage String
    Error message to show on UI in case of failure
    freeformTags Map<Any>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    OCID for the adhoc query
    state String
    The current lifecycle state of the resource.
    status String
    Status of the adhoc query
    systemTags Map<Any>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the adhoc query was created. Format defined by RFC3339.
    timeUpdated String
    The date and time the adhoc query was updated. Format defined by RFC3339.

    GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetail

    AdhocQueryResources List<GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetailAdhocQueryResource>
    Target information in which adhoc query will be run
    Query string
    The adhoc query expression that is run
    AdhocQueryResources []GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetailAdhocQueryResource
    Target information in which adhoc query will be run
    Query string
    The adhoc query expression that is run
    adhocQueryResources List<GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetailAdhocQueryResource>
    Target information in which adhoc query will be run
    query String
    The adhoc query expression that is run
    adhocQueryResources GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetailAdhocQueryResource[]
    Target information in which adhoc query will be run
    query string
    The adhoc query expression that is run
    adhoc_query_resources Sequence[cloudguard.GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetailAdhocQueryResource]
    Target information in which adhoc query will be run
    query str
    The adhoc query expression that is run
    adhocQueryResources List<Property Map>
    Target information in which adhoc query will be run
    query String
    The adhoc query expression that is run

    GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetailAdhocQueryResource

    Region string
    Region name
    ResourceIds List<string>
    List of OCIDs on which query needs to be run
    ResourceType string
    Type of resource
    Region string
    Region name
    ResourceIds []string
    List of OCIDs on which query needs to be run
    ResourceType string
    Type of resource
    region String
    Region name
    resourceIds List<String>
    List of OCIDs on which query needs to be run
    resourceType String
    Type of resource
    region string
    Region name
    resourceIds string[]
    List of OCIDs on which query needs to be run
    resourceType string
    Type of resource
    region str
    Region name
    resource_ids Sequence[str]
    List of OCIDs on which query needs to be run
    resource_type str
    Type of resource
    region String
    Region name
    resourceIds List<String>
    List of OCIDs on which query needs to be run
    resourceType String
    Type of resource

    GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryRegionalDetail

    ExpectedCount string
    Expected number of instances on which query should run
    ExpiredCount string
    Number of instances on which query expired
    FailedCount string
    Number of instances on which query failed
    Region string
    Region name
    RegionalError string
    error message to show if adhoc query fails in a region
    RegionalStatus string
    adhoc query status of the region
    SucceededCount string
    Number of instances on which query succeeded
    ExpectedCount string
    Expected number of instances on which query should run
    ExpiredCount string
    Number of instances on which query expired
    FailedCount string
    Number of instances on which query failed
    Region string
    Region name
    RegionalError string
    error message to show if adhoc query fails in a region
    RegionalStatus string
    adhoc query status of the region
    SucceededCount string
    Number of instances on which query succeeded
    expectedCount String
    Expected number of instances on which query should run
    expiredCount String
    Number of instances on which query expired
    failedCount String
    Number of instances on which query failed
    region String
    Region name
    regionalError String
    error message to show if adhoc query fails in a region
    regionalStatus String
    adhoc query status of the region
    succeededCount String
    Number of instances on which query succeeded
    expectedCount string
    Expected number of instances on which query should run
    expiredCount string
    Number of instances on which query expired
    failedCount string
    Number of instances on which query failed
    region string
    Region name
    regionalError string
    error message to show if adhoc query fails in a region
    regionalStatus string
    adhoc query status of the region
    succeededCount string
    Number of instances on which query succeeded
    expected_count str
    Expected number of instances on which query should run
    expired_count str
    Number of instances on which query expired
    failed_count str
    Number of instances on which query failed
    region str
    Region name
    regional_error str
    error message to show if adhoc query fails in a region
    regional_status str
    adhoc query status of the region
    succeeded_count str
    Number of instances on which query succeeded
    expectedCount String
    Expected number of instances on which query should run
    expiredCount String
    Number of instances on which query expired
    failedCount String
    Number of instances on which query failed
    region String
    Region name
    regionalError String
    error message to show if adhoc query fails in a region
    regionalStatus String
    adhoc query status of the region
    succeededCount String
    Number of instances on which query succeeded

    GetAdhocQueriesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.40.0 published on Wednesday, Jun 12, 2024 by Pulumi