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

oci.Tenantmanagercontrolplane.getOrganizationTenancy

Explore with Pulumi AI

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

This data source provides details about a specific Organization Tenancy resource in Oracle Cloud Infrastructure Tenantmanagercontrolplane service.

Gets information about the organization’s tenancy.

Example Usage

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

const testOrganizationTenancy = oci.Tenantmanagercontrolplane.getOrganizationTenancy({
    organizationId: testOrganization.id,
    tenancyId: testTenancy.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_organization_tenancy = oci.Tenantmanagercontrolplane.get_organization_tenancy(organization_id=test_organization["id"],
    tenancy_id=test_tenancy["id"])
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.GetOrganizationTenancy(ctx, &tenantmanagercontrolplane.GetOrganizationTenancyArgs{
			OrganizationId: testOrganization.Id,
			TenancyId:      testTenancy.Id,
		}, 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 testOrganizationTenancy = Oci.Tenantmanagercontrolplane.GetOrganizationTenancy.Invoke(new()
    {
        OrganizationId = testOrganization.Id,
        TenancyId = testTenancy.Id,
    });

});
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.GetOrganizationTenancyArgs;
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 testOrganizationTenancy = TenantmanagercontrolplaneFunctions.getOrganizationTenancy(GetOrganizationTenancyArgs.builder()
            .organizationId(testOrganization.id())
            .tenancyId(testTenancy.id())
            .build());

    }
}
Copy
variables:
  testOrganizationTenancy:
    fn::invoke:
      function: oci:Tenantmanagercontrolplane:getOrganizationTenancy
      arguments:
        organizationId: ${testOrganization.id}
        tenancyId: ${testTenancy.id}
Copy

Using getOrganizationTenancy

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 getOrganizationTenancy(args: GetOrganizationTenancyArgs, opts?: InvokeOptions): Promise<GetOrganizationTenancyResult>
function getOrganizationTenancyOutput(args: GetOrganizationTenancyOutputArgs, opts?: InvokeOptions): Output<GetOrganizationTenancyResult>
Copy
def get_organization_tenancy(organization_id: Optional[str] = None,
                             tenancy_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetOrganizationTenancyResult
def get_organization_tenancy_output(organization_id: Optional[pulumi.Input[str]] = None,
                             tenancy_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationTenancyResult]
Copy
func GetOrganizationTenancy(ctx *Context, args *GetOrganizationTenancyArgs, opts ...InvokeOption) (*GetOrganizationTenancyResult, error)
func GetOrganizationTenancyOutput(ctx *Context, args *GetOrganizationTenancyOutputArgs, opts ...InvokeOption) GetOrganizationTenancyResultOutput
Copy

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

public static class GetOrganizationTenancy 
{
    public static Task<GetOrganizationTenancyResult> InvokeAsync(GetOrganizationTenancyArgs args, InvokeOptions? opts = null)
    public static Output<GetOrganizationTenancyResult> Invoke(GetOrganizationTenancyInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetOrganizationTenancyResult> getOrganizationTenancy(GetOrganizationTenancyArgs args, InvokeOptions options)
public static Output<GetOrganizationTenancyResult> getOrganizationTenancy(GetOrganizationTenancyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Tenantmanagercontrolplane/getOrganizationTenancy:getOrganizationTenancy
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

OrganizationId This property is required. string
OCID of the organization.
TenancyId This property is required. string
OCID of the tenancy to retrieve.
OrganizationId This property is required. string
OCID of the organization.
TenancyId This property is required. string
OCID of the tenancy to retrieve.
organizationId This property is required. String
OCID of the organization.
tenancyId This property is required. String
OCID of the tenancy to retrieve.
organizationId This property is required. string
OCID of the organization.
tenancyId This property is required. string
OCID of the tenancy to retrieve.
organization_id This property is required. str
OCID of the organization.
tenancy_id This property is required. str
OCID of the tenancy to retrieve.
organizationId This property is required. String
OCID of the organization.
tenancyId This property is required. String
OCID of the tenancy to retrieve.

getOrganizationTenancy Result

The following output properties are available:

GovernanceStatus string
The governance status of the tenancy.
Id string
The provider-assigned unique ID for this managed resource.
IsApprovedForTransfer bool
Parameter to indicate the tenancy is approved for transfer to another organization.
Name string
Name of the tenancy.
OrganizationId string
Role string
Role of the organization tenancy.
State string
Lifecycle state of the organization tenancy.
TenancyId string
OCID of the tenancy.
TimeJoined string
Date and time when the tenancy joined the organization.
TimeLeft string
Date and time when the tenancy left the organization.
GovernanceStatus string
The governance status of the tenancy.
Id string
The provider-assigned unique ID for this managed resource.
IsApprovedForTransfer bool
Parameter to indicate the tenancy is approved for transfer to another organization.
Name string
Name of the tenancy.
OrganizationId string
Role string
Role of the organization tenancy.
State string
Lifecycle state of the organization tenancy.
TenancyId string
OCID of the tenancy.
TimeJoined string
Date and time when the tenancy joined the organization.
TimeLeft string
Date and time when the tenancy left the organization.
governanceStatus String
The governance status of the tenancy.
id String
The provider-assigned unique ID for this managed resource.
isApprovedForTransfer Boolean
Parameter to indicate the tenancy is approved for transfer to another organization.
name String
Name of the tenancy.
organizationId String
role String
Role of the organization tenancy.
state String
Lifecycle state of the organization tenancy.
tenancyId String
OCID of the tenancy.
timeJoined String
Date and time when the tenancy joined the organization.
timeLeft String
Date and time when the tenancy left the organization.
governanceStatus string
The governance status of the tenancy.
id string
The provider-assigned unique ID for this managed resource.
isApprovedForTransfer boolean
Parameter to indicate the tenancy is approved for transfer to another organization.
name string
Name of the tenancy.
organizationId string
role string
Role of the organization tenancy.
state string
Lifecycle state of the organization tenancy.
tenancyId string
OCID of the tenancy.
timeJoined string
Date and time when the tenancy joined the organization.
timeLeft string
Date and time when the tenancy left the organization.
governance_status str
The governance status of the tenancy.
id str
The provider-assigned unique ID for this managed resource.
is_approved_for_transfer bool
Parameter to indicate the tenancy is approved for transfer to another organization.
name str
Name of the tenancy.
organization_id str
role str
Role of the organization tenancy.
state str
Lifecycle state of the organization tenancy.
tenancy_id str
OCID of the tenancy.
time_joined str
Date and time when the tenancy joined the organization.
time_left str
Date and time when the tenancy left the organization.
governanceStatus String
The governance status of the tenancy.
id String
The provider-assigned unique ID for this managed resource.
isApprovedForTransfer Boolean
Parameter to indicate the tenancy is approved for transfer to another organization.
name String
Name of the tenancy.
organizationId String
role String
Role of the organization tenancy.
state String
Lifecycle state of the organization tenancy.
tenancyId String
OCID of the tenancy.
timeJoined String
Date and time when the tenancy joined the organization.
timeLeft String
Date and time when the tenancy left the organization.

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