1. Packages
  2. Zscaler Private Access (ZPA)
  3. API Docs
  4. getInspectionPredefinedControls
Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler

zpa.getInspectionPredefinedControls

Explore with Pulumi AI

zpa logo
Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler

    Use the zpa_inspection_predefined_controls data source to get information about an OWASP predefined control and prefedined control version. This data source is required when creating an inspection profile.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@pulumi/zpa";
    
    const example = zpa.getInspectionPredefinedControls({
        name: "Failed to parse request body",
        version: "OWASP_CRS/3.3.0",
    });
    export const zpaInspectionPredefinedControls = example;
    
    import pulumi
    import pulumi_zpa as zpa
    
    example = zpa.get_inspection_predefined_controls(name="Failed to parse request body",
        version="OWASP_CRS/3.3.0")
    pulumi.export("zpaInspectionPredefinedControls", example)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/zscaler/pulumi-zpa/sdk/go/zpa"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := zpa.GetInspectionPredefinedControls(ctx, &zpa.GetInspectionPredefinedControlsArgs{
    			Name:    pulumi.StringRef("Failed to parse request body"),
    			Version: pulumi.StringRef("OWASP_CRS/3.3.0"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("zpaInspectionPredefinedControls", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zpa = Pulumi.Zpa;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Zpa.GetInspectionPredefinedControls.Invoke(new()
        {
            Name = "Failed to parse request body",
            Version = "OWASP_CRS/3.3.0",
        });
    
        return new Dictionary<string, object?>
        {
            ["zpaInspectionPredefinedControls"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zpa.ZpaFunctions;
    import com.pulumi.zpa.inputs.GetInspectionPredefinedControlsArgs;
    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 example = ZpaFunctions.getInspectionPredefinedControls(GetInspectionPredefinedControlsArgs.builder()
                .name("Failed to parse request body")
                .version("OWASP_CRS/3.3.0")
                .build());
    
            ctx.export("zpaInspectionPredefinedControls", example.applyValue(getInspectionPredefinedControlsResult -> getInspectionPredefinedControlsResult));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: zpa:getInspectionPredefinedControls
          Arguments:
            name: Failed to parse request body
            version: OWASP_CRS/3.3.0
    outputs:
      zpaInspectionPredefinedControls: ${example}
    

    Using getInspectionPredefinedControls

    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 getInspectionPredefinedControls(args: GetInspectionPredefinedControlsArgs, opts?: InvokeOptions): Promise<GetInspectionPredefinedControlsResult>
    function getInspectionPredefinedControlsOutput(args: GetInspectionPredefinedControlsOutputArgs, opts?: InvokeOptions): Output<GetInspectionPredefinedControlsResult>
    def get_inspection_predefined_controls(id: Optional[str] = None,
                                           name: Optional[str] = None,
                                           version: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetInspectionPredefinedControlsResult
    def get_inspection_predefined_controls_output(id: Optional[pulumi.Input[str]] = None,
                                           name: Optional[pulumi.Input[str]] = None,
                                           version: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetInspectionPredefinedControlsResult]
    func GetInspectionPredefinedControls(ctx *Context, args *GetInspectionPredefinedControlsArgs, opts ...InvokeOption) (*GetInspectionPredefinedControlsResult, error)
    func GetInspectionPredefinedControlsOutput(ctx *Context, args *GetInspectionPredefinedControlsOutputArgs, opts ...InvokeOption) GetInspectionPredefinedControlsResultOutput

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

    public static class GetInspectionPredefinedControls 
    {
        public static Task<GetInspectionPredefinedControlsResult> InvokeAsync(GetInspectionPredefinedControlsArgs args, InvokeOptions? opts = null)
        public static Output<GetInspectionPredefinedControlsResult> Invoke(GetInspectionPredefinedControlsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInspectionPredefinedControlsResult> getInspectionPredefinedControls(GetInspectionPredefinedControlsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: zpa:index/getInspectionPredefinedControls:getInspectionPredefinedControls
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Name string
    Version string
    Id string
    Name string
    Version string
    id String
    name String
    version String
    id string
    name string
    version string
    id str
    name str
    version str
    id String
    name String
    version String

    getInspectionPredefinedControls Result

    The following output properties are available:

    Supporting Types

    GetInspectionPredefinedControlsAssociatedInspectionProfileName

    Id string
    Name string
    Id string
    Name string
    id String
    name String
    id string
    name string
    id str
    name str
    id String
    name String

    Package Details

    Repository
    zpa zscaler/pulumi-zpa
    License
    MIT
    Notes
    This Pulumi package is based on the zpa Terraform Provider.
    zpa logo
    Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler