1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. getIcapServers
Zscaler Internet Access v0.0.7 published on Tuesday, Jul 30, 2024 by Zscaler

zia.getIcapServers

Explore with Pulumi AI

zia logo
Zscaler Internet Access v0.0.7 published on Tuesday, Jul 30, 2024 by Zscaler

    Use the zia_dlp_engines data source to get information about a the list of DLP servers using ICAP in the Zscaler Internet Access cloud or via the API.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zia from "@pulumi/zia";
    
    const example = zia.getIcapServers({
        name: "Example",
    });
    
    import pulumi
    import pulumi_zia as zia
    
    example = zia.get_icap_servers(name="Example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/zscaler/pulumi-zia/sdk/go/zia"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zia.GetIcapServers(ctx, &zia.GetIcapServersArgs{
    			Name: pulumi.StringRef("Example"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zia = Pulumi.Zia;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Zia.GetIcapServers.Invoke(new()
        {
            Name = "Example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zia.ZiaFunctions;
    import com.pulumi.zia.inputs.GetIcapServersArgs;
    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 = ZiaFunctions.getIcapServers(GetIcapServersArgs.builder()
                .name("Example")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: zia:getIcapServers
          Arguments:
            name: Example
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zia.ZiaFunctions;
    import com.pulumi.zia.inputs.GetIcapServersArgs;
    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 = ZiaFunctions.getIcapServers(GetIcapServersArgs.builder()
                .id(1234567890)
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: zia:getIcapServers
          Arguments:
            id: 1.23456789e+09
    

    Using getIcapServers

    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 getIcapServers(args: GetIcapServersArgs, opts?: InvokeOptions): Promise<GetIcapServersResult>
    function getIcapServersOutput(args: GetIcapServersOutputArgs, opts?: InvokeOptions): Output<GetIcapServersResult>
    def get_icap_servers(name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetIcapServersResult
    def get_icap_servers_output(name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetIcapServersResult]
    func GetIcapServers(ctx *Context, args *GetIcapServersArgs, opts ...InvokeOption) (*GetIcapServersResult, error)
    func GetIcapServersOutput(ctx *Context, args *GetIcapServersOutputArgs, opts ...InvokeOption) GetIcapServersResultOutput

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

    public static class GetIcapServers 
    {
        public static Task<GetIcapServersResult> InvokeAsync(GetIcapServersArgs args, InvokeOptions? opts = null)
        public static Output<GetIcapServersResult> Invoke(GetIcapServersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIcapServersResult> getIcapServers(GetIcapServersArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: zia:index/getIcapServers:getIcapServers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name string
    name String
    name string
    name str
    name String

    getIcapServers Result

    The following output properties are available:

    Id int
    Status string
    Url string
    Name string
    Id int
    Status string
    Url string
    Name string
    id Integer
    status String
    url String
    name String
    id number
    status string
    url string
    name string
    id int
    status str
    url str
    name str
    id Number
    status String
    url String
    name String

    Package Details

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