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

checkpoint.getManagementSmartTask

Explore with Pulumi AI

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

    #Data Source checkpoint.ManagementSmartTask

    TUse this data source to get information on an existing Check Point Smart Task.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as checkpoint from "@pulumi/checkpoint";
    
    const smartTask = new checkpoint.ManagementSmartTask("smartTask", {
        action: {
            sendWebRequest: {
                fingerprint: "8023a5652ba2c8f5b0902363a5314cd2b4fdbc5c",
                overrideProxy: true,
                proxyUrl: "https://demo.example.com/policy-installation-reports",
                sharedSecret: " secret",
                timeOut: 200,
                url: "https://demo.example.com/policy-installation-reports",
            },
        },
        description: "my smart task",
        enabled: true,
        trigger: "Before Publish",
    });
    const dataSmartTask = checkpoint.getManagementSmartTaskOutput({
        name: smartTask.name,
    });
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    smart_task = checkpoint.ManagementSmartTask("smartTask",
        action={
            "send_web_request": {
                "fingerprint": "8023a5652ba2c8f5b0902363a5314cd2b4fdbc5c",
                "override_proxy": True,
                "proxy_url": "https://demo.example.com/policy-installation-reports",
                "shared_secret": " secret",
                "time_out": 200,
                "url": "https://demo.example.com/policy-installation-reports",
            },
        },
        description="my smart task",
        enabled=True,
        trigger="Before Publish")
    data_smart_task = checkpoint.get_management_smart_task_output(name=smart_task.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 {
    		smartTask, err := checkpoint.NewManagementSmartTask(ctx, "smartTask", &checkpoint.ManagementSmartTaskArgs{
    			Action: &checkpoint.ManagementSmartTaskActionArgs{
    				SendWebRequest: &checkpoint.ManagementSmartTaskActionSendWebRequestArgs{
    					Fingerprint:   pulumi.String("8023a5652ba2c8f5b0902363a5314cd2b4fdbc5c"),
    					OverrideProxy: pulumi.Bool(true),
    					ProxyUrl:      pulumi.String("https://demo.example.com/policy-installation-reports"),
    					SharedSecret:  pulumi.String(" secret"),
    					TimeOut:       pulumi.Float64(200),
    					Url:           pulumi.String("https://demo.example.com/policy-installation-reports"),
    				},
    			},
    			Description: pulumi.String("my smart task"),
    			Enabled:     pulumi.Bool(true),
    			Trigger:     pulumi.String("Before Publish"),
    		})
    		if err != nil {
    			return err
    		}
    		_ = checkpoint.LookupManagementSmartTaskOutput(ctx, checkpoint.GetManagementSmartTaskOutputArgs{
    			Name: smartTask.Name,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Checkpoint = Pulumi.Checkpoint;
    
    return await Deployment.RunAsync(() => 
    {
        var smartTask = new Checkpoint.ManagementSmartTask("smartTask", new()
        {
            Action = new Checkpoint.Inputs.ManagementSmartTaskActionArgs
            {
                SendWebRequest = new Checkpoint.Inputs.ManagementSmartTaskActionSendWebRequestArgs
                {
                    Fingerprint = "8023a5652ba2c8f5b0902363a5314cd2b4fdbc5c",
                    OverrideProxy = true,
                    ProxyUrl = "https://demo.example.com/policy-installation-reports",
                    SharedSecret = " secret",
                    TimeOut = 200,
                    Url = "https://demo.example.com/policy-installation-reports",
                },
            },
            Description = "my smart task",
            Enabled = true,
            Trigger = "Before Publish",
        });
    
        var dataSmartTask = Checkpoint.GetManagementSmartTask.Invoke(new()
        {
            Name = smartTask.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.checkpoint.ManagementSmartTask;
    import com.pulumi.checkpoint.ManagementSmartTaskArgs;
    import com.pulumi.checkpoint.inputs.ManagementSmartTaskActionArgs;
    import com.pulumi.checkpoint.inputs.ManagementSmartTaskActionSendWebRequestArgs;
    import com.pulumi.checkpoint.CheckpointFunctions;
    import com.pulumi.checkpoint.inputs.GetManagementSmartTaskArgs;
    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 smartTask = new ManagementSmartTask("smartTask", ManagementSmartTaskArgs.builder()
                .action(ManagementSmartTaskActionArgs.builder()
                    .sendWebRequest(ManagementSmartTaskActionSendWebRequestArgs.builder()
                        .fingerprint("8023a5652ba2c8f5b0902363a5314cd2b4fdbc5c")
                        .overrideProxy(true)
                        .proxyUrl("https://demo.example.com/policy-installation-reports")
                        .sharedSecret(" secret")
                        .timeOut(200)
                        .url("https://demo.example.com/policy-installation-reports")
                        .build())
                    .build())
                .description("my smart task")
                .enabled(true)
                .trigger("Before Publish")
                .build());
    
            final var dataSmartTask = CheckpointFunctions.getManagementSmartTask(GetManagementSmartTaskArgs.builder()
                .name(smartTask.name())
                .build());
    
        }
    }
    
    resources:
      smartTask:
        type: checkpoint:ManagementSmartTask
        properties:
          action:
            sendWebRequest:
              fingerprint: 8023a5652ba2c8f5b0902363a5314cd2b4fdbc5c
              overrideProxy: true
              proxyUrl: https://demo.example.com/policy-installation-reports
              sharedSecret: ' secret'
              timeOut: 200
              url: https://demo.example.com/policy-installation-reports
          description: my smart task
          enabled: true
          trigger: Before Publish
    variables:
      dataSmartTask:
        fn::invoke:
          function: checkpoint:getManagementSmartTask
          arguments:
            name: ${smartTask.name}
    

    Using getManagementSmartTask

    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 getManagementSmartTask(args: GetManagementSmartTaskArgs, opts?: InvokeOptions): Promise<GetManagementSmartTaskResult>
    function getManagementSmartTaskOutput(args: GetManagementSmartTaskOutputArgs, opts?: InvokeOptions): Output<GetManagementSmartTaskResult>
    def get_management_smart_task(id: Optional[str] = None,
                                  name: Optional[str] = None,
                                  uid: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetManagementSmartTaskResult
    def get_management_smart_task_output(id: Optional[pulumi.Input[str]] = None,
                                  name: Optional[pulumi.Input[str]] = None,
                                  uid: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetManagementSmartTaskResult]
    func LookupManagementSmartTask(ctx *Context, args *LookupManagementSmartTaskArgs, opts ...InvokeOption) (*LookupManagementSmartTaskResult, error)
    func LookupManagementSmartTaskOutput(ctx *Context, args *LookupManagementSmartTaskOutputArgs, opts ...InvokeOption) LookupManagementSmartTaskResultOutput

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

    public static class GetManagementSmartTask 
    {
        public static Task<GetManagementSmartTaskResult> InvokeAsync(GetManagementSmartTaskArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementSmartTaskResult> Invoke(GetManagementSmartTaskInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementSmartTaskResult> getManagementSmartTask(GetManagementSmartTaskArgs args, InvokeOptions options)
    public static Output<GetManagementSmartTaskResult> getManagementSmartTask(GetManagementSmartTaskArgs args, InvokeOptions options)
    
    fn::invoke:
      function: checkpoint:index/getManagementSmartTask:getManagementSmartTask
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getManagementSmartTask Result

    The following output properties are available:

    actions List<GetManagementSmartTaskAction>
    color String
    comments String
    customData String
    description String
    enabled Boolean
    failOpen Boolean
    id String
    ignoreErrors Boolean
    ignoreWarnings Boolean
    tags List<String>
    trigger String
    name String
    uid String
    actions GetManagementSmartTaskAction[]
    color string
    comments string
    customData string
    description string
    enabled boolean
    failOpen boolean
    id string
    ignoreErrors boolean
    ignoreWarnings boolean
    tags string[]
    trigger string
    name string
    uid string
    actions List<Property Map>
    color String
    comments String
    customData String
    description String
    enabled Boolean
    failOpen Boolean
    id String
    ignoreErrors Boolean
    ignoreWarnings Boolean
    tags List<String>
    trigger String
    name String
    uid String

    Supporting Types

    GetManagementSmartTaskAction

    RunScripts List<GetManagementSmartTaskActionRunScript>
    When the trigger is fired, runs the configured Repository Script on the defined targets.The trigger data is then passed to the script as the first parameter. The parameter is JSON encoded in Base64 format.run_script blocks are documented below.
    SendMails List<GetManagementSmartTaskActionSendMail>
    When the trigger is fired, sends the configured email to the defined recipients.send_mail blocks are documented below.
    SendWebRequests List<GetManagementSmartTaskActionSendWebRequest>
    When the trigger is fired, sends an HTTPS POST web request to the configured URL.The trigger data will be passed along with the SmartTask's custom data in the request's payload.send_web_request blocks are documented below.
    RunScripts []GetManagementSmartTaskActionRunScript
    When the trigger is fired, runs the configured Repository Script on the defined targets.The trigger data is then passed to the script as the first parameter. The parameter is JSON encoded in Base64 format.run_script blocks are documented below.
    SendMails []GetManagementSmartTaskActionSendMail
    When the trigger is fired, sends the configured email to the defined recipients.send_mail blocks are documented below.
    SendWebRequests []GetManagementSmartTaskActionSendWebRequest
    When the trigger is fired, sends an HTTPS POST web request to the configured URL.The trigger data will be passed along with the SmartTask's custom data in the request's payload.send_web_request blocks are documented below.
    runScripts List<GetManagementSmartTaskActionRunScript>
    When the trigger is fired, runs the configured Repository Script on the defined targets.The trigger data is then passed to the script as the first parameter. The parameter is JSON encoded in Base64 format.run_script blocks are documented below.
    sendMails List<GetManagementSmartTaskActionSendMail>
    When the trigger is fired, sends the configured email to the defined recipients.send_mail blocks are documented below.
    sendWebRequests List<GetManagementSmartTaskActionSendWebRequest>
    When the trigger is fired, sends an HTTPS POST web request to the configured URL.The trigger data will be passed along with the SmartTask's custom data in the request's payload.send_web_request blocks are documented below.
    runScripts GetManagementSmartTaskActionRunScript[]
    When the trigger is fired, runs the configured Repository Script on the defined targets.The trigger data is then passed to the script as the first parameter. The parameter is JSON encoded in Base64 format.run_script blocks are documented below.
    sendMails GetManagementSmartTaskActionSendMail[]
    When the trigger is fired, sends the configured email to the defined recipients.send_mail blocks are documented below.
    sendWebRequests GetManagementSmartTaskActionSendWebRequest[]
    When the trigger is fired, sends an HTTPS POST web request to the configured URL.The trigger data will be passed along with the SmartTask's custom data in the request's payload.send_web_request blocks are documented below.
    run_scripts Sequence[GetManagementSmartTaskActionRunScript]
    When the trigger is fired, runs the configured Repository Script on the defined targets.The trigger data is then passed to the script as the first parameter. The parameter is JSON encoded in Base64 format.run_script blocks are documented below.
    send_mails Sequence[GetManagementSmartTaskActionSendMail]
    When the trigger is fired, sends the configured email to the defined recipients.send_mail blocks are documented below.
    send_web_requests Sequence[GetManagementSmartTaskActionSendWebRequest]
    When the trigger is fired, sends an HTTPS POST web request to the configured URL.The trigger data will be passed along with the SmartTask's custom data in the request's payload.send_web_request blocks are documented below.
    runScripts List<Property Map>
    When the trigger is fired, runs the configured Repository Script on the defined targets.The trigger data is then passed to the script as the first parameter. The parameter is JSON encoded in Base64 format.run_script blocks are documented below.
    sendMails List<Property Map>
    When the trigger is fired, sends the configured email to the defined recipients.send_mail blocks are documented below.
    sendWebRequests List<Property Map>
    When the trigger is fired, sends an HTTPS POST web request to the configured URL.The trigger data will be passed along with the SmartTask's custom data in the request's payload.send_web_request blocks are documented below.

    GetManagementSmartTaskActionRunScript

    RepositoryScript string
    Repository script that is executed when the trigger is fired., identified by the name or UID.
    Targets List<string>
    Targets to execute the script on.targets blocks are documented below.
    TimeOut double
    Script execution time-out in seconds.
    RepositoryScript string
    Repository script that is executed when the trigger is fired., identified by the name or UID.
    Targets []string
    Targets to execute the script on.targets blocks are documented below.
    TimeOut float64
    Script execution time-out in seconds.
    repositoryScript String
    Repository script that is executed when the trigger is fired., identified by the name or UID.
    targets List<String>
    Targets to execute the script on.targets blocks are documented below.
    timeOut Double
    Script execution time-out in seconds.
    repositoryScript string
    Repository script that is executed when the trigger is fired., identified by the name or UID.
    targets string[]
    Targets to execute the script on.targets blocks are documented below.
    timeOut number
    Script execution time-out in seconds.
    repository_script str
    Repository script that is executed when the trigger is fired., identified by the name or UID.
    targets Sequence[str]
    Targets to execute the script on.targets blocks are documented below.
    time_out float
    Script execution time-out in seconds.
    repositoryScript String
    Repository script that is executed when the trigger is fired., identified by the name or UID.
    targets List<String>
    Targets to execute the script on.targets blocks are documented below.
    timeOut Number
    Script execution time-out in seconds.

    GetManagementSmartTaskActionSendMail

    MailSettings List<GetManagementSmartTaskActionSendMailMailSetting>
    The required settings to send the mail by.mail_settings blocks are documented below.
    SmtpServers List<GetManagementSmartTaskActionSendMailSmtpServer>
    The UID or the name a preconfigured SMTP server object.
    MailSettings []GetManagementSmartTaskActionSendMailMailSetting
    The required settings to send the mail by.mail_settings blocks are documented below.
    SmtpServers []GetManagementSmartTaskActionSendMailSmtpServer
    The UID or the name a preconfigured SMTP server object.
    mailSettings List<GetManagementSmartTaskActionSendMailMailSetting>
    The required settings to send the mail by.mail_settings blocks are documented below.
    smtpServers List<GetManagementSmartTaskActionSendMailSmtpServer>
    The UID or the name a preconfigured SMTP server object.
    mailSettings GetManagementSmartTaskActionSendMailMailSetting[]
    The required settings to send the mail by.mail_settings blocks are documented below.
    smtpServers GetManagementSmartTaskActionSendMailSmtpServer[]
    The UID or the name a preconfigured SMTP server object.
    mail_settings Sequence[GetManagementSmartTaskActionSendMailMailSetting]
    The required settings to send the mail by.mail_settings blocks are documented below.
    smtp_servers Sequence[GetManagementSmartTaskActionSendMailSmtpServer]
    The UID or the name a preconfigured SMTP server object.
    mailSettings List<Property Map>
    The required settings to send the mail by.mail_settings blocks are documented below.
    smtpServers List<Property Map>
    The UID or the name a preconfigured SMTP server object.

    GetManagementSmartTaskActionSendMailMailSetting

    Attachment string
    What file should be attached to the mail.
    BccRecipients string
    A comma separated list of bcc recipient mail addresses.
    Body string
    The email body.
    CcRecipients string
    A comma separated list of cc recipient mail addresses.
    Recipients string
    A comma separated list of recipient mail addresses.
    SenderEmail string
    An email address to send the mail from.
    Subject string
    The email subject.
    Attachment string
    What file should be attached to the mail.
    BccRecipients string
    A comma separated list of bcc recipient mail addresses.
    Body string
    The email body.
    CcRecipients string
    A comma separated list of cc recipient mail addresses.
    Recipients string
    A comma separated list of recipient mail addresses.
    SenderEmail string
    An email address to send the mail from.
    Subject string
    The email subject.
    attachment String
    What file should be attached to the mail.
    bccRecipients String
    A comma separated list of bcc recipient mail addresses.
    body String
    The email body.
    ccRecipients String
    A comma separated list of cc recipient mail addresses.
    recipients String
    A comma separated list of recipient mail addresses.
    senderEmail String
    An email address to send the mail from.
    subject String
    The email subject.
    attachment string
    What file should be attached to the mail.
    bccRecipients string
    A comma separated list of bcc recipient mail addresses.
    body string
    The email body.
    ccRecipients string
    A comma separated list of cc recipient mail addresses.
    recipients string
    A comma separated list of recipient mail addresses.
    senderEmail string
    An email address to send the mail from.
    subject string
    The email subject.
    attachment str
    What file should be attached to the mail.
    bcc_recipients str
    A comma separated list of bcc recipient mail addresses.
    body str
    The email body.
    cc_recipients str
    A comma separated list of cc recipient mail addresses.
    recipients str
    A comma separated list of recipient mail addresses.
    sender_email str
    An email address to send the mail from.
    subject str
    The email subject.
    attachment String
    What file should be attached to the mail.
    bccRecipients String
    A comma separated list of bcc recipient mail addresses.
    body String
    The email body.
    ccRecipients String
    A comma separated list of cc recipient mail addresses.
    recipients String
    A comma separated list of recipient mail addresses.
    senderEmail String
    An email address to send the mail from.
    subject String
    The email subject.

    GetManagementSmartTaskActionSendMailSmtpServer

    Authentication bool
    Does the mail server requires authentication.
    Encryption string
    Encryption type.
    Name string
    the SMTP server name.
    Port double
    The SMTP port to use.
    Server string
    The SMTP server address.
    Username string
    A username for the SMTP server.
    Authentication bool
    Does the mail server requires authentication.
    Encryption string
    Encryption type.
    Name string
    the SMTP server name.
    Port float64
    The SMTP port to use.
    Server string
    The SMTP server address.
    Username string
    A username for the SMTP server.
    authentication Boolean
    Does the mail server requires authentication.
    encryption String
    Encryption type.
    name String
    the SMTP server name.
    port Double
    The SMTP port to use.
    server String
    The SMTP server address.
    username String
    A username for the SMTP server.
    authentication boolean
    Does the mail server requires authentication.
    encryption string
    Encryption type.
    name string
    the SMTP server name.
    port number
    The SMTP port to use.
    server string
    The SMTP server address.
    username string
    A username for the SMTP server.
    authentication bool
    Does the mail server requires authentication.
    encryption str
    Encryption type.
    name str
    the SMTP server name.
    port float
    The SMTP port to use.
    server str
    The SMTP server address.
    username str
    A username for the SMTP server.
    authentication Boolean
    Does the mail server requires authentication.
    encryption String
    Encryption type.
    name String
    the SMTP server name.
    port Number
    The SMTP port to use.
    server String
    The SMTP server address.
    username String
    A username for the SMTP server.

    GetManagementSmartTaskActionSendWebRequest

    Fingerprint string
    The SHA1 fingerprint of the URL's SSL certificate. Used to trust servers with self-signed SSL certificates.
    OverrideProxy bool
    Option to send to the web request via a proxy other than the Management's Server proxy (if defined).
    ProxyUrl string
    URL of the proxy used to send the request.
    SharedSecret string
    Shared secret that can be used by the target server to identify the Management Server.The value will be sent as part of the request in the "X-chkp-shared-secret" header.
    TimeOut double
    Web Request time-out in seconds.
    Url string
    URL used for the web request.
    Fingerprint string
    The SHA1 fingerprint of the URL's SSL certificate. Used to trust servers with self-signed SSL certificates.
    OverrideProxy bool
    Option to send to the web request via a proxy other than the Management's Server proxy (if defined).
    ProxyUrl string
    URL of the proxy used to send the request.
    SharedSecret string
    Shared secret that can be used by the target server to identify the Management Server.The value will be sent as part of the request in the "X-chkp-shared-secret" header.
    TimeOut float64
    Web Request time-out in seconds.
    Url string
    URL used for the web request.
    fingerprint String
    The SHA1 fingerprint of the URL's SSL certificate. Used to trust servers with self-signed SSL certificates.
    overrideProxy Boolean
    Option to send to the web request via a proxy other than the Management's Server proxy (if defined).
    proxyUrl String
    URL of the proxy used to send the request.
    sharedSecret String
    Shared secret that can be used by the target server to identify the Management Server.The value will be sent as part of the request in the "X-chkp-shared-secret" header.
    timeOut Double
    Web Request time-out in seconds.
    url String
    URL used for the web request.
    fingerprint string
    The SHA1 fingerprint of the URL's SSL certificate. Used to trust servers with self-signed SSL certificates.
    overrideProxy boolean
    Option to send to the web request via a proxy other than the Management's Server proxy (if defined).
    proxyUrl string
    URL of the proxy used to send the request.
    sharedSecret string
    Shared secret that can be used by the target server to identify the Management Server.The value will be sent as part of the request in the "X-chkp-shared-secret" header.
    timeOut number
    Web Request time-out in seconds.
    url string
    URL used for the web request.
    fingerprint str
    The SHA1 fingerprint of the URL's SSL certificate. Used to trust servers with self-signed SSL certificates.
    override_proxy bool
    Option to send to the web request via a proxy other than the Management's Server proxy (if defined).
    proxy_url str
    URL of the proxy used to send the request.
    shared_secret str
    Shared secret that can be used by the target server to identify the Management Server.The value will be sent as part of the request in the "X-chkp-shared-secret" header.
    time_out float
    Web Request time-out in seconds.
    url str
    URL used for the web request.
    fingerprint String
    The SHA1 fingerprint of the URL's SSL certificate. Used to trust servers with self-signed SSL certificates.
    overrideProxy Boolean
    Option to send to the web request via a proxy other than the Management's Server proxy (if defined).
    proxyUrl String
    URL of the proxy used to send the request.
    sharedSecret String
    Shared secret that can be used by the target server to identify the Management Server.The value will be sent as part of the request in the "X-chkp-shared-secret" header.
    timeOut Number
    Web Request time-out in seconds.
    url String
    URL used for the web request.

    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