Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse
scaleway.getDatabaseAcl
Explore with Pulumi AI
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.getDatabaseAcl({
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.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 {
// Get the database ACL for the instance id 11111111-1111-1111-1111-111111111111 located in the default region e.g: fr-par
_, 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(() =>
{
// 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.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) {
// 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 = ScalewayFunctions.getDatabaseAcl(GetDatabaseAclArgs.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: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:
- 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.
getDatabaseAcl Result
The following output properties are available:
- Acl
Rules List<Pulumiverse.Scaleway. Outputs. Get Database 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 []GetDatabase 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 List<GetDatabase 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 GetDatabase 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 Sequence[GetDatabase Acl 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
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.