Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 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:
- DomainId string
- The domain OCID.
- DomainId string
- The domain OCID.
- domainId String
- The domain OCID.
- domainId string
- The domain OCID.
- domain_id str
- The domain OCID.
- domainId 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"}
- DomainId string
- DomainName 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.
- OwnerId 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"}
- TimeCreated string
- Date-time when this domain was created. An RFC 3339-formatted date and time string.
- TimeUpdated string
- Date-time when this domain was last updated. An RFC 3339-formatted date and time string.
- TxtRecord 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"}
- DomainId string
- DomainName 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.
- OwnerId 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"}
- TimeCreated string
- Date-time when this domain was created. An RFC 3339-formatted date and time string.
- TimeUpdated string
- Date-time when this domain was last updated. An RFC 3339-formatted date and time string.
- TxtRecord 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"}
- domainId String
- domainName 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.
- ownerId 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"}
- timeCreated String
- Date-time when this domain was created. An RFC 3339-formatted date and time string.
- timeUpdated String
- Date-time when this domain was last updated. An RFC 3339-formatted date and time string.
- txtRecord 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"}
- domainId string
- domainName 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.
- ownerId 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"}
- timeCreated string
- Date-time when this domain was created. An RFC 3339-formatted date and time string.
- timeUpdated string
- Date-time when this domain was last updated. An RFC 3339-formatted date and time string.
- txtRecord 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"}
- domainId String
- domainName 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.
- ownerId 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"}
- timeCreated String
- Date-time when this domain was created. An RFC 3339-formatted date and time string.
- timeUpdated String
- Date-time when this domain was last updated. An RFC 3339-formatted date and time string.
- txtRecord 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.