Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Tenantmanagercontrolplane.getLinks
Explore with Pulumi AI
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/v2/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:
- ChildTenancy stringId 
- The ID of the child tenancy this link is associated with.
- Filters
List<GetLinks Filter> 
- ParentTenancy stringId 
- The ID of the parent tenancy this link is associated with.
- State string
- The lifecycle state of the resource.
- ChildTenancy stringId 
- The ID of the child tenancy this link is associated with.
- Filters
[]GetLinks Filter 
- ParentTenancy stringId 
- The ID of the parent tenancy this link is associated with.
- State string
- The lifecycle state of the resource.
- childTenancy StringId 
- The ID of the child tenancy this link is associated with.
- filters
List<GetLinks Filter> 
- parentTenancy StringId 
- The ID of the parent tenancy this link is associated with.
- state String
- The lifecycle state of the resource.
- childTenancy stringId 
- The ID of the child tenancy this link is associated with.
- filters
GetLinks Filter[] 
- parentTenancy 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[GetLinks Filter] 
- parent_tenancy_ strid 
- The ID of the parent tenancy this link is associated with.
- state str
- The lifecycle state of the resource.
- childTenancy StringId 
- The ID of the child tenancy this link is associated with.
- filters List<Property Map>
- parentTenancy 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.
- LinkCollections List<GetLinks Link Collection> 
- The list of link_collection.
- ChildTenancy stringId 
- OCID of the child tenancy.
- Filters
List<GetLinks Filter> 
- ParentTenancy stringId 
- OCID of the parent tenancy.
- State string
- Lifecycle state of the link.
- Id string
- The provider-assigned unique ID for this managed resource.
- LinkCollections []GetLinks Link Collection 
- The list of link_collection.
- ChildTenancy stringId 
- OCID of the child tenancy.
- Filters
[]GetLinks Filter 
- ParentTenancy stringId 
- OCID of the parent tenancy.
- State string
- Lifecycle state of the link.
- id String
- The provider-assigned unique ID for this managed resource.
- linkCollections List<GetLinks Link Collection> 
- The list of link_collection.
- childTenancy StringId 
- OCID of the child tenancy.
- filters
List<GetLinks Filter> 
- parentTenancy StringId 
- OCID of the parent tenancy.
- state String
- Lifecycle state of the link.
- id string
- The provider-assigned unique ID for this managed resource.
- linkCollections GetLinks Link Collection[] 
- The list of link_collection.
- childTenancy stringId 
- OCID of the child tenancy.
- filters
GetLinks Filter[] 
- parentTenancy 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[GetLinks 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.
- linkCollections List<Property Map>
- The list of link_collection.
- childTenancy StringId 
- OCID of the child tenancy.
- filters List<Property Map>
- parentTenancy StringId 
- OCID of the parent tenancy.
- state String
- Lifecycle state of the link.
Supporting Types
GetLinksFilter  
GetLinksLinkCollection   
GetLinksLinkCollectionItem    
- ChildTenancy stringId 
- The ID of the child tenancy this link is associated with.
- Id string
- OCID of the link.
- ParentTenancy stringId 
- The ID of the parent tenancy this link is associated with.
- State string
- The lifecycle state of the resource.
- 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 
- The ID of the child tenancy this link is associated with.
- Id string
- OCID of the link.
- ParentTenancy stringId 
- The ID of the parent tenancy this link is associated with.
- State string
- The lifecycle state of the resource.
- 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 
- The ID of the child tenancy this link is associated with.
- id String
- OCID of the link.
- parentTenancy StringId 
- The ID of the parent tenancy this link is associated with.
- state String
- The lifecycle state of the resource.
- 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 
- The ID of the child tenancy this link is associated with.
- id string
- OCID of the link.
- parentTenancy stringId 
- The ID of the parent tenancy this link is associated with.
- state string
- The lifecycle state of the resource.
- 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 
- 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.
- childTenancy StringId 
- The ID of the child tenancy this link is associated with.
- id String
- OCID of the link.
- parentTenancy StringId 
- The ID of the parent tenancy this link is associated with.
- state String
- The lifecycle state of the resource.
- 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.