Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Identity.getDomains
Explore with Pulumi AI
This data source provides the list of Domains in Oracle Cloud Infrastructure Identity service.
List all domains that are homed or have a replica region in current region.
- If any internal error occurs, return 500 INTERNAL SERVER ERROR.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDomains = oci.Identity.getDomains({
    compartmentId: compartmentId,
    displayName: domainDisplayName,
    homeRegionUrl: domainHomeRegionUrl,
    isHiddenOnLogin: domainIsHiddenOnLogin,
    licenseType: domainLicenseType,
    name: domainName,
    state: domainState,
    type: domainType,
    url: domainUrl,
});
import pulumi
import pulumi_oci as oci
test_domains = oci.Identity.get_domains(compartment_id=compartment_id,
    display_name=domain_display_name,
    home_region_url=domain_home_region_url,
    is_hidden_on_login=domain_is_hidden_on_login,
    license_type=domain_license_type,
    name=domain_name,
    state=domain_state,
    type=domain_type,
    url=domain_url)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/identity"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := identity.GetDomains(ctx, &identity.GetDomainsArgs{
			CompartmentId:   compartmentId,
			DisplayName:     pulumi.StringRef(domainDisplayName),
			HomeRegionUrl:   pulumi.StringRef(domainHomeRegionUrl),
			IsHiddenOnLogin: pulumi.BoolRef(domainIsHiddenOnLogin),
			LicenseType:     pulumi.StringRef(domainLicenseType),
			Name:            pulumi.StringRef(domainName),
			State:           pulumi.StringRef(domainState),
			Type:            pulumi.StringRef(domainType),
			Url:             pulumi.StringRef(domainUrl),
		}, 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 testDomains = Oci.Identity.GetDomains.Invoke(new()
    {
        CompartmentId = compartmentId,
        DisplayName = domainDisplayName,
        HomeRegionUrl = domainHomeRegionUrl,
        IsHiddenOnLogin = domainIsHiddenOnLogin,
        LicenseType = domainLicenseType,
        Name = domainName,
        State = domainState,
        Type = domainType,
        Url = domainUrl,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Identity.IdentityFunctions;
import com.pulumi.oci.Identity.inputs.GetDomainsArgs;
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 testDomains = IdentityFunctions.getDomains(GetDomainsArgs.builder()
            .compartmentId(compartmentId)
            .displayName(domainDisplayName)
            .homeRegionUrl(domainHomeRegionUrl)
            .isHiddenOnLogin(domainIsHiddenOnLogin)
            .licenseType(domainLicenseType)
            .name(domainName)
            .state(domainState)
            .type(domainType)
            .url(domainUrl)
            .build());
    }
}
variables:
  testDomains:
    fn::invoke:
      function: oci:Identity:getDomains
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${domainDisplayName}
        homeRegionUrl: ${domainHomeRegionUrl}
        isHiddenOnLogin: ${domainIsHiddenOnLogin}
        licenseType: ${domainLicenseType}
        name: ${domainName}
        state: ${domainState}
        type: ${domainType}
        url: ${domainUrl}
Using getDomains
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 getDomains(args: GetDomainsArgs, opts?: InvokeOptions): Promise<GetDomainsResult>
function getDomainsOutput(args: GetDomainsOutputArgs, opts?: InvokeOptions): Output<GetDomainsResult>def get_domains(compartment_id: Optional[str] = None,
                display_name: Optional[str] = None,
                filters: Optional[Sequence[GetDomainsFilter]] = None,
                home_region_url: Optional[str] = None,
                is_hidden_on_login: Optional[bool] = None,
                license_type: Optional[str] = None,
                name: Optional[str] = None,
                state: Optional[str] = None,
                type: Optional[str] = None,
                url: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetDomainsResult
def get_domains_output(compartment_id: Optional[pulumi.Input[str]] = None,
                display_name: Optional[pulumi.Input[str]] = None,
                filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDomainsFilterArgs]]]] = None,
                home_region_url: Optional[pulumi.Input[str]] = None,
                is_hidden_on_login: Optional[pulumi.Input[bool]] = None,
                license_type: Optional[pulumi.Input[str]] = None,
                name: Optional[pulumi.Input[str]] = None,
                state: Optional[pulumi.Input[str]] = None,
                type: Optional[pulumi.Input[str]] = None,
                url: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetDomainsResult]func GetDomains(ctx *Context, args *GetDomainsArgs, opts ...InvokeOption) (*GetDomainsResult, error)
func GetDomainsOutput(ctx *Context, args *GetDomainsOutputArgs, opts ...InvokeOption) GetDomainsResultOutput> Note: This function is named GetDomains in the Go SDK.
public static class GetDomains 
{
    public static Task<GetDomainsResult> InvokeAsync(GetDomainsArgs args, InvokeOptions? opts = null)
    public static Output<GetDomainsResult> Invoke(GetDomainsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDomainsResult> getDomains(GetDomainsArgs args, InvokeOptions options)
public static Output<GetDomainsResult> getDomains(GetDomainsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Identity/getDomains:getDomains
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment (remember that the tenancy is simply the root compartment).
- DisplayName string
- The mutable display name of the domain
- Filters
List<GetDomains Filter> 
- HomeRegion stringUrl 
- The region specific domain URL
- bool
- Indicate if the domain is visible at login screen or not
- LicenseType string
- The domain license type
- Name string
- A filter to only return resources that match the given name exactly.
- State string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- Type string
- The domain type
- Url string
- The region agnostic domain URL
- CompartmentId string
- The OCID of the compartment (remember that the tenancy is simply the root compartment).
- DisplayName string
- The mutable display name of the domain
- Filters
[]GetDomains Filter 
- HomeRegion stringUrl 
- The region specific domain URL
- bool
- Indicate if the domain is visible at login screen or not
- LicenseType string
- The domain license type
- Name string
- A filter to only return resources that match the given name exactly.
- State string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- Type string
- The domain type
- Url string
- The region agnostic domain URL
- compartmentId String
- The OCID of the compartment (remember that the tenancy is simply the root compartment).
- displayName String
- The mutable display name of the domain
- filters
List<GetDomains Filter> 
- homeRegion StringUrl 
- The region specific domain URL
- Boolean
- Indicate if the domain is visible at login screen or not
- licenseType String
- The domain license type
- name String
- A filter to only return resources that match the given name exactly.
- state String
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- type String
- The domain type
- url String
- The region agnostic domain URL
- compartmentId string
- The OCID of the compartment (remember that the tenancy is simply the root compartment).
- displayName string
- The mutable display name of the domain
- filters
GetDomains Filter[] 
- homeRegion stringUrl 
- The region specific domain URL
- boolean
- Indicate if the domain is visible at login screen or not
- licenseType string
- The domain license type
- name string
- A filter to only return resources that match the given name exactly.
- state string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- type string
- The domain type
- url string
- The region agnostic domain URL
- compartment_id str
- The OCID of the compartment (remember that the tenancy is simply the root compartment).
- display_name str
- The mutable display name of the domain
- filters
Sequence[GetDomains Filter] 
- home_region_ strurl 
- The region specific domain URL
- bool
- Indicate if the domain is visible at login screen or not
- license_type str
- The domain license type
- name str
- A filter to only return resources that match the given name exactly.
- state str
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- type str
- The domain type
- url str
- The region agnostic domain URL
- compartmentId String
- The OCID of the compartment (remember that the tenancy is simply the root compartment).
- displayName String
- The mutable display name of the domain
- filters List<Property Map>
- homeRegion StringUrl 
- The region specific domain URL
- Boolean
- Indicate if the domain is visible at login screen or not
- licenseType String
- The domain license type
- name String
- A filter to only return resources that match the given name exactly.
- state String
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- type String
- The domain type
- url String
- The region agnostic domain URL
getDomains Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment containing the domain.
- Domains
List<GetDomains Domain> 
- The list of domains.
- Id string
- The provider-assigned unique ID for this managed resource.
- DisplayName string
- The mutable display name of the domain
- Filters
List<GetDomains Filter> 
- HomeRegion stringUrl 
- Region specific domain URL.
- bool
- Indicates whether domain is hidden on login screen or not.
- LicenseType string
- The License type of Domain
- Name string
- State string
- The current state.
- Type string
- The type of the domain.
- Url string
- Region agnostic domain URL.
- CompartmentId string
- The OCID of the compartment containing the domain.
- Domains
[]GetDomains Domain 
- The list of domains.
- Id string
- The provider-assigned unique ID for this managed resource.
- DisplayName string
- The mutable display name of the domain
- Filters
[]GetDomains Filter 
- HomeRegion stringUrl 
- Region specific domain URL.
- bool
- Indicates whether domain is hidden on login screen or not.
- LicenseType string
- The License type of Domain
- Name string
- State string
- The current state.
- Type string
- The type of the domain.
- Url string
- Region agnostic domain URL.
- compartmentId String
- The OCID of the compartment containing the domain.
- domains
List<GetDomains Domain> 
- The list of domains.
- id String
- The provider-assigned unique ID for this managed resource.
- displayName String
- The mutable display name of the domain
- filters
List<GetDomains Filter> 
- homeRegion StringUrl 
- Region specific domain URL.
- Boolean
- Indicates whether domain is hidden on login screen or not.
- licenseType String
- The License type of Domain
- name String
- state String
- The current state.
- type String
- The type of the domain.
- url String
- Region agnostic domain URL.
- compartmentId string
- The OCID of the compartment containing the domain.
- domains
GetDomains Domain[] 
- The list of domains.
- id string
- The provider-assigned unique ID for this managed resource.
- displayName string
- The mutable display name of the domain
- filters
GetDomains Filter[] 
- homeRegion stringUrl 
- Region specific domain URL.
- boolean
- Indicates whether domain is hidden on login screen or not.
- licenseType string
- The License type of Domain
- name string
- state string
- The current state.
- type string
- The type of the domain.
- url string
- Region agnostic domain URL.
- compartment_id str
- The OCID of the compartment containing the domain.
- domains
Sequence[GetDomains Domain] 
- The list of domains.
- id str
- The provider-assigned unique ID for this managed resource.
- display_name str
- The mutable display name of the domain
- filters
Sequence[GetDomains Filter] 
- home_region_ strurl 
- Region specific domain URL.
- bool
- Indicates whether domain is hidden on login screen or not.
- license_type str
- The License type of Domain
- name str
- state str
- The current state.
- type str
- The type of the domain.
- url str
- Region agnostic domain URL.
- compartmentId String
- The OCID of the compartment containing the domain.
- domains List<Property Map>
- The list of domains.
- id String
- The provider-assigned unique ID for this managed resource.
- displayName String
- The mutable display name of the domain
- filters List<Property Map>
- homeRegion StringUrl 
- Region specific domain URL.
- Boolean
- Indicates whether domain is hidden on login screen or not.
- licenseType String
- The License type of Domain
- name String
- state String
- The current state.
- type String
- The type of the domain.
- url String
- Region agnostic domain URL.
Supporting Types
GetDomainsDomain  
- AdminEmail string
- AdminFirst stringName 
- AdminLast stringName 
- AdminUser stringName 
- CompartmentId string
- The OCID of the compartment (remember that the tenancy is simply the root compartment).
- 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
- The domain descripition
- DisplayName string
- The mutable display name of the domain
- 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"}
- HomeRegion string
- The home region for the domain. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1
- HomeRegion stringUrl 
- The region specific domain URL
- Id string
- The OCID of the domain
- bool
- Indicate if the domain is visible at login screen or not
- IsNotification boolBypassed 
- IsPrimary boolEmail Required 
- LicenseType string
- The domain license type
- LifecycleDetails string
- Any additional details about the current state of the Domain.
- ReplicaRegions List<GetDomains Domain Replica Region> 
- The regions domain is replication to.
- State string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- TimeCreated string
- Date and time the domain was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- Type string
- The domain type
- Url string
- The region agnostic domain URL
- AdminEmail string
- AdminFirst stringName 
- AdminLast stringName 
- AdminUser stringName 
- CompartmentId string
- The OCID of the compartment (remember that the tenancy is simply the root compartment).
- 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
- The domain descripition
- DisplayName string
- The mutable display name of the domain
- 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"}
- HomeRegion string
- The home region for the domain. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1
- HomeRegion stringUrl 
- The region specific domain URL
- Id string
- The OCID of the domain
- bool
- Indicate if the domain is visible at login screen or not
- IsNotification boolBypassed 
- IsPrimary boolEmail Required 
- LicenseType string
- The domain license type
- LifecycleDetails string
- Any additional details about the current state of the Domain.
- ReplicaRegions []GetDomains Domain Replica Region 
- The regions domain is replication to.
- State string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- TimeCreated string
- Date and time the domain was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- Type string
- The domain type
- Url string
- The region agnostic domain URL
- adminEmail String
- adminFirst StringName 
- adminLast StringName 
- adminUser StringName 
- compartmentId String
- The OCID of the compartment (remember that the tenancy is simply the root compartment).
- 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
- The domain descripition
- displayName String
- The mutable display name of the domain
- 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"}
- homeRegion String
- The home region for the domain. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1
- homeRegion StringUrl 
- The region specific domain URL
- id String
- The OCID of the domain
- Boolean
- Indicate if the domain is visible at login screen or not
- isNotification BooleanBypassed 
- isPrimary BooleanEmail Required 
- licenseType String
- The domain license type
- lifecycleDetails String
- Any additional details about the current state of the Domain.
- replicaRegions List<GetDomains Domain Replica Region> 
- The regions domain is replication to.
- state String
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- timeCreated String
- Date and time the domain was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- type String
- The domain type
- url String
- The region agnostic domain URL
- adminEmail string
- adminFirst stringName 
- adminLast stringName 
- adminUser stringName 
- compartmentId string
- The OCID of the compartment (remember that the tenancy is simply the root compartment).
- {[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
- The domain descripition
- displayName string
- The mutable display name of the domain
- {[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"}
- homeRegion string
- The home region for the domain. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1
- homeRegion stringUrl 
- The region specific domain URL
- id string
- The OCID of the domain
- boolean
- Indicate if the domain is visible at login screen or not
- isNotification booleanBypassed 
- isPrimary booleanEmail Required 
- licenseType string
- The domain license type
- lifecycleDetails string
- Any additional details about the current state of the Domain.
- replicaRegions GetDomains Domain Replica Region[] 
- The regions domain is replication to.
- state string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- timeCreated string
- Date and time the domain was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- type string
- The domain type
- url string
- The region agnostic domain URL
- admin_email str
- admin_first_ strname 
- admin_last_ strname 
- admin_user_ strname 
- compartment_id str
- The OCID of the compartment (remember that the tenancy is simply the root compartment).
- 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
- The domain descripition
- display_name str
- The mutable display name of the domain
- 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"}
- home_region str
- The home region for the domain. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1
- home_region_ strurl 
- The region specific domain URL
- id str
- The OCID of the domain
- bool
- Indicate if the domain is visible at login screen or not
- is_notification_ boolbypassed 
- is_primary_ boolemail_ required 
- license_type str
- The domain license type
- lifecycle_details str
- Any additional details about the current state of the Domain.
- replica_regions Sequence[GetDomains Domain Replica Region] 
- The regions domain is replication to.
- state str
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- time_created str
- Date and time the domain was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- type str
- The domain type
- url str
- The region agnostic domain URL
- adminEmail String
- adminFirst StringName 
- adminLast StringName 
- adminUser StringName 
- compartmentId String
- The OCID of the compartment (remember that the tenancy is simply the root compartment).
- 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
- The domain descripition
- displayName String
- The mutable display name of the domain
- 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"}
- homeRegion String
- The home region for the domain. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1
- homeRegion StringUrl 
- The region specific domain URL
- id String
- The OCID of the domain
- Boolean
- Indicate if the domain is visible at login screen or not
- isNotification BooleanBypassed 
- isPrimary BooleanEmail Required 
- licenseType String
- The domain license type
- lifecycleDetails String
- Any additional details about the current state of the Domain.
- replicaRegions List<Property Map>
- The regions domain is replication to.
- state String
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- timeCreated String
- Date and time the domain was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- type String
- The domain type
- url String
- The region agnostic domain URL
GetDomainsDomainReplicaRegion    
- Region string
- A REPLICATION_ENABLED region, e.g. us-ashburn-1. See Regions and Availability Domains for the full list of supported region names.
- State string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- Url string
- The region agnostic domain URL
- Region string
- A REPLICATION_ENABLED region, e.g. us-ashburn-1. See Regions and Availability Domains for the full list of supported region names.
- State string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- Url string
- The region agnostic domain URL
- region String
- A REPLICATION_ENABLED region, e.g. us-ashburn-1. See Regions and Availability Domains for the full list of supported region names.
- state String
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- url String
- The region agnostic domain URL
- region string
- A REPLICATION_ENABLED region, e.g. us-ashburn-1. See Regions and Availability Domains for the full list of supported region names.
- state string
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- url string
- The region agnostic domain URL
- region str
- A REPLICATION_ENABLED region, e.g. us-ashburn-1. See Regions and Availability Domains for the full list of supported region names.
- state str
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- url str
- The region agnostic domain URL
- region String
- A REPLICATION_ENABLED region, e.g. us-ashburn-1. See Regions and Availability Domains for the full list of supported region names.
- state String
- A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
- url String
- The region agnostic domain URL
GetDomainsFilter  
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.