1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudGuard
  5. getAdhocQueries
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.CloudGuard.getAdhocQueries

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 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,
});
Copy
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)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testAdhocQueries:
    fn::invoke:
      function: oci:CloudGuard:getAdhocQueries
      arguments:
        compartmentId: ${compartmentId}
        accessLevel: ${adhocQueryAccessLevel}
        adhocQueryStatus: ${adhocQueryAdhocQueryStatus}
        compartmentIdInSubtree: ${adhocQueryCompartmentIdInSubtree}
        timeEndedFilterQueryParam: ${adhocQueryTimeEndedFilterQueryParam}
        timeStartedFilterQueryParam: ${adhocQueryTimeStartedFilterQueryParam}
Copy

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>
Copy
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]
Copy
func GetAdhocQueries(ctx *Context, args *GetAdhocQueriesArgs, opts ...InvokeOption) (*GetAdhocQueriesResult, error)
func GetAdhocQueriesOutput(ctx *Context, args *GetAdhocQueriesOutputArgs, opts ...InvokeOption) GetAdhocQueriesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetAdhocQueriesResult> getAdhocQueries(GetAdhocQueriesArgs args, InvokeOptions options)
public static Output<GetAdhocQueriesResult> getAdhocQueries(GetAdhocQueriesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:CloudGuard/getAdhocQueries:getAdhocQueries
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. 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 Changes to this property will trigger replacement. []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 This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. 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 Changes to this property will trigger replacement. 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

items This property is required. List<Property Map>

GetAdhocQueriesAdhocQueryCollectionItem

AdhocQueryDetails This property is required. List<GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetail>
Detailed information about the adhoc query.
AdhocQueryRegionalDetails This property is required. List<GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryRegionalDetail>
Instance level status for each region
CompartmentId This property is required. string
The OCID of the compartment in which to list resources.
DefinedTags This property is required. Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
ErrorMessage This property is required. string
Error message to show on UI in case of failure
FreeformTags This property is required. Dictionary<string, string>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
Id This property is required. string
OCID for the adhoc query
State This property is required. string
The current lifecycle state of the resource.
Status This property is required. string
Status of the adhoc query
SystemTags This property is required. Dictionary<string, string>
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 This property is required. string
The date and time the adhoc query was created. Format defined by RFC3339.
TimeUpdated This property is required. string
The date and time the adhoc query was updated. Format defined by RFC3339.
AdhocQueryDetails This property is required. []GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetail
Detailed information about the adhoc query.
AdhocQueryRegionalDetails This property is required. []GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryRegionalDetail
Instance level status for each region
CompartmentId This property is required. string
The OCID of the compartment in which to list resources.
DefinedTags This property is required. map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
ErrorMessage This property is required. string
Error message to show on UI in case of failure
FreeformTags This property is required. map[string]string
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
Id This property is required. string
OCID for the adhoc query
State This property is required. string
The current lifecycle state of the resource.
Status This property is required. string
Status of the adhoc query
SystemTags This property is required. map[string]string
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 This property is required. string
The date and time the adhoc query was created. Format defined by RFC3339.
TimeUpdated This property is required. string
The date and time the adhoc query was updated. Format defined by RFC3339.
adhocQueryDetails This property is required. List<GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetail>
Detailed information about the adhoc query.
adhocQueryRegionalDetails This property is required. List<GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryRegionalDetail>
Instance level status for each region
compartmentId This property is required. String
The OCID of the compartment in which to list resources.
definedTags This property is required. Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
errorMessage This property is required. String
Error message to show on UI in case of failure
freeformTags This property is required. Map<String,String>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
id This property is required. String
OCID for the adhoc query
state This property is required. String
The current lifecycle state of the resource.
status This property is required. String
Status of the adhoc query
systemTags This property is required. Map<String,String>
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 This property is required. String
The date and time the adhoc query was created. Format defined by RFC3339.
timeUpdated This property is required. String
The date and time the adhoc query was updated. Format defined by RFC3339.
adhocQueryDetails This property is required. GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetail[]
Detailed information about the adhoc query.
adhocQueryRegionalDetails This property is required. GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryRegionalDetail[]
Instance level status for each region
compartmentId This property is required. string
The OCID of the compartment in which to list resources.
definedTags This property is required. {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
errorMessage This property is required. string
Error message to show on UI in case of failure
freeformTags This property is required. {[key: string]: string}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
id This property is required. string
OCID for the adhoc query
state This property is required. string
The current lifecycle state of the resource.
status This property is required. string
Status of the adhoc query
systemTags This property is required. {[key: string]: string}
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 This property is required. string
The date and time the adhoc query was created. Format defined by RFC3339.
timeUpdated This property is required. string
The date and time the adhoc query was updated. Format defined by RFC3339.
adhoc_query_details This property is required. Sequence[cloudguard.GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetail]
Detailed information about the adhoc query.
adhoc_query_regional_details This property is required. Sequence[cloudguard.GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryRegionalDetail]
Instance level status for each region
compartment_id This property is required. str
The OCID of the compartment in which to list resources.
defined_tags This property is required. Mapping[str, str]
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
error_message This property is required. str
Error message to show on UI in case of failure
freeform_tags This property is required. Mapping[str, str]
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
id This property is required. str
OCID for the adhoc query
state This property is required. str
The current lifecycle state of the resource.
status This property is required. str
Status of the adhoc query
system_tags This property is required. Mapping[str, str]
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 This property is required. str
The date and time the adhoc query was created. Format defined by RFC3339.
time_updated This property is required. str
The date and time the adhoc query was updated. Format defined by RFC3339.
adhocQueryDetails This property is required. List<Property Map>
Detailed information about the adhoc query.
adhocQueryRegionalDetails This property is required. List<Property Map>
Instance level status for each region
compartmentId This property is required. String
The OCID of the compartment in which to list resources.
definedTags This property is required. Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
errorMessage This property is required. String
Error message to show on UI in case of failure
freeformTags This property is required. Map<String>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
id This property is required. String
OCID for the adhoc query
state This property is required. String
The current lifecycle state of the resource.
status This property is required. String
Status of the adhoc query
systemTags This property is required. Map<String>
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 This property is required. String
The date and time the adhoc query was created. Format defined by RFC3339.
timeUpdated This property is required. String
The date and time the adhoc query was updated. Format defined by RFC3339.

GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetail

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

GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryDetailAdhocQueryResource

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

GetAdhocQueriesAdhocQueryCollectionItemAdhocQueryRegionalDetail

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

GetAdhocQueriesFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. 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.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi