1. Packages
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. Tenantmanagercontrolplane
  6. getLinkTenancyName
Viewing docs for Oracle Cloud Infrastructure v4.17.0
published on Thursday, Jun 25, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.17.0
published on Thursday, Jun 25, 2026 by Pulumi

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

    Gets information about the link along with the parent and child tenancy names.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testLinkTenancyName = oci.tenantmanagercontrolplane.getLinkTenancyName({
        linkId: testLink.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_link_tenancy_name = oci.tenantmanagercontrolplane.get_link_tenancy_name(link_id=test_link["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/tenantmanagercontrolplane"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tenantmanagercontrolplane.GetLinkTenancyName(ctx, &tenantmanagercontrolplane.GetLinkTenancyNameArgs{
    			LinkId: testLink.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 testLinkTenancyName = Oci.Tenantmanagercontrolplane.GetLinkTenancyName.Invoke(new()
        {
            LinkId = testLink.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.GetLinkTenancyNameArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testLinkTenancyName = TenantmanagercontrolplaneFunctions.getLinkTenancyName(GetLinkTenancyNameArgs.builder()
                .linkId(testLink.id())
                .build());
    
        }
    }
    
    variables:
      testLinkTenancyName:
        fn::invoke:
          function: oci:Tenantmanagercontrolplane:getLinkTenancyName
          arguments:
            linkId: ${testLink.id}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_tenantmanagercontrolplane_getlinktenancyname" "testLinkTenancyName" {
      link_id = testLink.id
    }
    

    Using getLinkTenancyName

    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 getLinkTenancyName(args: GetLinkTenancyNameArgs, opts?: InvokeOptions): Promise<GetLinkTenancyNameResult>
    function getLinkTenancyNameOutput(args: GetLinkTenancyNameOutputArgs, opts?: InvokeOptions): Output<GetLinkTenancyNameResult>
    def get_link_tenancy_name(link_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetLinkTenancyNameResult
    def get_link_tenancy_name_output(link_id: pulumi.Input[Optional[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetLinkTenancyNameResult]
    func GetLinkTenancyName(ctx *Context, args *GetLinkTenancyNameArgs, opts ...InvokeOption) (*GetLinkTenancyNameResult, error)
    func GetLinkTenancyNameOutput(ctx *Context, args *GetLinkTenancyNameOutputArgs, opts ...InvokeOption) GetLinkTenancyNameResultOutput

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

    public static class GetLinkTenancyName 
    {
        public static Task<GetLinkTenancyNameResult> InvokeAsync(GetLinkTenancyNameArgs args, InvokeOptions? opts = null)
        public static Output<GetLinkTenancyNameResult> Invoke(GetLinkTenancyNameInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLinkTenancyNameResult> getLinkTenancyName(GetLinkTenancyNameArgs args, InvokeOptions options)
    public static Output<GetLinkTenancyNameResult> getLinkTenancyName(GetLinkTenancyNameArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:Tenantmanagercontrolplane/getLinkTenancyName:getLinkTenancyName
      arguments:
        # arguments dictionary
    data "oci_tenantmanagercontrolplane_getlinktenancyname" "name" {
        # arguments
    }

    The following arguments are supported:

    LinkId string
    OCID of the link to retrieve.
    LinkId string
    OCID of the link to retrieve.
    link_id string
    OCID of the link to retrieve.
    linkId String
    OCID of the link to retrieve.
    linkId string
    OCID of the link to retrieve.
    link_id str
    OCID of the link to retrieve.
    linkId String
    OCID of the link to retrieve.

    getLinkTenancyName Result

    The following output properties are available:

    ChildTenancyId string
    OCID of the child tenancy.
    ChildTenancyName string
    Name of the child tenancy.
    Feature string
    The feature associated with this link. Default value is CORE.
    Id string
    The provider-assigned unique ID for this managed resource.
    LinkId string
    ParentTenancyId string
    OCID of the parent tenancy.
    ParentTenancyName string
    Name of the parent tenancy.
    State string
    Lifecycle state of the link.
    TimeCreated string
    Date-time when this link was created.
    TimeTerminated string
    Date-time when this link was terminated.
    TimeUpdated string
    Date-time when this link was last updated.
    ChildTenancyId string
    OCID of the child tenancy.
    ChildTenancyName string
    Name of the child tenancy.
    Feature string
    The feature associated with this link. Default value is CORE.
    Id string
    The provider-assigned unique ID for this managed resource.
    LinkId string
    ParentTenancyId string
    OCID of the parent tenancy.
    ParentTenancyName string
    Name of the parent tenancy.
    State string
    Lifecycle state of the link.
    TimeCreated string
    Date-time when this link was created.
    TimeTerminated string
    Date-time when this link was terminated.
    TimeUpdated string
    Date-time when this link was last updated.
    child_tenancy_id string
    OCID of the child tenancy.
    child_tenancy_name string
    Name of the child tenancy.
    feature string
    The feature associated with this link. Default value is CORE.
    id string
    The provider-assigned unique ID for this managed resource.
    link_id string
    parent_tenancy_id string
    OCID of the parent tenancy.
    parent_tenancy_name string
    Name of the parent tenancy.
    state string
    Lifecycle state of the link.
    time_created string
    Date-time when this link was created.
    time_terminated string
    Date-time when this link was terminated.
    time_updated string
    Date-time when this link was last updated.
    childTenancyId String
    OCID of the child tenancy.
    childTenancyName String
    Name of the child tenancy.
    feature String
    The feature associated with this link. Default value is CORE.
    id String
    The provider-assigned unique ID for this managed resource.
    linkId String
    parentTenancyId String
    OCID of the parent tenancy.
    parentTenancyName String
    Name of the parent tenancy.
    state String
    Lifecycle state of the link.
    timeCreated String
    Date-time when this link was created.
    timeTerminated String
    Date-time when this link was terminated.
    timeUpdated String
    Date-time when this link was last updated.
    childTenancyId string
    OCID of the child tenancy.
    childTenancyName string
    Name of the child tenancy.
    feature string
    The feature associated with this link. Default value is CORE.
    id string
    The provider-assigned unique ID for this managed resource.
    linkId string
    parentTenancyId string
    OCID of the parent tenancy.
    parentTenancyName string
    Name of the parent tenancy.
    state string
    Lifecycle state of the link.
    timeCreated string
    Date-time when this link was created.
    timeTerminated string
    Date-time when this link was terminated.
    timeUpdated string
    Date-time when this link was last updated.
    child_tenancy_id str
    OCID of the child tenancy.
    child_tenancy_name str
    Name of the child tenancy.
    feature str
    The feature associated with this link. Default value is CORE.
    id str
    The provider-assigned unique ID for this managed resource.
    link_id str
    parent_tenancy_id str
    OCID of the parent tenancy.
    parent_tenancy_name str
    Name of the parent tenancy.
    state str
    Lifecycle state of the link.
    time_created str
    Date-time when this link was created.
    time_terminated str
    Date-time when this link was terminated.
    time_updated str
    Date-time when this link was last updated.
    childTenancyId String
    OCID of the child tenancy.
    childTenancyName String
    Name of the child tenancy.
    feature String
    The feature associated with this link. Default value is CORE.
    id String
    The provider-assigned unique ID for this managed resource.
    linkId String
    parentTenancyId String
    OCID of the parent tenancy.
    parentTenancyName String
    Name of the parent tenancy.
    state String
    Lifecycle state of the link.
    timeCreated String
    Date-time when this link was created.
    timeTerminated String
    Date-time when this link was terminated.
    timeUpdated String
    Date-time when this link 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.
    oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.17.0
    published on Thursday, Jun 25, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial