import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * This data source provides the list of Targets in Oracle Cloud Infrastructure Cloud Guard service.
 *
 * Returns a list of targets (TargetCollection resource with page of TargetSummary
 * resources) for the target identified by compartmentId. By default, only the target
 * associated with the compartment is returned. Setting compartmentIdInSubtree to true
 * returns the entire hierarchy of targets in subcompartments.
 *
 * The parameter `accessLevel` specifies whether to return only those compartments for which the
 * requestor has INSPECT permissions on at least one resource directly
 * or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if
 * Principal doesn't have access to even one of the child compartments. This is valid only when
 * `compartmentIdInSubtree` is set to `true`.
 *
 * The parameter `compartmentIdInSubtree` applies when you perform ListTargets on the
 * `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned.
 * To get a full list of all targets in compartments and subcompartments in the tenancy (root compartment),
 * set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testTargets = oci.cloudguard.getGuardTargets({
 *     compartmentId: compartmentId,
 *     accessLevel: targetAccessLevel,
 *     compartmentIdInSubtree: targetCompartmentIdInSubtree === "true",
 *     displayName: targetDisplayName,
 *     isNonSecurityZoneTargetsOnlyQuery: targetIsNonSecurityZoneTargetsOnlyQuery === "true",
 *     state: targetState,
 * });
 * ```
 */
export declare function getGuardTargets(args: GetGuardTargetsArgs, opts?: pulumi.InvokeOptions): Promise<GetGuardTargetsResult>;
/**
 * A collection of arguments for invoking getGuardTargets.
 */
export interface GetGuardTargetsArgs {
    /**
     * Valid values are `RESTRICTED` and `ACCESSIBLE`. Default is `RESTRICTED`. Setting this to `ACCESSIBLE` returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to `RESTRICTED` permissions are checked and no partial results are displayed.
     */
    accessLevel?: string;
    /**
     * The OCID of the compartment in which to list resources.
     */
    compartmentId: string;
    /**
     * Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the setting of `accessLevel`.
     */
    compartmentIdInSubtree?: boolean;
    /**
     * A filter to return only resources that match the entire display name given.
     */
    displayName?: string;
    filters?: inputs.CloudGuard.GetGuardTargetsFilter[];
    /**
     * Default is false. When set to true, only the targets that would be deleted as part of security zone creation will be returned.
     */
    isNonSecurityZoneTargetsOnlyQuery?: boolean;
    /**
     * The field lifecycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.
     */
    state?: string;
}
/**
 * A collection of values returned by getGuardTargets.
 */
export interface GetGuardTargetsResult {
    readonly accessLevel?: string;
    /**
     * Compartment OCID
     */
    readonly compartmentId: string;
    readonly compartmentIdInSubtree?: boolean;
    /**
     * Responder rule display name
     */
    readonly displayName?: string;
    readonly filters?: outputs.CloudGuard.GetGuardTargetsFilter[];
    /**
     * The provider-assigned unique ID for this managed resource.
     */
    readonly id: string;
    readonly isNonSecurityZoneTargetsOnlyQuery?: boolean;
    /**
     * The current lifecycle state of the responder rule
     */
    readonly state?: string;
    /**
     * The list of target_collection.
     */
    readonly targetCollections: outputs.CloudGuard.GetGuardTargetsTargetCollection[];
}
/**
 * This data source provides the list of Targets in Oracle Cloud Infrastructure Cloud Guard service.
 *
 * Returns a list of targets (TargetCollection resource with page of TargetSummary
 * resources) for the target identified by compartmentId. By default, only the target
 * associated with the compartment is returned. Setting compartmentIdInSubtree to true
 * returns the entire hierarchy of targets in subcompartments.
 *
 * The parameter `accessLevel` specifies whether to return only those compartments for which the
 * requestor has INSPECT permissions on at least one resource directly
 * or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if
 * Principal doesn't have access to even one of the child compartments. This is valid only when
 * `compartmentIdInSubtree` is set to `true`.
 *
 * The parameter `compartmentIdInSubtree` applies when you perform ListTargets on the
 * `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned.
 * To get a full list of all targets in compartments and subcompartments in the tenancy (root compartment),
 * set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testTargets = oci.cloudguard.getGuardTargets({
 *     compartmentId: compartmentId,
 *     accessLevel: targetAccessLevel,
 *     compartmentIdInSubtree: targetCompartmentIdInSubtree === "true",
 *     displayName: targetDisplayName,
 *     isNonSecurityZoneTargetsOnlyQuery: targetIsNonSecurityZoneTargetsOnlyQuery === "true",
 *     state: targetState,
 * });
 * ```
 */
export declare function getGuardTargetsOutput(args: GetGuardTargetsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetGuardTargetsResult>;
/**
 * A collection of arguments for invoking getGuardTargets.
 */
export interface GetGuardTargetsOutputArgs {
    /**
     * Valid values are `RESTRICTED` and `ACCESSIBLE`. Default is `RESTRICTED`. Setting this to `ACCESSIBLE` returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to `RESTRICTED` permissions are checked and no partial results are displayed.
     */
    accessLevel?: pulumi.Input<string | undefined>;
    /**
     * The OCID of the compartment in which to list resources.
     */
    compartmentId: pulumi.Input<string>;
    /**
     * Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the setting of `accessLevel`.
     */
    compartmentIdInSubtree?: pulumi.Input<boolean | undefined>;
    /**
     * A filter to return only resources that match the entire display name given.
     */
    displayName?: pulumi.Input<string | undefined>;
    filters?: pulumi.Input<pulumi.Input<inputs.CloudGuard.GetGuardTargetsFilterArgs>[] | undefined>;
    /**
     * Default is false. When set to true, only the targets that would be deleted as part of security zone creation will be returned.
     */
    isNonSecurityZoneTargetsOnlyQuery?: pulumi.Input<boolean | undefined>;
    /**
     * The field lifecycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.
     */
    state?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getGuardTargets.d.ts.map