checkpoint 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw
checkpoint.getManagementSmartTask
Explore with Pulumi AI
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:
getManagementSmartTask Result
The following output properties are available:
- Actions
List<Get
Management Smart Task Action> - Color string
- Comments string
- Custom
Data string - Description string
- Enabled bool
- Fail
Open bool - Id string
- Ignore
Errors bool - Ignore
Warnings bool - List<string>
- Trigger string
- Name string
- Uid string
- Actions
[]Get
Management Smart Task Action - Color string
- Comments string
- Custom
Data string - Description string
- Enabled bool
- Fail
Open bool - Id string
- Ignore
Errors bool - Ignore
Warnings bool - []string
- Trigger string
- Name string
- Uid string
- actions
List<Get
Management Smart Task Action> - color String
- comments String
- custom
Data String - description String
- enabled Boolean
- fail
Open Boolean - id String
- ignore
Errors Boolean - ignore
Warnings Boolean - List<String>
- trigger String
- name String
- uid String
- actions
Get
Management Smart Task Action[] - color string
- comments string
- custom
Data string - description string
- enabled boolean
- fail
Open boolean - id string
- ignore
Errors boolean - ignore
Warnings boolean - string[]
- trigger string
- name string
- uid string
- actions
Sequence[Get
Management Smart Task Action] - color str
- comments str
- custom_
data str - description str
- enabled bool
- fail_
open bool - id str
- ignore_
errors bool - ignore_
warnings bool - Sequence[str]
- trigger str
- name str
- uid str
- actions List<Property Map>
- color String
- comments String
- custom
Data String - description String
- enabled Boolean
- fail
Open Boolean - id String
- ignore
Errors Boolean - ignore
Warnings Boolean - List<String>
- trigger String
- name String
- uid String
Supporting Types
GetManagementSmartTaskAction
- Run
Scripts List<GetManagement Smart Task Action Run Script> - 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 List<GetManagement Smart Task Action Send Mail> - When the trigger is fired, sends the configured email to the defined recipients.send_mail blocks are documented below.
- Send
Web List<GetRequests Management Smart Task Action Send Web Request> - 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 []GetManagement Smart Task Action Run Script - 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 []GetManagement Smart Task Action Send Mail - When the trigger is fired, sends the configured email to the defined recipients.send_mail blocks are documented below.
- Send
Web []GetRequests Management Smart Task Action Send Web Request - 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 List<GetManagement Smart Task Action Run Script> - 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 List<GetManagement Smart Task Action Send Mail> - When the trigger is fired, sends the configured email to the defined recipients.send_mail blocks are documented below.
- send
Web List<GetRequests Management Smart Task Action Send Web Request> - 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 GetManagement Smart Task Action Run Script[] - 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 GetManagement Smart Task Action Send Mail[] - When the trigger is fired, sends the configured email to the defined recipients.send_mail blocks are documented below.
- send
Web GetRequests Management Smart Task Action Send Web Request[] - 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[GetManagement Smart Task Action Run Script] - 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[GetManagement Smart Task Action Send Mail] - When the trigger is fired, sends the configured email to the defined recipients.send_mail blocks are documented below.
- send_
web_ Sequence[Getrequests Management Smart Task Action Send Web Request] - 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 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.
- send
Mails List<Property Map> - When the trigger is fired, sends the configured email to the defined recipients.send_mail blocks are documented below.
- send
Web List<Property Map>Requests - 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
- Repository
Script 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.
- Time
Out double - Script execution time-out in seconds.
- Repository
Script 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.
- Time
Out float64 - Script execution time-out in seconds.
- repository
Script 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.
- time
Out Double - Script execution time-out in seconds.
- repository
Script 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.
- time
Out 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.
- repository
Script 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.
- time
Out Number - Script execution time-out in seconds.
GetManagementSmartTaskActionSendMail
- Mail
Settings List<GetManagement Smart Task Action Send Mail Mail Setting> - The required settings to send the mail by.mail_settings blocks are documented below.
- Smtp
Servers List<GetManagement Smart Task Action Send Mail Smtp Server> - The UID or the name a preconfigured SMTP server object.
- Mail
Settings []GetManagement Smart Task Action Send Mail Mail Setting - The required settings to send the mail by.mail_settings blocks are documented below.
- Smtp
Servers []GetManagement Smart Task Action Send Mail Smtp Server - The UID or the name a preconfigured SMTP server object.
- mail
Settings List<GetManagement Smart Task Action Send Mail Mail Setting> - The required settings to send the mail by.mail_settings blocks are documented below.
- smtp
Servers List<GetManagement Smart Task Action Send Mail Smtp Server> - The UID or the name a preconfigured SMTP server object.
- mail
Settings GetManagement Smart Task Action Send Mail Mail Setting[] - The required settings to send the mail by.mail_settings blocks are documented below.
- smtp
Servers GetManagement Smart Task Action Send Mail Smtp Server[] - The UID or the name a preconfigured SMTP server object.
- mail_
settings Sequence[GetManagement Smart Task Action Send Mail Mail Setting] - The required settings to send the mail by.mail_settings blocks are documented below.
- smtp_
servers Sequence[GetManagement Smart Task Action Send Mail Smtp Server] - The UID or the name a preconfigured SMTP server object.
- mail
Settings List<Property Map> - The required settings to send the mail by.mail_settings blocks are documented below.
- smtp
Servers List<Property Map> - The UID or the name a preconfigured SMTP server object.
GetManagementSmartTaskActionSendMailMailSetting
- Attachment string
- What file should be attached to the mail.
- Bcc
Recipients string - A comma separated list of bcc recipient mail addresses.
- Body string
- The email body.
- Cc
Recipients string - A comma separated list of cc recipient mail addresses.
- Recipients string
- A comma separated list of recipient mail addresses.
- Sender
Email string - An email address to send the mail from.
- Subject string
- The email subject.
- Attachment string
- What file should be attached to the mail.
- Bcc
Recipients string - A comma separated list of bcc recipient mail addresses.
- Body string
- The email body.
- Cc
Recipients string - A comma separated list of cc recipient mail addresses.
- Recipients string
- A comma separated list of recipient mail addresses.
- Sender
Email string - An email address to send the mail from.
- Subject string
- The email subject.
- attachment String
- What file should be attached to the mail.
- bcc
Recipients String - A comma separated list of bcc recipient mail addresses.
- body String
- The email body.
- cc
Recipients String - A comma separated list of cc recipient mail addresses.
- recipients String
- A comma separated list of recipient mail addresses.
- sender
Email String - An email address to send the mail from.
- subject String
- The email subject.
- attachment string
- What file should be attached to the mail.
- bcc
Recipients string - A comma separated list of bcc recipient mail addresses.
- body string
- The email body.
- cc
Recipients string - A comma separated list of cc recipient mail addresses.
- recipients string
- A comma separated list of recipient mail addresses.
- sender
Email 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.
- bcc
Recipients String - A comma separated list of bcc recipient mail addresses.
- body String
- The email body.
- cc
Recipients String - A comma separated list of cc recipient mail addresses.
- recipients String
- A comma separated list of recipient mail addresses.
- sender
Email 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.
- Override
Proxy bool - Option to send to the web request via a proxy other than the Management's Server proxy (if defined).
- Proxy
Url string - URL of the proxy used to send the request.
- 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.
- Time
Out 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.
- Override
Proxy bool - Option to send to the web request via a proxy other than the Management's Server proxy (if defined).
- Proxy
Url string - URL of the proxy used to send the request.
- 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.
- Time
Out 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.
- override
Proxy Boolean - Option to send to the web request via a proxy other than the Management's Server proxy (if defined).
- proxy
Url String - URL of the proxy used to send the request.
- 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.
- time
Out 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.
- override
Proxy boolean - Option to send to the web request via a proxy other than the Management's Server proxy (if defined).
- proxy
Url string - URL of the proxy used to send the request.
- 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.
- time
Out 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.
- 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.
- override
Proxy Boolean - Option to send to the web request via a proxy other than the Management's Server proxy (if defined).
- proxy
Url String - URL of the proxy used to send the request.
- 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.
- time
Out 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 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw