Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.Tenantmanagercontrolplane.getLinks
This data source provides the list of Links in Oracle Cloud Infrastructure Tenantmanagercontrolplane service.
Return a (paginated) list of links.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLinks = oci.Tenantmanagercontrolplane.getLinks({
childTenancyId: testTenancy.id,
parentTenancyId: testTenancy.id,
state: linkState,
});
import pulumi
import pulumi_oci as oci
test_links = oci.Tenantmanagercontrolplane.get_links(child_tenancy_id=test_tenancy["id"],
parent_tenancy_id=test_tenancy["id"],
state=link_state)
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.GetLinks(ctx, &tenantmanagercontrolplane.GetLinksArgs{
ChildTenancyId: pulumi.StringRef(testTenancy.Id),
ParentTenancyId: pulumi.StringRef(testTenancy.Id),
State: pulumi.StringRef(linkState),
}, 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 testLinks = Oci.Tenantmanagercontrolplane.GetLinks.Invoke(new()
{
ChildTenancyId = testTenancy.Id,
ParentTenancyId = testTenancy.Id,
State = linkState,
});
});
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.GetLinksArgs;
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 testLinks = TenantmanagercontrolplaneFunctions.getLinks(GetLinksArgs.builder()
.childTenancyId(testTenancy.id())
.parentTenancyId(testTenancy.id())
.state(linkState)
.build());
}
}
variables:
testLinks:
fn::invoke:
function: oci:Tenantmanagercontrolplane:getLinks
arguments:
childTenancyId: ${testTenancy.id}
parentTenancyId: ${testTenancy.id}
state: ${linkState}
Using getLinks
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 getLinks(args: GetLinksArgs, opts?: InvokeOptions): Promise<GetLinksResult>
function getLinksOutput(args: GetLinksOutputArgs, opts?: InvokeOptions): Output<GetLinksResult>def get_links(child_tenancy_id: Optional[str] = None,
filters: Optional[Sequence[GetLinksFilter]] = None,
parent_tenancy_id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLinksResult
def get_links_output(child_tenancy_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetLinksFilterArgs]]]] = None,
parent_tenancy_id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLinksResult]func GetLinks(ctx *Context, args *GetLinksArgs, opts ...InvokeOption) (*GetLinksResult, error)
func GetLinksOutput(ctx *Context, args *GetLinksOutputArgs, opts ...InvokeOption) GetLinksResultOutput> Note: This function is named GetLinks in the Go SDK.
public static class GetLinks
{
public static Task<GetLinksResult> InvokeAsync(GetLinksArgs args, InvokeOptions? opts = null)
public static Output<GetLinksResult> Invoke(GetLinksInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLinksResult> getLinks(GetLinksArgs args, InvokeOptions options)
public static Output<GetLinksResult> getLinks(GetLinksArgs args, InvokeOptions options)
fn::invoke:
function: oci:Tenantmanagercontrolplane/getLinks:getLinks
arguments:
# arguments dictionaryThe following arguments are supported:
- Child
Tenancy stringId - The ID of the child tenancy this link is associated with.
- Filters
List<Get
Links Filter> - Parent
Tenancy stringId - The ID of the parent tenancy this link is associated with.
- State string
- The lifecycle state of the resource.
- Child
Tenancy stringId - The ID of the child tenancy this link is associated with.
- Filters
[]Get
Links Filter - Parent
Tenancy stringId - The ID of the parent tenancy this link is associated with.
- State string
- The lifecycle state of the resource.
- child
Tenancy StringId - The ID of the child tenancy this link is associated with.
- filters
List<Get
Links Filter> - parent
Tenancy StringId - The ID of the parent tenancy this link is associated with.
- state String
- The lifecycle state of the resource.
- child
Tenancy stringId - The ID of the child tenancy this link is associated with.
- filters
Get
Links Filter[] - parent
Tenancy stringId - The ID of the parent tenancy this link is associated with.
- state string
- The lifecycle state of the resource.
- child_
tenancy_ strid - The ID of the child tenancy this link is associated with.
- filters
Sequence[Get
Links Filter] - parent_
tenancy_ strid - The ID of the parent tenancy this link is associated with.
- state str
- The lifecycle state of the resource.
- child
Tenancy StringId - The ID of the child tenancy this link is associated with.
- filters List<Property Map>
- parent
Tenancy StringId - The ID of the parent tenancy this link is associated with.
- state String
- The lifecycle state of the resource.
getLinks Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Link
Collections List<GetLinks Link Collection> - The list of link_collection.
- Child
Tenancy stringId - OCID of the child tenancy.
- Filters
List<Get
Links Filter> - Parent
Tenancy stringId - OCID of the parent tenancy.
- State string
- Lifecycle state of the link.
- Id string
- The provider-assigned unique ID for this managed resource.
- Link
Collections []GetLinks Link Collection - The list of link_collection.
- Child
Tenancy stringId - OCID of the child tenancy.
- Filters
[]Get
Links Filter - Parent
Tenancy stringId - OCID of the parent tenancy.
- State string
- Lifecycle state of the link.
- id String
- The provider-assigned unique ID for this managed resource.
- link
Collections List<GetLinks Link Collection> - The list of link_collection.
- child
Tenancy StringId - OCID of the child tenancy.
- filters
List<Get
Links Filter> - parent
Tenancy StringId - OCID of the parent tenancy.
- state String
- Lifecycle state of the link.
- id string
- The provider-assigned unique ID for this managed resource.
- link
Collections GetLinks Link Collection[] - The list of link_collection.
- child
Tenancy stringId - OCID of the child tenancy.
- filters
Get
Links Filter[] - parent
Tenancy stringId - OCID of the parent tenancy.
- state string
- Lifecycle state of the link.
- id str
- The provider-assigned unique ID for this managed resource.
- link_
collections Sequence[GetLinks Link Collection] - The list of link_collection.
- child_
tenancy_ strid - OCID of the child tenancy.
- filters
Sequence[Get
Links Filter] - parent_
tenancy_ strid - OCID of the parent tenancy.
- state str
- Lifecycle state of the link.
- id String
- The provider-assigned unique ID for this managed resource.
- link
Collections List<Property Map> - The list of link_collection.
- child
Tenancy StringId - OCID of the child tenancy.
- filters List<Property Map>
- parent
Tenancy StringId - OCID of the parent tenancy.
- state String
- Lifecycle state of the link.
Supporting Types
GetLinksFilter
GetLinksLinkCollection
GetLinksLinkCollectionItem
- Child
Tenancy stringId - The ID of the child tenancy this link is associated with.
- Id string
- OCID of the link.
- Parent
Tenancy stringId - The ID of the parent tenancy this link is associated with.
- State string
- The lifecycle state of the resource.
- 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 - The ID of the child tenancy this link is associated with.
- Id string
- OCID of the link.
- Parent
Tenancy stringId - The ID of the parent tenancy this link is associated with.
- State string
- The lifecycle state of the resource.
- 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 - The ID of the child tenancy this link is associated with.
- id String
- OCID of the link.
- parent
Tenancy StringId - The ID of the parent tenancy this link is associated with.
- state String
- The lifecycle state of the resource.
- 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 - The ID of the child tenancy this link is associated with.
- id string
- OCID of the link.
- parent
Tenancy stringId - The ID of the parent tenancy this link is associated with.
- state string
- The lifecycle state of the resource.
- 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 - The ID of the child tenancy this link is associated with.
- id str
- OCID of the link.
- parent_
tenancy_ strid - The ID of the parent tenancy this link is associated with.
- state str
- The lifecycle state of the resource.
- 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 - The ID of the child tenancy this link is associated with.
- id String
- OCID of the link.
- parent
Tenancy StringId - The ID of the parent tenancy this link is associated with.
- state String
- The lifecycle state of the resource.
- 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.
