Scaleway

v1.1.0 published on Saturday, Sep 17, 2022 by lbrlabs

getDatabaseAcl

Gets information about the RDB instance network Access Control List.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Scaleway = Pulumi.Scaleway;

return await Deployment.RunAsync(() => 
{
    var myAcl = Scaleway.GetDatabaseAcl.Invoke(new()
    {
        InstanceId = "fr-par/11111111-1111-1111-1111-111111111111",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := scaleway.LookupDatabaseAcl(ctx, &GetDatabaseAclArgs{
			InstanceId: "fr-par/11111111-1111-1111-1111-111111111111",
		}, 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.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("fr-par/11111111-1111-1111-1111-111111111111")
            .build());

    }
}
import pulumi
import pulumi_scaleway as scaleway

my_acl = scaleway.get_database_acl(instance_id="fr-par/11111111-1111-1111-1111-111111111111")
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";

// Get the database ACL for the instanceid 11111111-1111-1111-1111-111111111111 located in fr-par
const myAcl = pulumi.output(scaleway.getDatabaseAcl({
    instanceId: "fr-par/11111111-1111-1111-1111-111111111111",
}));
variables:
  myAcl:
    Fn::Invoke:
      Function: scaleway:getDatabaseAcl
      Arguments:
        instanceId: fr-par/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,
                     opts: Optional[InvokeOptions] = None) -> GetDatabaseAclResult
def get_database_acl_output(instance_id: 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.

InstanceId string

The RDB instance ID.

instanceId String

The RDB instance ID.

instanceId string

The RDB instance ID.

instance_id str

The RDB instance ID.

instanceId String

The RDB instance ID.

getDatabaseAcl Result

The following output properties are available:

AclRules List<Lbrlabs.PulumiPackage.Scaleway.Outputs.GetDatabaseAclAclRule>

A list of ACLs (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 (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 (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 (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 (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 (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
https://github.com/lbrlabs/pulumi-scaleway
License
Apache-2.0
Notes

This Pulumi package is based on the scaleway Terraform Provider.