1. Packages
  2. Fastly Provider
  3. API Docs
  4. getNgwafRedactions
Fastly v11.0.0 published on Thursday, Sep 4, 2025 by Pulumi

fastly.getNgwafRedactions

Explore with Pulumi AI

fastly logo
Fastly v11.0.0 published on Thursday, Sep 4, 2025 by Pulumi

    Use this data source to get a list of Fastly Next-Gen WAF Redactions.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fastly from "@pulumi/fastly";
    
    const ngwafRedactions = fastly.getNgwafRedactions({
        workspaceId: testRedactionsWorkspace.id,
    });
    export const fastlyNgwafRedactionsAll = redactions;
    
    import pulumi
    import pulumi_fastly as fastly
    
    ngwaf_redactions = fastly.get_ngwaf_redactions(workspace_id=test_redactions_workspace["id"])
    pulumi.export("fastlyNgwafRedactionsAll", redactions)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-fastly/sdk/v11/go/fastly"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fastly.GetNgwafRedactions(ctx, &fastly.GetNgwafRedactionsArgs{
    			WorkspaceId: testRedactionsWorkspace.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("fastlyNgwafRedactionsAll", redactions)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fastly = Pulumi.Fastly;
    
    return await Deployment.RunAsync(() => 
    {
        var ngwafRedactions = Fastly.GetNgwafRedactions.Invoke(new()
        {
            WorkspaceId = testRedactionsWorkspace.Id,
        });
    
        return new Dictionary<string, object?>
        {
            ["fastlyNgwafRedactionsAll"] = redactions,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fastly.FastlyFunctions;
    import com.pulumi.fastly.inputs.GetNgwafRedactionsArgs;
    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 ngwafRedactions = FastlyFunctions.getNgwafRedactions(GetNgwafRedactionsArgs.builder()
                .workspaceId(testRedactionsWorkspace.id())
                .build());
    
            ctx.export("fastlyNgwafRedactionsAll", redactions);
        }
    }
    
    variables:
      ngwafRedactions:
        fn::invoke:
          function: fastly:getNgwafRedactions
          arguments:
            workspaceId: ${testRedactionsWorkspace.id}
    outputs:
      fastlyNgwafRedactionsAll: ${redactions}
    

    Using getNgwafRedactions

    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 getNgwafRedactions(args: GetNgwafRedactionsArgs, opts?: InvokeOptions): Promise<GetNgwafRedactionsResult>
    function getNgwafRedactionsOutput(args: GetNgwafRedactionsOutputArgs, opts?: InvokeOptions): Output<GetNgwafRedactionsResult>
    def get_ngwaf_redactions(workspace_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetNgwafRedactionsResult
    def get_ngwaf_redactions_output(workspace_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetNgwafRedactionsResult]
    func GetNgwafRedactions(ctx *Context, args *GetNgwafRedactionsArgs, opts ...InvokeOption) (*GetNgwafRedactionsResult, error)
    func GetNgwafRedactionsOutput(ctx *Context, args *GetNgwafRedactionsOutputArgs, opts ...InvokeOption) GetNgwafRedactionsResultOutput

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

    public static class GetNgwafRedactions 
    {
        public static Task<GetNgwafRedactionsResult> InvokeAsync(GetNgwafRedactionsArgs args, InvokeOptions? opts = null)
        public static Output<GetNgwafRedactionsResult> Invoke(GetNgwafRedactionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNgwafRedactionsResult> getNgwafRedactions(GetNgwafRedactionsArgs args, InvokeOptions options)
    public static Output<GetNgwafRedactionsResult> getNgwafRedactions(GetNgwafRedactionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: fastly:index/getNgwafRedactions:getNgwafRedactions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    WorkspaceId string
    The ID of the workspace.
    WorkspaceId string
    The ID of the workspace.
    workspaceId String
    The ID of the workspace.
    workspaceId string
    The ID of the workspace.
    workspace_id str
    The ID of the workspace.
    workspaceId String
    The ID of the workspace.

    getNgwafRedactions Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Redactions List<GetNgwafRedactionsRedaction>
    List of all redactions for a workspace.
    WorkspaceId string
    The ID of the workspace.
    Id string
    The provider-assigned unique ID for this managed resource.
    Redactions []GetNgwafRedactionsRedaction
    List of all redactions for a workspace.
    WorkspaceId string
    The ID of the workspace.
    id String
    The provider-assigned unique ID for this managed resource.
    redactions List<GetNgwafRedactionsRedaction>
    List of all redactions for a workspace.
    workspaceId String
    The ID of the workspace.
    id string
    The provider-assigned unique ID for this managed resource.
    redactions GetNgwafRedactionsRedaction[]
    List of all redactions for a workspace.
    workspaceId string
    The ID of the workspace.
    id str
    The provider-assigned unique ID for this managed resource.
    redactions Sequence[GetNgwafRedactionsRedaction]
    List of all redactions for a workspace.
    workspace_id str
    The ID of the workspace.
    id String
    The provider-assigned unique ID for this managed resource.
    redactions List<Property Map>
    List of all redactions for a workspace.
    workspaceId String
    The ID of the workspace.

    Supporting Types

    GetNgwafRedactionsRedaction

    Field string
    The name of the field that is being redacted.
    Id string
    The ID of the redaction.
    Type string
    The type of field being redacted. One of request_parameter, request_header, or response_header.
    Field string
    The name of the field that is being redacted.
    Id string
    The ID of the redaction.
    Type string
    The type of field being redacted. One of request_parameter, request_header, or response_header.
    field String
    The name of the field that is being redacted.
    id String
    The ID of the redaction.
    type String
    The type of field being redacted. One of request_parameter, request_header, or response_header.
    field string
    The name of the field that is being redacted.
    id string
    The ID of the redaction.
    type string
    The type of field being redacted. One of request_parameter, request_header, or response_header.
    field str
    The name of the field that is being redacted.
    id str
    The ID of the redaction.
    type str
    The type of field being redacted. One of request_parameter, request_header, or response_header.
    field String
    The name of the field that is being redacted.
    id String
    The ID of the redaction.
    type String
    The type of field being redacted. One of request_parameter, request_header, or response_header.

    Package Details

    Repository
    Fastly pulumi/pulumi-fastly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the fastly Terraform Provider.
    fastly logo
    Fastly v11.0.0 published on Thursday, Sep 4, 2025 by Pulumi