Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Tenantmanagercontrolplane.getOrganizations
Explore with Pulumi AI
This data source provides the list of Organizations in Oracle Cloud Infrastructure Tenantmanagercontrolplane service.
Lists organizations associated with the caller.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOrganizations = oci.Tenantmanagercontrolplane.getOrganizations({
    compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_organizations = oci.Tenantmanagercontrolplane.get_organizations(compartment_id=compartment_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.GetOrganizations(ctx, &tenantmanagercontrolplane.GetOrganizationsArgs{
			CompartmentId: compartmentId,
		}, 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 testOrganizations = Oci.Tenantmanagercontrolplane.GetOrganizations.Invoke(new()
    {
        CompartmentId = compartmentId,
    });
});
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.GetOrganizationsArgs;
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 testOrganizations = TenantmanagercontrolplaneFunctions.getOrganizations(GetOrganizationsArgs.builder()
            .compartmentId(compartmentId)
            .build());
    }
}
variables:
  testOrganizations:
    fn::invoke:
      function: oci:Tenantmanagercontrolplane:getOrganizations
      arguments:
        compartmentId: ${compartmentId}
Using getOrganizations
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 getOrganizations(args: GetOrganizationsArgs, opts?: InvokeOptions): Promise<GetOrganizationsResult>
function getOrganizationsOutput(args: GetOrganizationsOutputArgs, opts?: InvokeOptions): Output<GetOrganizationsResult>def get_organizations(compartment_id: Optional[str] = None,
                      filters: Optional[Sequence[GetOrganizationsFilter]] = None,
                      opts: Optional[InvokeOptions] = None) -> GetOrganizationsResult
def get_organizations_output(compartment_id: Optional[pulumi.Input[str]] = None,
                      filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetOrganizationsFilterArgs]]]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationsResult]func GetOrganizations(ctx *Context, args *GetOrganizationsArgs, opts ...InvokeOption) (*GetOrganizationsResult, error)
func GetOrganizationsOutput(ctx *Context, args *GetOrganizationsOutputArgs, opts ...InvokeOption) GetOrganizationsResultOutput> Note: This function is named GetOrganizations in the Go SDK.
public static class GetOrganizations 
{
    public static Task<GetOrganizationsResult> InvokeAsync(GetOrganizationsArgs args, InvokeOptions? opts = null)
    public static Output<GetOrganizationsResult> Invoke(GetOrganizationsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOrganizationsResult> getOrganizations(GetOrganizationsArgs args, InvokeOptions options)
public static Output<GetOrganizationsResult> getOrganizations(GetOrganizationsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Tenantmanagercontrolplane/getOrganizations:getOrganizations
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The ID of the compartment in which to list resources.
- Filters
List<GetOrganizations Filter> 
- CompartmentId string
- The ID of the compartment in which to list resources.
- Filters
[]GetOrganizations Filter 
- compartmentId String
- The ID of the compartment in which to list resources.
- filters
List<GetOrganizations Filter> 
- compartmentId string
- The ID of the compartment in which to list resources.
- filters
GetOrganizations Filter[] 
- compartment_id str
- The ID of the compartment in which to list resources.
- filters
Sequence[GetOrganizations Filter] 
- compartmentId String
- The ID of the compartment in which to list resources.
- filters List<Property Map>
getOrganizations Result
The following output properties are available:
- CompartmentId string
- OCID of the compartment containing the organization. Always a tenancy OCID.
- Id string
- The provider-assigned unique ID for this managed resource.
- OrganizationCollections List<GetOrganizations Organization Collection> 
- The list of organization_collection.
- Filters
List<GetOrganizations Filter> 
- CompartmentId string
- OCID of the compartment containing the organization. Always a tenancy OCID.
- Id string
- The provider-assigned unique ID for this managed resource.
- OrganizationCollections []GetOrganizations Organization Collection 
- The list of organization_collection.
- Filters
[]GetOrganizations Filter 
- compartmentId String
- OCID of the compartment containing the organization. Always a tenancy OCID.
- id String
- The provider-assigned unique ID for this managed resource.
- organizationCollections List<GetOrganizations Organization Collection> 
- The list of organization_collection.
- filters
List<GetOrganizations Filter> 
- compartmentId string
- OCID of the compartment containing the organization. Always a tenancy OCID.
- id string
- The provider-assigned unique ID for this managed resource.
- organizationCollections GetOrganizations Organization Collection[] 
- The list of organization_collection.
- filters
GetOrganizations Filter[] 
- compartment_id str
- OCID of the compartment containing the organization. Always a tenancy OCID.
- id str
- The provider-assigned unique ID for this managed resource.
- organization_collections Sequence[GetOrganizations Organization Collection] 
- The list of organization_collection.
- filters
Sequence[GetOrganizations Filter] 
- compartmentId String
- OCID of the compartment containing the organization. Always a tenancy OCID.
- id String
- The provider-assigned unique ID for this managed resource.
- organizationCollections List<Property Map>
- The list of organization_collection.
- filters List<Property Map>
Supporting Types
GetOrganizationsFilter  
GetOrganizationsOrganizationCollection   
GetOrganizationsOrganizationCollectionItem    
- CompartmentId string
- The ID of the compartment in which to list resources.
- DefaultUcm stringSubscription Id 
- OCID of the default Universal Credits Model subscription. Any tenancy joining the organization will automatically get assigned this subscription, if a subscription is not explictly assigned.
- DisplayName string
- A display name for the organization. Avoid entering confidential information.
- Id string
- OCID of the organization.
- ParentName string
- The name of the tenancy that is the organization parent.
- State string
- Lifecycle state of the organization.
- TimeCreated string
- Date and time when the organization was created.
- TimeUpdated string
- Date and time when the organization was last updated.
- CompartmentId string
- The ID of the compartment in which to list resources.
- DefaultUcm stringSubscription Id 
- OCID of the default Universal Credits Model subscription. Any tenancy joining the organization will automatically get assigned this subscription, if a subscription is not explictly assigned.
- DisplayName string
- A display name for the organization. Avoid entering confidential information.
- Id string
- OCID of the organization.
- ParentName string
- The name of the tenancy that is the organization parent.
- State string
- Lifecycle state of the organization.
- TimeCreated string
- Date and time when the organization was created.
- TimeUpdated string
- Date and time when the organization was last updated.
- compartmentId String
- The ID of the compartment in which to list resources.
- defaultUcm StringSubscription Id 
- OCID of the default Universal Credits Model subscription. Any tenancy joining the organization will automatically get assigned this subscription, if a subscription is not explictly assigned.
- displayName String
- A display name for the organization. Avoid entering confidential information.
- id String
- OCID of the organization.
- parentName String
- The name of the tenancy that is the organization parent.
- state String
- Lifecycle state of the organization.
- timeCreated String
- Date and time when the organization was created.
- timeUpdated String
- Date and time when the organization was last updated.
- compartmentId string
- The ID of the compartment in which to list resources.
- defaultUcm stringSubscription Id 
- OCID of the default Universal Credits Model subscription. Any tenancy joining the organization will automatically get assigned this subscription, if a subscription is not explictly assigned.
- displayName string
- A display name for the organization. Avoid entering confidential information.
- id string
- OCID of the organization.
- parentName string
- The name of the tenancy that is the organization parent.
- state string
- Lifecycle state of the organization.
- timeCreated string
- Date and time when the organization was created.
- timeUpdated string
- Date and time when the organization was last updated.
- compartment_id str
- The ID of the compartment in which to list resources.
- default_ucm_ strsubscription_ id 
- OCID of the default Universal Credits Model subscription. Any tenancy joining the organization will automatically get assigned this subscription, if a subscription is not explictly assigned.
- display_name str
- A display name for the organization. Avoid entering confidential information.
- id str
- OCID of the organization.
- parent_name str
- The name of the tenancy that is the organization parent.
- state str
- Lifecycle state of the organization.
- time_created str
- Date and time when the organization was created.
- time_updated str
- Date and time when the organization was last updated.
- compartmentId String
- The ID of the compartment in which to list resources.
- defaultUcm StringSubscription Id 
- OCID of the default Universal Credits Model subscription. Any tenancy joining the organization will automatically get assigned this subscription, if a subscription is not explictly assigned.
- displayName String
- A display name for the organization. Avoid entering confidential information.
- id String
- OCID of the organization.
- parentName String
- The name of the tenancy that is the organization parent.
- state String
- Lifecycle state of the organization.
- timeCreated String
- Date and time when the organization was created.
- timeUpdated String
- Date and time when the organization was last updated.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.