Astra

Community
Package contributed by a community member
v1.0.25 published on Tuesday, Jun 21, 2022 by pulumiverse

getPrivateLinks

astra.getPrivateLinks provides a datasource that lists the private links in an Astra database.

Example Usage

using Pulumi;
using Astra = Pulumi.Astra;

class MyStack : Stack
{
    public MyStack()
    {
        var dev = Output.Create(Astra.GetPrivateLinks.InvokeAsync(new Astra.GetPrivateLinksArgs
        {
            DatabaseId = "a6bc9c26-e7ce-424f-84c7-0a00afb12588",
            DatacenterId = "a6bc9c26-e7ce-424f-84c7-0a00afb12588",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-astra/sdk/go/astra"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-index/sdk/go/index"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := astra.LookupPrivateLinks(ctx, &GetPrivateLinksArgs{
			DatabaseId:   "a6bc9c26-e7ce-424f-84c7-0a00afb12588",
			DatacenterId: "a6bc9c26-e7ce-424f-84c7-0a00afb12588",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var dev = Output.of(AstraFunctions.getPrivateLinks(GetPrivateLinksArgs.builder()
            .databaseId("a6bc9c26-e7ce-424f-84c7-0a00afb12588")
            .datacenterId("a6bc9c26-e7ce-424f-84c7-0a00afb12588")
            .build()));

    }
}
import pulumi
import pulumi_astra as astra

dev = astra.get_private_links(database_id="a6bc9c26-e7ce-424f-84c7-0a00afb12588",
    datacenter_id="a6bc9c26-e7ce-424f-84c7-0a00afb12588")
import * as pulumi from "@pulumi/pulumi";
import * as astra from "@pulumi/astra";

const dev = pulumi.output(astra.getPrivateLinks({
    databaseId: "a6bc9c26-e7ce-424f-84c7-0a00afb12588",
    datacenterId: "a6bc9c26-e7ce-424f-84c7-0a00afb12588",
}));
variables:
  dev:
    Fn::Invoke:
      Function: astra:getPrivateLinks
      Arguments:
        databaseId: a6bc9c26-e7ce-424f-84c7-0a00afb12588
        datacenterId: a6bc9c26-e7ce-424f-84c7-0a00afb12588

Using getPrivateLinks

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 getPrivateLinks(args: GetPrivateLinksArgs, opts?: InvokeOptions): Promise<GetPrivateLinksResult>
function getPrivateLinksOutput(args: GetPrivateLinksOutputArgs, opts?: InvokeOptions): Output<GetPrivateLinksResult>
def get_private_links(database_id: Optional[str] = None,
                      datacenter_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetPrivateLinksResult
def get_private_links_output(database_id: Optional[pulumi.Input[str]] = None,
                      datacenter_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetPrivateLinksResult]
func LookupPrivateLinks(ctx *Context, args *LookupPrivateLinksArgs, opts ...InvokeOption) (*LookupPrivateLinksResult, error)
func LookupPrivateLinksOutput(ctx *Context, args *LookupPrivateLinksOutputArgs, opts ...InvokeOption) LookupPrivateLinksResultOutput

> Note: This function is named LookupPrivateLinks in the Go SDK.

public static class GetPrivateLinks 
{
    public static Task<GetPrivateLinksResult> InvokeAsync(GetPrivateLinksArgs args, InvokeOptions? opts = null)
    public static Output<GetPrivateLinksResult> Invoke(GetPrivateLinksInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPrivateLinksResult> getPrivateLinks(GetPrivateLinksArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: astra:index/getPrivateLinks:getPrivateLinks
  Arguments:
    # Arguments dictionary

The following arguments are supported:

getPrivateLinks Result

The following output properties are available:

DatabaseId string
DatacenterId string
Id string

The provider-assigned unique ID for this managed resource.

Results List<Pulumiverse.Astra.Outputs.GetPrivateLinksResult>
DatabaseId string
DatacenterId string
Id string

The provider-assigned unique ID for this managed resource.

Results []GetPrivateLinksResult
databaseId String
datacenterId String
id String

The provider-assigned unique ID for this managed resource.

results List<GetPrivateLinksResult>
databaseId string
datacenterId string
id string

The provider-assigned unique ID for this managed resource.

results GetPrivateLinksResult[]
database_id str
datacenter_id str
id str

The provider-assigned unique ID for this managed resource.

results Sequence[GetPrivateLinksResult]
databaseId String
datacenterId String
id String

The provider-assigned unique ID for this managed resource.

results List<Property Map>

Supporting Types

GetPrivateLinksResult

AllowedPrincipals List<string>
DatacenterId string
Endpoints List<string>
ServiceName string
allowedPrincipals List<String>
datacenterId String
endpoints List<String>
serviceName String
allowed_principals Sequence[str]
datacenter_id str
endpoints Sequence[str]
service_name str
allowedPrincipals List<String>
datacenterId String
endpoints List<String>
serviceName String

Package Details

Repository
https://github.com/pulumiverse/pulumi-astra
License
Apache-2.0
Notes

This Pulumi package is based on the astra Terraform Provider.