oci.CloudGuard.AdhocQuery
Explore with Pulumi AI
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={
"adhoc_query_resources": [{
"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.StringMap{
"foo-namespace.bar-key": pulumi.String("value"),
},
FreeformTags: pulumi.StringMap{
"bar-key": pulumi.String("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, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = 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", "string" },
},
FreeformTags =
{
{ "string", "string" },
},
});
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.StringMap{
"string": pulumi.String("string"),
},
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
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", "string"))
.freeformTags(Map.of("string", "string"))
.build());
adhoc_query_resource = oci.cloud_guard.AdhocQuery("adhocQueryResource",
adhoc_query_details={
"adhoc_query_resources": [{
"region": "string",
"resource_ids": ["string"],
"resource_type": "string",
}],
"query": "string",
},
compartment_id="string",
defined_tags={
"string": "string",
},
freeform_tags={
"string": "string",
})
const adhocQueryResource = new oci.cloudguard.AdhocQuery("adhocQueryResource", {
adhocQueryDetails: {
adhocQueryResources: [{
region: "string",
resourceIds: ["string"],
resourceType: "string",
}],
query: "string",
},
compartmentId: "string",
definedTags: {
string: "string",
},
freeformTags: {
string: "string",
},
});
type: oci:CloudGuard:AdhocQuery
properties:
adhocQueryDetails:
adhocQueryResources:
- region: string
resourceIds:
- string
resourceType: string
query: string
compartmentId: string
definedTags:
string: string
freeformTags:
string: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AdhocQuery resource accepts the following input properties:
- Adhoc
Query AdhocDetails Query Adhoc Query Details - Detailed information about the adhoc query.
- Compartment
Id string - Compartment OCID of adhoc query
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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"}
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 AdhocDetails Query Adhoc Query Details Args - Detailed information about the adhoc query.
- Compartment
Id string - Compartment OCID of adhoc query
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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"}
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 AdhocDetails Query Adhoc Query Details - Detailed information about the adhoc query.
- compartment
Id String - Compartment OCID of adhoc query
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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"}
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 AdhocDetails Query Adhoc Query Details - Detailed information about the adhoc query.
- compartment
Id string - Compartment OCID of adhoc query
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- {[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"}
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_ cloudguard.details Adhoc Query Adhoc Query Details Args - Detailed information about the adhoc query.
- compartment_
id str - Compartment OCID of adhoc query
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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"}
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 Property MapDetails - Detailed information about the adhoc query.
- compartment
Id String - Compartment OCID of adhoc query
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- 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"}
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:
- Adhoc
Query List<AdhocRegional Details Query Adhoc Query Regional Detail> - Instance level status for each region
- Error
Message 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
- 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"}
- Time
Created string - The date and time the adhoc query was created. Format defined by RFC3339.
- Time
Updated string - The date and time the adhoc query was updated. Format defined by RFC3339.
- Adhoc
Query []AdhocRegional Details Query Adhoc Query Regional Detail - Instance level status for each region
- Error
Message 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
- 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"}
- Time
Created string - The date and time the adhoc query was created. Format defined by RFC3339.
- Time
Updated string - The date and time the adhoc query was updated. Format defined by RFC3339.
- adhoc
Query List<AdhocRegional Details Query Adhoc Query Regional Detail> - Instance level status for each region
- error
Message 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
- 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"}
- time
Created String - The date and time the adhoc query was created. Format defined by RFC3339.
- time
Updated String - The date and time the adhoc query was updated. Format defined by RFC3339.
- adhoc
Query AdhocRegional Details Query Adhoc Query Regional Detail[] - Instance level status for each region
- error
Message 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
- {[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"}
- time
Created string - The date and time the adhoc query was created. Format defined by RFC3339.
- time
Updated string - The date and time the adhoc query was updated. Format defined by RFC3339.
- adhoc_
query_ Sequence[cloudguard.regional_ details Adhoc Query Adhoc Query Regional Detail] - 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
- 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 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.
- adhoc
Query List<Property Map>Regional Details - Instance level status for each region
- error
Message 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
- 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"}
- time
Created String - The date and time the adhoc query was created. Format defined by RFC3339.
- time
Updated 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, str]] = None,
error_message: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
state: Optional[str] = None,
status: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = 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.
- Adhoc
Query AdhocDetails Query Adhoc Query Details - Detailed information about the adhoc query.
- Adhoc
Query List<AdhocRegional Details Query Adhoc Query Regional Detail> - Instance level status for each region
- Compartment
Id string - Compartment OCID of adhoc query
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Error
Message string - Error message to show on UI in case of failure
- 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"}
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
- 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"}
- Time
Created string - The date and time the adhoc query was created. Format defined by RFC3339.
- Time
Updated string - The date and time the adhoc query was updated. Format defined by RFC3339.
- Adhoc
Query AdhocDetails Query Adhoc Query Details Args - Detailed information about the adhoc query.
- Adhoc
Query []AdhocRegional Details Query Adhoc Query Regional Detail Args - Instance level status for each region
- Compartment
Id string - Compartment OCID of adhoc query
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Error
Message string - Error message to show on UI in case of failure
- 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"}
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
- 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"}
- Time
Created string - The date and time the adhoc query was created. Format defined by RFC3339.
- Time
Updated string - The date and time the adhoc query was updated. Format defined by RFC3339.
- adhoc
Query AdhocDetails Query Adhoc Query Details - Detailed information about the adhoc query.
- adhoc
Query List<AdhocRegional Details Query Adhoc Query Regional Detail> - Instance level status for each region
- compartment
Id String - Compartment OCID of adhoc query
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- error
Message String - Error message to show on UI in case of failure
- 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"}
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
- 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"}
- time
Created String - The date and time the adhoc query was created. Format defined by RFC3339.
- time
Updated String - The date and time the adhoc query was updated. Format defined by RFC3339.
- adhoc
Query AdhocDetails Query Adhoc Query Details - Detailed information about the adhoc query.
- adhoc
Query AdhocRegional Details Query Adhoc Query Regional Detail[] - Instance level status for each region
- compartment
Id string - Compartment OCID of adhoc query
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- error
Message string - Error message to show on UI in case of failure
- {[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"}
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
- {[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"}
- time
Created string - The date and time the adhoc query was created. Format defined by RFC3339.
- time
Updated string - The date and time the adhoc query was updated. Format defined by RFC3339.
- adhoc_
query_ cloudguard.details Adhoc Query Adhoc Query Details Args - Detailed information about the adhoc query.
- adhoc_
query_ Sequence[cloudguard.regional_ details Adhoc Query Adhoc Query Regional Detail Args] - Instance level status for each region
- compartment_
id str - Compartment OCID of adhoc query
- 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 str - Error message to show on UI in case of failure
- 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"}
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
- 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 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.
- adhoc
Query Property MapDetails - Detailed information about the adhoc query.
- adhoc
Query List<Property Map>Regional Details - Instance level status for each region
- compartment
Id String - Compartment OCID of adhoc query
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- error
Message String - Error message to show on UI in case of failure
- 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"}
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
- 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"}
- time
Created String - The date and time the adhoc query was created. Format defined by RFC3339.
- time
Updated String - The date and time the adhoc query was updated. Format defined by RFC3339.
Supporting Types
AdhocQueryAdhocQueryDetails, AdhocQueryAdhocQueryDetailsArgs
- Adhoc
Query List<AdhocResources Query Adhoc Query Details Adhoc Query Resource> - Target information in which adhoc query will be run
- Query string
- The adhoc query expression that is run
- Adhoc
Query []AdhocResources Query Adhoc Query Details Adhoc Query Resource - Target information in which adhoc query will be run
- Query string
- The adhoc query expression that is run
- adhoc
Query List<AdhocResources Query Adhoc Query Details Adhoc Query Resource> - Target information in which adhoc query will be run
- query String
- The adhoc query expression that is run
- adhoc
Query AdhocResources Query Adhoc Query Details Adhoc Query Resource[] - Target information in which adhoc query will be run
- query string
- The adhoc query expression that is run
- adhoc_
query_ Sequence[cloudguard.resources Adhoc Query Adhoc Query Details Adhoc Query Resource] - Target information in which adhoc query will be run
- query str
- The adhoc query expression that is run
- adhoc
Query List<Property Map>Resources - 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
- Resource
Ids List<string> - List of OCIDs on which query needs to be run
- Resource
Type string - Type of resource
- Region string
- Region in which adhoc query needs to be run
- Resource
Ids []string - List of OCIDs on which query needs to be run
- Resource
Type string - Type of resource
- region String
- Region in which adhoc query needs to be run
- resource
Ids List<String> - List of OCIDs on which query needs to be run
- resource
Type String - Type of resource
- region string
- Region in which adhoc query needs to be run
- resource
Ids string[] - List of OCIDs on which query needs to be run
- resource
Type 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
- resource
Ids List<String> - List of OCIDs on which query needs to be run
- resource
Type String - Type of resource
AdhocQueryAdhocQueryRegionalDetail, AdhocQueryAdhocQueryRegionalDetailArgs
- Expected
Count string - Expected number of instances on which query should run
- Expired
Count string - Number of instances on which query expired
- Failed
Count string - Number of instances on which query failed
- Region string
- Region name
- Regional
Error string - error message to show if adhoc query fails in a region
- Regional
Status string - adhoc query status of the region
- Succeeded
Count string - Number of instances on which query succeeded
- Expected
Count string - Expected number of instances on which query should run
- Expired
Count string - Number of instances on which query expired
- Failed
Count string - Number of instances on which query failed
- Region string
- Region name
- Regional
Error string - error message to show if adhoc query fails in a region
- Regional
Status string - adhoc query status of the region
- Succeeded
Count string - Number of instances on which query succeeded
- expected
Count String - Expected number of instances on which query should run
- expired
Count String - Number of instances on which query expired
- failed
Count String - Number of instances on which query failed
- region String
- Region name
- regional
Error String - error message to show if adhoc query fails in a region
- regional
Status String - adhoc query status of the region
- succeeded
Count String - Number of instances on which query succeeded
- expected
Count string - Expected number of instances on which query should run
- expired
Count string - Number of instances on which query expired
- failed
Count string - Number of instances on which query failed
- region string
- Region name
- regional
Error string - error message to show if adhoc query fails in a region
- regional
Status string - adhoc query status of the region
- succeeded
Count 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
- expected
Count String - Expected number of instances on which query should run
- expired
Count String - Number of instances on which query expired
- failed
Count String - Number of instances on which query failed
- region String
- Region name
- regional
Error String - error message to show if adhoc query fails in a region
- regional
Status String - adhoc query status of the region
- succeeded
Count 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.