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

checkpoint.getManagementResourceSmtp

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 Resource Smtp.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as checkpoint from "@pulumi/checkpoint";
    
    const smtp = new checkpoint.ManagementResourceSmtp("smtp", {
        action1: {
            customField: {
                field: "field",
                original: "five",
                rewritten: "six",
            },
            recipient: {
                original: "three",
                rewritten: "four",
            },
            sender: {
                original: "one",
                rewritten: "two",
            },
        },
        cvp: {
            allowedToModifyContent: true,
            enableCvp: false,
            replyOrder: "return_data_after_content_is_approved",
            server: "serverName",
        },
        exceptionTrack: "exception log",
        mailDeliveryServer: "deliverServer",
        match: {
            recipient: "expr2",
            sender: "expr1",
        },
    });
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    smtp = checkpoint.ManagementResourceSmtp("smtp",
        action1={
            "custom_field": {
                "field": "field",
                "original": "five",
                "rewritten": "six",
            },
            "recipient": {
                "original": "three",
                "rewritten": "four",
            },
            "sender": {
                "original": "one",
                "rewritten": "two",
            },
        },
        cvp={
            "allowed_to_modify_content": True,
            "enable_cvp": False,
            "reply_order": "return_data_after_content_is_approved",
            "server": "serverName",
        },
        exception_track="exception log",
        mail_delivery_server="deliverServer",
        match={
            "recipient": "expr2",
            "sender": "expr1",
        })
    
    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 {
    		_, err := checkpoint.NewManagementResourceSmtp(ctx, "smtp", &checkpoint.ManagementResourceSmtpArgs{
    			Action1: &checkpoint.ManagementResourceSmtpAction1Args{
    				CustomField: &checkpoint.ManagementResourceSmtpAction1CustomFieldArgs{
    					Field:     pulumi.String("field"),
    					Original:  pulumi.String("five"),
    					Rewritten: pulumi.String("six"),
    				},
    				Recipient: &checkpoint.ManagementResourceSmtpAction1RecipientArgs{
    					Original:  pulumi.String("three"),
    					Rewritten: pulumi.String("four"),
    				},
    				Sender: &checkpoint.ManagementResourceSmtpAction1SenderArgs{
    					Original:  pulumi.String("one"),
    					Rewritten: pulumi.String("two"),
    				},
    			},
    			Cvp: &checkpoint.ManagementResourceSmtpCvpArgs{
    				AllowedToModifyContent: pulumi.Bool(true),
    				EnableCvp:              pulumi.Bool(false),
    				ReplyOrder:             pulumi.String("return_data_after_content_is_approved"),
    				Server:                 pulumi.String("serverName"),
    			},
    			ExceptionTrack:     pulumi.String("exception log"),
    			MailDeliveryServer: pulumi.String("deliverServer"),
    			Match: pulumi.StringMap{
    				"recipient": pulumi.String("expr2"),
    				"sender":    pulumi.String("expr1"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Checkpoint = Pulumi.Checkpoint;
    
    return await Deployment.RunAsync(() => 
    {
        var smtp = new Checkpoint.ManagementResourceSmtp("smtp", new()
        {
            Action1 = new Checkpoint.Inputs.ManagementResourceSmtpAction1Args
            {
                CustomField = new Checkpoint.Inputs.ManagementResourceSmtpAction1CustomFieldArgs
                {
                    Field = "field",
                    Original = "five",
                    Rewritten = "six",
                },
                Recipient = new Checkpoint.Inputs.ManagementResourceSmtpAction1RecipientArgs
                {
                    Original = "three",
                    Rewritten = "four",
                },
                Sender = new Checkpoint.Inputs.ManagementResourceSmtpAction1SenderArgs
                {
                    Original = "one",
                    Rewritten = "two",
                },
            },
            Cvp = new Checkpoint.Inputs.ManagementResourceSmtpCvpArgs
            {
                AllowedToModifyContent = true,
                EnableCvp = false,
                ReplyOrder = "return_data_after_content_is_approved",
                Server = "serverName",
            },
            ExceptionTrack = "exception log",
            MailDeliveryServer = "deliverServer",
            Match = 
            {
                { "recipient", "expr2" },
                { "sender", "expr1" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.checkpoint.ManagementResourceSmtp;
    import com.pulumi.checkpoint.ManagementResourceSmtpArgs;
    import com.pulumi.checkpoint.inputs.ManagementResourceSmtpAction1Args;
    import com.pulumi.checkpoint.inputs.ManagementResourceSmtpAction1CustomFieldArgs;
    import com.pulumi.checkpoint.inputs.ManagementResourceSmtpAction1RecipientArgs;
    import com.pulumi.checkpoint.inputs.ManagementResourceSmtpAction1SenderArgs;
    import com.pulumi.checkpoint.inputs.ManagementResourceSmtpCvpArgs;
    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 smtp = new ManagementResourceSmtp("smtp", ManagementResourceSmtpArgs.builder()
                .action1(ManagementResourceSmtpAction1Args.builder()
                    .customField(ManagementResourceSmtpAction1CustomFieldArgs.builder()
                        .field("field")
                        .original("five")
                        .rewritten("six")
                        .build())
                    .recipient(ManagementResourceSmtpAction1RecipientArgs.builder()
                        .original("three")
                        .rewritten("four")
                        .build())
                    .sender(ManagementResourceSmtpAction1SenderArgs.builder()
                        .original("one")
                        .rewritten("two")
                        .build())
                    .build())
                .cvp(ManagementResourceSmtpCvpArgs.builder()
                    .allowedToModifyContent(true)
                    .enableCvp(false)
                    .replyOrder("return_data_after_content_is_approved")
                    .server("serverName")
                    .build())
                .exceptionTrack("exception log")
                .mailDeliveryServer("deliverServer")
                .match(Map.ofEntries(
                    Map.entry("recipient", "expr2"),
                    Map.entry("sender", "expr1")
                ))
                .build());
    
        }
    }
    
    resources:
      smtp:
        type: checkpoint:ManagementResourceSmtp
        properties:
          action1:
            customField:
              field: field
              original: five
              rewritten: six
            recipient:
              original: three
              rewritten: four
            sender:
              original: one
              rewritten: two
          cvp:
            allowedToModifyContent: true
            enableCvp: false
            replyOrder: return_data_after_content_is_approved
            server: serverName
          exceptionTrack: exception log
          mailDeliveryServer: deliverServer
          match:
            recipient: expr2
            sender: expr1
    

    Using getManagementResourceSmtp

    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 getManagementResourceSmtp(args: GetManagementResourceSmtpArgs, opts?: InvokeOptions): Promise<GetManagementResourceSmtpResult>
    function getManagementResourceSmtpOutput(args: GetManagementResourceSmtpOutputArgs, opts?: InvokeOptions): Output<GetManagementResourceSmtpResult>
    def get_management_resource_smtp(id: Optional[str] = None,
                                     name: Optional[str] = None,
                                     uid: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetManagementResourceSmtpResult
    def get_management_resource_smtp_output(id: Optional[pulumi.Input[str]] = None,
                                     name: Optional[pulumi.Input[str]] = None,
                                     uid: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetManagementResourceSmtpResult]
    func LookupManagementResourceSmtp(ctx *Context, args *LookupManagementResourceSmtpArgs, opts ...InvokeOption) (*LookupManagementResourceSmtpResult, error)
    func LookupManagementResourceSmtpOutput(ctx *Context, args *LookupManagementResourceSmtpOutputArgs, opts ...InvokeOption) LookupManagementResourceSmtpResultOutput

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

    public static class GetManagementResourceSmtp 
    {
        public static Task<GetManagementResourceSmtpResult> InvokeAsync(GetManagementResourceSmtpArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementResourceSmtpResult> Invoke(GetManagementResourceSmtpInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementResourceSmtpResult> getManagementResourceSmtp(GetManagementResourceSmtpArgs args, InvokeOptions options)
    public static Output<GetManagementResourceSmtpResult> getManagementResourceSmtp(GetManagementResourceSmtpArgs args, InvokeOptions options)
    
    fn::invoke:
      function: checkpoint:index/getManagementResourceSmtp:getManagementResourceSmtp
      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.

    getManagementResourceSmtp Result

    The following output properties are available:

    Supporting Types

    GetManagementResourceSmtpAction1

    CustomFields List<GetManagementResourceSmtpAction1CustomField>
    The name of the header.custom_field blocks are documented below.
    Recipients List<GetManagementResourceSmtpAction1Recipient>
    Rewrite Recipient header.recipient blocks are documented below.
    Senders List<GetManagementResourceSmtpAction1Sender>
    Rewrite Sender header.sender blocks are documented below.
    CustomFields []GetManagementResourceSmtpAction1CustomField
    The name of the header.custom_field blocks are documented below.
    Recipients []GetManagementResourceSmtpAction1Recipient
    Rewrite Recipient header.recipient blocks are documented below.
    Senders []GetManagementResourceSmtpAction1Sender
    Rewrite Sender header.sender blocks are documented below.
    customFields List<GetManagementResourceSmtpAction1CustomField>
    The name of the header.custom_field blocks are documented below.
    recipients List<GetManagementResourceSmtpAction1Recipient>
    Rewrite Recipient header.recipient blocks are documented below.
    senders List<GetManagementResourceSmtpAction1Sender>
    Rewrite Sender header.sender blocks are documented below.
    customFields GetManagementResourceSmtpAction1CustomField[]
    The name of the header.custom_field blocks are documented below.
    recipients GetManagementResourceSmtpAction1Recipient[]
    Rewrite Recipient header.recipient blocks are documented below.
    senders GetManagementResourceSmtpAction1Sender[]
    Rewrite Sender header.sender blocks are documented below.
    custom_fields Sequence[GetManagementResourceSmtpAction1CustomField]
    The name of the header.custom_field blocks are documented below.
    recipients Sequence[GetManagementResourceSmtpAction1Recipient]
    Rewrite Recipient header.recipient blocks are documented below.
    senders Sequence[GetManagementResourceSmtpAction1Sender]
    Rewrite Sender header.sender blocks are documented below.
    customFields List<Property Map>
    The name of the header.custom_field blocks are documented below.
    recipients List<Property Map>
    Rewrite Recipient header.recipient blocks are documented below.
    senders List<Property Map>
    Rewrite Sender header.sender blocks are documented below.

    GetManagementResourceSmtpAction1CustomField

    Field string
    The name of the header.
    Original string
    Original field.
    Rewritten string
    Replacement field.
    Field string
    The name of the header.
    Original string
    Original field.
    Rewritten string
    Replacement field.
    field String
    The name of the header.
    original String
    Original field.
    rewritten String
    Replacement field.
    field string
    The name of the header.
    original string
    Original field.
    rewritten string
    Replacement field.
    field str
    The name of the header.
    original str
    Original field.
    rewritten str
    Replacement field.
    field String
    The name of the header.
    original String
    Original field.
    rewritten String
    Replacement field.

    GetManagementResourceSmtpAction1Recipient

    Original string
    Original field.
    Rewritten string
    Replacement field.
    Original string
    Original field.
    Rewritten string
    Replacement field.
    original String
    Original field.
    rewritten String
    Replacement field.
    original string
    Original field.
    rewritten string
    Replacement field.
    original str
    Original field.
    rewritten str
    Replacement field.
    original String
    Original field.
    rewritten String
    Replacement field.

    GetManagementResourceSmtpAction1Sender

    Original string
    Original field.
    Rewritten string
    Replacement field.
    Original string
    Original field.
    Rewritten string
    Replacement field.
    original String
    Original field.
    rewritten String
    Replacement field.
    original string
    Original field.
    rewritten string
    Replacement field.
    original str
    Original field.
    rewritten str
    Replacement field.
    original String
    Original field.
    rewritten String
    Replacement field.

    GetManagementResourceSmtpAction2

    AllowedCharacters string
    The MIME email headers can consist of 8 or 7 bit characters (7 ASCII and 8 for sending Binary characters) in order to encode mail data.
    MailCapacity double
    Restrict the size (in kb) of incoming email attachments.
    StripActivexTags bool
    Strip activeX tags.
    StripAppletTags bool
    Strip JAVA applets.
    StripFileByName string
    Strips file attachments of the specified name from the message.
    StripFtpLinks bool
    Strip ftp links.
    StripMimeOfType string
    Specifies the MIME type to strip from the message.
    StripPortStrings bool
    Strip ports.
    StripScriptTags bool
    Strip JAVA scripts.
    AllowedCharacters string
    The MIME email headers can consist of 8 or 7 bit characters (7 ASCII and 8 for sending Binary characters) in order to encode mail data.
    MailCapacity float64
    Restrict the size (in kb) of incoming email attachments.
    StripActivexTags bool
    Strip activeX tags.
    StripAppletTags bool
    Strip JAVA applets.
    StripFileByName string
    Strips file attachments of the specified name from the message.
    StripFtpLinks bool
    Strip ftp links.
    StripMimeOfType string
    Specifies the MIME type to strip from the message.
    StripPortStrings bool
    Strip ports.
    StripScriptTags bool
    Strip JAVA scripts.
    allowedCharacters String
    The MIME email headers can consist of 8 or 7 bit characters (7 ASCII and 8 for sending Binary characters) in order to encode mail data.
    mailCapacity Double
    Restrict the size (in kb) of incoming email attachments.
    stripActivexTags Boolean
    Strip activeX tags.
    stripAppletTags Boolean
    Strip JAVA applets.
    stripFileByName String
    Strips file attachments of the specified name from the message.
    stripFtpLinks Boolean
    Strip ftp links.
    stripMimeOfType String
    Specifies the MIME type to strip from the message.
    stripPortStrings Boolean
    Strip ports.
    stripScriptTags Boolean
    Strip JAVA scripts.
    allowedCharacters string
    The MIME email headers can consist of 8 or 7 bit characters (7 ASCII and 8 for sending Binary characters) in order to encode mail data.
    mailCapacity number
    Restrict the size (in kb) of incoming email attachments.
    stripActivexTags boolean
    Strip activeX tags.
    stripAppletTags boolean
    Strip JAVA applets.
    stripFileByName string
    Strips file attachments of the specified name from the message.
    stripFtpLinks boolean
    Strip ftp links.
    stripMimeOfType string
    Specifies the MIME type to strip from the message.
    stripPortStrings boolean
    Strip ports.
    stripScriptTags boolean
    Strip JAVA scripts.
    allowed_characters str
    The MIME email headers can consist of 8 or 7 bit characters (7 ASCII and 8 for sending Binary characters) in order to encode mail data.
    mail_capacity float
    Restrict the size (in kb) of incoming email attachments.
    strip_activex_tags bool
    Strip activeX tags.
    strip_applet_tags bool
    Strip JAVA applets.
    strip_file_by_name str
    Strips file attachments of the specified name from the message.
    strip_ftp_links bool
    Strip ftp links.
    strip_mime_of_type str
    Specifies the MIME type to strip from the message.
    strip_port_strings bool
    Strip ports.
    strip_script_tags bool
    Strip JAVA scripts.
    allowedCharacters String
    The MIME email headers can consist of 8 or 7 bit characters (7 ASCII and 8 for sending Binary characters) in order to encode mail data.
    mailCapacity Number
    Restrict the size (in kb) of incoming email attachments.
    stripActivexTags Boolean
    Strip activeX tags.
    stripAppletTags Boolean
    Strip JAVA applets.
    stripFileByName String
    Strips file attachments of the specified name from the message.
    stripFtpLinks Boolean
    Strip ftp links.
    stripMimeOfType String
    Specifies the MIME type to strip from the message.
    stripPortStrings Boolean
    Strip ports.
    stripScriptTags Boolean
    Strip JAVA scripts.

    GetManagementResourceSmtpCvp

    AllowedToModifyContent bool
    Configures the CVP server to inspect but not modify content.
    EnableCvp bool
    Select to enable the Content Vectoring Protocol.
    ReplyOrder string
    Designates when the CVP server returns data to the Security Gateway security server.
    Server string
    The UID or Name of the CVP server, make sure the CVP server is already be defined as an OPSEC Application.
    AllowedToModifyContent bool
    Configures the CVP server to inspect but not modify content.
    EnableCvp bool
    Select to enable the Content Vectoring Protocol.
    ReplyOrder string
    Designates when the CVP server returns data to the Security Gateway security server.
    Server string
    The UID or Name of the CVP server, make sure the CVP server is already be defined as an OPSEC Application.
    allowedToModifyContent Boolean
    Configures the CVP server to inspect but not modify content.
    enableCvp Boolean
    Select to enable the Content Vectoring Protocol.
    replyOrder String
    Designates when the CVP server returns data to the Security Gateway security server.
    server String
    The UID or Name of the CVP server, make sure the CVP server is already be defined as an OPSEC Application.
    allowedToModifyContent boolean
    Configures the CVP server to inspect but not modify content.
    enableCvp boolean
    Select to enable the Content Vectoring Protocol.
    replyOrder string
    Designates when the CVP server returns data to the Security Gateway security server.
    server string
    The UID or Name of the CVP server, make sure the CVP server is already be defined as an OPSEC Application.
    allowed_to_modify_content bool
    Configures the CVP server to inspect but not modify content.
    enable_cvp bool
    Select to enable the Content Vectoring Protocol.
    reply_order str
    Designates when the CVP server returns data to the Security Gateway security server.
    server str
    The UID or Name of the CVP server, make sure the CVP server is already be defined as an OPSEC Application.
    allowedToModifyContent Boolean
    Configures the CVP server to inspect but not modify content.
    enableCvp Boolean
    Select to enable the Content Vectoring Protocol.
    replyOrder String
    Designates when the CVP server returns data to the Security Gateway security server.
    server String
    The UID or Name of the CVP server, make sure the CVP server is already be defined as an OPSEC Application.

    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