Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.Tenantmanagercontrolplane.getDomain
Explore with Pulumi AI
This data source provides details about a specific Domain resource in Oracle Cloud Infrastructure Tenantmanagercontrolplane service.
Gets information about the domain.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDomain = oci.Tenantmanagercontrolplane.getDomain({
    domainId: testDomainOciTenantmanagercontrolplaneDomain.id,
});
import pulumi
import pulumi_oci as oci
test_domain = oci.Tenantmanagercontrolplane.get_domain(domain_id=test_domain_oci_tenantmanagercontrolplane_domain["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/tenantmanagercontrolplane"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tenantmanagercontrolplane.GetDomain(ctx, &tenantmanagercontrolplane.GetDomainArgs{
			DomainId: testDomainOciTenantmanagercontrolplaneDomain.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.Tenantmanagercontrolplane.GetDomain.Invoke(new()
    {
        DomainId = testDomainOciTenantmanagercontrolplaneDomain.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Tenantmanagercontrolplane.TenantmanagercontrolplaneFunctions;
import com.pulumi.oci.Tenantmanagercontrolplane.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 = TenantmanagercontrolplaneFunctions.getDomain(GetDomainArgs.builder()
            .domainId(testDomainOciTenantmanagercontrolplaneDomain.id())
            .build());
    }
}
variables:
  testDomain:
    fn::invoke:
      function: oci:Tenantmanagercontrolplane:getDomain
      arguments:
        domainId: ${testDomainOciTenantmanagercontrolplaneDomain.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 GetDomain(ctx *Context, args *GetDomainArgs, opts ...InvokeOption) (*GetDomainResult, error)
func GetDomainOutput(ctx *Context, args *GetDomainOutputArgs, opts ...InvokeOption) GetDomainResultOutput> Note: This function is named GetDomain 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:Tenantmanagercontrolplane/getDomain:getDomain
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Domain
Id string - The domain OCID.
 
- Domain
Id string - The domain OCID.
 
- domain
Id String - The domain OCID.
 
- domain
Id string - The domain OCID.
 
- domain_
id str - The domain OCID.
 
- domain
Id String - The domain OCID.
 
getDomain Result
The following output properties are available:
- Dictionary<string, string>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - Domain
Id string - Domain
Name string - The domain name.
 - Dictionary<string, string>
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - Id string
 - The provider-assigned unique ID for this managed resource.
 - Owner
Id string - The OCID of the tenancy that has started the registration process for this domain.
 - State string
 - Lifecycle state of the domain.
 - Status string
 - Status of the domain.
 - Dictionary<string, string>
 - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: 
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - Date-time when this domain was created. An RFC 3339-formatted date and time string.
 - Time
Updated string - Date-time when this domain was last updated. An RFC 3339-formatted date and time string.
 - Txt
Record string - The code that the owner of the domain will need to add as a TXT record to their domain.
 
- map[string]string
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - Domain
Id string - Domain
Name string - The domain name.
 - map[string]string
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - Id string
 - The provider-assigned unique ID for this managed resource.
 - Owner
Id string - The OCID of the tenancy that has started the registration process for this domain.
 - State string
 - Lifecycle state of the domain.
 - Status string
 - Status of the domain.
 - map[string]string
 - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: 
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - Date-time when this domain was created. An RFC 3339-formatted date and time string.
 - Time
Updated string - Date-time when this domain was last updated. An RFC 3339-formatted date and time string.
 - Txt
Record string - The code that the owner of the domain will need to add as a TXT record to their domain.
 
- Map<String,String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - domain
Id String - domain
Name String - The domain name.
 - Map<String,String>
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - id String
 - The provider-assigned unique ID for this managed resource.
 - owner
Id String - The OCID of the tenancy that has started the registration process for this domain.
 - state String
 - Lifecycle state of the domain.
 - status String
 - Status of the domain.
 - Map<String,String>
 - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: 
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - Date-time when this domain was created. An RFC 3339-formatted date and time string.
 - time
Updated String - Date-time when this domain was last updated. An RFC 3339-formatted date and time string.
 - txt
Record String - The code that the owner of the domain will need to add as a TXT record to their domain.
 
- {[key: string]: string}
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - domain
Id string - domain
Name string - The domain name.
 - {[key: string]: string}
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - id string
 - The provider-assigned unique ID for this managed resource.
 - owner
Id string - The OCID of the tenancy that has started the registration process for this domain.
 - state string
 - Lifecycle state of the domain.
 - status string
 - Status of the domain.
 - {[key: string]: string}
 - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: 
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - Date-time when this domain was created. An RFC 3339-formatted date and time string.
 - time
Updated string - Date-time when this domain was last updated. An RFC 3339-formatted date and time string.
 - txt
Record string - The code that the owner of the domain will need to add as a TXT record to their domain.
 
- Mapping[str, str]
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - domain_
id str - domain_
name str - The domain name.
 - Mapping[str, str]
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - id str
 - The provider-assigned unique ID for this managed resource.
 - owner_
id str - The OCID of the tenancy that has started the registration process for this domain.
 - state str
 - Lifecycle state of the domain.
 - status str
 - Status of the domain.
 - Mapping[str, str]
 - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: 
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - Date-time when this domain was created. An RFC 3339-formatted date and time string.
 - time_
updated str - Date-time when this domain was last updated. An RFC 3339-formatted date and time string.
 - txt_
record str - The code that the owner of the domain will need to add as a TXT record to their domain.
 
- Map<String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - domain
Id String - domain
Name String - The domain name.
 - Map<String>
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - id String
 - The provider-assigned unique ID for this managed resource.
 - owner
Id String - The OCID of the tenancy that has started the registration process for this domain.
 - state String
 - Lifecycle state of the domain.
 - status String
 - Status of the domain.
 - Map<String>
 - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: 
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - Date-time when this domain was created. An RFC 3339-formatted date and time string.
 - time
Updated String - Date-time when this domain was last updated. An RFC 3339-formatted date and time string.
 - txt
Record String - The code that the owner of the domain will need to add as a TXT record to their domain.
 
Package Details
- Repository
 - oci pulumi/pulumi-oci
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ociTerraform Provider.