1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Tenantmanagercontrolplane
  5. getOrganizationTenancies
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.Tenantmanagercontrolplane.getOrganizationTenancies

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

This data source provides the list of Organization Tenancies in Oracle Cloud Infrastructure Tenantmanagercontrolplane service.

Gets a list of tenancies in the organization.

Example Usage

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

const testOrganizationTenancies = oci.Tenantmanagercontrolplane.getOrganizationTenancies({
    organizationId: testOrganization.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_organization_tenancies = oci.Tenantmanagercontrolplane.get_organization_tenancies(organization_id=test_organization["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.GetOrganizationTenancies(ctx, &tenantmanagercontrolplane.GetOrganizationTenanciesArgs{
			OrganizationId: testOrganization.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 testOrganizationTenancies = Oci.Tenantmanagercontrolplane.GetOrganizationTenancies.Invoke(new()
    {
        OrganizationId = testOrganization.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.GetOrganizationTenanciesArgs;
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 testOrganizationTenancies = TenantmanagercontrolplaneFunctions.getOrganizationTenancies(GetOrganizationTenanciesArgs.builder()
            .organizationId(testOrganization.id())
            .build());

    }
}
Copy
variables:
  testOrganizationTenancies:
    fn::invoke:
      function: oci:Tenantmanagercontrolplane:getOrganizationTenancies
      arguments:
        organizationId: ${testOrganization.id}
Copy

Using getOrganizationTenancies

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 getOrganizationTenancies(args: GetOrganizationTenanciesArgs, opts?: InvokeOptions): Promise<GetOrganizationTenanciesResult>
function getOrganizationTenanciesOutput(args: GetOrganizationTenanciesOutputArgs, opts?: InvokeOptions): Output<GetOrganizationTenanciesResult>
Copy
def get_organization_tenancies(filters: Optional[Sequence[_tenantmanagercontrolplane.GetOrganizationTenanciesFilter]] = None,
                               organization_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetOrganizationTenanciesResult
def get_organization_tenancies_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_tenantmanagercontrolplane.GetOrganizationTenanciesFilterArgs]]]] = None,
                               organization_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationTenanciesResult]
Copy
func GetOrganizationTenancies(ctx *Context, args *GetOrganizationTenanciesArgs, opts ...InvokeOption) (*GetOrganizationTenanciesResult, error)
func GetOrganizationTenanciesOutput(ctx *Context, args *GetOrganizationTenanciesOutputArgs, opts ...InvokeOption) GetOrganizationTenanciesResultOutput
Copy

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

public static class GetOrganizationTenancies 
{
    public static Task<GetOrganizationTenanciesResult> InvokeAsync(GetOrganizationTenanciesArgs args, InvokeOptions? opts = null)
    public static Output<GetOrganizationTenanciesResult> Invoke(GetOrganizationTenanciesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetOrganizationTenanciesResult> getOrganizationTenancies(GetOrganizationTenanciesArgs args, InvokeOptions options)
public static Output<GetOrganizationTenanciesResult> getOrganizationTenancies(GetOrganizationTenanciesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Tenantmanagercontrolplane/getOrganizationTenancies:getOrganizationTenancies
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

OrganizationId This property is required. string
OCID of the organization.
Filters Changes to this property will trigger replacement. List<GetOrganizationTenanciesFilter>
OrganizationId This property is required. string
OCID of the organization.
Filters Changes to this property will trigger replacement. []GetOrganizationTenanciesFilter
organizationId This property is required. String
OCID of the organization.
filters Changes to this property will trigger replacement. List<GetOrganizationTenanciesFilter>
organizationId This property is required. string
OCID of the organization.
filters Changes to this property will trigger replacement. GetOrganizationTenanciesFilter[]
organization_id This property is required. str
OCID of the organization.
filters Changes to this property will trigger replacement. Sequence[tenantmanagercontrolplane.GetOrganizationTenanciesFilter]
organizationId This property is required. String
OCID of the organization.
filters Changes to this property will trigger replacement. List<Property Map>

getOrganizationTenancies Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
OrganizationTenancyCollections List<GetOrganizationTenanciesOrganizationTenancyCollection>
The list of organization_tenancy_collection.
Filters List<GetOrganizationTenanciesFilter>
Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
OrganizationTenancyCollections []GetOrganizationTenanciesOrganizationTenancyCollection
The list of organization_tenancy_collection.
Filters []GetOrganizationTenanciesFilter
id String
The provider-assigned unique ID for this managed resource.
organizationId String
organizationTenancyCollections List<GetOrganizationTenanciesOrganizationTenancyCollection>
The list of organization_tenancy_collection.
filters List<GetOrganizationTenanciesFilter>
id string
The provider-assigned unique ID for this managed resource.
organizationId string
organizationTenancyCollections GetOrganizationTenanciesOrganizationTenancyCollection[]
The list of organization_tenancy_collection.
filters GetOrganizationTenanciesFilter[]
id String
The provider-assigned unique ID for this managed resource.
organizationId String
organizationTenancyCollections List<Property Map>
The list of organization_tenancy_collection.
filters List<Property Map>

Supporting Types

GetOrganizationTenanciesFilter

Name This property is required. string
Name of the tenancy.
Values This property is required. List<string>
Regex bool
Name This property is required. string
Name of the tenancy.
Values This property is required. []string
Regex bool
name This property is required. String
Name of the tenancy.
values This property is required. List<String>
regex Boolean
name This property is required. string
Name of the tenancy.
values This property is required. string[]
regex boolean
name This property is required. str
Name of the tenancy.
values This property is required. Sequence[str]
regex bool
name This property is required. String
Name of the tenancy.
values This property is required. List<String>
regex Boolean

GetOrganizationTenanciesOrganizationTenancyCollection

items This property is required. List<Property Map>

GetOrganizationTenanciesOrganizationTenancyCollectionItem

GovernanceStatus This property is required. string
The governance status of the tenancy.
IsApprovedForTransfer This property is required. bool
Parameter to indicate the tenancy is approved for transfer to another organization.
Name This property is required. string
Name of the tenancy.
Role This property is required. string
Role of the organization tenancy.
State This property is required. string
Lifecycle state of the organization tenancy.
TenancyId This property is required. string
OCID of the tenancy.
TimeJoined This property is required. string
Date and time when the tenancy joined the organization.
TimeLeft This property is required. string
Date and time when the tenancy left the organization.
GovernanceStatus This property is required. string
The governance status of the tenancy.
IsApprovedForTransfer This property is required. bool
Parameter to indicate the tenancy is approved for transfer to another organization.
Name This property is required. string
Name of the tenancy.
Role This property is required. string
Role of the organization tenancy.
State This property is required. string
Lifecycle state of the organization tenancy.
TenancyId This property is required. string
OCID of the tenancy.
TimeJoined This property is required. string
Date and time when the tenancy joined the organization.
TimeLeft This property is required. string
Date and time when the tenancy left the organization.
governanceStatus This property is required. String
The governance status of the tenancy.
isApprovedForTransfer This property is required. Boolean
Parameter to indicate the tenancy is approved for transfer to another organization.
name This property is required. String
Name of the tenancy.
role This property is required. String
Role of the organization tenancy.
state This property is required. String
Lifecycle state of the organization tenancy.
tenancyId This property is required. String
OCID of the tenancy.
timeJoined This property is required. String
Date and time when the tenancy joined the organization.
timeLeft This property is required. String
Date and time when the tenancy left the organization.
governanceStatus This property is required. string
The governance status of the tenancy.
isApprovedForTransfer This property is required. boolean
Parameter to indicate the tenancy is approved for transfer to another organization.
name This property is required. string
Name of the tenancy.
role This property is required. string
Role of the organization tenancy.
state This property is required. string
Lifecycle state of the organization tenancy.
tenancyId This property is required. string
OCID of the tenancy.
timeJoined This property is required. string
Date and time when the tenancy joined the organization.
timeLeft This property is required. string
Date and time when the tenancy left the organization.
governance_status This property is required. str
The governance status of the tenancy.
is_approved_for_transfer This property is required. bool
Parameter to indicate the tenancy is approved for transfer to another organization.
name This property is required. str
Name of the tenancy.
role This property is required. str
Role of the organization tenancy.
state This property is required. str
Lifecycle state of the organization tenancy.
tenancy_id This property is required. str
OCID of the tenancy.
time_joined This property is required. str
Date and time when the tenancy joined the organization.
time_left This property is required. str
Date and time when the tenancy left the organization.
governanceStatus This property is required. String
The governance status of the tenancy.
isApprovedForTransfer This property is required. Boolean
Parameter to indicate the tenancy is approved for transfer to another organization.
name This property is required. String
Name of the tenancy.
role This property is required. String
Role of the organization tenancy.
state This property is required. String
Lifecycle state of the organization tenancy.
tenancyId This property is required. String
OCID of the tenancy.
timeJoined This property is required. String
Date and time when the tenancy joined the organization.
timeLeft This property is required. 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.29.0 published on Wednesday, Apr 9, 2025 by Pulumi