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

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",
    },
});
Copy
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",
    })
Copy
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
	})
}
Copy
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" },
        },
    });

});
Copy
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());

    }
}
Copy
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
Copy

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>
Copy
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]
Copy
func LookupManagementResourceSmtp(ctx *Context, args *LookupManagementResourceSmtpArgs, opts ...InvokeOption) (*LookupManagementResourceSmtpResult, error)
func LookupManagementResourceSmtpOutput(ctx *Context, args *LookupManagementResourceSmtpOutputArgs, opts ...InvokeOption) LookupManagementResourceSmtpResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetManagementResourceSmtpResult> getManagementResourceSmtp(GetManagementResourceSmtpArgs args, InvokeOptions options)
public static Output<GetManagementResourceSmtpResult> getManagementResourceSmtp(GetManagementResourceSmtpArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: checkpoint:index/getManagementResourceSmtp:getManagementResourceSmtp
  arguments:
    # arguments dictionary
Copy

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 This property is required. List<GetManagementResourceSmtpAction1CustomField>
The name of the header.custom_field blocks are documented below.
Recipients This property is required. List<GetManagementResourceSmtpAction1Recipient>
Rewrite Recipient header.recipient blocks are documented below.
Senders This property is required. List<GetManagementResourceSmtpAction1Sender>
Rewrite Sender header.sender blocks are documented below.
CustomFields This property is required. []GetManagementResourceSmtpAction1CustomField
The name of the header.custom_field blocks are documented below.
Recipients This property is required. []GetManagementResourceSmtpAction1Recipient
Rewrite Recipient header.recipient blocks are documented below.
Senders This property is required. []GetManagementResourceSmtpAction1Sender
Rewrite Sender header.sender blocks are documented below.
customFields This property is required. List<GetManagementResourceSmtpAction1CustomField>
The name of the header.custom_field blocks are documented below.
recipients This property is required. List<GetManagementResourceSmtpAction1Recipient>
Rewrite Recipient header.recipient blocks are documented below.
senders This property is required. List<GetManagementResourceSmtpAction1Sender>
Rewrite Sender header.sender blocks are documented below.
customFields This property is required. GetManagementResourceSmtpAction1CustomField[]
The name of the header.custom_field blocks are documented below.
recipients This property is required. GetManagementResourceSmtpAction1Recipient[]
Rewrite Recipient header.recipient blocks are documented below.
senders This property is required. GetManagementResourceSmtpAction1Sender[]
Rewrite Sender header.sender blocks are documented below.
custom_fields This property is required. Sequence[GetManagementResourceSmtpAction1CustomField]
The name of the header.custom_field blocks are documented below.
recipients This property is required. Sequence[GetManagementResourceSmtpAction1Recipient]
Rewrite Recipient header.recipient blocks are documented below.
senders This property is required. Sequence[GetManagementResourceSmtpAction1Sender]
Rewrite Sender header.sender blocks are documented below.
customFields This property is required. List<Property Map>
The name of the header.custom_field blocks are documented below.
recipients This property is required. List<Property Map>
Rewrite Recipient header.recipient blocks are documented below.
senders This property is required. List<Property Map>
Rewrite Sender header.sender blocks are documented below.

GetManagementResourceSmtpAction1CustomField

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

GetManagementResourceSmtpAction1Recipient

Original This property is required. string
Original field.
Rewritten This property is required. string
Replacement field.
Original This property is required. string
Original field.
Rewritten This property is required. string
Replacement field.
original This property is required. String
Original field.
rewritten This property is required. String
Replacement field.
original This property is required. string
Original field.
rewritten This property is required. string
Replacement field.
original This property is required. str
Original field.
rewritten This property is required. str
Replacement field.
original This property is required. String
Original field.
rewritten This property is required. String
Replacement field.

GetManagementResourceSmtpAction1Sender

Original This property is required. string
Original field.
Rewritten This property is required. string
Replacement field.
Original This property is required. string
Original field.
Rewritten This property is required. string
Replacement field.
original This property is required. String
Original field.
rewritten This property is required. String
Replacement field.
original This property is required. string
Original field.
rewritten This property is required. string
Replacement field.
original This property is required. str
Original field.
rewritten This property is required. str
Replacement field.
original This property is required. String
Original field.
rewritten This property is required. String
Replacement field.

GetManagementResourceSmtpAction2

AllowedCharacters This property is required. 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 This property is required. double
Restrict the size (in kb) of incoming email attachments.
StripActivexTags This property is required. bool
Strip activeX tags.
StripAppletTags This property is required. bool
Strip JAVA applets.
StripFileByName This property is required. string
Strips file attachments of the specified name from the message.
StripFtpLinks This property is required. bool
Strip ftp links.
StripMimeOfType This property is required. string
Specifies the MIME type to strip from the message.
StripPortStrings This property is required. bool
Strip ports.
StripScriptTags This property is required. bool
Strip JAVA scripts.
AllowedCharacters This property is required. 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 This property is required. float64
Restrict the size (in kb) of incoming email attachments.
StripActivexTags This property is required. bool
Strip activeX tags.
StripAppletTags This property is required. bool
Strip JAVA applets.
StripFileByName This property is required. string
Strips file attachments of the specified name from the message.
StripFtpLinks This property is required. bool
Strip ftp links.
StripMimeOfType This property is required. string
Specifies the MIME type to strip from the message.
StripPortStrings This property is required. bool
Strip ports.
StripScriptTags This property is required. bool
Strip JAVA scripts.
allowedCharacters This property is required. 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 This property is required. Double
Restrict the size (in kb) of incoming email attachments.
stripActivexTags This property is required. Boolean
Strip activeX tags.
stripAppletTags This property is required. Boolean
Strip JAVA applets.
stripFileByName This property is required. String
Strips file attachments of the specified name from the message.
stripFtpLinks This property is required. Boolean
Strip ftp links.
stripMimeOfType This property is required. String
Specifies the MIME type to strip from the message.
stripPortStrings This property is required. Boolean
Strip ports.
stripScriptTags This property is required. Boolean
Strip JAVA scripts.
allowedCharacters This property is required. 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 This property is required. number
Restrict the size (in kb) of incoming email attachments.
stripActivexTags This property is required. boolean
Strip activeX tags.
stripAppletTags This property is required. boolean
Strip JAVA applets.
stripFileByName This property is required. string
Strips file attachments of the specified name from the message.
stripFtpLinks This property is required. boolean
Strip ftp links.
stripMimeOfType This property is required. string
Specifies the MIME type to strip from the message.
stripPortStrings This property is required. boolean
Strip ports.
stripScriptTags This property is required. boolean
Strip JAVA scripts.
allowed_characters This property is required. 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 This property is required. float
Restrict the size (in kb) of incoming email attachments.
strip_activex_tags This property is required. bool
Strip activeX tags.
strip_applet_tags This property is required. bool
Strip JAVA applets.
strip_file_by_name This property is required. str
Strips file attachments of the specified name from the message.
strip_ftp_links This property is required. bool
Strip ftp links.
strip_mime_of_type This property is required. str
Specifies the MIME type to strip from the message.
strip_port_strings This property is required. bool
Strip ports.
strip_script_tags This property is required. bool
Strip JAVA scripts.
allowedCharacters This property is required. 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 This property is required. Number
Restrict the size (in kb) of incoming email attachments.
stripActivexTags This property is required. Boolean
Strip activeX tags.
stripAppletTags This property is required. Boolean
Strip JAVA applets.
stripFileByName This property is required. String
Strips file attachments of the specified name from the message.
stripFtpLinks This property is required. Boolean
Strip ftp links.
stripMimeOfType This property is required. String
Specifies the MIME type to strip from the message.
stripPortStrings This property is required. Boolean
Strip ports.
stripScriptTags This property is required. Boolean
Strip JAVA scripts.

GetManagementResourceSmtpCvp

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