Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 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:
- Organization
Id string - OCID of the organization to retrieve.
 
- Organization
Id string - OCID of the organization to retrieve.
 
- organization
Id String - OCID of the organization to retrieve.
 
- organization
Id string - OCID of the organization to retrieve.
 
- organization_
id str - OCID of the organization to retrieve.
 
- organization
Id String - OCID of the organization to retrieve.
 
getOrganization Result
The following output properties are available:
- Compartment
Id string - OCID of the compartment containing the organization. Always a tenancy OCID.
 - Default
Ucm 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.
 - Display
Name string - A display name for the organization. Avoid entering confidential information.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Organization
Id string - Parent
Name string - The name of the tenancy that is the organization parent.
 - State string
 - Lifecycle state of the organization.
 - Time
Created string - Date and time when the organization was created.
 - Time
Updated string - Date and time when the organization was last updated.
 
- Compartment
Id string - OCID of the compartment containing the organization. Always a tenancy OCID.
 - Default
Ucm 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.
 - Display
Name string - A display name for the organization. Avoid entering confidential information.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Organization
Id string - Parent
Name string - The name of the tenancy that is the organization parent.
 - State string
 - Lifecycle state of the organization.
 - Time
Created string - Date and time when the organization was created.
 - Time
Updated string - Date and time when the organization was last updated.
 
- compartment
Id String - OCID of the compartment containing the organization. Always a tenancy OCID.
 - default
Ucm 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.
 - display
Name String - A display name for the organization. Avoid entering confidential information.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - organization
Id String - parent
Name String - The name of the tenancy that is the organization parent.
 - state String
 - Lifecycle state of the organization.
 - time
Created String - Date and time when the organization was created.
 - time
Updated String - Date and time when the organization was last updated.
 
- compartment
Id string - OCID of the compartment containing the organization. Always a tenancy OCID.
 - default
Ucm 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.
 - display
Name string - A display name for the organization. Avoid entering confidential information.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - organization
Id string - parent
Name string - The name of the tenancy that is the organization parent.
 - state string
 - Lifecycle state of the organization.
 - time
Created string - Date and time when the organization was created.
 - time
Updated 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.
 
- compartment
Id String - OCID of the compartment containing the organization. Always a tenancy OCID.
 - default
Ucm 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.
 - display
Name String - A display name for the organization. Avoid entering confidential information.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - organization
Id String - parent
Name String - The name of the tenancy that is the organization parent.
 - state String
 - Lifecycle state of the organization.
 - time
Created String - Date and time when the organization was created.
 - time
Updated 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.