1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudGuard
  5. AdhocQuery
Oracle Cloud Infrastructure v2.4.0 published on Thursday, Jul 25, 2024 by Pulumi

oci.CloudGuard.AdhocQuery

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.4.0 published on Thursday, Jul 25, 2024 by Pulumi

    This resource provides the Adhoc Query resource in Oracle Cloud Infrastructure Cloud Guard service.

    Creates a AdhocQuery resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAdhocQuery = new oci.cloudguard.AdhocQuery("test_adhoc_query", {
        adhocQueryDetails: {
            adhocQueryResources: [{
                region: adhocQueryAdhocQueryDetailsAdhocQueryResourcesRegion,
                resourceIds: adhocQueryAdhocQueryDetailsAdhocQueryResourcesResourceIds,
                resourceType: adhocQueryAdhocQueryDetailsAdhocQueryResourcesResourceType,
            }],
            query: adhocQueryAdhocQueryDetailsQuery,
        },
        compartmentId: compartmentId,
        definedTags: {
            "foo-namespace.bar-key": "value",
        },
        freeformTags: {
            "bar-key": "value",
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_adhoc_query = oci.cloud_guard.AdhocQuery("test_adhoc_query",
        adhoc_query_details=oci.cloud_guard.AdhocQueryAdhocQueryDetailsArgs(
            adhoc_query_resources=[oci.cloud_guard.AdhocQueryAdhocQueryDetailsAdhocQueryResourceArgs(
                region=adhoc_query_adhoc_query_details_adhoc_query_resources_region,
                resource_ids=adhoc_query_adhoc_query_details_adhoc_query_resources_resource_ids,
                resource_type=adhoc_query_adhoc_query_details_adhoc_query_resources_resource_type,
            )],
            query=adhoc_query_adhoc_query_details_query,
        ),
        compartment_id=compartment_id,
        defined_tags={
            "foo-namespace.bar-key": "value",
        },
        freeform_tags={
            "bar-key": "value",
        })
    
    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.NewAdhocQuery(ctx, "test_adhoc_query", &CloudGuard.AdhocQueryArgs{
    			AdhocQueryDetails: &cloudguard.AdhocQueryAdhocQueryDetailsArgs{
    				AdhocQueryResources: cloudguard.AdhocQueryAdhocQueryDetailsAdhocQueryResourceArray{
    					&cloudguard.AdhocQueryAdhocQueryDetailsAdhocQueryResourceArgs{
    						Region:       pulumi.Any(adhocQueryAdhocQueryDetailsAdhocQueryResourcesRegion),
    						ResourceIds:  pulumi.Any(adhocQueryAdhocQueryDetailsAdhocQueryResourcesResourceIds),
    						ResourceType: pulumi.Any(adhocQueryAdhocQueryDetailsAdhocQueryResourcesResourceType),
    					},
    				},
    				Query: pulumi.Any(adhocQueryAdhocQueryDetailsQuery),
    			},
    			CompartmentId: pulumi.Any(compartmentId),
    			DefinedTags: pulumi.Map{
    				"foo-namespace.bar-key": pulumi.Any("value"),
    			},
    			FreeformTags: pulumi.Map{
    				"bar-key": pulumi.Any("value"),
    			},
    		})
    		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 testAdhocQuery = new Oci.CloudGuard.AdhocQuery("test_adhoc_query", new()
        {
            AdhocQueryDetails = new Oci.CloudGuard.Inputs.AdhocQueryAdhocQueryDetailsArgs
            {
                AdhocQueryResources = new[]
                {
                    new Oci.CloudGuard.Inputs.AdhocQueryAdhocQueryDetailsAdhocQueryResourceArgs
                    {
                        Region = adhocQueryAdhocQueryDetailsAdhocQueryResourcesRegion,
                        ResourceIds = adhocQueryAdhocQueryDetailsAdhocQueryResourcesResourceIds,
                        ResourceType = adhocQueryAdhocQueryDetailsAdhocQueryResourcesResourceType,
                    },
                },
                Query = adhocQueryAdhocQueryDetailsQuery,
            },
            CompartmentId = compartmentId,
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.CloudGuard.AdhocQuery;
    import com.pulumi.oci.CloudGuard.AdhocQueryArgs;
    import com.pulumi.oci.CloudGuard.inputs.AdhocQueryAdhocQueryDetailsArgs;
    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) {
            var testAdhocQuery = new AdhocQuery("testAdhocQuery", AdhocQueryArgs.builder()
                .adhocQueryDetails(AdhocQueryAdhocQueryDetailsArgs.builder()
                    .adhocQueryResources(AdhocQueryAdhocQueryDetailsAdhocQueryResourceArgs.builder()
                        .region(adhocQueryAdhocQueryDetailsAdhocQueryResourcesRegion)
                        .resourceIds(adhocQueryAdhocQueryDetailsAdhocQueryResourcesResourceIds)
                        .resourceType(adhocQueryAdhocQueryDetailsAdhocQueryResourcesResourceType)
                        .build())
                    .query(adhocQueryAdhocQueryDetailsQuery)
                    .build())
                .compartmentId(compartmentId)
                .definedTags(Map.of("foo-namespace.bar-key", "value"))
                .freeformTags(Map.of("bar-key", "value"))
                .build());
    
        }
    }
    
    resources:
      testAdhocQuery:
        type: oci:CloudGuard:AdhocQuery
        name: test_adhoc_query
        properties:
          adhocQueryDetails:
            adhocQueryResources:
              - region: ${adhocQueryAdhocQueryDetailsAdhocQueryResourcesRegion}
                resourceIds: ${adhocQueryAdhocQueryDetailsAdhocQueryResourcesResourceIds}
                resourceType: ${adhocQueryAdhocQueryDetailsAdhocQueryResourcesResourceType}
            query: ${adhocQueryAdhocQueryDetailsQuery}
          compartmentId: ${compartmentId}
          definedTags:
            foo-namespace.bar-key: value
          freeformTags:
            bar-key: value
    

    Create AdhocQuery Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AdhocQuery(name: string, args: AdhocQueryArgs, opts?: CustomResourceOptions);
    @overload
    def AdhocQuery(resource_name: str,
                   args: AdhocQueryArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def AdhocQuery(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   adhoc_query_details: Optional[_cloudguard.AdhocQueryAdhocQueryDetailsArgs] = None,
                   compartment_id: Optional[str] = None,
                   defined_tags: Optional[Mapping[str, Any]] = None,
                   freeform_tags: Optional[Mapping[str, Any]] = None)
    func NewAdhocQuery(ctx *Context, name string, args AdhocQueryArgs, opts ...ResourceOption) (*AdhocQuery, error)
    public AdhocQuery(string name, AdhocQueryArgs args, CustomResourceOptions? opts = null)
    public AdhocQuery(String name, AdhocQueryArgs args)
    public AdhocQuery(String name, AdhocQueryArgs args, CustomResourceOptions options)
    
    type: oci:CloudGuard:AdhocQuery
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AdhocQueryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AdhocQueryArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AdhocQueryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AdhocQueryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AdhocQueryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var adhocQueryResource = new Oci.CloudGuard.AdhocQuery("adhocQueryResource", new()
    {
        AdhocQueryDetails = new Oci.CloudGuard.Inputs.AdhocQueryAdhocQueryDetailsArgs
        {
            AdhocQueryResources = new[]
            {
                new Oci.CloudGuard.Inputs.AdhocQueryAdhocQueryDetailsAdhocQueryResourceArgs
                {
                    Region = "string",
                    ResourceIds = new[]
                    {
                        "string",
                    },
                    ResourceType = "string",
                },
            },
            Query = "string",
        },
        CompartmentId = "string",
        DefinedTags = 
        {
            { "string", "any" },
        },
        FreeformTags = 
        {
            { "string", "any" },
        },
    });
    
    example, err := CloudGuard.NewAdhocQuery(ctx, "adhocQueryResource", &CloudGuard.AdhocQueryArgs{
    	AdhocQueryDetails: &cloudguard.AdhocQueryAdhocQueryDetailsArgs{
    		AdhocQueryResources: cloudguard.AdhocQueryAdhocQueryDetailsAdhocQueryResourceArray{
    			&cloudguard.AdhocQueryAdhocQueryDetailsAdhocQueryResourceArgs{
    				Region: pulumi.String("string"),
    				ResourceIds: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				ResourceType: pulumi.String("string"),
    			},
    		},
    		Query: pulumi.String("string"),
    	},
    	CompartmentId: pulumi.String("string"),
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    })
    
    var adhocQueryResource = new AdhocQuery("adhocQueryResource", AdhocQueryArgs.builder()
        .adhocQueryDetails(AdhocQueryAdhocQueryDetailsArgs.builder()
            .adhocQueryResources(AdhocQueryAdhocQueryDetailsAdhocQueryResourceArgs.builder()
                .region("string")
                .resourceIds("string")
                .resourceType("string")
                .build())
            .query("string")
            .build())
        .compartmentId("string")
        .definedTags(Map.of("string", "any"))
        .freeformTags(Map.of("string", "any"))
        .build());
    
    adhoc_query_resource = oci.cloud_guard.AdhocQuery("adhocQueryResource",
        adhoc_query_details=oci.cloud_guard.AdhocQueryAdhocQueryDetailsArgs(
            adhoc_query_resources=[oci.cloud_guard.AdhocQueryAdhocQueryDetailsAdhocQueryResourceArgs(
                region="string",
                resource_ids=["string"],
                resource_type="string",
            )],
            query="string",
        ),
        compartment_id="string",
        defined_tags={
            "string": "any",
        },
        freeform_tags={
            "string": "any",
        })
    
    const adhocQueryResource = new oci.cloudguard.AdhocQuery("adhocQueryResource", {
        adhocQueryDetails: {
            adhocQueryResources: [{
                region: "string",
                resourceIds: ["string"],
                resourceType: "string",
            }],
            query: "string",
        },
        compartmentId: "string",
        definedTags: {
            string: "any",
        },
        freeformTags: {
            string: "any",
        },
    });
    
    type: oci:CloudGuard:AdhocQuery
    properties:
        adhocQueryDetails:
            adhocQueryResources:
                - region: string
                  resourceIds:
                    - string
                  resourceType: string
            query: string
        compartmentId: string
        definedTags:
            string: any
        freeformTags:
            string: any
    

    AdhocQuery Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The AdhocQuery resource accepts the following input properties:

    AdhocQueryDetails AdhocQueryAdhocQueryDetails
    Detailed information about the adhoc query.
    CompartmentId string
    Compartment OCID of adhoc query
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    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"}

    Avoid entering confidential information.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    AdhocQueryDetails AdhocQueryAdhocQueryDetailsArgs
    Detailed information about the adhoc query.
    CompartmentId string
    Compartment OCID of adhoc query
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    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"}

    Avoid entering confidential information.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    adhocQueryDetails AdhocQueryAdhocQueryDetails
    Detailed information about the adhoc query.
    compartmentId String
    Compartment OCID of adhoc query
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    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"}

    Avoid entering confidential information.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    adhocQueryDetails AdhocQueryAdhocQueryDetails
    Detailed information about the adhoc query.
    compartmentId string
    Compartment OCID of adhoc query
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    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"}

    Avoid entering confidential information.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    adhoc_query_details cloudguard.AdhocQueryAdhocQueryDetailsArgs
    Detailed information about the adhoc query.
    compartment_id str
    Compartment OCID of adhoc query
    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"}
    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"}

    Avoid entering confidential information.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    adhocQueryDetails Property Map
    Detailed information about the adhoc query.
    compartmentId String
    Compartment OCID of adhoc query
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    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"}

    Avoid entering confidential information.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AdhocQuery resource produces the following output properties:

    AdhocQueryRegionalDetails List<AdhocQueryAdhocQueryRegionalDetail>
    Instance level status for each region
    ErrorMessage string
    Error message to show on UI in case of failure
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    AdhocQueryRegionalDetails []AdhocQueryAdhocQueryRegionalDetail
    Instance level status for each region
    ErrorMessage string
    Error message to show on UI in case of failure
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    adhocQueryRegionalDetails List<AdhocQueryAdhocQueryRegionalDetail>
    Instance level status for each region
    errorMessage String
    Error message to show on UI in case of failure
    id String
    The provider-assigned unique ID for this managed resource.
    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.
    adhocQueryRegionalDetails AdhocQueryAdhocQueryRegionalDetail[]
    Instance level status for each region
    errorMessage string
    Error message to show on UI in case of failure
    id string
    The provider-assigned unique ID for this managed resource.
    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_regional_details Sequence[cloudguard.AdhocQueryAdhocQueryRegionalDetail]
    Instance level status for each region
    error_message str
    Error message to show on UI in case of failure
    id str
    The provider-assigned unique ID for this managed resource.
    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.
    adhocQueryRegionalDetails List<Property Map>
    Instance level status for each region
    errorMessage String
    Error message to show on UI in case of failure
    id String
    The provider-assigned unique ID for this managed resource.
    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.

    Look up Existing AdhocQuery Resource

    Get an existing AdhocQuery resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AdhocQueryState, opts?: CustomResourceOptions): AdhocQuery
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adhoc_query_details: Optional[_cloudguard.AdhocQueryAdhocQueryDetailsArgs] = None,
            adhoc_query_regional_details: Optional[Sequence[_cloudguard.AdhocQueryAdhocQueryRegionalDetailArgs]] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            error_message: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            state: Optional[str] = None,
            status: Optional[str] = None,
            system_tags: Optional[Mapping[str, Any]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> AdhocQuery
    func GetAdhocQuery(ctx *Context, name string, id IDInput, state *AdhocQueryState, opts ...ResourceOption) (*AdhocQuery, error)
    public static AdhocQuery Get(string name, Input<string> id, AdhocQueryState? state, CustomResourceOptions? opts = null)
    public static AdhocQuery get(String name, Output<String> id, AdhocQueryState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AdhocQueryDetails AdhocQueryAdhocQueryDetails
    Detailed information about the adhoc query.
    AdhocQueryRegionalDetails List<AdhocQueryAdhocQueryRegionalDetail>
    Instance level status for each region
    CompartmentId string
    Compartment OCID of adhoc query
    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"}

    Avoid entering confidential information.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 AdhocQueryAdhocQueryDetailsArgs
    Detailed information about the adhoc query.
    AdhocQueryRegionalDetails []AdhocQueryAdhocQueryRegionalDetailArgs
    Instance level status for each region
    CompartmentId string
    Compartment OCID of adhoc query
    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"}

    Avoid entering confidential information.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 AdhocQueryAdhocQueryDetails
    Detailed information about the adhoc query.
    adhocQueryRegionalDetails List<AdhocQueryAdhocQueryRegionalDetail>
    Instance level status for each region
    compartmentId String
    Compartment OCID of adhoc query
    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"}

    Avoid entering confidential information.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 AdhocQueryAdhocQueryDetails
    Detailed information about the adhoc query.
    adhocQueryRegionalDetails AdhocQueryAdhocQueryRegionalDetail[]
    Instance level status for each region
    compartmentId string
    Compartment OCID of adhoc query
    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"}

    Avoid entering confidential information.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 cloudguard.AdhocQueryAdhocQueryDetailsArgs
    Detailed information about the adhoc query.
    adhoc_query_regional_details Sequence[cloudguard.AdhocQueryAdhocQueryRegionalDetailArgs]
    Instance level status for each region
    compartment_id str
    Compartment OCID of adhoc query
    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"}

    Avoid entering confidential information.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 Property Map
    Detailed information about the adhoc query.
    adhocQueryRegionalDetails List<Property Map>
    Instance level status for each region
    compartmentId String
    Compartment OCID of adhoc query
    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"}

    Avoid entering confidential information.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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.

    Supporting Types

    AdhocQueryAdhocQueryDetails, AdhocQueryAdhocQueryDetailsArgs

    AdhocQueryResources List<AdhocQueryAdhocQueryDetailsAdhocQueryResource>
    Target information in which adhoc query will be run
    Query string
    The adhoc query expression that is run
    AdhocQueryResources []AdhocQueryAdhocQueryDetailsAdhocQueryResource
    Target information in which adhoc query will be run
    Query string
    The adhoc query expression that is run
    adhocQueryResources List<AdhocQueryAdhocQueryDetailsAdhocQueryResource>
    Target information in which adhoc query will be run
    query String
    The adhoc query expression that is run
    adhocQueryResources AdhocQueryAdhocQueryDetailsAdhocQueryResource[]
    Target information in which adhoc query will be run
    query string
    The adhoc query expression that is run
    adhoc_query_resources Sequence[cloudguard.AdhocQueryAdhocQueryDetailsAdhocQueryResource]
    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

    AdhocQueryAdhocQueryDetailsAdhocQueryResource, AdhocQueryAdhocQueryDetailsAdhocQueryResourceArgs

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

    AdhocQueryAdhocQueryRegionalDetail, AdhocQueryAdhocQueryRegionalDetailArgs

    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

    Import

    AdhocQueries can be imported using the id, e.g.

    $ pulumi import oci:CloudGuard/adhocQuery:AdhocQuery test_adhoc_query "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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 v2.4.0 published on Thursday, Jul 25, 2024 by Pulumi