1. Packages
  2. Astra DB
  3. API Docs
  4. getPrivateLinks
Astra DB v1.0.42 published on Tuesday, Jun 6, 2023 by pulumiverse

astra.getPrivateLinks

Explore with Pulumi AI

astra logo
Astra DB v1.0.42 published on Tuesday, Jun 6, 2023 by pulumiverse

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

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Astra = Pulumi.Astra;
    
    return await Deployment.RunAsync(() => 
    {
        var dev = Astra.GetPrivateLinks.Invoke(new()
        {
            DatabaseId = "a6bc9c26-e7ce-424f-84c7-0a00afb12588",
            DatacenterId = "a6bc9c26-e7ce-424f-84c7-0a00afb12588-1",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-astra/sdk/go/astra"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-astra/sdk/go/astra"
    )
    
    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-1",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.astra.AstraFunctions;
    import com.pulumi.astra.inputs.GetPrivateLinksArgs;
    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 dev = AstraFunctions.getPrivateLinks(GetPrivateLinksArgs.builder()
                .databaseId("a6bc9c26-e7ce-424f-84c7-0a00afb12588")
                .datacenterId("a6bc9c26-e7ce-424f-84c7-0a00afb12588-1")
                .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-1")
    
    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-1",
    }));
    
    variables:
      dev:
        Fn::Invoke:
          Function: astra:getPrivateLinks
          Arguments:
            databaseId: a6bc9c26-e7ce-424f-84c7-0a00afb12588
            datacenterId: a6bc9c26-e7ce-424f-84c7-0a00afb12588-1
    

    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:

    DatabaseId string
    The ID of the Astra database.
    DatacenterId string
    The datacenter where of the Astra database.
    DatabaseId string
    The ID of the Astra database.
    DatacenterId string
    The datacenter where of the Astra database.
    databaseId String
    The ID of the Astra database.
    datacenterId String
    The datacenter where of the Astra database.
    databaseId string
    The ID of the Astra database.
    datacenterId string
    The datacenter where of the Astra database.
    database_id str
    The ID of the Astra database.
    datacenter_id str
    The datacenter where of the Astra database.
    databaseId String
    The ID of the Astra database.
    datacenterId String
    The datacenter where of the Astra database.

    getPrivateLinks Result

    The following output properties are available:

    DatabaseId string
    The ID of the Astra database.
    DatacenterId string
    The datacenter where of the Astra database.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<Pulumiverse.Astra.Outputs.GetPrivateLinksResult>
    The list of private links that match the search criteria.
    DatabaseId string
    The ID of the Astra database.
    DatacenterId string
    The datacenter where of the Astra database.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetPrivateLinksResult
    The list of private links that match the search criteria.
    databaseId String
    The ID of the Astra database.
    datacenterId String
    The datacenter where of the Astra database.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetPrivateLinksResult>
    The list of private links that match the search criteria.
    databaseId string
    The ID of the Astra database.
    datacenterId string
    The datacenter where of the Astra database.
    id string
    The provider-assigned unique ID for this managed resource.
    results GetPrivateLinksResult[]
    The list of private links that match the search criteria.
    database_id str
    The ID of the Astra database.
    datacenter_id str
    The datacenter where of the Astra database.
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetPrivateLinksResult]
    The list of private links that match the search criteria.
    databaseId String
    The ID of the Astra database.
    datacenterId String
    The datacenter where of the Astra database.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The list of private links that match the search criteria.

    Supporting Types

    GetPrivateLinksResult

    AllowedPrincipals List<string>
    DatacenterId string
    The datacenter where of the Astra database.
    Endpoints List<string>
    ServiceName string
    AllowedPrincipals []string
    DatacenterId string
    The datacenter where of the Astra database.
    Endpoints []string
    ServiceName string
    allowedPrincipals List<String>
    datacenterId String
    The datacenter where of the Astra database.
    endpoints List<String>
    serviceName String
    allowedPrincipals string[]
    datacenterId string
    The datacenter where of the Astra database.
    endpoints string[]
    serviceName string
    allowed_principals Sequence[str]
    datacenter_id str
    The datacenter where of the Astra database.
    endpoints Sequence[str]
    service_name str
    allowedPrincipals List<String>
    datacenterId String
    The datacenter where of the Astra database.
    endpoints List<String>
    serviceName String

    Package Details

    Repository
    astra pulumiverse/pulumi-astra
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the astra Terraform Provider.
    astra logo
    Astra DB v1.0.42 published on Tuesday, Jun 6, 2023 by pulumiverse