Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi
oci.Tenantmanagercontrolplane.getDomainGovernance
Explore with Pulumi AI
This data source provides details about a specific Domain Governance resource in Oracle Cloud Infrastructure Tenantmanagercontrolplane service.
Gets information about the domain governance entity.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDomainGovernance = oci.Tenantmanagercontrolplane.getDomainGovernance({
    domainGovernanceId: testDomainGovernanceOciTenantmanagercontrolplaneDomainGovernance.id,
});
import pulumi
import pulumi_oci as oci
test_domain_governance = oci.Tenantmanagercontrolplane.get_domain_governance(domain_governance_id=test_domain_governance_oci_tenantmanagercontrolplane_domain_governance["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.GetDomainGovernance(ctx, &tenantmanagercontrolplane.GetDomainGovernanceArgs{
			DomainGovernanceId: testDomainGovernanceOciTenantmanagercontrolplaneDomainGovernance.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 testDomainGovernance = Oci.Tenantmanagercontrolplane.GetDomainGovernance.Invoke(new()
    {
        DomainGovernanceId = testDomainGovernanceOciTenantmanagercontrolplaneDomainGovernance.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.GetDomainGovernanceArgs;
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 testDomainGovernance = TenantmanagercontrolplaneFunctions.getDomainGovernance(GetDomainGovernanceArgs.builder()
            .domainGovernanceId(testDomainGovernanceOciTenantmanagercontrolplaneDomainGovernance.id())
            .build());
    }
}
variables:
  testDomainGovernance:
    fn::invoke:
      function: oci:Tenantmanagercontrolplane:getDomainGovernance
      arguments:
        domainGovernanceId: ${testDomainGovernanceOciTenantmanagercontrolplaneDomainGovernance.id}
Using getDomainGovernance
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 getDomainGovernance(args: GetDomainGovernanceArgs, opts?: InvokeOptions): Promise<GetDomainGovernanceResult>
function getDomainGovernanceOutput(args: GetDomainGovernanceOutputArgs, opts?: InvokeOptions): Output<GetDomainGovernanceResult>def get_domain_governance(domain_governance_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetDomainGovernanceResult
def get_domain_governance_output(domain_governance_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetDomainGovernanceResult]func GetDomainGovernance(ctx *Context, args *GetDomainGovernanceArgs, opts ...InvokeOption) (*GetDomainGovernanceResult, error)
func GetDomainGovernanceOutput(ctx *Context, args *GetDomainGovernanceOutputArgs, opts ...InvokeOption) GetDomainGovernanceResultOutput> Note: This function is named GetDomainGovernance in the Go SDK.
public static class GetDomainGovernance 
{
    public static Task<GetDomainGovernanceResult> InvokeAsync(GetDomainGovernanceArgs args, InvokeOptions? opts = null)
    public static Output<GetDomainGovernanceResult> Invoke(GetDomainGovernanceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDomainGovernanceResult> getDomainGovernance(GetDomainGovernanceArgs args, InvokeOptions options)
public static Output<GetDomainGovernanceResult> getDomainGovernance(GetDomainGovernanceArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Tenantmanagercontrolplane/getDomainGovernance:getDomainGovernance
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Domain
Governance stringId  - The domain governance OCID.
 
- Domain
Governance stringId  - The domain governance OCID.
 
- domain
Governance StringId  - The domain governance OCID.
 
- domain
Governance stringId  - The domain governance OCID.
 
- domain_
governance_ strid  - The domain governance OCID.
 
- domain
Governance StringId  - The domain governance OCID.
 
getDomainGovernance 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
Governance stringId  - Domain
Id string - The OCID of the domain associated with this domain governance entity.
 - 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.
 - 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
 - Lifecycle state of the domain governance entity.
 - 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.
 
- map[string]string
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - Domain
Governance stringId  - Domain
Id string - The OCID of the domain associated with this domain governance entity.
 - 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.
 - 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
 - Lifecycle state of the domain governance entity.
 - 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.
 
- Map<String,String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - domain
Governance StringId  - domain
Id String - The OCID of the domain associated with this domain governance entity.
 - 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.
 - 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
 - Lifecycle state of the domain governance entity.
 - 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.
 
- {[key: string]: string}
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - domain
Governance stringId  - domain
Id string - The OCID of the domain associated with this domain governance entity.
 - {[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.
 - 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
 - Lifecycle state of the domain governance entity.
 - 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.
 
- Mapping[str, str]
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - domain_
governance_ strid  - domain_
id str - The OCID of the domain associated with this domain governance entity.
 - 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.
 - 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
 - Lifecycle state of the domain governance entity.
 - 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.
 
- Map<String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - domain
Governance StringId  - domain
Id String - The OCID of the domain associated with this domain governance entity.
 - 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.
 - 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
 - Lifecycle state of the domain governance entity.
 - 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.
 
Package Details
- Repository
 - oci pulumi/pulumi-oci
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ociTerraform Provider.