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

checkpoint.getManagementDataThreatIndicator

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 Threat Indicator.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as checkpoint from "@pulumi/checkpoint";
    
    const threatIndicator = new checkpoint.ManagementThreatIndicator("threatIndicator", {
        ignoreWarnings: true,
        observables: [{
            ipAddress: "5.4.7.1",
            name: "obs1",
        }],
    });
    const dataThreatIndicator = checkpoint.getManagementDataThreatIndicatorOutput({
        name: threatIndicator.name,
    });
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    threat_indicator = checkpoint.ManagementThreatIndicator("threatIndicator",
        ignore_warnings=True,
        observables=[{
            "ip_address": "5.4.7.1",
            "name": "obs1",
        }])
    data_threat_indicator = checkpoint.get_management_data_threat_indicator_output(name=threat_indicator.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 {
    		threatIndicator, err := checkpoint.NewManagementThreatIndicator(ctx, "threatIndicator", &checkpoint.ManagementThreatIndicatorArgs{
    			IgnoreWarnings: pulumi.Bool(true),
    			Observables: checkpoint.ManagementThreatIndicatorObservableArray{
    				&checkpoint.ManagementThreatIndicatorObservableArgs{
    					IpAddress: pulumi.String("5.4.7.1"),
    					Name:      pulumi.String("obs1"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_ = checkpoint.GetManagementDataThreatIndicatorOutput(ctx, checkpoint.GetManagementDataThreatIndicatorOutputArgs{
    			Name: threatIndicator.Name,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Checkpoint = Pulumi.Checkpoint;
    
    return await Deployment.RunAsync(() => 
    {
        var threatIndicator = new Checkpoint.ManagementThreatIndicator("threatIndicator", new()
        {
            IgnoreWarnings = true,
            Observables = new[]
            {
                new Checkpoint.Inputs.ManagementThreatIndicatorObservableArgs
                {
                    IpAddress = "5.4.7.1",
                    Name = "obs1",
                },
            },
        });
    
        var dataThreatIndicator = Checkpoint.GetManagementDataThreatIndicator.Invoke(new()
        {
            Name = threatIndicator.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.checkpoint.ManagementThreatIndicator;
    import com.pulumi.checkpoint.ManagementThreatIndicatorArgs;
    import com.pulumi.checkpoint.inputs.ManagementThreatIndicatorObservableArgs;
    import com.pulumi.checkpoint.CheckpointFunctions;
    import com.pulumi.checkpoint.inputs.GetManagementDataThreatIndicatorArgs;
    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 threatIndicator = new ManagementThreatIndicator("threatIndicator", ManagementThreatIndicatorArgs.builder()
                .ignoreWarnings(true)
                .observables(ManagementThreatIndicatorObservableArgs.builder()
                    .ipAddress("5.4.7.1")
                    .name("obs1")
                    .build())
                .build());
    
            final var dataThreatIndicator = CheckpointFunctions.getManagementDataThreatIndicator(GetManagementDataThreatIndicatorArgs.builder()
                .name(threatIndicator.name())
                .build());
    
        }
    }
    
    resources:
      threatIndicator:
        type: checkpoint:ManagementThreatIndicator
        properties:
          ignoreWarnings: true
          observables:
            - ipAddress: 5.4.7.1
              name: obs1
    variables:
      dataThreatIndicator:
        fn::invoke:
          function: checkpoint:getManagementDataThreatIndicator
          arguments:
            name: ${threatIndicator.name}
    

    Using getManagementDataThreatIndicator

    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 getManagementDataThreatIndicator(args: GetManagementDataThreatIndicatorArgs, opts?: InvokeOptions): Promise<GetManagementDataThreatIndicatorResult>
    function getManagementDataThreatIndicatorOutput(args: GetManagementDataThreatIndicatorOutputArgs, opts?: InvokeOptions): Output<GetManagementDataThreatIndicatorResult>
    def get_management_data_threat_indicator(id: Optional[str] = None,
                                             name: Optional[str] = None,
                                             uid: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetManagementDataThreatIndicatorResult
    def get_management_data_threat_indicator_output(id: Optional[pulumi.Input[str]] = None,
                                             name: Optional[pulumi.Input[str]] = None,
                                             uid: Optional[pulumi.Input[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetManagementDataThreatIndicatorResult]
    func GetManagementDataThreatIndicator(ctx *Context, args *GetManagementDataThreatIndicatorArgs, opts ...InvokeOption) (*GetManagementDataThreatIndicatorResult, error)
    func GetManagementDataThreatIndicatorOutput(ctx *Context, args *GetManagementDataThreatIndicatorOutputArgs, opts ...InvokeOption) GetManagementDataThreatIndicatorResultOutput

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

    public static class GetManagementDataThreatIndicator 
    {
        public static Task<GetManagementDataThreatIndicatorResult> InvokeAsync(GetManagementDataThreatIndicatorArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementDataThreatIndicatorResult> Invoke(GetManagementDataThreatIndicatorInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementDataThreatIndicatorResult> getManagementDataThreatIndicator(GetManagementDataThreatIndicatorArgs args, InvokeOptions options)
    public static Output<GetManagementDataThreatIndicatorResult> getManagementDataThreatIndicator(GetManagementDataThreatIndicatorArgs args, InvokeOptions options)
    
    fn::invoke:
      function: checkpoint:index/getManagementDataThreatIndicator:getManagementDataThreatIndicator
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Name string
    Object name. Should be unique in the domain.
    Uid string
    Object unique identifier.
    Id string
    Name string
    Object name. Should be unique in the domain.
    Uid string
    Object unique identifier.
    id String
    name String
    Object name. Should be unique in the domain.
    uid String
    Object unique identifier.
    id string
    name string
    Object name. Should be unique in the domain.
    uid string
    Object unique identifier.
    id str
    name str
    Object name. Should be unique in the domain.
    uid str
    Object unique identifier.
    id String
    name String
    Object name. Should be unique in the domain.
    uid String
    Object unique identifier.

    getManagementDataThreatIndicator Result

    The following output properties are available:

    action String
    color String
    comments String
    id String
    profileOverrides List<Property Map>
    tags List<String>
    name String
    uid String

    Supporting Types

    GetManagementDataThreatIndicatorProfileOverride

    Action string
    The indicator's action in this profile.
    Profile string
    The profile in which to override the indicator's action.
    Action string
    The indicator's action in this profile.
    Profile string
    The profile in which to override the indicator's action.
    action String
    The indicator's action in this profile.
    profile String
    The profile in which to override the indicator's action.
    action string
    The indicator's action in this profile.
    profile string
    The profile in which to override the indicator's action.
    action str
    The indicator's action in this profile.
    profile str
    The profile in which to override the indicator's action.
    action String
    The indicator's action in this profile.
    profile String
    The profile in which to override the indicator's action.

    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