Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
This data source provides the list of Iot Domains in Oracle Cloud Infrastructure Iot service.
Retrieves a list of IoT domains within the specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testIotDomains = oci.oci.getIotIotDomains({
compartmentId: compartmentId,
displayName: iotDomainDisplayName,
id: iotDomainId,
iotDomainGroupId: testIotDomainGroup.id,
state: iotDomainState,
});
import pulumi
import pulumi_oci as oci
test_iot_domains = oci.oci.get_iot_iot_domains(compartment_id=compartment_id,
display_name=iot_domain_display_name,
id=iot_domain_id,
iot_domain_group_id=test_iot_domain_group["id"],
state=iot_domain_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.GetIotIotDomains(ctx, &oci.GetIotIotDomainsArgs{
CompartmentId: compartmentId,
DisplayName: pulumi.StringRef(iotDomainDisplayName),
Id: pulumi.StringRef(iotDomainId),
IotDomainGroupId: pulumi.StringRef(testIotDomainGroup.Id),
State: pulumi.StringRef(iotDomainState),
}, 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 testIotDomains = Oci.Oci.GetIotIotDomains.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = iotDomainDisplayName,
Id = iotDomainId,
IotDomainGroupId = testIotDomainGroup.Id,
State = iotDomainState,
});
});
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.GetIotIotDomainsArgs;
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 testIotDomains = OciFunctions.getIotIotDomains(GetIotIotDomainsArgs.builder()
.compartmentId(compartmentId)
.displayName(iotDomainDisplayName)
.id(iotDomainId)
.iotDomainGroupId(testIotDomainGroup.id())
.state(iotDomainState)
.build());
}
}
variables:
testIotDomains:
fn::invoke:
function: oci:oci:getIotIotDomains
arguments:
compartmentId: ${compartmentId}
displayName: ${iotDomainDisplayName}
id: ${iotDomainId}
iotDomainGroupId: ${testIotDomainGroup.id}
state: ${iotDomainState}
Using getIotIotDomains
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 getIotIotDomains(args: GetIotIotDomainsArgs, opts?: InvokeOptions): Promise<GetIotIotDomainsResult>
function getIotIotDomainsOutput(args: GetIotIotDomainsOutputArgs, opts?: InvokeOptions): Output<GetIotIotDomainsResult>def get_iot_iot_domains(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[GetIotIotDomainsFilter]] = None,
id: Optional[str] = None,
iot_domain_group_id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIotIotDomainsResult
def get_iot_iot_domains_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetIotIotDomainsFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
iot_domain_group_id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIotIotDomainsResult]func GetIotIotDomains(ctx *Context, args *GetIotIotDomainsArgs, opts ...InvokeOption) (*GetIotIotDomainsResult, error)
func GetIotIotDomainsOutput(ctx *Context, args *GetIotIotDomainsOutputArgs, opts ...InvokeOption) GetIotIotDomainsResultOutput> Note: This function is named GetIotIotDomains in the Go SDK.
public static class GetIotIotDomains
{
public static Task<GetIotIotDomainsResult> InvokeAsync(GetIotIotDomainsArgs args, InvokeOptions? opts = null)
public static Output<GetIotIotDomainsResult> Invoke(GetIotIotDomainsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIotIotDomainsResult> getIotIotDomains(GetIotIotDomainsArgs args, InvokeOptions options)
public static Output<GetIotIotDomainsResult> getIotIotDomains(GetIotIotDomainsArgs args, InvokeOptions options)
fn::invoke:
function: oci:oci/getIotIotDomains:getIotIotDomains
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - Filter resources whose display name matches the specified value.
- Filters
List<Get
Iot Iot Domains Filter> - Id string
- Filter resources by OCID. Must be a valid OCID of the resource type.
- Iot
Domain stringGroup Id - Filter resources that match the specified OCID of the IoT domain group.
- State string
- Filter resources whose lifecycleState matches the specified value.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - Filter resources whose display name matches the specified value.
- Filters
[]Get
Iot Iot Domains Filter - Id string
- Filter resources by OCID. Must be a valid OCID of the resource type.
- Iot
Domain stringGroup Id - Filter resources that match the specified OCID of the IoT domain group.
- State string
- Filter resources whose lifecycleState matches the specified value.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name String - Filter resources whose display name matches the specified value.
- filters
List<Get
Iot Iot Domains Filter> - id String
- Filter resources by OCID. Must be a valid OCID of the resource type.
- iot
Domain StringGroup Id - Filter resources that match the specified OCID of the IoT domain group.
- state String
- Filter resources whose lifecycleState matches the specified value.
- compartment
Id string - The OCID of the compartment in which to list resources.
- display
Name string - Filter resources whose display name matches the specified value.
- filters
Get
Iot Iot Domains Filter[] - id string
- Filter resources by OCID. Must be a valid OCID of the resource type.
- iot
Domain stringGroup Id - Filter resources that match the specified OCID of the IoT domain group.
- 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[Get
Iot Iot Domains Filter] - id str
- Filter resources by OCID. Must be a valid OCID of the resource type.
- iot_
domain_ strgroup_ id - Filter resources that match the specified OCID of the IoT domain group.
- state str
- Filter resources whose lifecycleState matches the specified value.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name 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.
- iot
Domain StringGroup Id - Filter resources that match the specified OCID of the IoT domain group.
- state String
- Filter resources whose lifecycleState matches the specified value.
getIotIotDomains Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment corresponding to the resource.
- Iot
Domain List<GetCollections Iot Iot Domains Iot Domain Collection> - The list of iot_domain_collection.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<Get
Iot Iot Domains Filter> - Id string
- The OCID of the resource.
- Iot
Domain stringGroup Id - The OCID of the IoT domain group.
- State string
- The current state of the IoT domain.
- Compartment
Id string - The OCID of the compartment corresponding to the resource.
- Iot
Domain []GetCollections Iot Iot Domains Iot Domain Collection - The list of iot_domain_collection.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]Get
Iot Iot Domains Filter - Id string
- The OCID of the resource.
- Iot
Domain stringGroup Id - The OCID of the IoT domain group.
- State string
- The current state of the IoT domain.
- compartment
Id String - The OCID of the compartment corresponding to the resource.
- iot
Domain List<GetCollections Iot Iot Domains Iot Domain Collection> - The list of iot_domain_collection.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<Get
Iot Iot Domains Filter> - id String
- The OCID of the resource.
- iot
Domain StringGroup Id - The OCID of the IoT domain group.
- state String
- The current state of the IoT domain.
- compartment
Id string - The OCID of the compartment corresponding to the resource.
- iot
Domain GetCollections Iot Iot Domains Iot Domain Collection[] - The list of iot_domain_collection.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Iot Iot Domains Filter[] - id string
- The OCID of the resource.
- iot
Domain stringGroup Id - The OCID of the IoT domain group.
- state string
- The current state of the IoT domain.
- compartment_
id str - The OCID of the compartment corresponding to the resource.
- iot_
domain_ Sequence[Getcollections Iot Iot Domains Iot Domain Collection] - The list of iot_domain_collection.
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Sequence[Get
Iot Iot Domains Filter] - id str
- The OCID of the resource.
- iot_
domain_ strgroup_ id - The OCID of the IoT domain group.
- state str
- The current state of the IoT domain.
- compartment
Id String - The OCID of the compartment corresponding to the resource.
- iot
Domain List<Property Map>Collections - The list of iot_domain_collection.
- display
Name 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.
- iot
Domain StringGroup Id - The OCID of the IoT domain group.
- state String
- The current state of the IoT domain.
Supporting Types
GetIotIotDomainsFilter
GetIotIotDomainsIotDomainCollection
GetIotIotDomainsIotDomainCollectionItem
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Data
Retention List<GetPeriods In Days Iot Iot Domains Iot Domain Collection Item Data Retention Periods In Day> - Data Retention periods
- Db
Allow List<string>Listed Identity Group Names - List of IAM groups of form described in here that are allowed to directly connect to the data host.
- Db
Allowed stringIdentity Domain Host - Host name of identity domain that is used for authenticating connect to data host via ORDS.
- 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.
- Device
Host string - Host name of an IoT domain, where IoT devices can connect to.
- Display
Name string - Filter resources whose display name matches the specified value.
- 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.
- Iot
Domain stringGroup Id - Filter resources that match the specified OCID of the IoT domain group.
- State string
- Filter resources whose lifecycleState matches the specified value.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - 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 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 string - The OCID of the compartment in which to list resources.
- Data
Retention []GetPeriods In Days Iot Iot Domains Iot Domain Collection Item Data Retention Periods In Day - Data Retention periods
- Db
Allow []stringListed Identity Group Names - List of IAM groups of form described in here that are allowed to directly connect to the data host.
- Db
Allowed stringIdentity Domain Host - Host name of identity domain that is used for authenticating connect to data host via ORDS.
- 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.
- Device
Host string - Host name of an IoT domain, where IoT devices can connect to.
- Display
Name string - Filter resources whose display name matches the specified value.
- 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.
- Iot
Domain stringGroup Id - Filter resources that match the specified OCID of the IoT domain group.
- State string
- Filter resources whose lifecycleState matches the specified value.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - 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 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 String - The OCID of the compartment in which to list resources.
- data
Retention List<GetPeriods In Days Iot Iot Domains Iot Domain Collection Item Data Retention Periods In Day> - Data Retention periods
- db
Allow List<String>Listed Identity Group Names - List of IAM groups of form described in here that are allowed to directly connect to the data host.
- db
Allowed StringIdentity Domain Host - Host name of identity domain that is used for authenticating connect to data host via ORDS.
- 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.
- device
Host String - Host name of an IoT domain, where IoT devices can connect to.
- display
Name String - Filter resources whose display name matches the specified value.
- 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.
- iot
Domain StringGroup Id - Filter resources that match the specified OCID of the IoT domain group.
- state String
- Filter resources whose lifecycleState matches the specified value.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - 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 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 string - The OCID of the compartment in which to list resources.
- data
Retention GetPeriods In Days Iot Iot Domains Iot Domain Collection Item Data Retention Periods In Day[] - Data Retention periods
- db
Allow string[]Listed Identity Group Names - List of IAM groups of form described in here that are allowed to directly connect to the data host.
- db
Allowed stringIdentity Domain Host - Host name of identity domain that is used for authenticating connect to data host via ORDS.
- {[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.
- device
Host string - Host name of an IoT domain, where IoT devices can connect to.
- display
Name string - Filter resources whose display name matches the specified value.
- {[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.
- iot
Domain stringGroup Id - Filter resources that match the specified OCID of the IoT domain group.
- state string
- Filter resources whose lifecycleState matches the specified value.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - 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 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_
retention_ Sequence[Getperiods_ in_ days Iot Iot Domains Iot Domain Collection Item Data Retention Periods In Day] - Data Retention periods
- db_
allow_ Sequence[str]listed_ identity_ group_ names - List of IAM groups of form described in here that are allowed to directly connect to the data host.
- db_
allowed_ stridentity_ domain_ host - Host name of identity domain that is used for authenticating connect to data host via ORDS.
- 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.
- device_
host str - Host name of an IoT domain, where IoT devices can connect to.
- display_
name str - Filter resources whose display name matches the specified value.
- 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.
- iot_
domain_ strgroup_ id - Filter resources that match the specified OCID of the IoT domain group.
- state str
- Filter resources whose lifecycleState matches the specified value.
- 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
- compartment
Id String - The OCID of the compartment in which to list resources.
- data
Retention List<Property Map>Periods In Days - Data Retention periods
- db
Allow List<String>Listed Identity Group Names - List of IAM groups of form described in here that are allowed to directly connect to the data host.
- db
Allowed StringIdentity Domain Host - Host name of identity domain that is used for authenticating connect to data host via ORDS.
- 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.
- device
Host String - Host name of an IoT domain, where IoT devices can connect to.
- display
Name String - Filter resources whose display name matches the specified value.
- 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.
- iot
Domain StringGroup Id - Filter resources that match the specified OCID of the IoT domain group.
- state String
- Filter resources whose lifecycleState matches the specified value.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - 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 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
GetIotIotDomainsIotDomainCollectionItemDataRetentionPeriodsInDay
- Historized
Data int - Number of days for which any normalized data sent to IoT devices would be retained for.
- Raw
Command intData - Number of days for which any raw command data sent to IoT devices would be retained for.
- Raw
Data int - Number of days for which any raw data sent to IoT devices would be retained for.
- Rejected
Data int - Number of days for which any data sent to IoT devices would be retained for.
- Historized
Data int - Number of days for which any normalized data sent to IoT devices would be retained for.
- Raw
Command intData - Number of days for which any raw command data sent to IoT devices would be retained for.
- Raw
Data int - Number of days for which any raw data sent to IoT devices would be retained for.
- Rejected
Data int - Number of days for which any data sent to IoT devices would be retained for.
- historized
Data Integer - Number of days for which any normalized data sent to IoT devices would be retained for.
- raw
Command IntegerData - Number of days for which any raw command data sent to IoT devices would be retained for.
- raw
Data Integer - Number of days for which any raw data sent to IoT devices would be retained for.
- rejected
Data Integer - Number of days for which any data sent to IoT devices would be retained for.
- historized
Data number - Number of days for which any normalized data sent to IoT devices would be retained for.
- raw
Command numberData - Number of days for which any raw command data sent to IoT devices would be retained for.
- raw
Data number - Number of days for which any raw data sent to IoT devices would be retained for.
- rejected
Data number - Number of days for which any data sent to IoT devices would be retained for.
- historized_
data int - Number of days for which any normalized data sent to IoT devices would be retained for.
- raw_
command_ intdata - Number of days for which any raw command data sent to IoT devices would be retained for.
- raw_
data int - Number of days for which any raw data sent to IoT devices would be retained for.
- rejected_
data int - Number of days for which any data sent to IoT devices would be retained for.
- historized
Data Number - Number of days for which any normalized data sent to IoT devices would be retained for.
- raw
Command NumberData - Number of days for which any raw command data sent to IoT devices would be retained for.
- raw
Data Number - Number of days for which any raw data sent to IoT devices would be retained for.
- rejected
Data Number - Number of days for which any data sent to IoT devices would be retained for.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
