1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. oci
  6. getDdfsInstances
Viewing docs for Oracle Cloud Infrastructure v4.22.0
published on Wednesday, Aug 26, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v4.22.0
published on Wednesday, Aug 26, 2026 by Pulumi

    This data source provides the list of Instances in Oracle Cloud Infrastructure Ddfs service.

    Gets a list of Instances.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testInstances = oci.oci.getDdfsInstances({
        compartmentId: compartmentId,
        displayName: instanceDisplayName,
        id: instanceId,
        state: instanceState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_instances = oci.oci.get_ddfs_instances(compartment_id=compartment_id,
        display_name=instance_display_name,
        id=instance_id,
        state=instance_state)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/oci"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oci.GetDdfsInstances(ctx, &oci.GetDdfsInstancesArgs{
    			CompartmentId: pulumi.StringRef(compartmentId),
    			DisplayName:   pulumi.StringRef(instanceDisplayName),
    			Id:            pulumi.StringRef(instanceId),
    			State:         pulumi.StringRef(instanceState),
    		}, 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 testInstances = Oci.Oci.GetDdfsInstances.Invoke(new()
        {
            CompartmentId = compartmentId,
            DisplayName = instanceDisplayName,
            Id = instanceId,
            State = instanceState,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.oci.OciFunctions;
    import com.pulumi.oci.oci.inputs.GetDdfsInstancesArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testInstances = OciFunctions.getDdfsInstances(GetDdfsInstancesArgs.builder()
                .compartmentId(compartmentId)
                .displayName(instanceDisplayName)
                .id(instanceId)
                .state(instanceState)
                .build());
    
        }
    }
    
    variables:
      testInstances:
        fn::invoke:
          function: oci:oci:getDdfsInstances
          arguments:
            compartmentId: ${compartmentId}
            displayName: ${instanceDisplayName}
            id: ${instanceId}
            state: ${instanceState}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_oci_getddfsinstances" "testInstances" {
      compartment_id = compartmentId
      display_name   = instanceDisplayName
      id             = instanceId
      state          = instanceState
    }
    

    Using getDdfsInstances

    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 getDdfsInstances(args: GetDdfsInstancesArgs, opts?: InvokeOptions): Promise<GetDdfsInstancesResult>
    function getDdfsInstancesOutput(args: GetDdfsInstancesOutputArgs, opts?: InvokeOutputOptions): Output<GetDdfsInstancesResult>
    def get_ddfs_instances(compartment_id: Optional[str] = None,
                           display_name: Optional[str] = None,
                           filters: Optional[Sequence[GetDdfsInstancesFilter]] = None,
                           id: Optional[str] = None,
                           state: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetDdfsInstancesResult
    def get_ddfs_instances_output(compartment_id: pulumi.Input[Optional[str]] = None,
                           display_name: pulumi.Input[Optional[str]] = None,
                           filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetDdfsInstancesFilterArgs]]]] = None,
                           id: pulumi.Input[Optional[str]] = None,
                           state: pulumi.Input[Optional[str]] = None,
                           opts: Optional[InvokeOutputOptions] = None) -> Output[GetDdfsInstancesResult]
    func GetDdfsInstances(ctx *Context, args *GetDdfsInstancesArgs, opts ...InvokeOption) (*GetDdfsInstancesResult, error)
    func GetDdfsInstancesOutput(ctx *Context, args *GetDdfsInstancesOutputArgs, opts ...InvokeOption) GetDdfsInstancesResultOutput

    > Note: This function is named GetDdfsInstances in the Go SDK.

    public static class GetDdfsInstances 
    {
        public static Task<GetDdfsInstancesResult> InvokeAsync(GetDdfsInstancesArgs args, InvokeOptions? opts = null)
        public static Output<GetDdfsInstancesResult> Invoke(GetDdfsInstancesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetDdfsInstancesResult> Invoke(GetDdfsInstancesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetDdfsInstancesResult> getDdfsInstances(GetDdfsInstancesArgs args, InvokeOptions options)
    public static Output<GetDdfsInstancesResult> getDdfsInstances(GetDdfsInstancesArgs args, InvokeOptions options)
    public static Output<GetDdfsInstancesResult> getDdfsInstances(GetDdfsInstancesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: oci:oci/getDdfsInstances:getDdfsInstances
      arguments:
        # arguments dictionary
    data "oci_oci_get_ddfs_instances" "name" {
        # arguments
    }

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the given display name exactly.
    Filters List<GetDdfsInstancesFilter>
    Id string
    The OCID of the Instance.
    State string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the given display name exactly.
    Filters []GetDdfsInstancesFilter
    Id string
    The OCID of the Instance.
    State string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    compartment_id string
    The OCID of the compartment in which to list resources.
    display_name string
    A filter to return only resources that match the given display name exactly.
    filters list(object)
    id string
    The OCID of the Instance.
    state string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    compartmentId String
    The OCID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the given display name exactly.
    filters List<GetDdfsInstancesFilter>
    id String
    The OCID of the Instance.
    state String
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    compartmentId string
    The OCID of the compartment in which to list resources.
    displayName string
    A filter to return only resources that match the given display name exactly.
    filters GetDdfsInstancesFilter[]
    id string
    The OCID of the Instance.
    state string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    compartment_id str
    The OCID of the compartment in which to list resources.
    display_name str
    A filter to return only resources that match the given display name exactly.
    filters Sequence[GetDdfsInstancesFilter]
    id str
    The OCID of the Instance.
    state str
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    compartmentId String
    The OCID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the given display name exactly.
    filters List<Property Map>
    id String
    The OCID of the Instance.
    state String
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.

    getDdfsInstances Result

    The following output properties are available:

    InstanceCollections List<GetDdfsInstancesInstanceCollection>
    The list of instance_collection.
    CompartmentId string
    The OCID of the compartment.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable.
    Filters List<GetDdfsInstancesFilter>
    Id string
    The OCID of the Instance.
    State string
    The current state of the Instance.
    InstanceCollections []GetDdfsInstancesInstanceCollection
    The list of instance_collection.
    CompartmentId string
    The OCID of the compartment.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable.
    Filters []GetDdfsInstancesFilter
    Id string
    The OCID of the Instance.
    State string
    The current state of the Instance.
    instance_collections list(object)
    The list of instance_collection.
    compartment_id string
    The OCID of the compartment.
    display_name string
    A user-friendly name. Does not have to be unique, and it's changeable.
    filters list(object)
    id string
    The OCID of the Instance.
    state string
    The current state of the Instance.
    instanceCollections List<GetDdfsInstancesInstanceCollection>
    The list of instance_collection.
    compartmentId String
    The OCID of the compartment.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable.
    filters List<GetDdfsInstancesFilter>
    id String
    The OCID of the Instance.
    state String
    The current state of the Instance.
    instanceCollections GetDdfsInstancesInstanceCollection[]
    The list of instance_collection.
    compartmentId string
    The OCID of the compartment.
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable.
    filters GetDdfsInstancesFilter[]
    id string
    The OCID of the Instance.
    state string
    The current state of the Instance.
    instance_collections Sequence[GetDdfsInstancesInstanceCollection]
    The list of instance_collection.
    compartment_id str
    The OCID of the compartment.
    display_name str
    A user-friendly name. Does not have to be unique, and it's changeable.
    filters Sequence[GetDdfsInstancesFilter]
    id str
    The OCID of the Instance.
    state str
    The current state of the Instance.
    instanceCollections List<Property Map>
    The list of instance_collection.
    compartmentId String
    The OCID of the compartment.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable.
    filters List<Property Map>
    id String
    The OCID of the Instance.
    state String
    The current state of the Instance.

    Supporting Types

    GetDdfsInstancesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name string
    values list(string)
    regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetDdfsInstancesInstanceCollection

    GetDdfsInstancesInstanceCollectionItem

    CompartmentId string
    The OCID of the compartment in which to list resources.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    A filter to return only resources that match the given display name exactly.
    FhirServiceEndpoint string
    The HTTPS endpoint for the instance's Fast Healthcare Interoperability Resources (FHIR) service. Example: https://example.ddfs.oraclecloud.com/api/fhir
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the Instance.
    IdcsUrl string
    The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the instance. Use the IDCS tenant URL from your identity domain configuration. Example: https://idcs-1234567890.identity.oraclecloud.com
    LifecycleDetails string
    A message that describes the current state of the Instance in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    PublicIp string
    The public IP address for the instance's FHIR service endpoint.
    State string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.example-key": "example-value"}
    TimeCreated string
    The date and time the Instance was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the Instance was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    CompartmentId string
    The OCID of the compartment in which to list resources.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    A filter to return only resources that match the given display name exactly.
    FhirServiceEndpoint string
    The HTTPS endpoint for the instance's Fast Healthcare Interoperability Resources (FHIR) service. Example: https://example.ddfs.oraclecloud.com/api/fhir
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the Instance.
    IdcsUrl string
    The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the instance. Use the IDCS tenant URL from your identity domain configuration. Example: https://idcs-1234567890.identity.oraclecloud.com
    LifecycleDetails string
    A message that describes the current state of the Instance in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    PublicIp string
    The public IP address for the instance's FHIR service endpoint.
    State string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.example-key": "example-value"}
    TimeCreated string
    The date and time the Instance was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the Instance was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartment_id string
    The OCID of the compartment in which to list resources.
    defined_tags map(string)
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name string
    A filter to return only resources that match the given display name exactly.
    fhir_service_endpoint string
    The HTTPS endpoint for the instance's Fast Healthcare Interoperability Resources (FHIR) service. Example: https://example.ddfs.oraclecloud.com/api/fhir
    freeform_tags map(string)
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the Instance.
    idcs_url string
    The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the instance. Use the IDCS tenant URL from your identity domain configuration. Example: https://idcs-1234567890.identity.oraclecloud.com
    lifecycle_details string
    A message that describes the current state of the Instance in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    public_ip string
    The public IP address for the instance's FHIR service endpoint.
    state string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    system_tags map(string)
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.example-key": "example-value"}
    time_created string
    The date and time the Instance was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_updated string
    The date and time the Instance was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    The OCID of the compartment in which to list resources.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    A filter to return only resources that match the given display name exactly.
    fhirServiceEndpoint String
    The HTTPS endpoint for the instance's Fast Healthcare Interoperability Resources (FHIR) service. Example: https://example.ddfs.oraclecloud.com/api/fhir
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the Instance.
    idcsUrl String
    The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the instance. Use the IDCS tenant URL from your identity domain configuration. Example: https://idcs-1234567890.identity.oraclecloud.com
    lifecycleDetails String
    A message that describes the current state of the Instance in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    publicIp String
    The public IP address for the instance's FHIR service endpoint.
    state String
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.example-key": "example-value"}
    timeCreated String
    The date and time the Instance was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the Instance was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId string
    The OCID of the compartment in which to list resources.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    A filter to return only resources that match the given display name exactly.
    fhirServiceEndpoint string
    The HTTPS endpoint for the instance's Fast Healthcare Interoperability Resources (FHIR) service. Example: https://example.ddfs.oraclecloud.com/api/fhir
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the Instance.
    idcsUrl string
    The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the instance. Use the IDCS tenant URL from your identity domain configuration. Example: https://idcs-1234567890.identity.oraclecloud.com
    lifecycleDetails string
    A message that describes the current state of the Instance in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    publicIp string
    The public IP address for the instance's FHIR service endpoint.
    state string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.example-key": "example-value"}
    timeCreated string
    The date and time the Instance was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time the Instance was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartment_id str
    The OCID of the compartment in which to list resources.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    A filter to return only resources that match the given display name exactly.
    fhir_service_endpoint str
    The HTTPS endpoint for the instance's Fast Healthcare Interoperability Resources (FHIR) service. Example: https://example.ddfs.oraclecloud.com/api/fhir
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The OCID of the Instance.
    idcs_url str
    The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the instance. Use the IDCS tenant URL from your identity domain configuration. Example: https://idcs-1234567890.identity.oraclecloud.com
    lifecycle_details str
    A message that describes the current state of the Instance in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    public_ip str
    The public IP address for the instance's FHIR service endpoint.
    state str
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.example-key": "example-value"}
    time_created str
    The date and time the Instance was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_updated str
    The date and time the Instance was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    The OCID of the compartment in which to list resources.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    A filter to return only resources that match the given display name exactly.
    fhirServiceEndpoint String
    The HTTPS endpoint for the instance's Fast Healthcare Interoperability Resources (FHIR) service. Example: https://example.ddfs.oraclecloud.com/api/fhir
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the Instance.
    idcsUrl String
    The Oracle Identity Cloud Service (IDCS) URL for the identity domain associated with the instance. Use the IDCS tenant URL from your identity domain configuration. Example: https://idcs-1234567890.identity.oraclecloud.com
    lifecycleDetails String
    A message that describes the current state of the Instance in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    publicIp String
    The public IP address for the instance's FHIR service endpoint.
    state String
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.example-key": "example-value"}
    timeCreated String
    The date and time the Instance was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the Instance was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.22.0
    published on Wednesday, Aug 26, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial