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 Stacks in Oracle Cloud Infrastructure Resource Manager service. * * Lists stacks according to the specified filter. * For more information, see * [Listing Stacks](https://docs.cloud.oracle.com/iaas/Content/ResourceManager/Tasks/list-stacks.htm). * - If called using the compartment ID, returns all stacks in the specified compartment. * - If called using the stack ID, returns the specified stack. (See also [GetStack](https://docs.cloud.oracle.com/iaas/api/#/en/resourcemanager/latest/Stack/GetStack).) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testStacks = oci.resourcemanager.getStacks({ * compartmentId: compartmentId, * displayName: stackDisplayName, * id: stackId, * state: stackState, * }); * ``` */ export declare function getStacks(args: GetStacksArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getStacks. */ export interface GetStacksArgs { /** * The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) on which to filter. */ compartmentId: string; /** * Display name on which to query. */ displayName?: string; filters?: inputs.ResourceManager.GetStacksFilter[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) on which to query for a stack. */ id?: string; /** * A filter that returns only those resources that match the specified lifecycle state. The state value is case-insensitive. For more information about stack lifecycle states, see [Key Concepts](https://docs.cloud.oracle.com/iaas/Content/ResourceManager/Concepts/resourcemanager.htm#concepts__StackStates). */ state?: string; } /** * A collection of values returned by getStacks. */ export interface GetStacksResult { /** * Unique identifier ([OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) for the compartment where the stack is located. */ readonly compartmentId: string; /** * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ readonly displayName?: string; readonly filters?: outputs.ResourceManager.GetStacksFilter[]; /** * Unique identifier ([OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) for the stack. */ readonly id?: string; /** * The list of stacks. */ readonly stacks: outputs.ResourceManager.GetStacksStack[]; /** * The current lifecycle state of the stack. For more information about stack lifecycle states in Resource Manager, see [Key Concepts](https://docs.cloud.oracle.com/iaas/Content/ResourceManager/Concepts/resourcemanager.htm#concepts__StackStates). */ readonly state?: string; } /** * This data source provides the list of Stacks in Oracle Cloud Infrastructure Resource Manager service. * * Lists stacks according to the specified filter. * For more information, see * [Listing Stacks](https://docs.cloud.oracle.com/iaas/Content/ResourceManager/Tasks/list-stacks.htm). * - If called using the compartment ID, returns all stacks in the specified compartment. * - If called using the stack ID, returns the specified stack. (See also [GetStack](https://docs.cloud.oracle.com/iaas/api/#/en/resourcemanager/latest/Stack/GetStack).) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testStacks = oci.resourcemanager.getStacks({ * compartmentId: compartmentId, * displayName: stackDisplayName, * id: stackId, * state: stackState, * }); * ``` */ export declare function getStacksOutput(args: GetStacksOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getStacks. */ export interface GetStacksOutputArgs { /** * The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) on which to filter. */ compartmentId: pulumi.Input; /** * Display name on which to query. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) on which to query for a stack. */ id?: pulumi.Input; /** * A filter that returns only those resources that match the specified lifecycle state. The state value is case-insensitive. For more information about stack lifecycle states, see [Key Concepts](https://docs.cloud.oracle.com/iaas/Content/ResourceManager/Concepts/resourcemanager.htm#concepts__StackStates). */ state?: pulumi.Input; } //# sourceMappingURL=getStacks.d.ts.map