Astra

v1.0.35 published on Wednesday, Jul 27, 2022 by pulumiverse

getAccessList

astra.AccessList provides a datasource that lists the access lists for an Astra database.

Example Usage

using Pulumi;
using Astra = Pulumi.Astra;

class MyStack : Stack
{
    public MyStack()
    {
        var dev = Output.Create(Astra.GetAccessList.InvokeAsync(new Astra.GetAccessListArgs
        {
            DatabaseId = "8d356587-73b3-430a-9c0e-d780332e2afb",
        }));
    }

}
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.LookupAccessList(ctx, &GetAccessListArgs{
			DatabaseId: "8d356587-73b3-430a-9c0e-d780332e2afb",
		}, 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.GetAccessListArgs;
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.getAccessList(GetAccessListArgs.builder()
            .databaseId("8d356587-73b3-430a-9c0e-d780332e2afb")
            .build());

    }
}
import pulumi
import pulumi_astra as astra

dev = astra.get_access_list(database_id="8d356587-73b3-430a-9c0e-d780332e2afb")
import * as pulumi from "@pulumi/pulumi";
import * as astra from "@pulumi/astra";

const dev = pulumi.output(astra.getAccessList({
    databaseId: "8d356587-73b3-430a-9c0e-d780332e2afb",
}));
variables:
  dev:
    Fn::Invoke:
      Function: astra:getAccessList
      Arguments:
        databaseId: 8d356587-73b3-430a-9c0e-d780332e2afb

Using getAccessList

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 getAccessList(args: GetAccessListArgs, opts?: InvokeOptions): Promise<GetAccessListResult>
function getAccessListOutput(args: GetAccessListOutputArgs, opts?: InvokeOptions): Output<GetAccessListResult>
def get_access_list(database_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetAccessListResult
def get_access_list_output(database_id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetAccessListResult]
func LookupAccessList(ctx *Context, args *LookupAccessListArgs, opts ...InvokeOption) (*LookupAccessListResult, error)
func LookupAccessListOutput(ctx *Context, args *LookupAccessListOutputArgs, opts ...InvokeOption) LookupAccessListResultOutput

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

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

The following arguments are supported:

DatabaseId string
DatabaseId string
databaseId String
databaseId string
databaseId String

getAccessList Result

The following output properties are available:

Addresses List<Pulumiverse.Astra.Outputs.GetAccessListAddress>
DatabaseId string
Enabled bool
Id string

The provider-assigned unique ID for this managed resource.

Addresses []GetAccessListAddress
DatabaseId string
Enabled bool
Id string

The provider-assigned unique ID for this managed resource.

addresses List<GetAccessListAddress>
databaseId String
enabled Boolean
id String

The provider-assigned unique ID for this managed resource.

addresses GetAccessListAddress[]
databaseId string
enabled boolean
id string

The provider-assigned unique ID for this managed resource.

addresses Sequence[GetAccessListAddress]
database_id str
enabled bool
id str

The provider-assigned unique ID for this managed resource.

addresses List<Property Map>
databaseId String
enabled Boolean
id String

The provider-assigned unique ID for this managed resource.

Supporting Types

GetAccessListAddress

Address string
Enabled bool
Description string
Address string
Enabled bool
Description string
address String
enabled Boolean
description String
address string
enabled boolean
description string
address String
enabled Boolean
description 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.