Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.Tenantmanagercontrolplane.getDomains
Start a Neo task
Explain and create an oci.Tenantmanagercontrolplane.getDomains resource
This data source provides the list of Domains in Oracle Cloud Infrastructure Tenantmanagercontrolplane service.
Return a (paginated) list of domains.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDomains = oci.Tenantmanagercontrolplane.getDomains({
compartmentId: compartmentId,
domainId: testDomain.id,
name: domainName,
state: domainState,
status: domainStatus,
});
import pulumi
import pulumi_oci as oci
test_domains = oci.Tenantmanagercontrolplane.get_domains(compartment_id=compartment_id,
domain_id=test_domain["id"],
name=domain_name,
state=domain_state,
status=domain_status)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/tenantmanagercontrolplane"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tenantmanagercontrolplane.GetDomains(ctx, &tenantmanagercontrolplane.GetDomainsArgs{
CompartmentId: compartmentId,
DomainId: pulumi.StringRef(testDomain.Id),
Name: pulumi.StringRef(domainName),
State: pulumi.StringRef(domainState),
Status: pulumi.StringRef(domainStatus),
}, 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.Tenantmanagercontrolplane.GetDomains.Invoke(new()
{
CompartmentId = compartmentId,
DomainId = testDomain.Id,
Name = domainName,
State = domainState,
Status = domainStatus,
});
});
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.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 = TenantmanagercontrolplaneFunctions.getDomains(GetDomainsArgs.builder()
.compartmentId(compartmentId)
.domainId(testDomain.id())
.name(domainName)
.state(domainState)
.status(domainStatus)
.build());
}
}
variables:
testDomains:
fn::invoke:
function: oci:Tenantmanagercontrolplane:getDomains
arguments:
compartmentId: ${compartmentId}
domainId: ${testDomain.id}
name: ${domainName}
state: ${domainState}
status: ${domainStatus}
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,
domain_id: Optional[str] = None,
filters: Optional[Sequence[GetDomainsFilter]] = None,
name: Optional[str] = None,
state: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDomainsResult
def get_domains_output(compartment_id: Optional[pulumi.Input[str]] = None,
domain_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDomainsFilterArgs]]]] = None,
name: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
status: 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:Tenantmanagercontrolplane/getDomains:getDomains
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Domain
Id string - The domain OCID.
- Filters
List<Get
Domains Filter> - Name string
- A filter to return only resources that exactly match the name given.
- State string
- The lifecycle state of the resource.
- Status string
- The status of the domain.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Domain
Id string - The domain OCID.
- Filters
[]Get
Domains Filter - Name string
- A filter to return only resources that exactly match the name given.
- State string
- The lifecycle state of the resource.
- Status string
- The status of the domain.
- compartment
Id String - The ID of the compartment in which to list resources.
- domain
Id String - The domain OCID.
- filters
List<Get
Domains Filter> - name String
- A filter to return only resources that exactly match the name given.
- state String
- The lifecycle state of the resource.
- status String
- The status of the domain.
- compartment
Id string - The ID of the compartment in which to list resources.
- domain
Id string - The domain OCID.
- filters
Get
Domains Filter[] - name string
- A filter to return only resources that exactly match the name given.
- state string
- The lifecycle state of the resource.
- status string
- The status of the domain.
- compartment_
id str - The ID of the compartment in which to list resources.
- domain_
id str - The domain OCID.
- filters
Sequence[Get
Domains Filter] - name str
- A filter to return only resources that exactly match the name given.
- state str
- The lifecycle state of the resource.
- status str
- The status of the domain.
- compartment
Id String - The ID of the compartment in which to list resources.
- domain
Id String - The domain OCID.
- filters List<Property Map>
- name String
- A filter to return only resources that exactly match the name given.
- state String
- The lifecycle state of the resource.
- status String
- The status of the domain.
getDomains Result
The following output properties are available:
- Compartment
Id string - Domain
Collections List<GetDomains Domain Collection> - The list of domain_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Domain
Id string - Filters
List<Get
Domains Filter> - Name string
- State string
- Lifecycle state of the domain.
- Status string
- Status of the domain.
- Compartment
Id string - Domain
Collections []GetDomains Domain Collection - The list of domain_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Domain
Id string - Filters
[]Get
Domains Filter - Name string
- State string
- Lifecycle state of the domain.
- Status string
- Status of the domain.
- compartment
Id String - domain
Collections List<GetDomains Domain Collection> - The list of domain_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- domain
Id String - filters
List<Get
Domains Filter> - name String
- state String
- Lifecycle state of the domain.
- status String
- Status of the domain.
- compartment
Id string - domain
Collections GetDomains Domain Collection[] - The list of domain_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- domain
Id string - filters
Get
Domains Filter[] - name string
- state string
- Lifecycle state of the domain.
- status string
- Status of the domain.
- compartment_
id str - domain_
collections Sequence[GetDomains Domain Collection] - The list of domain_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- domain_
id str - filters
Sequence[Get
Domains Filter] - name str
- state str
- Lifecycle state of the domain.
- status str
- Status of the domain.
- compartment
Id String - domain
Collections List<Property Map> - The list of domain_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- domain
Id String - filters List<Property Map>
- name String
- state String
- Lifecycle state of the domain.
- status String
- Status of the domain.
Supporting Types
GetDomainsDomainCollection
GetDomainsDomainCollectionItem
- Compartment
Id string - The ID of the compartment in which to list resources.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - 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 OCID of the domain.
- Is
Governance boolEnabled - Owner
Id string - The OCID of the tenancy that has started the registration process for this domain.
- State string
- The lifecycle state of the resource.
- Status string
- The status of the domain.
- Subscription
Email string - 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.
- Compartment
Id string - The ID of the compartment in which to list resources.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - 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 OCID of the domain.
- Is
Governance boolEnabled - Owner
Id string - The OCID of the tenancy that has started the registration process for this domain.
- State string
- The lifecycle state of the resource.
- Status string
- The status of the domain.
- Subscription
Email string - 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.
- compartment
Id String - The ID of the compartment in which to list resources.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - 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 OCID of the domain.
- is
Governance BooleanEnabled - owner
Id String - The OCID of the tenancy that has started the registration process for this domain.
- state String
- The lifecycle state of the resource.
- status String
- The status of the domain.
- subscription
Email String - 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.
- compartment
Id string - The ID of the compartment in which to list resources.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - 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 OCID of the domain.
- is
Governance booleanEnabled - owner
Id string - The OCID of the tenancy that has started the registration process for this domain.
- state string
- The lifecycle state of the resource.
- status string
- The status of the domain.
- subscription
Email string - {[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.
- compartment_
id str - The ID of the compartment in which to list resources.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - 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 OCID of the domain.
- is_
governance_ boolenabled - owner_
id str - The OCID of the tenancy that has started the registration process for this domain.
- state str
- The lifecycle state of the resource.
- status str
- The status of the domain.
- subscription_
email str - 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.
- compartment
Id String - The ID of the compartment in which to list resources.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - 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 OCID of the domain.
- is
Governance BooleanEnabled - owner
Id String - The OCID of the tenancy that has started the registration process for this domain.
- state String
- The lifecycle state of the resource.
- status String
- The status of the domain.
- subscription
Email String - 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.
GetDomainsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
