Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DevOps.getDeployEnvironment
Explore with Pulumi AI
This data source provides details about a specific Deploy Environment resource in Oracle Cloud Infrastructure Devops service.
Retrieves a deployment environment by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDeployEnvironment = oci.DevOps.getDeployEnvironment({
    deployEnvironmentId: testDeployEnvironmentOciDevopsDeployEnvironment.id,
});
import pulumi
import pulumi_oci as oci
test_deploy_environment = oci.DevOps.get_deploy_environment(deploy_environment_id=test_deploy_environment_oci_devops_deploy_environment["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/devops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := devops.GetDeployEnvironment(ctx, &devops.GetDeployEnvironmentArgs{
			DeployEnvironmentId: testDeployEnvironmentOciDevopsDeployEnvironment.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 testDeployEnvironment = Oci.DevOps.GetDeployEnvironment.Invoke(new()
    {
        DeployEnvironmentId = testDeployEnvironmentOciDevopsDeployEnvironment.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DevOps.DevOpsFunctions;
import com.pulumi.oci.DevOps.inputs.GetDeployEnvironmentArgs;
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 testDeployEnvironment = DevOpsFunctions.getDeployEnvironment(GetDeployEnvironmentArgs.builder()
            .deployEnvironmentId(testDeployEnvironmentOciDevopsDeployEnvironment.id())
            .build());
    }
}
variables:
  testDeployEnvironment:
    fn::invoke:
      function: oci:DevOps:getDeployEnvironment
      arguments:
        deployEnvironmentId: ${testDeployEnvironmentOciDevopsDeployEnvironment.id}
Using getDeployEnvironment
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 getDeployEnvironment(args: GetDeployEnvironmentArgs, opts?: InvokeOptions): Promise<GetDeployEnvironmentResult>
function getDeployEnvironmentOutput(args: GetDeployEnvironmentOutputArgs, opts?: InvokeOptions): Output<GetDeployEnvironmentResult>def get_deploy_environment(deploy_environment_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetDeployEnvironmentResult
def get_deploy_environment_output(deploy_environment_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetDeployEnvironmentResult]func LookupDeployEnvironment(ctx *Context, args *LookupDeployEnvironmentArgs, opts ...InvokeOption) (*LookupDeployEnvironmentResult, error)
func LookupDeployEnvironmentOutput(ctx *Context, args *LookupDeployEnvironmentOutputArgs, opts ...InvokeOption) LookupDeployEnvironmentResultOutput> Note: This function is named LookupDeployEnvironment in the Go SDK.
public static class GetDeployEnvironment 
{
    public static Task<GetDeployEnvironmentResult> InvokeAsync(GetDeployEnvironmentArgs args, InvokeOptions? opts = null)
    public static Output<GetDeployEnvironmentResult> Invoke(GetDeployEnvironmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDeployEnvironmentResult> getDeployEnvironment(GetDeployEnvironmentArgs args, InvokeOptions options)
public static Output<GetDeployEnvironmentResult> getDeployEnvironment(GetDeployEnvironmentArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DevOps/getDeployEnvironment:getDeployEnvironment
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DeployEnvironment stringId 
- Unique environment identifier.
- DeployEnvironment stringId 
- Unique environment identifier.
- deployEnvironment StringId 
- Unique environment identifier.
- deployEnvironment stringId 
- Unique environment identifier.
- deploy_environment_ strid 
- Unique environment identifier.
- deployEnvironment StringId 
- Unique environment identifier.
getDeployEnvironment Result
The following output properties are available:
- ClusterId string
- The OCID of the Kubernetes cluster.
- CompartmentId string
- The OCID of a compartment.
- ComputeInstance List<GetGroup Selectors Deploy Environment Compute Instance Group Selector> 
- A collection of selectors. The combination of instances matching the selectors are included in the instance group.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
- DeployEnvironment stringId 
- DeployEnvironment stringType 
- Deployment environment type.
- Description string
- Optional description about the deployment environment.
- DisplayName string
- Deployment environment display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
- FunctionId string
- The OCID of the Function.
- Id string
- Unique identifier that is immutable on creation.
- LifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- NetworkChannels List<GetDeploy Environment Network Channel> 
- Specifies the configuration needed when the target Oracle Cloud Infrastructure resource, i.e., OKE cluster, resides in customer's private network.
- ProjectId string
- The OCID of a project.
- State string
- The current state of the deployment environment.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- Time the deployment environment was created. Format defined by RFC3339.
- TimeUpdated string
- Time the deployment environment was updated. Format defined by RFC3339.
- ClusterId string
- The OCID of the Kubernetes cluster.
- CompartmentId string
- The OCID of a compartment.
- ComputeInstance []GetGroup Selectors Deploy Environment Compute Instance Group Selector 
- A collection of selectors. The combination of instances matching the selectors are included in the instance group.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
- DeployEnvironment stringId 
- DeployEnvironment stringType 
- Deployment environment type.
- Description string
- Optional description about the deployment environment.
- DisplayName string
- Deployment environment display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
- FunctionId string
- The OCID of the Function.
- Id string
- Unique identifier that is immutable on creation.
- LifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- NetworkChannels []GetDeploy Environment Network Channel 
- Specifies the configuration needed when the target Oracle Cloud Infrastructure resource, i.e., OKE cluster, resides in customer's private network.
- ProjectId string
- The OCID of a project.
- State string
- The current state of the deployment environment.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- Time the deployment environment was created. Format defined by RFC3339.
- TimeUpdated string
- Time the deployment environment was updated. Format defined by RFC3339.
- clusterId String
- The OCID of the Kubernetes cluster.
- compartmentId String
- The OCID of a compartment.
- computeInstance List<GetGroup Selectors Deploy Environment Compute Instance Group Selector> 
- A collection of selectors. The combination of instances matching the selectors are included in the instance group.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
- deployEnvironment StringId 
- deployEnvironment StringType 
- Deployment environment type.
- description String
- Optional description about the deployment environment.
- displayName String
- Deployment environment display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
- functionId String
- The OCID of the Function.
- id String
- Unique identifier that is immutable on creation.
- lifecycleDetails String
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- networkChannels List<GetDeploy Environment Network Channel> 
- Specifies the configuration needed when the target Oracle Cloud Infrastructure resource, i.e., OKE cluster, resides in customer's private network.
- projectId String
- The OCID of a project.
- state String
- The current state of the deployment environment.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- Time the deployment environment was created. Format defined by RFC3339.
- timeUpdated String
- Time the deployment environment was updated. Format defined by RFC3339.
- clusterId string
- The OCID of the Kubernetes cluster.
- compartmentId string
- The OCID of a compartment.
- computeInstance GetGroup Selectors Deploy Environment Compute Instance Group Selector[] 
- A collection of selectors. The combination of instances matching the selectors are included in the instance group.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
- deployEnvironment stringId 
- deployEnvironment stringType 
- Deployment environment type.
- description string
- Optional description about the deployment environment.
- displayName string
- Deployment environment display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
- functionId string
- The OCID of the Function.
- id string
- Unique identifier that is immutable on creation.
- lifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- networkChannels GetDeploy Environment Network Channel[] 
- Specifies the configuration needed when the target Oracle Cloud Infrastructure resource, i.e., OKE cluster, resides in customer's private network.
- projectId string
- The OCID of a project.
- state string
- The current state of the deployment environment.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- Time the deployment environment was created. Format defined by RFC3339.
- timeUpdated string
- Time the deployment environment was updated. Format defined by RFC3339.
- cluster_id str
- The OCID of the Kubernetes cluster.
- compartment_id str
- The OCID of a compartment.
- compute_instance_ Sequence[Getgroup_ selectors Deploy Environment Compute Instance Group Selector] 
- A collection of selectors. The combination of instances matching the selectors are included in the instance group.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
- deploy_environment_ strid 
- deploy_environment_ strtype 
- Deployment environment type.
- description str
- Optional description about the deployment environment.
- display_name str
- Deployment environment display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
- function_id str
- The OCID of the Function.
- id str
- Unique identifier that is immutable on creation.
- lifecycle_details str
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- network_channels Sequence[GetDeploy Environment Network Channel] 
- Specifies the configuration needed when the target Oracle Cloud Infrastructure resource, i.e., OKE cluster, resides in customer's private network.
- project_id str
- The OCID of a project.
- state str
- The current state of the deployment environment.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_created str
- Time the deployment environment was created. Format defined by RFC3339.
- time_updated str
- Time the deployment environment was updated. Format defined by RFC3339.
- clusterId String
- The OCID of the Kubernetes cluster.
- compartmentId String
- The OCID of a compartment.
- computeInstance List<Property Map>Group Selectors 
- A collection of selectors. The combination of instances matching the selectors are included in the instance group.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
- deployEnvironment StringId 
- deployEnvironment StringType 
- Deployment environment type.
- description String
- Optional description about the deployment environment.
- displayName String
- Deployment environment display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
- functionId String
- The OCID of the Function.
- id String
- Unique identifier that is immutable on creation.
- lifecycleDetails String
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- networkChannels List<Property Map>
- Specifies the configuration needed when the target Oracle Cloud Infrastructure resource, i.e., OKE cluster, resides in customer's private network.
- projectId String
- The OCID of a project.
- state String
- The current state of the deployment environment.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- Time the deployment environment was created. Format defined by RFC3339.
- timeUpdated String
- Time the deployment environment was updated. Format defined by RFC3339.
Supporting Types
GetDeployEnvironmentComputeInstanceGroupSelector      
- Items
List<GetDeploy Environment Compute Instance Group Selector Item> 
- A list of selectors for the instance group. UNION operator is used for combining the instances selected by each selector.
- Items
[]GetDeploy Environment Compute Instance Group Selector Item 
- A list of selectors for the instance group. UNION operator is used for combining the instances selected by each selector.
- items
List<GetDeploy Environment Compute Instance Group Selector Item> 
- A list of selectors for the instance group. UNION operator is used for combining the instances selected by each selector.
- items
GetDeploy Environment Compute Instance Group Selector Item[] 
- A list of selectors for the instance group. UNION operator is used for combining the instances selected by each selector.
- items
Sequence[GetDeploy Environment Compute Instance Group Selector Item] 
- A list of selectors for the instance group. UNION operator is used for combining the instances selected by each selector.
- items List<Property Map>
- A list of selectors for the instance group. UNION operator is used for combining the instances selected by each selector.
GetDeployEnvironmentComputeInstanceGroupSelectorItem       
- ComputeInstance List<string>Ids 
- Compute instance OCID identifiers that are members of this group.
- Query string
- Query expression confirming to the Oracle Cloud Infrastructure Search Language syntax to select compute instances for the group. The language is documented at https://docs.oracle.com/en-us/iaas/Content/Search/Concepts/querysyntax.htm
- Region string
- Region identifier referred by the deployment environment. Region identifiers are listed at https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm
- SelectorType string
- Defines the type of the instance selector for the group.
- ComputeInstance []stringIds 
- Compute instance OCID identifiers that are members of this group.
- Query string
- Query expression confirming to the Oracle Cloud Infrastructure Search Language syntax to select compute instances for the group. The language is documented at https://docs.oracle.com/en-us/iaas/Content/Search/Concepts/querysyntax.htm
- Region string
- Region identifier referred by the deployment environment. Region identifiers are listed at https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm
- SelectorType string
- Defines the type of the instance selector for the group.
- computeInstance List<String>Ids 
- Compute instance OCID identifiers that are members of this group.
- query String
- Query expression confirming to the Oracle Cloud Infrastructure Search Language syntax to select compute instances for the group. The language is documented at https://docs.oracle.com/en-us/iaas/Content/Search/Concepts/querysyntax.htm
- region String
- Region identifier referred by the deployment environment. Region identifiers are listed at https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm
- selectorType String
- Defines the type of the instance selector for the group.
- computeInstance string[]Ids 
- Compute instance OCID identifiers that are members of this group.
- query string
- Query expression confirming to the Oracle Cloud Infrastructure Search Language syntax to select compute instances for the group. The language is documented at https://docs.oracle.com/en-us/iaas/Content/Search/Concepts/querysyntax.htm
- region string
- Region identifier referred by the deployment environment. Region identifiers are listed at https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm
- selectorType string
- Defines the type of the instance selector for the group.
- compute_instance_ Sequence[str]ids 
- Compute instance OCID identifiers that are members of this group.
- query str
- Query expression confirming to the Oracle Cloud Infrastructure Search Language syntax to select compute instances for the group. The language is documented at https://docs.oracle.com/en-us/iaas/Content/Search/Concepts/querysyntax.htm
- region str
- Region identifier referred by the deployment environment. Region identifiers are listed at https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm
- selector_type str
- Defines the type of the instance selector for the group.
- computeInstance List<String>Ids 
- Compute instance OCID identifiers that are members of this group.
- query String
- Query expression confirming to the Oracle Cloud Infrastructure Search Language syntax to select compute instances for the group. The language is documented at https://docs.oracle.com/en-us/iaas/Content/Search/Concepts/querysyntax.htm
- region String
- Region identifier referred by the deployment environment. Region identifiers are listed at https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm
- selectorType String
- Defines the type of the instance selector for the group.
GetDeployEnvironmentNetworkChannel    
- NetworkChannel stringType 
- Network channel type.
- NsgIds List<string>
- An array of network security group OCIDs.
- SubnetId string
- The OCID of the subnet where VNIC resources will be created for private endpoint.
- NetworkChannel stringType 
- Network channel type.
- NsgIds []string
- An array of network security group OCIDs.
- SubnetId string
- The OCID of the subnet where VNIC resources will be created for private endpoint.
- networkChannel StringType 
- Network channel type.
- nsgIds List<String>
- An array of network security group OCIDs.
- subnetId String
- The OCID of the subnet where VNIC resources will be created for private endpoint.
- networkChannel stringType 
- Network channel type.
- nsgIds string[]
- An array of network security group OCIDs.
- subnetId string
- The OCID of the subnet where VNIC resources will be created for private endpoint.
- network_channel_ strtype 
- Network channel type.
- nsg_ids Sequence[str]
- An array of network security group OCIDs.
- subnet_id str
- The OCID of the subnet where VNIC resources will be created for private endpoint.
- networkChannel StringType 
- Network channel type.
- nsgIds List<String>
- An array of network security group OCIDs.
- subnetId String
- The OCID of the subnet where VNIC resources will be created for private endpoint.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.