Astra DB v1.0.42 published on Tuesday, Jun 6, 2023 by pulumiverse
astra.getPrivateLinks
Explore with Pulumi AI
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:
- Database
Id string - The ID of the Astra database.
- Datacenter
Id string - The datacenter where of the Astra database.
- Database
Id string - The ID of the Astra database.
- Datacenter
Id string - The datacenter where of the Astra database.
- database
Id String - The ID of the Astra database.
- datacenter
Id String - The datacenter where of the Astra database.
- database
Id string - The ID of the Astra database.
- datacenter
Id 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.
- database
Id String - The ID of the Astra database.
- datacenter
Id String - The datacenter where of the Astra database.
getPrivateLinks Result
The following output properties are available:
- Database
Id string - The ID of the Astra database.
- Datacenter
Id string - The datacenter where of the Astra database.
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Pulumiverse.
Astra. Outputs. Get Private Links Result> - The list of private links that match the search criteria.
- Database
Id string - The ID of the Astra database.
- Datacenter
Id string - The datacenter where of the Astra database.
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
[]Get
Private Links Result - The list of private links that match the search criteria.
- database
Id String - The ID of the Astra database.
- datacenter
Id String - The datacenter where of the Astra database.
- id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Private Links Result> - The list of private links that match the search criteria.
- database
Id string - The ID of the Astra database.
- datacenter
Id string - The datacenter where of the Astra database.
- id string
- The provider-assigned unique ID for this managed resource.
- results
Get
Private Links Result[] - 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[Get
Private Links Result] - The list of private links that match the search criteria.
- database
Id String - The ID of the Astra database.
- datacenter
Id 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
- Allowed
Principals List<string> - Datacenter
Id string - The datacenter where of the Astra database.
- Endpoints List<string>
- Service
Name string
- Allowed
Principals []string - Datacenter
Id string - The datacenter where of the Astra database.
- Endpoints []string
- Service
Name string
- allowed
Principals List<String> - datacenter
Id String - The datacenter where of the Astra database.
- endpoints List<String>
- service
Name String
- allowed
Principals string[] - datacenter
Id string - The datacenter where of the Astra database.
- endpoints string[]
- service
Name string
- allowed_
principals Sequence[str] - datacenter_
id str - The datacenter where of the Astra database.
- endpoints Sequence[str]
- service_
name str
- allowed
Principals List<String> - datacenter
Id String - The datacenter where of the Astra database.
- endpoints List<String>
- service
Name String
Package Details
- Repository
- astra pulumiverse/pulumi-astra
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
astra
Terraform Provider.