Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Tenantmanagercontrolplane.getLink
Explore with Pulumi AI
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/v2/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:
- LinkId string
- OCID of the link to retrieve.
- LinkId 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.
getLink Result
The following output properties are available:
- ChildTenancy stringId 
- OCID of the child tenancy.
- Id string
- The provider-assigned unique ID for this managed resource.
- LinkId string
- ParentTenancy stringId 
- OCID 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.
- ChildTenancy stringId 
- OCID of the child tenancy.
- Id string
- The provider-assigned unique ID for this managed resource.
- LinkId string
- ParentTenancy stringId 
- OCID 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.
- childTenancy StringId 
- OCID of the child tenancy.
- id String
- The provider-assigned unique ID for this managed resource.
- linkId String
- parentTenancy StringId 
- OCID 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.
- childTenancy stringId 
- OCID of the child tenancy.
- id string
- The provider-assigned unique ID for this managed resource.
- linkId string
- parentTenancy stringId 
- OCID 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_ 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.
- childTenancy StringId 
- OCID of the child tenancy.
- id String
- The provider-assigned unique ID for this managed resource.
- linkId String
- parentTenancy StringId 
- OCID 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 ociTerraform Provider.