1. Packages
  2. Fastly Provider
  3. API Docs
  4. getNgwafAccountLists
Fastly v11.1.0 published on Wednesday, Nov 5, 2025 by Pulumi

fastly.getNgwafAccountLists

Get Started
fastly logo
Fastly v11.1.0 published on Wednesday, Nov 5, 2025 by Pulumi

    Use this data source to get a Fastly Next-Gen WAF Account List.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fastly from "@pulumi/fastly";
    
    const accountLists = fastly.getNgwafAccountLists({});
    export const fastlyNgwafAccountListsAll = accountLists;
    
    import pulumi
    import pulumi_fastly as fastly
    
    account_lists = fastly.get_ngwaf_account_lists()
    pulumi.export("fastlyNgwafAccountListsAll", account_lists)
    
    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 {
    		accountLists, err := fastly.GetNgwafAccountLists(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("fastlyNgwafAccountListsAll", accountLists)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fastly = Pulumi.Fastly;
    
    return await Deployment.RunAsync(() => 
    {
        var accountLists = Fastly.GetNgwafAccountLists.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["fastlyNgwafAccountListsAll"] = accountLists,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fastly.FastlyFunctions;
    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 accountLists = FastlyFunctions.getNgwafAccountLists(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
    
            ctx.export("fastlyNgwafAccountListsAll", accountLists);
        }
    }
    
    variables:
      accountLists:
        fn::invoke:
          function: fastly:getNgwafAccountLists
          arguments: {}
    outputs:
      fastlyNgwafAccountListsAll: ${accountLists}
    

    Using getNgwafAccountLists

    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 getNgwafAccountLists(opts?: InvokeOptions): Promise<GetNgwafAccountListsResult>
    function getNgwafAccountListsOutput(opts?: InvokeOptions): Output<GetNgwafAccountListsResult>
    def get_ngwaf_account_lists(opts: Optional[InvokeOptions] = None) -> GetNgwafAccountListsResult
    def get_ngwaf_account_lists_output(opts: Optional[InvokeOptions] = None) -> Output[GetNgwafAccountListsResult]
    func GetNgwafAccountLists(ctx *Context, opts ...InvokeOption) (*GetNgwafAccountListsResult, error)
    func GetNgwafAccountListsOutput(ctx *Context, opts ...InvokeOption) GetNgwafAccountListsResultOutput

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

    public static class GetNgwafAccountLists 
    {
        public static Task<GetNgwafAccountListsResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetNgwafAccountListsResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNgwafAccountListsResult> getNgwafAccountLists(InvokeOptions options)
    public static Output<GetNgwafAccountListsResult> getNgwafAccountLists(InvokeOptions options)
    
    fn::invoke:
      function: fastly:index/getNgwafAccountLists:getNgwafAccountLists
      arguments:
        # arguments dictionary

    getNgwafAccountLists Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Lists List<GetNgwafAccountListsList>
    The list of lists.
    Id string
    The provider-assigned unique ID for this managed resource.
    Lists []GetNgwafAccountListsList
    The list of lists.
    id String
    The provider-assigned unique ID for this managed resource.
    lists List<GetNgwafAccountListsList>
    The list of lists.
    id string
    The provider-assigned unique ID for this managed resource.
    lists GetNgwafAccountListsList[]
    The list of lists.
    id str
    The provider-assigned unique ID for this managed resource.
    lists Sequence[GetNgwafAccountListsList]
    The list of lists.
    id String
    The provider-assigned unique ID for this managed resource.
    lists List<Property Map>
    The list of lists.

    Supporting Types

    GetNgwafAccountListsList

    CreatedAt string
    The date and time in ISO 8601 format when the list was created.
    Description string
    The description of the list.
    Id string
    The ID of the list.
    Name string
    The name of the list.
    ReferenceId string
    The reference ID of the list.
    Type string
    The type of the list.
    UpdatedAt string
    The date and time in ISO 8601 format when the list was last updated.
    CreatedAt string
    The date and time in ISO 8601 format when the list was created.
    Description string
    The description of the list.
    Id string
    The ID of the list.
    Name string
    The name of the list.
    ReferenceId string
    The reference ID of the list.
    Type string
    The type of the list.
    UpdatedAt string
    The date and time in ISO 8601 format when the list was last updated.
    createdAt String
    The date and time in ISO 8601 format when the list was created.
    description String
    The description of the list.
    id String
    The ID of the list.
    name String
    The name of the list.
    referenceId String
    The reference ID of the list.
    type String
    The type of the list.
    updatedAt String
    The date and time in ISO 8601 format when the list was last updated.
    createdAt string
    The date and time in ISO 8601 format when the list was created.
    description string
    The description of the list.
    id string
    The ID of the list.
    name string
    The name of the list.
    referenceId string
    The reference ID of the list.
    type string
    The type of the list.
    updatedAt string
    The date and time in ISO 8601 format when the list was last updated.
    created_at str
    The date and time in ISO 8601 format when the list was created.
    description str
    The description of the list.
    id str
    The ID of the list.
    name str
    The name of the list.
    reference_id str
    The reference ID of the list.
    type str
    The type of the list.
    updated_at str
    The date and time in ISO 8601 format when the list was last updated.
    createdAt String
    The date and time in ISO 8601 format when the list was created.
    description String
    The description of the list.
    id String
    The ID of the list.
    name String
    The name of the list.
    referenceId String
    The reference ID of the list.
    type String
    The type of the list.
    updatedAt String
    The date and time in ISO 8601 format when the list was last updated.

    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.1.0 published on Wednesday, Nov 5, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate