Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.Tenantmanagercontrolplane.getLink
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
This data source provides details about a specific Link resource in Oracle Cloud Infrastructure Tenantmanagercontrolplane service.
Gets information about the link.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLink = oci.Tenantmanagercontrolplane.getLink({
linkId: testLinkOciTenantmanagercontrolplaneLink.id,
});
import pulumi
import pulumi_oci as oci
test_link = oci.Tenantmanagercontrolplane.get_link(link_id=test_link_oci_tenantmanagercontrolplane_link["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/tenantmanagercontrolplane"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tenantmanagercontrolplane.GetLink(ctx, &tenantmanagercontrolplane.GetLinkArgs{
LinkId: testLinkOciTenantmanagercontrolplaneLink.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 testLink = Oci.Tenantmanagercontrolplane.GetLink.Invoke(new()
{
LinkId = testLinkOciTenantmanagercontrolplaneLink.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.GetLinkArgs;
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 testLink = TenantmanagercontrolplaneFunctions.getLink(GetLinkArgs.builder()
.linkId(testLinkOciTenantmanagercontrolplaneLink.id())
.build());
}
}
variables:
testLink:
fn::invoke:
function: oci:Tenantmanagercontrolplane:getLink
arguments:
linkId: ${testLinkOciTenantmanagercontrolplaneLink.id}
Using getLink
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 getLink(args: GetLinkArgs, opts?: InvokeOptions): Promise<GetLinkResult>
function getLinkOutput(args: GetLinkOutputArgs, opts?: InvokeOptions): Output<GetLinkResult>def get_link(link_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLinkResult
def get_link_output(link_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLinkResult]func GetLink(ctx *Context, args *GetLinkArgs, opts ...InvokeOption) (*GetLinkResult, error)
func GetLinkOutput(ctx *Context, args *GetLinkOutputArgs, opts ...InvokeOption) GetLinkResultOutput> Note: This function is named GetLink in the Go SDK.
public static class GetLink
{
public static Task<GetLinkResult> InvokeAsync(GetLinkArgs args, InvokeOptions? opts = null)
public static Output<GetLinkResult> Invoke(GetLinkInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLinkResult> getLink(GetLinkArgs args, InvokeOptions options)
public static Output<GetLinkResult> getLink(GetLinkArgs args, InvokeOptions options)
fn::invoke:
function: oci:Tenantmanagercontrolplane/getLink:getLink
arguments:
# arguments dictionaryThe 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 str - OCID of the link to retrieve.
- link
Id String - OCID of the link to retrieve.
getLink Result
The following output properties are available:
- Child
Tenancy stringId - OCID of the child tenancy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Link
Id string - Parent
Tenancy stringId - OCID 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Link
Id string - Parent
Tenancy stringId - OCID 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.
- id String
- The provider-assigned unique ID for this managed resource.
- link
Id String - parent
Tenancy StringId - OCID 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.
- id string
- The provider-assigned unique ID for this managed resource.
- link
Id string - parent
Tenancy stringId - OCID 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.
- id str
- The provider-assigned unique ID for this managed resource.
- link_
id str - parent_
tenancy_ strid - OCID 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.
- id String
- The provider-assigned unique ID for this managed resource.
- link
Id String - parent
Tenancy StringId - OCID 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.
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
