1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Tenantmanagercontrolplane
  5. getOrganization
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Tenantmanagercontrolplane.getOrganization

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

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

Gets information about the organization.

Example Usage

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

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

test_organization = oci.Tenantmanagercontrolplane.get_organization(organization_id=test_organization_oci_tenantmanagercontrolplane_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.GetOrganization(ctx, &tenantmanagercontrolplane.GetOrganizationArgs{
			OrganizationId: testOrganizationOciTenantmanagercontrolplaneOrganization.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 testOrganization = Oci.Tenantmanagercontrolplane.GetOrganization.Invoke(new()
    {
        OrganizationId = testOrganizationOciTenantmanagercontrolplaneOrganization.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.GetOrganizationArgs;
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 testOrganization = TenantmanagercontrolplaneFunctions.getOrganization(GetOrganizationArgs.builder()
            .organizationId(testOrganizationOciTenantmanagercontrolplaneOrganization.id())
            .build());

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

Using getOrganization

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 getOrganization(args: GetOrganizationArgs, opts?: InvokeOptions): Promise<GetOrganizationResult>
function getOrganizationOutput(args: GetOrganizationOutputArgs, opts?: InvokeOptions): Output<GetOrganizationResult>
Copy
def get_organization(organization_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetOrganizationResult
def get_organization_output(organization_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationResult]
Copy
func GetOrganization(ctx *Context, args *GetOrganizationArgs, opts ...InvokeOption) (*GetOrganizationResult, error)
func GetOrganizationOutput(ctx *Context, args *GetOrganizationOutputArgs, opts ...InvokeOption) GetOrganizationResultOutput
Copy

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

public static class GetOrganization 
{
    public static Task<GetOrganizationResult> InvokeAsync(GetOrganizationArgs args, InvokeOptions? opts = null)
    public static Output<GetOrganizationResult> Invoke(GetOrganizationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetOrganizationResult> getOrganization(GetOrganizationArgs args, InvokeOptions options)
public static Output<GetOrganizationResult> getOrganization(GetOrganizationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Tenantmanagercontrolplane/getOrganization:getOrganization
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

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

getOrganization Result

The following output properties are available:

CompartmentId string
OCID of the compartment containing the organization. Always a tenancy OCID.
DefaultUcmSubscriptionId string
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
The provider-assigned unique ID for this managed resource.
OrganizationId string
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
OCID of the compartment containing the organization. Always a tenancy OCID.
DefaultUcmSubscriptionId string
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
The provider-assigned unique ID for this managed resource.
OrganizationId string
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
OCID of the compartment containing the organization. Always a tenancy OCID.
defaultUcmSubscriptionId String
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
The provider-assigned unique ID for this managed resource.
organizationId String
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
OCID of the compartment containing the organization. Always a tenancy OCID.
defaultUcmSubscriptionId string
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
The provider-assigned unique ID for this managed resource.
organizationId string
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
OCID of the compartment containing the organization. Always a tenancy OCID.
default_ucm_subscription_id str
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
The provider-assigned unique ID for this managed resource.
organization_id str
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
OCID of the compartment containing the organization. Always a tenancy OCID.
defaultUcmSubscriptionId String
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
The provider-assigned unique ID for this managed resource.
organizationId String
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 oci Terraform Provider.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi