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 Deployments in Oracle Cloud Infrastructure Devops service. * * Returns a list of deployments. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDeployments = oci.devops.getDeployments({ * compartmentId: compartmentId, * deployPipelineId: testDeployPipeline.id, * displayName: deploymentDisplayName, * id: deploymentId, * projectId: testProject.id, * state: deploymentState, * timeCreatedGreaterThanOrEqualTo: deploymentTimeCreatedGreaterThanOrEqualTo, * timeCreatedLessThan: deploymentTimeCreatedLessThan, * }); * ``` */ export declare function getDeployments(args?: GetDeploymentsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDeployments. */ export interface GetDeploymentsArgs { /** * The OCID of the compartment in which to list resources. */ compartmentId?: string; /** * The ID of the parent pipeline. */ deployPipelineId?: string; /** * A filter to return only resources that match the entire display name given. */ displayName?: string; filters?: inputs.DevOps.GetDeploymentsFilter[]; /** * Unique identifier or OCID for listing a single resource by ID. */ id?: string; /** * unique project identifier */ projectId?: string; /** * A filter to return only Deployments that matches the given lifecycleState. */ state?: string; /** * Search for DevOps resources that were created after a specific date. Specifying this parameter corresponding to `timeCreatedGreaterThanOrEqualTo` parameter will retrieve all security assessments created after the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ timeCreatedGreaterThanOrEqualTo?: string; /** * Search for DevOps resources that were created before a specific date. Specifying this parameter corresponding to `timeCreatedLessThan` parameter will retrieve all assessments created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ timeCreatedLessThan?: string; } /** * A collection of values returned by getDeployments. */ export interface GetDeploymentsResult { /** * The OCID of a compartment. */ readonly compartmentId?: string; /** * The OCID of a pipeline. */ readonly deployPipelineId?: string; /** * The list of deployment_collection. */ readonly deploymentCollections: outputs.DevOps.GetDeploymentsDeploymentCollection[]; /** * Deployment identifier which can be renamed and is not necessarily unique. Avoid entering confidential information. */ readonly displayName?: string; readonly filters?: outputs.DevOps.GetDeploymentsFilter[]; /** * Unique identifier that is immutable on creation. */ readonly id?: string; /** * The OCID of a project. */ readonly projectId?: string; /** * The current state of the deployment. */ readonly state?: string; readonly timeCreatedGreaterThanOrEqualTo?: string; readonly timeCreatedLessThan?: string; } /** * This data source provides the list of Deployments in Oracle Cloud Infrastructure Devops service. * * Returns a list of deployments. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDeployments = oci.devops.getDeployments({ * compartmentId: compartmentId, * deployPipelineId: testDeployPipeline.id, * displayName: deploymentDisplayName, * id: deploymentId, * projectId: testProject.id, * state: deploymentState, * timeCreatedGreaterThanOrEqualTo: deploymentTimeCreatedGreaterThanOrEqualTo, * timeCreatedLessThan: deploymentTimeCreatedLessThan, * }); * ``` */ export declare function getDeploymentsOutput(args?: GetDeploymentsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDeployments. */ export interface GetDeploymentsOutputArgs { /** * The OCID of the compartment in which to list resources. */ compartmentId?: pulumi.Input; /** * The ID of the parent pipeline. */ deployPipelineId?: pulumi.Input; /** * A filter to return only resources that match the entire display name given. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * Unique identifier or OCID for listing a single resource by ID. */ id?: pulumi.Input; /** * unique project identifier */ projectId?: pulumi.Input; /** * A filter to return only Deployments that matches the given lifecycleState. */ state?: pulumi.Input; /** * Search for DevOps resources that were created after a specific date. Specifying this parameter corresponding to `timeCreatedGreaterThanOrEqualTo` parameter will retrieve all security assessments created after the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ timeCreatedGreaterThanOrEqualTo?: pulumi.Input; /** * Search for DevOps resources that were created before a specific date. Specifying this parameter corresponding to `timeCreatedLessThan` parameter will retrieve all assessments created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339). */ timeCreatedLessThan?: pulumi.Input; } //# sourceMappingURL=getDeployments.d.ts.map