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

checkpoint.getManagementTask

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 Task.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as checkpoint from "@pulumi/checkpoint";
    
    const example = checkpoint.getManagementTask({
        taskIds: ["6682b963-fe1a-4a75-a86c-91cb13e91d83"],
    });
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    example = checkpoint.get_management_task(task_ids=["6682b963-fe1a-4a75-a86c-91cb13e91d83"])
    
    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.GetManagementTask(ctx, &checkpoint.GetManagementTaskArgs{
    			TaskIds: []string{
    				"6682b963-fe1a-4a75-a86c-91cb13e91d83",
    			},
    		}, nil)
    		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 example = Checkpoint.GetManagementTask.Invoke(new()
        {
            TaskIds = new[]
            {
                "6682b963-fe1a-4a75-a86c-91cb13e91d83",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.checkpoint.CheckpointFunctions;
    import com.pulumi.checkpoint.inputs.GetManagementTaskArgs;
    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) {
            final var example = CheckpointFunctions.getManagementTask(GetManagementTaskArgs.builder()
                .taskIds("6682b963-fe1a-4a75-a86c-91cb13e91d83")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: checkpoint:getManagementTask
          arguments:
            taskIds:
              - 6682b963-fe1a-4a75-a86c-91cb13e91d83
    

    Using getManagementTask

    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 getManagementTask(args: GetManagementTaskArgs, opts?: InvokeOptions): Promise<GetManagementTaskResult>
    function getManagementTaskOutput(args: GetManagementTaskOutputArgs, opts?: InvokeOptions): Output<GetManagementTaskResult>
    def get_management_task(id: Optional[str] = None,
                            task_ids: Optional[Sequence[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> GetManagementTaskResult
    def get_management_task_output(id: Optional[pulumi.Input[str]] = None,
                            task_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetManagementTaskResult]
    func GetManagementTask(ctx *Context, args *GetManagementTaskArgs, opts ...InvokeOption) (*GetManagementTaskResult, error)
    func GetManagementTaskOutput(ctx *Context, args *GetManagementTaskOutputArgs, opts ...InvokeOption) GetManagementTaskResultOutput

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

    public static class GetManagementTask 
    {
        public static Task<GetManagementTaskResult> InvokeAsync(GetManagementTaskArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementTaskResult> Invoke(GetManagementTaskInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementTaskResult> getManagementTask(GetManagementTaskArgs args, InvokeOptions options)
    public static Output<GetManagementTaskResult> getManagementTask(GetManagementTaskArgs args, InvokeOptions options)
    
    fn::invoke:
      function: checkpoint:index/getManagementTask:getManagementTask
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TaskIds List<string>
    Unique identifier of one or more tasks.
    Id string
    TaskIds []string
    Unique identifier of one or more tasks.
    Id string
    taskIds List<String>
    Unique identifier of one or more tasks.
    id String
    taskIds string[]
    Unique identifier of one or more tasks.
    id string
    task_ids Sequence[str]
    Unique identifier of one or more tasks.
    id str
    taskIds List<String>
    Unique identifier of one or more tasks.
    id String

    getManagementTask Result

    The following output properties are available:

    Supporting Types

    GetManagementTaskTask

    Comments string
    Comments string.
    ProgressPercentage double
    The progress percentage of the task.
    Status string
    Task status.
    Suppressed bool
    Is the task suppressed.
    TaskId string
    Asynchronous task unique identifier. Use show-task command to check the progress of the task.
    TaskName string
    The task name.
    Comments string
    Comments string.
    ProgressPercentage float64
    The progress percentage of the task.
    Status string
    Task status.
    Suppressed bool
    Is the task suppressed.
    TaskId string
    Asynchronous task unique identifier. Use show-task command to check the progress of the task.
    TaskName string
    The task name.
    comments String
    Comments string.
    progressPercentage Double
    The progress percentage of the task.
    status String
    Task status.
    suppressed Boolean
    Is the task suppressed.
    taskId String
    Asynchronous task unique identifier. Use show-task command to check the progress of the task.
    taskName String
    The task name.
    comments string
    Comments string.
    progressPercentage number
    The progress percentage of the task.
    status string
    Task status.
    suppressed boolean
    Is the task suppressed.
    taskId string
    Asynchronous task unique identifier. Use show-task command to check the progress of the task.
    taskName string
    The task name.
    comments str
    Comments string.
    progress_percentage float
    The progress percentage of the task.
    status str
    Task status.
    suppressed bool
    Is the task suppressed.
    task_id str
    Asynchronous task unique identifier. Use show-task command to check the progress of the task.
    task_name str
    The task name.
    comments String
    Comments string.
    progressPercentage Number
    The progress percentage of the task.
    status String
    Task status.
    suppressed Boolean
    Is the task suppressed.
    taskId String
    Asynchronous task unique identifier. Use show-task command to check the progress of the task.
    taskName String
    The task name.

    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