1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Tenantmanagercontrolplane
  5. getDomainGovernances
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.Tenantmanagercontrolplane.getDomainGovernances

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

This data source provides the list of Domain Governances in Oracle Cloud Infrastructure Tenantmanagercontrolplane service.

Return a (paginated) list of domain governance entities.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDomainGovernances = oci.Tenantmanagercontrolplane.getDomainGovernances({
    compartmentId: compartmentId,
    domainGovernanceId: testDomainGovernance.id,
    domainId: testDomain.id,
    name: domainGovernanceName,
    state: domainGovernanceState,
});
Copy
import pulumi
import pulumi_oci as oci

test_domain_governances = oci.Tenantmanagercontrolplane.get_domain_governances(compartment_id=compartment_id,
    domain_governance_id=test_domain_governance["id"],
    domain_id=test_domain["id"],
    name=domain_governance_name,
    state=domain_governance_state)
Copy
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.GetDomainGovernances(ctx, &tenantmanagercontrolplane.GetDomainGovernancesArgs{
			CompartmentId:      compartmentId,
			DomainGovernanceId: pulumi.StringRef(testDomainGovernance.Id),
			DomainId:           pulumi.StringRef(testDomain.Id),
			Name:               pulumi.StringRef(domainGovernanceName),
			State:              pulumi.StringRef(domainGovernanceState),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testDomainGovernances = Oci.Tenantmanagercontrolplane.GetDomainGovernances.Invoke(new()
    {
        CompartmentId = compartmentId,
        DomainGovernanceId = testDomainGovernance.Id,
        DomainId = testDomain.Id,
        Name = domainGovernanceName,
        State = domainGovernanceState,
    });

});
Copy
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.GetDomainGovernancesArgs;
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 testDomainGovernances = TenantmanagercontrolplaneFunctions.getDomainGovernances(GetDomainGovernancesArgs.builder()
            .compartmentId(compartmentId)
            .domainGovernanceId(testDomainGovernance.id())
            .domainId(testDomain.id())
            .name(domainGovernanceName)
            .state(domainGovernanceState)
            .build());

    }
}
Copy
variables:
  testDomainGovernances:
    fn::invoke:
      function: oci:Tenantmanagercontrolplane:getDomainGovernances
      arguments:
        compartmentId: ${compartmentId}
        domainGovernanceId: ${testDomainGovernance.id}
        domainId: ${testDomain.id}
        name: ${domainGovernanceName}
        state: ${domainGovernanceState}
Copy

Using getDomainGovernances

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 getDomainGovernances(args: GetDomainGovernancesArgs, opts?: InvokeOptions): Promise<GetDomainGovernancesResult>
function getDomainGovernancesOutput(args: GetDomainGovernancesOutputArgs, opts?: InvokeOptions): Output<GetDomainGovernancesResult>
Copy
def get_domain_governances(compartment_id: Optional[str] = None,
                           domain_governance_id: Optional[str] = None,
                           domain_id: Optional[str] = None,
                           filters: Optional[Sequence[_tenantmanagercontrolplane.GetDomainGovernancesFilter]] = None,
                           name: Optional[str] = None,
                           state: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetDomainGovernancesResult
def get_domain_governances_output(compartment_id: Optional[pulumi.Input[str]] = None,
                           domain_governance_id: Optional[pulumi.Input[str]] = None,
                           domain_id: Optional[pulumi.Input[str]] = None,
                           filters: Optional[pulumi.Input[Sequence[pulumi.Input[_tenantmanagercontrolplane.GetDomainGovernancesFilterArgs]]]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           state: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetDomainGovernancesResult]
Copy
func GetDomainGovernances(ctx *Context, args *GetDomainGovernancesArgs, opts ...InvokeOption) (*GetDomainGovernancesResult, error)
func GetDomainGovernancesOutput(ctx *Context, args *GetDomainGovernancesOutputArgs, opts ...InvokeOption) GetDomainGovernancesResultOutput
Copy

> Note: This function is named GetDomainGovernances in the Go SDK.

public static class GetDomainGovernances 
{
    public static Task<GetDomainGovernancesResult> InvokeAsync(GetDomainGovernancesArgs args, InvokeOptions? opts = null)
    public static Output<GetDomainGovernancesResult> Invoke(GetDomainGovernancesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDomainGovernancesResult> getDomainGovernances(GetDomainGovernancesArgs args, InvokeOptions options)
public static Output<GetDomainGovernancesResult> getDomainGovernances(GetDomainGovernancesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Tenantmanagercontrolplane/getDomainGovernances:getDomainGovernances
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The ID of the compartment in which to list resources.
DomainGovernanceId string
The domain governance OCID.
DomainId string
The domain OCID.
Filters Changes to this property will trigger replacement. List<GetDomainGovernancesFilter>
Name string
A filter to return only resources that exactly match the name given.
State string
The lifecycle state of the resource.
CompartmentId This property is required. string
The ID of the compartment in which to list resources.
DomainGovernanceId string
The domain governance OCID.
DomainId string
The domain OCID.
Filters Changes to this property will trigger replacement. []GetDomainGovernancesFilter
Name string
A filter to return only resources that exactly match the name given.
State string
The lifecycle state of the resource.
compartmentId This property is required. String
The ID of the compartment in which to list resources.
domainGovernanceId String
The domain governance OCID.
domainId String
The domain OCID.
filters Changes to this property will trigger replacement. List<GetDomainGovernancesFilter>
name String
A filter to return only resources that exactly match the name given.
state String
The lifecycle state of the resource.
compartmentId This property is required. string
The ID of the compartment in which to list resources.
domainGovernanceId string
The domain governance OCID.
domainId string
The domain OCID.
filters Changes to this property will trigger replacement. GetDomainGovernancesFilter[]
name string
A filter to return only resources that exactly match the name given.
state string
The lifecycle state of the resource.
compartment_id This property is required. str
The ID of the compartment in which to list resources.
domain_governance_id str
The domain governance OCID.
domain_id str
The domain OCID.
filters Changes to this property will trigger replacement. Sequence[tenantmanagercontrolplane.GetDomainGovernancesFilter]
name str
A filter to return only resources that exactly match the name given.
state str
The lifecycle state of the resource.
compartmentId This property is required. String
The ID of the compartment in which to list resources.
domainGovernanceId String
The domain governance OCID.
domainId String
The domain OCID.
filters Changes to this property will trigger replacement. 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.

getDomainGovernances Result

The following output properties are available:

CompartmentId string
DomainGovernanceCollections List<GetDomainGovernancesDomainGovernanceCollection>
The list of domain_governance_collection.
Id string
The provider-assigned unique ID for this managed resource.
DomainGovernanceId string
DomainId string
The OCID of the domain associated with this domain governance entity.
Filters List<GetDomainGovernancesFilter>
Name string
State string
Lifecycle state of the domain governance entity.
CompartmentId string
DomainGovernanceCollections []GetDomainGovernancesDomainGovernanceCollection
The list of domain_governance_collection.
Id string
The provider-assigned unique ID for this managed resource.
DomainGovernanceId string
DomainId string
The OCID of the domain associated with this domain governance entity.
Filters []GetDomainGovernancesFilter
Name string
State string
Lifecycle state of the domain governance entity.
compartmentId String
domainGovernanceCollections List<GetDomainGovernancesDomainGovernanceCollection>
The list of domain_governance_collection.
id String
The provider-assigned unique ID for this managed resource.
domainGovernanceId String
domainId String
The OCID of the domain associated with this domain governance entity.
filters List<GetDomainGovernancesFilter>
name String
state String
Lifecycle state of the domain governance entity.
compartmentId string
domainGovernanceCollections GetDomainGovernancesDomainGovernanceCollection[]
The list of domain_governance_collection.
id string
The provider-assigned unique ID for this managed resource.
domainGovernanceId string
domainId string
The OCID of the domain associated with this domain governance entity.
filters GetDomainGovernancesFilter[]
name string
state string
Lifecycle state of the domain governance entity.
compartment_id str
domain_governance_collections Sequence[tenantmanagercontrolplane.GetDomainGovernancesDomainGovernanceCollection]
The list of domain_governance_collection.
id str
The provider-assigned unique ID for this managed resource.
domain_governance_id str
domain_id str
The OCID of the domain associated with this domain governance entity.
filters Sequence[tenantmanagercontrolplane.GetDomainGovernancesFilter]
name str
state str
Lifecycle state of the domain governance entity.
compartmentId String
domainGovernanceCollections List<Property Map>
The list of domain_governance_collection.
id String
The provider-assigned unique ID for this managed resource.
domainGovernanceId String
domainId String
The OCID of the domain associated with this domain governance entity.
filters List<Property Map>
name String
state String
Lifecycle state of the domain governance entity.

Supporting Types

GetDomainGovernancesDomainGovernanceCollection

items This property is required. List<Property Map>

GetDomainGovernancesDomainGovernanceCollectionItem

CompartmentId This property is required. string
The ID of the compartment in which to list resources.
DefinedTags This property is required. Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
DomainId This property is required. string
The domain OCID.
FreeformTags This property is required. 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 This property is required. string
The OCID of the domain governance entity.
IsGovernanceEnabled This property is required. bool
Indicates whether governance is enabled for this domain.
OnsSubscriptionId This property is required. string
The ONS subscription associated with this domain governance entity.
OnsTopicId This property is required. string
The ONS topic associated with this domain governance entity.
OwnerId This property is required. string
The OCID of the tenancy that owns this domain governance entity.
State This property is required. string
The lifecycle state of the resource.
SubscriptionEmail This property is required. string
Email address to be used to notify the user, and that the ONS subscription will be created with.
SystemTags This property is required. Dictionary<string, string>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated This property is required. string
Date-time when this domain governance was created. An RFC 3339-formatted date and time string.
TimeUpdated This property is required. string
Date-time when this domain governance was last updated. An RFC 3339-formatted date and time string.
CompartmentId This property is required. string
The ID of the compartment in which to list resources.
DefinedTags This property is required. map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
DomainId This property is required. string
The domain OCID.
FreeformTags This property is required. 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 This property is required. string
The OCID of the domain governance entity.
IsGovernanceEnabled This property is required. bool
Indicates whether governance is enabled for this domain.
OnsSubscriptionId This property is required. string
The ONS subscription associated with this domain governance entity.
OnsTopicId This property is required. string
The ONS topic associated with this domain governance entity.
OwnerId This property is required. string
The OCID of the tenancy that owns this domain governance entity.
State This property is required. string
The lifecycle state of the resource.
SubscriptionEmail This property is required. string
Email address to be used to notify the user, and that the ONS subscription will be created with.
SystemTags This property is required. map[string]string
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated This property is required. string
Date-time when this domain governance was created. An RFC 3339-formatted date and time string.
TimeUpdated This property is required. string
Date-time when this domain governance was last updated. An RFC 3339-formatted date and time string.
compartmentId This property is required. String
The ID of the compartment in which to list resources.
definedTags This property is required. Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
domainId This property is required. String
The domain OCID.
freeformTags This property is required. 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 This property is required. String
The OCID of the domain governance entity.
isGovernanceEnabled This property is required. Boolean
Indicates whether governance is enabled for this domain.
onsSubscriptionId This property is required. String
The ONS subscription associated with this domain governance entity.
onsTopicId This property is required. String
The ONS topic associated with this domain governance entity.
ownerId This property is required. String
The OCID of the tenancy that owns this domain governance entity.
state This property is required. String
The lifecycle state of the resource.
subscriptionEmail This property is required. String
Email address to be used to notify the user, and that the ONS subscription will be created with.
systemTags This property is required. Map<String,String>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated This property is required. String
Date-time when this domain governance was created. An RFC 3339-formatted date and time string.
timeUpdated This property is required. String
Date-time when this domain governance was last updated. An RFC 3339-formatted date and time string.
compartmentId This property is required. string
The ID of the compartment in which to list resources.
definedTags This property is required. {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
domainId This property is required. string
The domain OCID.
freeformTags This property is required. {[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 This property is required. string
The OCID of the domain governance entity.
isGovernanceEnabled This property is required. boolean
Indicates whether governance is enabled for this domain.
onsSubscriptionId This property is required. string
The ONS subscription associated with this domain governance entity.
onsTopicId This property is required. string
The ONS topic associated with this domain governance entity.
ownerId This property is required. string
The OCID of the tenancy that owns this domain governance entity.
state This property is required. string
The lifecycle state of the resource.
subscriptionEmail This property is required. string
Email address to be used to notify the user, and that the ONS subscription will be created with.
systemTags This property is required. {[key: string]: string}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated This property is required. string
Date-time when this domain governance was created. An RFC 3339-formatted date and time string.
timeUpdated This property is required. string
Date-time when this domain governance was last updated. An RFC 3339-formatted date and time string.
compartment_id This property is required. str
The ID of the compartment in which to list resources.
defined_tags This property is required. 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 This property is required. str
The domain OCID.
freeform_tags This property is required. 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 This property is required. str
The OCID of the domain governance entity.
is_governance_enabled This property is required. bool
Indicates whether governance is enabled for this domain.
ons_subscription_id This property is required. str
The ONS subscription associated with this domain governance entity.
ons_topic_id This property is required. str
The ONS topic associated with this domain governance entity.
owner_id This property is required. str
The OCID of the tenancy that owns this domain governance entity.
state This property is required. str
The lifecycle state of the resource.
subscription_email This property is required. str
Email address to be used to notify the user, and that the ONS subscription will be created with.
system_tags This property is required. Mapping[str, str]
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
time_created This property is required. str
Date-time when this domain governance was created. An RFC 3339-formatted date and time string.
time_updated This property is required. str
Date-time when this domain governance was last updated. An RFC 3339-formatted date and time string.
compartmentId This property is required. String
The ID of the compartment in which to list resources.
definedTags This property is required. Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
domainId This property is required. String
The domain OCID.
freeformTags This property is required. 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 This property is required. String
The OCID of the domain governance entity.
isGovernanceEnabled This property is required. Boolean
Indicates whether governance is enabled for this domain.
onsSubscriptionId This property is required. String
The ONS subscription associated with this domain governance entity.
onsTopicId This property is required. String
The ONS topic associated with this domain governance entity.
ownerId This property is required. String
The OCID of the tenancy that owns this domain governance entity.
state This property is required. String
The lifecycle state of the resource.
subscriptionEmail This property is required. String
Email address to be used to notify the user, and that the ONS subscription will be created with.
systemTags This property is required. Map<String>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated This property is required. String
Date-time when this domain governance was created. An RFC 3339-formatted date and time string.
timeUpdated This property is required. String
Date-time when this domain governance was last updated. An RFC 3339-formatted date and time string.

GetDomainGovernancesFilter

Name This property is required. string
A filter to return only resources that exactly match the name given.
Values This property is required. List<string>
Regex bool
Name This property is required. string
A filter to return only resources that exactly match the name given.
Values This property is required. []string
Regex bool
name This property is required. String
A filter to return only resources that exactly match the name given.
values This property is required. List<String>
regex Boolean
name This property is required. string
A filter to return only resources that exactly match the name given.
values This property is required. string[]
regex boolean
name This property is required. str
A filter to return only resources that exactly match the name given.
values This property is required. Sequence[str]
regex bool
name This property is required. String
A filter to return only resources that exactly match the name given.
values This property is required. List<String>
regex Boolean

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi