1. Packages
  2. Scaleway
  3. API Docs
  4. databases
  5. getAcl
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.databases.getAcl

Explore with Pulumi AI

Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

Gets information about the Database Instance network Access Control List.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";

// Get the database ACL for the instance id 11111111-1111-1111-1111-111111111111 located in the default region e.g: fr-par
const myAcl = scaleway.databases.getAcl({
    instanceId: "11111111-1111-1111-1111-111111111111",
});
Copy
import pulumi
import pulumi_scaleway as scaleway

# Get the database ACL for the instance id 11111111-1111-1111-1111-111111111111 located in the default region e.g: fr-par
my_acl = scaleway.databases.get_acl(instance_id="11111111-1111-1111-1111-111111111111")
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Get the database ACL for the instance id 11111111-1111-1111-1111-111111111111 located in the default region e.g: fr-par
		_, err := databases.LookupAcl(ctx, &databases.LookupAclArgs{
			InstanceId: "11111111-1111-1111-1111-111111111111",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;

return await Deployment.RunAsync(() => 
{
    // Get the database ACL for the instance id 11111111-1111-1111-1111-111111111111 located in the default region e.g: fr-par
    var myAcl = Scaleway.Databases.GetAcl.Invoke(new()
    {
        InstanceId = "11111111-1111-1111-1111-111111111111",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.databases.DatabasesFunctions;
import com.pulumi.scaleway.databases.inputs.GetAclArgs;
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) {
        // Get the database ACL for the instance id 11111111-1111-1111-1111-111111111111 located in the default region e.g: fr-par
        final var myAcl = DatabasesFunctions.getAcl(GetAclArgs.builder()
            .instanceId("11111111-1111-1111-1111-111111111111")
            .build());

    }
}
Copy
variables:
  # Get the database ACL for the instance id 11111111-1111-1111-1111-111111111111 located in the default region e.g: fr-par
  myAcl:
    fn::invoke:
      function: scaleway:databases:getAcl
      arguments:
        instanceId: 11111111-1111-1111-1111-111111111111
Copy

Using getAcl

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 getAcl(args: GetAclArgs, opts?: InvokeOptions): Promise<GetAclResult>
function getAclOutput(args: GetAclOutputArgs, opts?: InvokeOptions): Output<GetAclResult>
Copy
def get_acl(instance_id: Optional[str] = None,
            region: Optional[str] = None,
            opts: Optional[InvokeOptions] = None) -> GetAclResult
def get_acl_output(instance_id: Optional[pulumi.Input[str]] = None,
            region: Optional[pulumi.Input[str]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[GetAclResult]
Copy
func LookupAcl(ctx *Context, args *LookupAclArgs, opts ...InvokeOption) (*LookupAclResult, error)
func LookupAclOutput(ctx *Context, args *LookupAclOutputArgs, opts ...InvokeOption) LookupAclResultOutput
Copy

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

public static class GetAcl 
{
    public static Task<GetAclResult> InvokeAsync(GetAclArgs args, InvokeOptions? opts = null)
    public static Output<GetAclResult> Invoke(GetAclInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAclResult> getAcl(GetAclArgs args, InvokeOptions options)
public static Output<GetAclResult> getAcl(GetAclArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: scaleway:databases/getAcl:getAcl
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

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

getAcl Result

The following output properties are available:

AclRules List<Pulumiverse.Scaleway.Databases.Outputs.GetAclAclRule>
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 []GetAclAclRule
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<GetAclAclRule>
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 GetAclAclRule[]
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[GetAclAclRule]
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

GetAclAclRule

Description This property is required. string
A simple text describing this rule
Ip This property is required. string
The ip range to whitelist in CIDR notation
Description This property is required. string
A simple text describing this rule
Ip This property is required. string
The ip range to whitelist in CIDR notation
description This property is required. String
A simple text describing this rule
ip This property is required. String
The ip range to whitelist in CIDR notation
description This property is required. string
A simple text describing this rule
ip This property is required. string
The ip range to whitelist in CIDR notation
description This property is required. str
A simple text describing this rule
ip This property is required. str
The ip range to whitelist in CIDR notation
description This property is required. String
A simple text describing this rule
ip This property is required. 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 v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse