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

fastly.getNgwafWorkspaceLists

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 Workspace List.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fastly from "@pulumi/fastly";
    
    const workspaceLists = fastly.getNgwafWorkspaceLists({
        workspaceId: example.id,
    });
    export const fastlyNgwafWorkspaceListsAll = workspaceLists;
    
    import pulumi
    import pulumi_fastly as fastly
    
    workspace_lists = fastly.get_ngwaf_workspace_lists(workspace_id=example["id"])
    pulumi.export("fastlyNgwafWorkspaceListsAll", workspace_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 {
    		workspaceLists, err := fastly.GetNgwafWorkspaceLists(ctx, &fastly.GetNgwafWorkspaceListsArgs{
    			WorkspaceId: example.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("fastlyNgwafWorkspaceListsAll", workspaceLists)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fastly = Pulumi.Fastly;
    
    return await Deployment.RunAsync(() => 
    {
        var workspaceLists = Fastly.GetNgwafWorkspaceLists.Invoke(new()
        {
            WorkspaceId = example.Id,
        });
    
        return new Dictionary<string, object?>
        {
            ["fastlyNgwafWorkspaceListsAll"] = workspaceLists,
        };
    });
    
    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.GetNgwafWorkspaceListsArgs;
    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 workspaceLists = FastlyFunctions.getNgwafWorkspaceLists(GetNgwafWorkspaceListsArgs.builder()
                .workspaceId(example.id())
                .build());
    
            ctx.export("fastlyNgwafWorkspaceListsAll", workspaceLists);
        }
    }
    
    variables:
      workspaceLists:
        fn::invoke:
          function: fastly:getNgwafWorkspaceLists
          arguments:
            workspaceId: ${example.id}
    outputs:
      fastlyNgwafWorkspaceListsAll: ${workspaceLists}
    

    Using getNgwafWorkspaceLists

    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 getNgwafWorkspaceLists(args: GetNgwafWorkspaceListsArgs, opts?: InvokeOptions): Promise<GetNgwafWorkspaceListsResult>
    function getNgwafWorkspaceListsOutput(args: GetNgwafWorkspaceListsOutputArgs, opts?: InvokeOptions): Output<GetNgwafWorkspaceListsResult>
    def get_ngwaf_workspace_lists(workspace_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetNgwafWorkspaceListsResult
    def get_ngwaf_workspace_lists_output(workspace_id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetNgwafWorkspaceListsResult]
    func GetNgwafWorkspaceLists(ctx *Context, args *GetNgwafWorkspaceListsArgs, opts ...InvokeOption) (*GetNgwafWorkspaceListsResult, error)
    func GetNgwafWorkspaceListsOutput(ctx *Context, args *GetNgwafWorkspaceListsOutputArgs, opts ...InvokeOption) GetNgwafWorkspaceListsResultOutput

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

    public static class GetNgwafWorkspaceLists 
    {
        public static Task<GetNgwafWorkspaceListsResult> InvokeAsync(GetNgwafWorkspaceListsArgs args, InvokeOptions? opts = null)
        public static Output<GetNgwafWorkspaceListsResult> Invoke(GetNgwafWorkspaceListsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNgwafWorkspaceListsResult> getNgwafWorkspaceLists(GetNgwafWorkspaceListsArgs args, InvokeOptions options)
    public static Output<GetNgwafWorkspaceListsResult> getNgwafWorkspaceLists(GetNgwafWorkspaceListsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: fastly:index/getNgwafWorkspaceLists:getNgwafWorkspaceLists
      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.

    getNgwafWorkspaceLists Result

    The following output properties are available:

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

    Supporting Types

    GetNgwafWorkspaceListsList

    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