Scaleway v1.37.0 published on Friday, Nov 7, 2025 by pulumiverse
scaleway.databases.getAcl
Scaleway v1.37.0 published on Friday, Nov 7, 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 "@pulumiverse/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",
});
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")
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
})
}
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",
});
});
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());
}
}
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
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>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]func LookupAcl(ctx *Context, args *LookupAclArgs, opts ...InvokeOption) (*LookupAclResult, error)
func LookupAclOutput(ctx *Context, args *LookupAclOutputArgs, opts ...InvokeOption) LookupAclResultOutput> 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)
}public static CompletableFuture<GetAclResult> getAcl(GetAclArgs args, InvokeOptions options)
public static Output<GetAclResult> getAcl(GetAclArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:databases/getAcl:getAcl
arguments:
# arguments dictionaryThe following arguments are supported:
- Instance
Id string - The RDB instance ID.
- Region string
region) The region in which the Database Instance should be created.
- Instance
Id string - The RDB instance ID.
- Region string
region) The region in which the Database Instance should be created.
- instance
Id String - The RDB instance ID.
- region String
region) The region in which the Database Instance should be created.
- instance
Id 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.
- instance
Id 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:
- Acl
Rules List<Pulumiverse.Scaleway. Databases. Outputs. Get Acl Acl Rule> - A list of ACLs rules (structure is described below)
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Region string
- Acl
Rules []GetAcl Acl Rule - A list of ACLs rules (structure is described below)
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Region string
- acl
Rules List<GetAcl Acl Rule> - A list of ACLs rules (structure is described below)
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - region String
- acl
Rules GetAcl Acl Rule[] - A list of ACLs rules (structure is described below)
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - region string
- acl_
rules Sequence[GetAcl Acl Rule] - 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
- acl
Rules List<Property Map> - A list of ACLs rules (structure is described below)
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - region String
Supporting Types
GetAclAclRule
- 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
scalewayTerraform Provider.
Scaleway v1.37.0 published on Friday, Nov 7, 2025 by pulumiverse
