Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Identity.getDomain
Explore with Pulumi AI
This data source provides details about a specific Domain resource in Oracle Cloud Infrastructure Identity service.
Get the specified domain’s information.
- If the domain doesn’t exists, returns 404 NOT FOUND.
- If any internal error occurs, returns 500 INTERNAL SERVER ERROR.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDomain = oci.Identity.getDomain({
    domainId: testDomainOciIdentityDomain.id,
});
import pulumi
import pulumi_oci as oci
test_domain = oci.Identity.get_domain(domain_id=test_domain_oci_identity_domain["id"])
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.GetDomain(ctx, &identity.GetDomainArgs{
			DomainId: testDomainOciIdentityDomain.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testDomain = Oci.Identity.GetDomain.Invoke(new()
    {
        DomainId = testDomainOciIdentityDomain.Id,
    });
});
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.GetDomainArgs;
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 testDomain = IdentityFunctions.getDomain(GetDomainArgs.builder()
            .domainId(testDomainOciIdentityDomain.id())
            .build());
    }
}
variables:
  testDomain:
    fn::invoke:
      function: oci:Identity:getDomain
      arguments:
        domainId: ${testDomainOciIdentityDomain.id}
Using getDomain
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 getDomain(args: GetDomainArgs, opts?: InvokeOptions): Promise<GetDomainResult>
function getDomainOutput(args: GetDomainOutputArgs, opts?: InvokeOptions): Output<GetDomainResult>def get_domain(domain_id: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetDomainResult
def get_domain_output(domain_id: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetDomainResult]func LookupDomain(ctx *Context, args *LookupDomainArgs, opts ...InvokeOption) (*LookupDomainResult, error)
func LookupDomainOutput(ctx *Context, args *LookupDomainOutputArgs, opts ...InvokeOption) LookupDomainResultOutput> Note: This function is named LookupDomain in the Go SDK.
public static class GetDomain 
{
    public static Task<GetDomainResult> InvokeAsync(GetDomainArgs args, InvokeOptions? opts = null)
    public static Output<GetDomainResult> Invoke(GetDomainInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDomainResult> getDomain(GetDomainArgs args, InvokeOptions options)
public static Output<GetDomainResult> getDomain(GetDomainArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Identity/getDomain:getDomain
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DomainId string
- The OCID of the domain
- DomainId string
- The OCID of the domain
- domainId String
- The OCID of the domain
- domainId string
- The OCID of the domain
- domain_id str
- The OCID of the domain
- domainId String
- The OCID of the domain
getDomain Result
The following output properties are available:
- AdminEmail string
- AdminFirst stringName 
- AdminLast stringName 
- AdminUser stringName 
- CompartmentId string
- The OCID of the compartment containing the domain.
- 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
- DomainId string
- 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 
- Region specific domain URL.
- Id string
- The OCID of the domain
- bool
- Indicates whether domain is hidden on login screen or not.
- IsNotification boolBypassed 
- IsPrimary boolEmail Required 
- LicenseType string
- The License type of Domain
- LifecycleDetails string
- Any additional details about the current state of the Domain.
- ReplicaRegions List<GetDomain Replica Region> 
- The regions domain is replication to.
- State string
- The current state.
- 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 type of the domain.
- Url string
- Region agnostic domain URL.
- AdminEmail string
- AdminFirst stringName 
- AdminLast stringName 
- AdminUser stringName 
- CompartmentId string
- The OCID of the compartment containing the domain.
- 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
- DomainId string
- 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 
- Region specific domain URL.
- Id string
- The OCID of the domain
- bool
- Indicates whether domain is hidden on login screen or not.
- IsNotification boolBypassed 
- IsPrimary boolEmail Required 
- LicenseType string
- The License type of Domain
- LifecycleDetails string
- Any additional details about the current state of the Domain.
- ReplicaRegions []GetDomain Replica Region 
- The regions domain is replication to.
- State string
- The current state.
- 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 type of the domain.
- Url string
- Region agnostic domain URL.
- adminEmail String
- adminFirst StringName 
- adminLast StringName 
- adminUser StringName 
- compartmentId String
- The OCID of the compartment containing the domain.
- 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
- domainId String
- 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 
- Region specific domain URL.
- id String
- The OCID of the domain
- Boolean
- Indicates whether domain is hidden on login screen or not.
- isNotification BooleanBypassed 
- isPrimary BooleanEmail Required 
- licenseType String
- The License type of Domain
- lifecycleDetails String
- Any additional details about the current state of the Domain.
- replicaRegions List<GetDomain Replica Region> 
- The regions domain is replication to.
- state String
- The current state.
- 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 type of the domain.
- url String
- Region agnostic domain URL.
- adminEmail string
- adminFirst stringName 
- adminLast stringName 
- adminUser stringName 
- compartmentId string
- The OCID of the compartment containing the domain.
- {[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
- domainId string
- {[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 
- Region specific domain URL.
- id string
- The OCID of the domain
- boolean
- Indicates whether domain is hidden on login screen or not.
- isNotification booleanBypassed 
- isPrimary booleanEmail Required 
- licenseType string
- The License type of Domain
- lifecycleDetails string
- Any additional details about the current state of the Domain.
- replicaRegions GetDomain Replica Region[] 
- The regions domain is replication to.
- state string
- The current state.
- 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 type of the domain.
- url string
- Region agnostic domain URL.
- admin_email str
- admin_first_ strname 
- admin_last_ strname 
- admin_user_ strname 
- compartment_id str
- The OCID of the compartment containing the domain.
- 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
- domain_id str
- 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 
- Region specific domain URL.
- id str
- The OCID of the domain
- bool
- Indicates whether domain is hidden on login screen or not.
- is_notification_ boolbypassed 
- is_primary_ boolemail_ required 
- license_type str
- The License type of Domain
- lifecycle_details str
- Any additional details about the current state of the Domain.
- replica_regions Sequence[GetDomain Replica Region] 
- The regions domain is replication to.
- state str
- The current state.
- 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 type of the domain.
- url str
- Region agnostic domain URL.
- adminEmail String
- adminFirst StringName 
- adminLast StringName 
- adminUser StringName 
- compartmentId String
- The OCID of the compartment containing the domain.
- 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
- domainId String
- 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 
- Region specific domain URL.
- id String
- The OCID of the domain
- Boolean
- Indicates whether domain is hidden on login screen or not.
- isNotification BooleanBypassed 
- isPrimary BooleanEmail Required 
- licenseType String
- The License type of Domain
- lifecycleDetails String
- Any additional details about the current state of the Domain.
- replicaRegions List<Property Map>
- The regions domain is replication to.
- state String
- The current state.
- 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 type of the domain.
- url String
- Region agnostic domain URL.
Supporting Types
GetDomainReplicaRegion   
- 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
- The current state.
- Url string
- 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
- The current state.
- Url string
- 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
- The current state.
- url String
- 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
- The current state.
- url string
- 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
- The current state.
- url str
- 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
- The current state.
- url String
- Region agnostic domain URL.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.