fastly.getNgwafWorkspaceLists
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 dictionaryThe following arguments are supported:
- Workspace
Id string - The ID of the workspace.
- Workspace
Id string - The ID of the workspace.
- workspace
Id String - The ID of the workspace.
- workspace
Id string - The ID of the workspace.
- workspace_
id str - The ID of the workspace.
- workspace
Id 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<Get
Ngwaf Workspace Lists List> - The list of lists.
- Workspace
Id string - The ID of the workspace.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lists
[]Get
Ngwaf Workspace Lists List - The list of lists.
- Workspace
Id string - The ID of the workspace.
- id String
- The provider-assigned unique ID for this managed resource.
- lists
List<Get
Ngwaf Workspace Lists List> - The list of lists.
- workspace
Id String - The ID of the workspace.
- id string
- The provider-assigned unique ID for this managed resource.
- lists
Get
Ngwaf Workspace Lists List[] - The list of lists.
- workspace
Id string - The ID of the workspace.
- id str
- The provider-assigned unique ID for this managed resource.
- lists
Sequence[Get
Ngwaf Workspace Lists List] - 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.
- workspace
Id String - The ID of the workspace.
Supporting Types
GetNgwafWorkspaceListsList
- Created
At 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.
- Reference
Id string - The reference ID of the list.
- Type string
- The type of the list.
- Updated
At string - The date and time in ISO 8601 format when the list was last updated.
- Created
At 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.
- Reference
Id string - The reference ID of the list.
- Type string
- The type of the list.
- Updated
At string - The date and time in ISO 8601 format when the list was last updated.
- created
At 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.
- reference
Id String - The reference ID of the list.
- type String
- The type of the list.
- updated
At String - The date and time in ISO 8601 format when the list was last updated.
- created
At 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.
- reference
Id string - The reference ID of the list.
- type string
- The type of the list.
- updated
At 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.
- created
At 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.
- reference
Id String - The reference ID of the list.
- type String
- The type of the list.
- updated
At 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
fastlyTerraform Provider.
