Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.CloudGuard.getAdhocQuery
Explore with Pulumi AI
This data source provides details about a specific Adhoc Query resource in Oracle Cloud Infrastructure Cloud Guard service.
Returns an adhoc query identified by adhocQueryId.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAdhocQuery = oci.CloudGuard.getAdhocQuery({
adhocQueryId: testAdhocQueryOciCloudGuardAdhocQuery.id,
});
import pulumi
import pulumi_oci as oci
test_adhoc_query = oci.CloudGuard.get_adhoc_query(adhoc_query_id=test_adhoc_query_oci_cloud_guard_adhoc_query["id"])
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.GetAdhocQuery(ctx, &cloudguard.GetAdhocQueryArgs{
AdhocQueryId: testAdhocQueryOciCloudGuardAdhocQuery.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testAdhocQuery = Oci.CloudGuard.GetAdhocQuery.Invoke(new()
{
AdhocQueryId = testAdhocQueryOciCloudGuardAdhocQuery.Id,
});
});
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.GetAdhocQueryArgs;
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 testAdhocQuery = CloudGuardFunctions.getAdhocQuery(GetAdhocQueryArgs.builder()
.adhocQueryId(testAdhocQueryOciCloudGuardAdhocQuery.id())
.build());
}
}
variables:
testAdhocQuery:
fn::invoke:
Function: oci:CloudGuard:getAdhocQuery
Arguments:
adhocQueryId: ${testAdhocQueryOciCloudGuardAdhocQuery.id}
Using getAdhocQuery
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 getAdhocQuery(args: GetAdhocQueryArgs, opts?: InvokeOptions): Promise<GetAdhocQueryResult>
function getAdhocQueryOutput(args: GetAdhocQueryOutputArgs, opts?: InvokeOptions): Output<GetAdhocQueryResult>
def get_adhoc_query(adhoc_query_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAdhocQueryResult
def get_adhoc_query_output(adhoc_query_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAdhocQueryResult]
func GetAdhocQuery(ctx *Context, args *GetAdhocQueryArgs, opts ...InvokeOption) (*GetAdhocQueryResult, error)
func GetAdhocQueryOutput(ctx *Context, args *GetAdhocQueryOutputArgs, opts ...InvokeOption) GetAdhocQueryResultOutput
> Note: This function is named GetAdhocQuery
in the Go SDK.
public static class GetAdhocQuery
{
public static Task<GetAdhocQueryResult> InvokeAsync(GetAdhocQueryArgs args, InvokeOptions? opts = null)
public static Output<GetAdhocQueryResult> Invoke(GetAdhocQueryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAdhocQueryResult> getAdhocQuery(GetAdhocQueryArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:CloudGuard/getAdhocQuery:getAdhocQuery
arguments:
# arguments dictionary
The following arguments are supported:
- Adhoc
Query stringId - Adhoc query OCID.
- Adhoc
Query stringId - Adhoc query OCID.
- adhoc
Query StringId - Adhoc query OCID.
- adhoc
Query stringId - Adhoc query OCID.
- adhoc_
query_ strid - Adhoc query OCID.
- adhoc
Query StringId - Adhoc query OCID.
getAdhocQuery Result
The following output properties are available:
- Adhoc
Query List<GetDetails Adhoc Query Adhoc Query Detail> - Detailed information about the adhoc query.
- Adhoc
Query stringId - Adhoc
Query List<GetRegional Details Adhoc Query Adhoc Query Regional Detail> - Instance level status for each region
- Compartment
Id string - Compartment OCID of the 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"}
- Id string
- OCID for the adhoc query
- 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 []GetDetails Adhoc Query Adhoc Query Detail - Detailed information about the adhoc query.
- Adhoc
Query stringId - Adhoc
Query []GetRegional Details Adhoc Query Adhoc Query Regional Detail - Instance level status for each region
- Compartment
Id string - Compartment OCID of the 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"}
- Id string
- OCID for the adhoc query
- 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<GetDetails Adhoc Query Adhoc Query Detail> - Detailed information about the adhoc query.
- adhoc
Query StringId - adhoc
Query List<GetRegional Details Adhoc Query Adhoc Query Regional Detail> - Instance level status for each region
- compartment
Id String - Compartment OCID of the 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"}
- id String
- OCID for the adhoc query
- 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 GetDetails Adhoc Query Adhoc Query Detail[] - Detailed information about the adhoc query.
- adhoc
Query stringId - adhoc
Query GetRegional Details Adhoc Query Adhoc Query Regional Detail[] - Instance level status for each region
- compartment
Id string - Compartment OCID of the 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"}
- id string
- OCID for the adhoc query
- 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.details Get Adhoc Query Adhoc Query Detail] - Detailed information about the adhoc query.
- adhoc_
query_ strid - adhoc_
query_ Sequence[cloudguard.regional_ details Get Adhoc Query Adhoc Query Regional Detail] - Instance level status for each region
- compartment_
id str - Compartment OCID of the 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"}
- id str
- OCID for the adhoc query
- 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>Details - Detailed information about the adhoc query.
- adhoc
Query StringId - adhoc
Query List<Property Map>Regional Details - Instance level status for each region
- compartment
Id String - Compartment OCID of the 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"}
- id String
- OCID for the adhoc query
- 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
GetAdhocQueryAdhocQueryDetail
- Adhoc
Query List<GetResources Adhoc Query Adhoc Query Detail Adhoc Query Resource> - Target information in which adhoc query will be run
- Query string
- The adhoc query expression that is run
- Adhoc
Query []GetResources Adhoc Query Adhoc Query Detail Adhoc Query Resource - Target information in which adhoc query will be run
- Query string
- The adhoc query expression that is run
- adhoc
Query List<GetResources Adhoc Query Adhoc Query Detail Adhoc Query Resource> - Target information in which adhoc query will be run
- query String
- The adhoc query expression that is run
- adhoc
Query GetResources Adhoc Query Adhoc Query Detail 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 Get Adhoc Query Adhoc Query Detail 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
GetAdhocQueryAdhocQueryDetailAdhocQueryResource
- Region string
- Region name
- Resource
Ids List<string> - List of OCIDs on which query needs to be run
- Resource
Type string - Type of resource
- Region string
- Region name
- Resource
Ids []string - List of OCIDs on which query needs to be run
- Resource
Type string - Type of resource
- region String
- Region name
- resource
Ids List<String> - List of OCIDs on which query needs to be run
- resource
Type String - Type of resource
- region string
- Region name
- resource
Ids string[] - List of OCIDs on which query needs to be run
- resource
Type string - Type of resource
- region str
- Region name
- resource_
ids Sequence[str] - List of OCIDs on which query needs to be run
- resource_
type str - Type of resource
- region String
- Region name
- resource
Ids List<String> - List of OCIDs on which query needs to be run
- resource
Type String - Type of resource
GetAdhocQueryAdhocQueryRegionalDetail
- 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
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.