1. Packages
  2. Checkpoint Provider
  3. API Docs
  4. getManagementSmtpServer
checkpoint 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw

checkpoint.getManagementSmtpServer

Explore with Pulumi AI

checkpoint logo
checkpoint 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw

    Use this data source to get information on an existing Check Point Smtp Server.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as checkpoint from "@pulumi/checkpoint";
    
    const example = new checkpoint.ManagementSmtpServer("example", {
        port: 25,
        server: "smtp.example.com",
    });
    const dataSmtpServer = checkpoint.getManagementSmtpServerOutput({
        name: example.name,
    });
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    example = checkpoint.ManagementSmtpServer("example",
        port=25,
        server="smtp.example.com")
    data_smtp_server = checkpoint.get_management_smtp_server_output(name=example.name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/checkpoint/v2/checkpoint"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := checkpoint.NewManagementSmtpServer(ctx, "example", &checkpoint.ManagementSmtpServerArgs{
    			Port:   pulumi.Float64(25),
    			Server: pulumi.String("smtp.example.com"),
    		})
    		if err != nil {
    			return err
    		}
    		_ = checkpoint.LookupManagementSmtpServerOutput(ctx, checkpoint.GetManagementSmtpServerOutputArgs{
    			Name: example.Name,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Checkpoint = Pulumi.Checkpoint;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Checkpoint.ManagementSmtpServer("example", new()
        {
            Port = 25,
            Server = "smtp.example.com",
        });
    
        var dataSmtpServer = Checkpoint.GetManagementSmtpServer.Invoke(new()
        {
            Name = example.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.checkpoint.ManagementSmtpServer;
    import com.pulumi.checkpoint.ManagementSmtpServerArgs;
    import com.pulumi.checkpoint.CheckpointFunctions;
    import com.pulumi.checkpoint.inputs.GetManagementSmtpServerArgs;
    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) {
            var example = new ManagementSmtpServer("example", ManagementSmtpServerArgs.builder()
                .port(25)
                .server("smtp.example.com")
                .build());
    
            final var dataSmtpServer = CheckpointFunctions.getManagementSmtpServer(GetManagementSmtpServerArgs.builder()
                .name(example.name())
                .build());
    
        }
    }
    
    resources:
      example:
        type: checkpoint:ManagementSmtpServer
        properties:
          port: 25
          server: smtp.example.com
    variables:
      dataSmtpServer:
        fn::invoke:
          function: checkpoint:getManagementSmtpServer
          arguments:
            name: ${example.name}
    

    Using getManagementSmtpServer

    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 getManagementSmtpServer(args: GetManagementSmtpServerArgs, opts?: InvokeOptions): Promise<GetManagementSmtpServerResult>
    function getManagementSmtpServerOutput(args: GetManagementSmtpServerOutputArgs, opts?: InvokeOptions): Output<GetManagementSmtpServerResult>
    def get_management_smtp_server(id: Optional[str] = None,
                                   name: Optional[str] = None,
                                   uid: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetManagementSmtpServerResult
    def get_management_smtp_server_output(id: Optional[pulumi.Input[str]] = None,
                                   name: Optional[pulumi.Input[str]] = None,
                                   uid: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetManagementSmtpServerResult]
    func LookupManagementSmtpServer(ctx *Context, args *LookupManagementSmtpServerArgs, opts ...InvokeOption) (*LookupManagementSmtpServerResult, error)
    func LookupManagementSmtpServerOutput(ctx *Context, args *LookupManagementSmtpServerOutputArgs, opts ...InvokeOption) LookupManagementSmtpServerResultOutput

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

    public static class GetManagementSmtpServer 
    {
        public static Task<GetManagementSmtpServerResult> InvokeAsync(GetManagementSmtpServerArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementSmtpServerResult> Invoke(GetManagementSmtpServerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementSmtpServerResult> getManagementSmtpServer(GetManagementSmtpServerArgs args, InvokeOptions options)
    public static Output<GetManagementSmtpServerResult> getManagementSmtpServer(GetManagementSmtpServerArgs args, InvokeOptions options)
    
    fn::invoke:
      function: checkpoint:index/getManagementSmtpServer:getManagementSmtpServer
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Name string
    Object name.
    Uid string
    Object unique identifier.
    Id string
    Name string
    Object name.
    Uid string
    Object unique identifier.
    id String
    name String
    Object name.
    uid String
    Object unique identifier.
    id string
    name string
    Object name.
    uid string
    Object unique identifier.
    id str
    name str
    Object name.
    uid str
    Object unique identifier.
    id String
    name String
    Object name.
    uid String
    Object unique identifier.

    getManagementSmtpServer Result

    The following output properties are available:

    Authentication bool
    Color string
    Comments string
    DomainsToProcesses List<string>
    Encryption string
    Id string
    Password string
    Port double
    Server string
    Tags List<string>
    Username string
    Name string
    Uid string
    Authentication bool
    Color string
    Comments string
    DomainsToProcesses []string
    Encryption string
    Id string
    Password string
    Port float64
    Server string
    Tags []string
    Username string
    Name string
    Uid string
    authentication Boolean
    color String
    comments String
    domainsToProcesses List<String>
    encryption String
    id String
    password String
    port Double
    server String
    tags List<String>
    username String
    name String
    uid String
    authentication boolean
    color string
    comments string
    domainsToProcesses string[]
    encryption string
    id string
    password string
    port number
    server string
    tags string[]
    username string
    name string
    uid string
    authentication bool
    color str
    comments str
    domains_to_processes Sequence[str]
    encryption str
    id str
    password str
    port float
    server str
    tags Sequence[str]
    username str
    name str
    uid str
    authentication Boolean
    color String
    comments String
    domainsToProcesses List<String>
    encryption String
    id String
    password String
    port Number
    server String
    tags List<String>
    username String
    name String
    uid String

    Package Details

    Repository
    checkpoint checkpointsw/terraform-provider-checkpoint
    License
    Notes
    This Pulumi package is based on the checkpoint Terraform Provider.
    checkpoint logo
    checkpoint 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw