Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Tenantmanagercontrolplane.getOrganization
Explore with Pulumi AI
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,
});
import pulumi
import pulumi_oci as oci
test_organization = oci.Tenantmanagercontrolplane.get_organization(organization_id=test_organization_oci_tenantmanagercontrolplane_organization["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.GetOrganization(ctx, &tenantmanagercontrolplane.GetOrganizationArgs{
			OrganizationId: testOrganizationOciTenantmanagercontrolplaneOrganization.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 testOrganization = Oci.Tenantmanagercontrolplane.GetOrganization.Invoke(new()
    {
        OrganizationId = testOrganizationOciTenantmanagercontrolplaneOrganization.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.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());
    }
}
variables:
  testOrganization:
    fn::invoke:
      function: oci:Tenantmanagercontrolplane:getOrganization
      arguments:
        organizationId: ${testOrganizationOciTenantmanagercontrolplaneOrganization.id}
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>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]func GetOrganization(ctx *Context, args *GetOrganizationArgs, opts ...InvokeOption) (*GetOrganizationResult, error)
func GetOrganizationOutput(ctx *Context, args *GetOrganizationOutputArgs, opts ...InvokeOption) GetOrganizationResultOutput> 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)
}public static CompletableFuture<GetOrganizationResult> getOrganization(GetOrganizationArgs args, InvokeOptions options)
public static Output<GetOrganizationResult> getOrganization(GetOrganizationArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Tenantmanagercontrolplane/getOrganization:getOrganization
  arguments:
    # arguments dictionaryThe following arguments are supported:
- OrganizationId string
- OCID of the organization to retrieve.
- OrganizationId string
- OCID of the organization to retrieve.
- organizationId String
- OCID of the organization to retrieve.
- organizationId string
- OCID of the organization to retrieve.
- organization_id str
- OCID of the organization to retrieve.
- organizationId 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.
- 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
- 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.
- 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
- 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.
- 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
- 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.
- 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
- 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_ 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
- 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.
- 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
- 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 ociTerraform Provider.