1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. getIotIotDomainGroups
Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi

    This data source provides the list of Iot Domain Groups in Oracle Cloud Infrastructure Iot service.

    Retrieves a list of IoT domain groups within the specified compartment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testIotDomainGroups = oci.oci.getIotIotDomainGroups({
        compartmentId: compartmentId,
        displayName: iotDomainGroupDisplayName,
        id: iotDomainGroupId,
        state: iotDomainGroupState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_iot_domain_groups = oci.oci.get_iot_iot_domain_groups(compartment_id=compartment_id,
        display_name=iot_domain_group_display_name,
        id=iot_domain_group_id,
        state=iot_domain_group_state)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/oci"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oci.GetIotIotDomainGroups(ctx, &oci.GetIotIotDomainGroupsArgs{
    			CompartmentId: compartmentId,
    			DisplayName:   pulumi.StringRef(iotDomainGroupDisplayName),
    			Id:            pulumi.StringRef(iotDomainGroupId),
    			State:         pulumi.StringRef(iotDomainGroupState),
    		}, 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 testIotDomainGroups = Oci.Oci.GetIotIotDomainGroups.Invoke(new()
        {
            CompartmentId = compartmentId,
            DisplayName = iotDomainGroupDisplayName,
            Id = iotDomainGroupId,
            State = iotDomainGroupState,
        });
    
    });
    
    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.GetIotIotDomainGroupsArgs;
    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 testIotDomainGroups = OciFunctions.getIotIotDomainGroups(GetIotIotDomainGroupsArgs.builder()
                .compartmentId(compartmentId)
                .displayName(iotDomainGroupDisplayName)
                .id(iotDomainGroupId)
                .state(iotDomainGroupState)
                .build());
    
        }
    }
    
    variables:
      testIotDomainGroups:
        fn::invoke:
          function: oci:oci:getIotIotDomainGroups
          arguments:
            compartmentId: ${compartmentId}
            displayName: ${iotDomainGroupDisplayName}
            id: ${iotDomainGroupId}
            state: ${iotDomainGroupState}
    

    Using getIotIotDomainGroups

    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 getIotIotDomainGroups(args: GetIotIotDomainGroupsArgs, opts?: InvokeOptions): Promise<GetIotIotDomainGroupsResult>
    function getIotIotDomainGroupsOutput(args: GetIotIotDomainGroupsOutputArgs, opts?: InvokeOptions): Output<GetIotIotDomainGroupsResult>
    def get_iot_iot_domain_groups(compartment_id: Optional[str] = None,
                                  display_name: Optional[str] = None,
                                  filters: Optional[Sequence[GetIotIotDomainGroupsFilter]] = None,
                                  id: Optional[str] = None,
                                  state: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetIotIotDomainGroupsResult
    def get_iot_iot_domain_groups_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                  display_name: Optional[pulumi.Input[str]] = None,
                                  filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetIotIotDomainGroupsFilterArgs]]]] = None,
                                  id: Optional[pulumi.Input[str]] = None,
                                  state: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetIotIotDomainGroupsResult]
    func GetIotIotDomainGroups(ctx *Context, args *GetIotIotDomainGroupsArgs, opts ...InvokeOption) (*GetIotIotDomainGroupsResult, error)
    func GetIotIotDomainGroupsOutput(ctx *Context, args *GetIotIotDomainGroupsOutputArgs, opts ...InvokeOption) GetIotIotDomainGroupsResultOutput

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

    public static class GetIotIotDomainGroups 
    {
        public static Task<GetIotIotDomainGroupsResult> InvokeAsync(GetIotIotDomainGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetIotIotDomainGroupsResult> Invoke(GetIotIotDomainGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIotIotDomainGroupsResult> getIotIotDomainGroups(GetIotIotDomainGroupsArgs args, InvokeOptions options)
    public static Output<GetIotIotDomainGroupsResult> getIotIotDomainGroups(GetIotIotDomainGroupsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:oci/getIotIotDomainGroups:getIotIotDomainGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment in which to list resources.
    DisplayName string
    Filter resources whose display name matches the specified value.
    Filters List<GetIotIotDomainGroupsFilter>
    Id string
    Filter resources by OCID. Must be a valid OCID of the resource type.
    State string
    Filter resources whose lifecycleState matches the specified value.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    DisplayName string
    Filter resources whose display name matches the specified value.
    Filters []GetIotIotDomainGroupsFilter
    Id string
    Filter resources by OCID. Must be a valid OCID of the resource type.
    State string
    Filter resources whose lifecycleState matches the specified value.
    compartmentId String
    The OCID of the compartment in which to list resources.
    displayName String
    Filter resources whose display name matches the specified value.
    filters List<GetIotIotDomainGroupsFilter>
    id String
    Filter resources by OCID. Must be a valid OCID of the resource type.
    state String
    Filter resources whose lifecycleState matches the specified value.
    compartmentId string
    The OCID of the compartment in which to list resources.
    displayName string
    Filter resources whose display name matches the specified value.
    filters GetIotIotDomainGroupsFilter[]
    id string
    Filter resources by OCID. Must be a valid OCID of the resource type.
    state string
    Filter resources whose lifecycleState matches the specified value.
    compartment_id str
    The OCID of the compartment in which to list resources.
    display_name str
    Filter resources whose display name matches the specified value.
    filters Sequence[GetIotIotDomainGroupsFilter]
    id str
    Filter resources by OCID. Must be a valid OCID of the resource type.
    state str
    Filter resources whose lifecycleState matches the specified value.
    compartmentId String
    The OCID of the compartment in which to list resources.
    displayName String
    Filter resources whose display name matches the specified value.
    filters List<Property Map>
    id String
    Filter resources by OCID. Must be a valid OCID of the resource type.
    state String
    Filter resources whose lifecycleState matches the specified value.

    getIotIotDomainGroups Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment corresponding to the resource.
    IotDomainGroupCollections List<GetIotIotDomainGroupsIotDomainGroupCollection>
    The list of iot_domain_group_collection.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    Filters List<GetIotIotDomainGroupsFilter>
    Id string
    The OCID of the resource.
    State string
    The current state of an IoT Domain Group.
    CompartmentId string
    The OCID of the compartment corresponding to the resource.
    IotDomainGroupCollections []GetIotIotDomainGroupsIotDomainGroupCollection
    The list of iot_domain_group_collection.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    Filters []GetIotIotDomainGroupsFilter
    Id string
    The OCID of the resource.
    State string
    The current state of an IoT Domain Group.
    compartmentId String
    The OCID of the compartment corresponding to the resource.
    iotDomainGroupCollections List<GetIotIotDomainGroupsIotDomainGroupCollection>
    The list of iot_domain_group_collection.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    filters List<GetIotIotDomainGroupsFilter>
    id String
    The OCID of the resource.
    state String
    The current state of an IoT Domain Group.
    compartmentId string
    The OCID of the compartment corresponding to the resource.
    iotDomainGroupCollections GetIotIotDomainGroupsIotDomainGroupCollection[]
    The list of iot_domain_group_collection.
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    filters GetIotIotDomainGroupsFilter[]
    id string
    The OCID of the resource.
    state string
    The current state of an IoT Domain Group.
    compartment_id str
    The OCID of the compartment corresponding to the resource.
    iot_domain_group_collections Sequence[GetIotIotDomainGroupsIotDomainGroupCollection]
    The list of iot_domain_group_collection.
    display_name str
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    filters Sequence[GetIotIotDomainGroupsFilter]
    id str
    The OCID of the resource.
    state str
    The current state of an IoT Domain Group.
    compartmentId String
    The OCID of the compartment corresponding to the resource.
    iotDomainGroupCollections List<Property Map>
    The list of iot_domain_group_collection.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    filters List<Property Map>
    id String
    The OCID of the resource.
    state String
    The current state of an IoT Domain Group.

    Supporting Types

    GetIotIotDomainGroupsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []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

    GetIotIotDomainGroupsIotDomainGroupCollection

    GetIotIotDomainGroupsIotDomainGroupCollectionItem

    CompartmentId string
    The OCID of the compartment in which to list resources.
    DataHost string
    The host name of the database corresponding to the IoT Domain group.
    DbAllowListedVcnIds List<string>
    This is an array of VCN OCID (virtual cloud network Oracle Cloud ID) that is allowed to connect the data host.
    DbConnectionString string
    The connection string used to connect to the data host associated with the IoT domain group.
    DbTokenScope string
    The token scope used to connect to the data host associated with the IoT domain group.
    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"}
    Description string
    A short description of the resource.
    DisplayName string
    Filter resources whose display name matches the specified value.
    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
    Filter resources by OCID. Must be a valid OCID of the resource type.
    State string
    Filter resources whose lifecycleState matches the specified value.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time when the resource was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time when the resource was last 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.
    DataHost string
    The host name of the database corresponding to the IoT Domain group.
    DbAllowListedVcnIds []string
    This is an array of VCN OCID (virtual cloud network Oracle Cloud ID) that is allowed to connect the data host.
    DbConnectionString string
    The connection string used to connect to the data host associated with the IoT domain group.
    DbTokenScope string
    The token scope used to connect to the data host associated with the IoT domain group.
    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"}
    Description string
    A short description of the resource.
    DisplayName string
    Filter resources whose display name matches the specified value.
    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
    Filter resources by OCID. Must be a valid OCID of the resource type.
    State string
    Filter resources whose lifecycleState matches the specified value.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time when the resource was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time when the resource was last 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.
    dataHost String
    The host name of the database corresponding to the IoT Domain group.
    dbAllowListedVcnIds List<String>
    This is an array of VCN OCID (virtual cloud network Oracle Cloud ID) that is allowed to connect the data host.
    dbConnectionString String
    The connection string used to connect to the data host associated with the IoT domain group.
    dbTokenScope String
    The token scope used to connect to the data host associated with the IoT domain group.
    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"}
    description String
    A short description of the resource.
    displayName String
    Filter resources whose display name matches the specified value.
    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
    Filter resources by OCID. Must be a valid OCID of the resource type.
    state String
    Filter resources whose lifecycleState matches the specified value.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time when the resource was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time when the resource was last 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.
    dataHost string
    The host name of the database corresponding to the IoT Domain group.
    dbAllowListedVcnIds string[]
    This is an array of VCN OCID (virtual cloud network Oracle Cloud ID) that is allowed to connect the data host.
    dbConnectionString string
    The connection string used to connect to the data host associated with the IoT domain group.
    dbTokenScope string
    The token scope used to connect to the data host associated with the IoT domain group.
    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"}
    description string
    A short description of the resource.
    displayName string
    Filter resources whose display name matches the specified value.
    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
    Filter resources by OCID. Must be a valid OCID of the resource type.
    state string
    Filter resources whose lifecycleState matches the specified value.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time when the resource was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time when the resource was last 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.
    data_host str
    The host name of the database corresponding to the IoT Domain group.
    db_allow_listed_vcn_ids Sequence[str]
    This is an array of VCN OCID (virtual cloud network Oracle Cloud ID) that is allowed to connect the data host.
    db_connection_string str
    The connection string used to connect to the data host associated with the IoT domain group.
    db_token_scope str
    The token scope used to connect to the data host associated with the IoT domain group.
    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"}
    description str
    A short description of the resource.
    display_name str
    Filter resources whose display name matches the specified value.
    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
    Filter resources by OCID. Must be a valid OCID of the resource type.
    state str
    Filter resources whose lifecycleState matches the specified value.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time when the resource was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_updated str
    The date and time when the resource was last 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.
    dataHost String
    The host name of the database corresponding to the IoT Domain group.
    dbAllowListedVcnIds List<String>
    This is an array of VCN OCID (virtual cloud network Oracle Cloud ID) that is allowed to connect the data host.
    dbConnectionString String
    The connection string used to connect to the data host associated with the IoT domain group.
    dbTokenScope String
    The token scope used to connect to the data host associated with the IoT domain group.
    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"}
    description String
    A short description of the resource.
    displayName String
    Filter resources whose display name matches the specified value.
    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
    Filter resources by OCID. Must be a valid OCID of the resource type.
    state String
    Filter resources whose lifecycleState matches the specified value.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time when the resource was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time when the resource was last 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
    Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate