Astra

Community
Package contributed by a community member
v1.0.25 published on Tuesday, Jun 21, 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-index/sdk/go/index"
)

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 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.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:

DatabaseId string
Id string

The provider-assigned unique ID for this managed resource.

Results List<Pulumiverse.Astra.Outputs.GetAccessListResult>
DatabaseId string
Id string

The provider-assigned unique ID for this managed resource.

Results []GetAccessListResult
databaseId String
id String

The provider-assigned unique ID for this managed resource.

results List<GetAccessListResult>
databaseId string
id string

The provider-assigned unique ID for this managed resource.

results GetAccessListResult[]
database_id str
id str

The provider-assigned unique ID for this managed resource.

results Sequence[GetAccessListResult]
databaseId String
id String

The provider-assigned unique ID for this managed resource.

results List<Property Map>

Supporting Types

GetAccessListResult

Addresses List<string>
DatacenterId string
Enabled string
OrganizationId string
Addresses []string
DatacenterId string
Enabled string
OrganizationId string
addresses List<String>
datacenterId String
enabled String
organizationId String
addresses string[]
datacenterId string
enabled string
organizationId string
addresses List<String>
datacenterId String
enabled String
organizationId 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.