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

astra.getAccessList

Explore with Pulumi AI

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

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

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Astra = Pulumi.Astra;
    
    return await Deployment.RunAsync(() => 
    {
        var dev = Astra.GetAccessList.Invoke(new()
        {
            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
    The ID of the Astra database.
    DatabaseId string
    The ID of the Astra database.
    databaseId String
    The ID of the Astra database.
    databaseId string
    The ID of the Astra database.
    database_id str
    The ID of the Astra database.
    databaseId String
    The ID of the Astra database.

    getAccessList Result

    The following output properties are available:

    Addresses List<Pulumiverse.Astra.Outputs.GetAccessListAddress>
    Addresses in the access list.
    DatabaseId string
    The ID of the Astra database.
    Enabled bool
    The Access list is enabled or disabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    Addresses []GetAccessListAddress
    Addresses in the access list.
    DatabaseId string
    The ID of the Astra database.
    Enabled bool
    The Access list is enabled or disabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    addresses List<GetAccessListAddress>
    Addresses in the access list.
    databaseId String
    The ID of the Astra database.
    enabled Boolean
    The Access list is enabled or disabled.
    id String
    The provider-assigned unique ID for this managed resource.
    addresses GetAccessListAddress[]
    Addresses in the access list.
    databaseId string
    The ID of the Astra database.
    enabled boolean
    The Access list is enabled or disabled.
    id string
    The provider-assigned unique ID for this managed resource.
    addresses Sequence[GetAccessListAddress]
    Addresses in the access list.
    database_id str
    The ID of the Astra database.
    enabled bool
    The Access list is enabled or disabled.
    id str
    The provider-assigned unique ID for this managed resource.
    addresses List<Property Map>
    Addresses in the access list.
    databaseId String
    The ID of the Astra database.
    enabled Boolean
    The Access list is enabled or disabled.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    GetAccessListAddress

    Address string
    Enabled bool
    The Access list is enabled or disabled.
    Description string
    Address string
    Enabled bool
    The Access list is enabled or disabled.
    Description string
    address String
    enabled Boolean
    The Access list is enabled or disabled.
    description String
    address string
    enabled boolean
    The Access list is enabled or disabled.
    description string
    address str
    enabled bool
    The Access list is enabled or disabled.
    description str
    address String
    enabled Boolean
    The Access list is enabled or disabled.
    description 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