Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.Tenantmanagercontrolplane.getDomainGovernances
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,
});
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)
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.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
})
}
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,
});
});
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());
}
}
variables:
testDomainGovernances:
fn::invoke:
function: oci:Tenantmanagercontrolplane:getDomainGovernances
arguments:
compartmentId: ${compartmentId}
domainGovernanceId: ${testDomainGovernance.id}
domainId: ${testDomain.id}
name: ${domainGovernanceName}
state: ${domainGovernanceState}
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>def get_domain_governances(compartment_id: Optional[str] = None,
domain_governance_id: Optional[str] = None,
domain_id: Optional[str] = None,
filters: Optional[Sequence[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[GetDomainGovernancesFilterArgs]]]] = None,
name: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDomainGovernancesResult]func GetDomainGovernances(ctx *Context, args *GetDomainGovernancesArgs, opts ...InvokeOption) (*GetDomainGovernancesResult, error)
func GetDomainGovernancesOutput(ctx *Context, args *GetDomainGovernancesOutputArgs, opts ...InvokeOption) GetDomainGovernancesResultOutput> 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)
}public static CompletableFuture<GetDomainGovernancesResult> getDomainGovernances(GetDomainGovernancesArgs args, InvokeOptions options)
public static Output<GetDomainGovernancesResult> getDomainGovernances(GetDomainGovernancesArgs args, InvokeOptions options)
fn::invoke:
function: oci:Tenantmanagercontrolplane/getDomainGovernances:getDomainGovernances
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Domain
Governance stringId - The domain governance OCID.
- Domain
Id string - The domain OCID.
- Filters
List<Get
Domain Governances Filter> - Name string
- A filter to return only resources that exactly match the name given.
- State string
- The lifecycle state of the resource.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Domain
Governance stringId - The domain governance OCID.
- Domain
Id string - The domain OCID.
- Filters
[]Get
Domain Governances Filter - Name string
- A filter to return only resources that exactly match the name given.
- State string
- The lifecycle state of the resource.
- compartment
Id String - The ID of the compartment in which to list resources.
- domain
Governance StringId - The domain governance OCID.
- domain
Id String - The domain OCID.
- filters
List<Get
Domain Governances Filter> - name String
- A filter to return only resources that exactly match the name given.
- state String
- The lifecycle state of the resource.
- compartment
Id string - The ID of the compartment in which to list resources.
- domain
Governance stringId - The domain governance OCID.
- domain
Id string - The domain OCID.
- filters
Get
Domain Governances Filter[] - name string
- A filter to return only resources that exactly match the name given.
- state string
- The lifecycle state of the resource.
- compartment_
id str - The ID of the compartment in which to list resources.
- domain_
governance_ strid - The domain governance OCID.
- domain_
id str - The domain OCID.
- filters
Sequence[Get
Domain Governances Filter] - name str
- A filter to return only resources that exactly match the name given.
- state str
- The lifecycle state of the resource.
- compartment
Id String - The ID of the compartment in which to list resources.
- domain
Governance StringId - The domain governance OCID.
- 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.
getDomainGovernances Result
The following output properties are available:
- Compartment
Id string - Domain
Governance List<GetCollections Domain Governances Domain Governance Collection> - The list of domain_governance_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Domain
Governance stringId - Domain
Id string - The OCID of the domain associated with this domain governance entity.
- Filters
List<Get
Domain Governances Filter> - Name string
- State string
- Lifecycle state of the domain governance entity.
- Compartment
Id string - Domain
Governance []GetCollections Domain Governances Domain Governance Collection - The list of domain_governance_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Domain
Governance stringId - Domain
Id string - The OCID of the domain associated with this domain governance entity.
- Filters
[]Get
Domain Governances Filter - Name string
- State string
- Lifecycle state of the domain governance entity.
- compartment
Id String - domain
Governance List<GetCollections Domain Governances Domain Governance Collection> - The list of domain_governance_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- domain
Governance StringId - domain
Id String - The OCID of the domain associated with this domain governance entity.
- filters
List<Get
Domain Governances Filter> - name String
- state String
- Lifecycle state of the domain governance entity.
- compartment
Id string - domain
Governance GetCollections Domain Governances Domain Governance Collection[] - The list of domain_governance_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- domain
Governance stringId - domain
Id string - The OCID of the domain associated with this domain governance entity.
- filters
Get
Domain Governances Filter[] - name string
- state string
- Lifecycle state of the domain governance entity.
- compartment_
id str - domain_
governance_ Sequence[Getcollections Domain Governances Domain Governance Collection] - The list of domain_governance_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- domain_
governance_ strid - domain_
id str - The OCID of the domain associated with this domain governance entity.
- filters
Sequence[Get
Domain Governances Filter] - name str
- state str
- Lifecycle state of the domain governance entity.
- compartment
Id String - domain
Governance List<Property Map>Collections - The list of domain_governance_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- domain
Governance StringId - domain
Id 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
GetDomainGovernancesDomainGovernanceCollectionItem
- 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
Id string - The domain OCID.
- 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 governance entity.
- Is
Governance boolEnabled - Indicates whether governance is enabled for this domain.
- Ons
Subscription stringId - The ONS subscription associated with this domain governance entity.
- Ons
Topic stringId - The ONS topic associated with this domain governance entity.
- Owner
Id string - The OCID of the tenancy that owns this domain governance entity.
- State string
- The lifecycle state of the resource.
- Subscription
Email string - Email address to be used to notify the user, and that the ONS subscription will be created with.
- 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 governance was created. An RFC 3339-formatted date and time string.
- Time
Updated string - Date-time when this domain governance was last updated. An RFC 3339-formatted date and time string.
- 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
Id string - The domain OCID.
- 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 governance entity.
- Is
Governance boolEnabled - Indicates whether governance is enabled for this domain.
- Ons
Subscription stringId - The ONS subscription associated with this domain governance entity.
- Ons
Topic stringId - The ONS topic associated with this domain governance entity.
- Owner
Id string - The OCID of the tenancy that owns this domain governance entity.
- State string
- The lifecycle state of the resource.
- Subscription
Email string - Email address to be used to notify the user, and that the ONS subscription will be created with.
- 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 governance was created. An RFC 3339-formatted date and time string.
- Time
Updated string - Date-time when this domain governance was last updated. An RFC 3339-formatted date and time string.
- 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
Id String - The domain OCID.
- 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 governance entity.
- is
Governance BooleanEnabled - Indicates whether governance is enabled for this domain.
- ons
Subscription StringId - The ONS subscription associated with this domain governance entity.
- ons
Topic StringId - The ONS topic associated with this domain governance entity.
- owner
Id String - The OCID of the tenancy that owns this domain governance entity.
- state String
- The lifecycle state of the resource.
- subscription
Email String - Email address to be used to notify the user, and that the ONS subscription will be created with.
- 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 governance was created. An RFC 3339-formatted date and time string.
- time
Updated String - Date-time when this domain governance was last updated. An RFC 3339-formatted date and time string.
- 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
Id string - The domain OCID.
- {[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 governance entity.
- is
Governance booleanEnabled - Indicates whether governance is enabled for this domain.
- ons
Subscription stringId - The ONS subscription associated with this domain governance entity.
- ons
Topic stringId - The ONS topic associated with this domain governance entity.
- owner
Id string - The OCID of the tenancy that owns this domain governance entity.
- state string
- The lifecycle state of the resource.
- subscription
Email string - Email address to be used to notify the user, and that the ONS subscription will be created with.
- {[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 governance was created. An RFC 3339-formatted date and time string.
- time
Updated string - Date-time when this domain governance was last updated. An RFC 3339-formatted date and time string.
- 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_
id str - The domain OCID.
- 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 governance entity.
- is_
governance_ boolenabled - Indicates whether governance is enabled for this domain.
- ons_
subscription_ strid - The ONS subscription associated with this domain governance entity.
- ons_
topic_ strid - The ONS topic associated with this domain governance entity.
- owner_
id str - The OCID of the tenancy that owns this domain governance entity.
- state str
- The lifecycle state of the resource.
- subscription_
email str - Email address to be used to notify the user, and that the ONS subscription will be created with.
- 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 governance was created. An RFC 3339-formatted date and time string.
- time_
updated str - Date-time when this domain governance was last updated. An RFC 3339-formatted date and time string.
- 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
Id String - The domain OCID.
- 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 governance entity.
- is
Governance BooleanEnabled - Indicates whether governance is enabled for this domain.
- ons
Subscription StringId - The ONS subscription associated with this domain governance entity.
- ons
Topic StringId - The ONS topic associated with this domain governance entity.
- owner
Id String - The OCID of the tenancy that owns this domain governance entity.
- state String
- The lifecycle state of the resource.
- subscription
Email String - Email address to be used to notify the user, and that the ONS subscription will be created with.
- 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 governance was created. An RFC 3339-formatted date and time string.
- time
Updated String - Date-time when this domain governance was last updated. An RFC 3339-formatted date and time string.
GetDomainGovernancesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
