1. Packages
  2. Scaleway
  3. API Docs
  4. getDatabaseAcl
Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse

scaleway.getDatabaseAcl

Explore with Pulumi AI

scaleway logo
Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse

    Gets information about the RDB instance network Access Control List.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    
    const myAcl = scaleway.getDatabaseAcl({
        instanceId: "11111111-1111-1111-1111-111111111111",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    my_acl = scaleway.get_database_acl(instance_id="11111111-1111-1111-1111-111111111111")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.LookupDatabaseAcl(ctx, &scaleway.LookupDatabaseAclArgs{
    			InstanceId: "11111111-1111-1111-1111-111111111111",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumi.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var myAcl = Scaleway.GetDatabaseAcl.Invoke(new()
        {
            InstanceId = "11111111-1111-1111-1111-111111111111",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.ScalewayFunctions;
    import com.pulumi.scaleway.inputs.GetDatabaseAclArgs;
    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 myAcl = ScalewayFunctions.getDatabaseAcl(GetDatabaseAclArgs.builder()
                .instanceId("11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    variables:
      myAcl:
        fn::invoke:
          Function: scaleway:getDatabaseAcl
          Arguments:
            instanceId: 11111111-1111-1111-1111-111111111111
    

    Using getDatabaseAcl

    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 getDatabaseAcl(args: GetDatabaseAclArgs, opts?: InvokeOptions): Promise<GetDatabaseAclResult>
    function getDatabaseAclOutput(args: GetDatabaseAclOutputArgs, opts?: InvokeOptions): Output<GetDatabaseAclResult>
    def get_database_acl(instance_id: Optional[str] = None,
                         region: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetDatabaseAclResult
    def get_database_acl_output(instance_id: Optional[pulumi.Input[str]] = None,
                         region: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseAclResult]
    func LookupDatabaseAcl(ctx *Context, args *LookupDatabaseAclArgs, opts ...InvokeOption) (*LookupDatabaseAclResult, error)
    func LookupDatabaseAclOutput(ctx *Context, args *LookupDatabaseAclOutputArgs, opts ...InvokeOption) LookupDatabaseAclResultOutput

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

    public static class GetDatabaseAcl 
    {
        public static Task<GetDatabaseAclResult> InvokeAsync(GetDatabaseAclArgs args, InvokeOptions? opts = null)
        public static Output<GetDatabaseAclResult> Invoke(GetDatabaseAclInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDatabaseAclResult> getDatabaseAcl(GetDatabaseAclArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scaleway:index/getDatabaseAcl:getDatabaseAcl
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    The RDB instance ID.
    Region string
    region) The region in which the Database Instance should be created.
    InstanceId string
    The RDB instance ID.
    Region string
    region) The region in which the Database Instance should be created.
    instanceId String
    The RDB instance ID.
    region String
    region) The region in which the Database Instance should be created.
    instanceId string
    The RDB instance ID.
    region string
    region) The region in which the Database Instance should be created.
    instance_id str
    The RDB instance ID.
    region str
    region) The region in which the Database Instance should be created.
    instanceId String
    The RDB instance ID.
    region String
    region) The region in which the Database Instance should be created.

    getDatabaseAcl Result

    The following output properties are available:

    AclRules List<Pulumiverse.Scaleway.Outputs.GetDatabaseAclAclRule>
    A list of ACLs rules (structure is described below)
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    Region string
    AclRules []GetDatabaseAclAclRule
    A list of ACLs rules (structure is described below)
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    Region string
    aclRules List<GetDatabaseAclAclRule>
    A list of ACLs rules (structure is described below)
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    region String
    aclRules GetDatabaseAclAclRule[]
    A list of ACLs rules (structure is described below)
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    region string
    acl_rules Sequence[GetDatabaseAclAclRule]
    A list of ACLs rules (structure is described below)
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id str
    region str
    aclRules List<Property Map>
    A list of ACLs rules (structure is described below)
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    region String

    Supporting Types

    GetDatabaseAclAclRule

    Description string
    A simple text describing this rule
    Ip string
    The ip range to whitelist in CIDR notation
    Description string
    A simple text describing this rule
    Ip string
    The ip range to whitelist in CIDR notation
    description String
    A simple text describing this rule
    ip String
    The ip range to whitelist in CIDR notation
    description string
    A simple text describing this rule
    ip string
    The ip range to whitelist in CIDR notation
    description str
    A simple text describing this rule
    ip str
    The ip range to whitelist in CIDR notation
    description String
    A simple text describing this rule
    ip String
    The ip range to whitelist in CIDR notation

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse