Viewing docs for Oracle Cloud Infrastructure v4.16.0
published on Wednesday, Jun 17, 2026 by Pulumi
published on Wednesday, Jun 17, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.16.0
published on Wednesday, Jun 17, 2026 by Pulumi
published on Wednesday, Jun 17, 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 dictionarydata "oci_tenantmanagercontrolplane_getlinktenancyname" "name" {
# arguments
}The following arguments are supported:
- Link
Id string - OCID of the link to retrieve.
- Link
Id string - OCID of the link to retrieve.
- link_
id string - OCID of the link to retrieve.
- link
Id String - OCID of the link to retrieve.
- link
Id string - OCID of the link to retrieve.
- link_
id str - OCID of the link to retrieve.
- link
Id String - OCID of the link to retrieve.
getLinkTenancyName Result
The following output properties are available:
- Child
Tenancy stringId - OCID of the child tenancy.
- Child
Tenancy stringName - 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 stringId - OCID of the parent tenancy.
- Parent
Tenancy stringName - 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.
- Child
Tenancy stringId - OCID of the child tenancy.
- Child
Tenancy stringName - 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 stringId - OCID of the parent tenancy.
- Parent
Tenancy stringName - 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.
- child_
tenancy_ stringid - OCID of the child tenancy.
- child_
tenancy_ stringname - 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_ stringid - OCID of the parent tenancy.
- parent_
tenancy_ stringname - 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.
- child
Tenancy StringId - OCID of the child tenancy.
- child
Tenancy StringName - 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 StringId - OCID of the parent tenancy.
- parent
Tenancy StringName - 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.
- child
Tenancy stringId - OCID of the child tenancy.
- child
Tenancy stringName - 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 stringId - OCID of the parent tenancy.
- parent
Tenancy stringName - 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.
- child_
tenancy_ strid - OCID of the child tenancy.
- child_
tenancy_ strname - 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_ strid - OCID of the parent tenancy.
- parent_
tenancy_ strname - 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.
- child
Tenancy StringId - OCID of the child tenancy.
- child
Tenancy StringName - 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 StringId - OCID of the parent tenancy.
- parent
Tenancy StringName - 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.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.16.0
published on Wednesday, Jun 17, 2026 by Pulumi
published on Wednesday, Jun 17, 2026 by Pulumi