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

checkpoint.ManagementCommandAbortGetInterfaces

Explore with Pulumi AI

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

    This resource allows you to execute Check Point Abort Get Interfaces.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as checkpoint from "@pulumi/checkpoint";
    
    const getInterfaces = new checkpoint.ManagementCommandGetInterfaces("getInterfaces", {targetUid: "2220d9ad-a251-5555-9a0a-4772a6511111"});
    const abortGetInterfaces = new checkpoint.ManagementCommandAbortGetInterfaces("abortGetInterfaces", {taskId: getInterfaces.taskId});
    
    import pulumi
    import pulumi_checkpoint as checkpoint
    
    get_interfaces = checkpoint.ManagementCommandGetInterfaces("getInterfaces", target_uid="2220d9ad-a251-5555-9a0a-4772a6511111")
    abort_get_interfaces = checkpoint.ManagementCommandAbortGetInterfaces("abortGetInterfaces", task_id=get_interfaces.task_id)
    
    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 {
    		getInterfaces, err := checkpoint.NewManagementCommandGetInterfaces(ctx, "getInterfaces", &checkpoint.ManagementCommandGetInterfacesArgs{
    			TargetUid: pulumi.String("2220d9ad-a251-5555-9a0a-4772a6511111"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = checkpoint.NewManagementCommandAbortGetInterfaces(ctx, "abortGetInterfaces", &checkpoint.ManagementCommandAbortGetInterfacesArgs{
    			TaskId: getInterfaces.TaskId,
    		})
    		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 getInterfaces = new Checkpoint.ManagementCommandGetInterfaces("getInterfaces", new()
        {
            TargetUid = "2220d9ad-a251-5555-9a0a-4772a6511111",
        });
    
        var abortGetInterfaces = new Checkpoint.ManagementCommandAbortGetInterfaces("abortGetInterfaces", new()
        {
            TaskId = getInterfaces.TaskId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.checkpoint.ManagementCommandGetInterfaces;
    import com.pulumi.checkpoint.ManagementCommandGetInterfacesArgs;
    import com.pulumi.checkpoint.ManagementCommandAbortGetInterfaces;
    import com.pulumi.checkpoint.ManagementCommandAbortGetInterfacesArgs;
    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 getInterfaces = new ManagementCommandGetInterfaces("getInterfaces", ManagementCommandGetInterfacesArgs.builder()
                .targetUid("2220d9ad-a251-5555-9a0a-4772a6511111")
                .build());
    
            var abortGetInterfaces = new ManagementCommandAbortGetInterfaces("abortGetInterfaces", ManagementCommandAbortGetInterfacesArgs.builder()
                .taskId(getInterfaces.taskId())
                .build());
    
        }
    }
    
    resources:
      getInterfaces:
        type: checkpoint:ManagementCommandGetInterfaces
        properties:
          targetUid: 2220d9ad-a251-5555-9a0a-4772a6511111
      abortGetInterfaces:
        type: checkpoint:ManagementCommandAbortGetInterfaces
        properties:
          taskId: ${getInterfaces.taskId}
    

    Create ManagementCommandAbortGetInterfaces Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ManagementCommandAbortGetInterfaces(name: string, args: ManagementCommandAbortGetInterfacesArgs, opts?: CustomResourceOptions);
    @overload
    def ManagementCommandAbortGetInterfaces(resource_name: str,
                                            args: ManagementCommandAbortGetInterfacesArgs,
                                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def ManagementCommandAbortGetInterfaces(resource_name: str,
                                            opts: Optional[ResourceOptions] = None,
                                            task_id: Optional[str] = None,
                                            force_cleanup: Optional[bool] = None,
                                            management_command_abort_get_interfaces_id: Optional[str] = None)
    func NewManagementCommandAbortGetInterfaces(ctx *Context, name string, args ManagementCommandAbortGetInterfacesArgs, opts ...ResourceOption) (*ManagementCommandAbortGetInterfaces, error)
    public ManagementCommandAbortGetInterfaces(string name, ManagementCommandAbortGetInterfacesArgs args, CustomResourceOptions? opts = null)
    public ManagementCommandAbortGetInterfaces(String name, ManagementCommandAbortGetInterfacesArgs args)
    public ManagementCommandAbortGetInterfaces(String name, ManagementCommandAbortGetInterfacesArgs args, CustomResourceOptions options)
    
    type: checkpoint:ManagementCommandAbortGetInterfaces
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ManagementCommandAbortGetInterfacesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ManagementCommandAbortGetInterfacesArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ManagementCommandAbortGetInterfacesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ManagementCommandAbortGetInterfacesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ManagementCommandAbortGetInterfacesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var managementCommandAbortGetInterfacesResource = new Checkpoint.ManagementCommandAbortGetInterfaces("managementCommandAbortGetInterfacesResource", new()
    {
        TaskId = "string",
        ForceCleanup = false,
        ManagementCommandAbortGetInterfacesId = "string",
    });
    
    example, err := checkpoint.NewManagementCommandAbortGetInterfaces(ctx, "managementCommandAbortGetInterfacesResource", &checkpoint.ManagementCommandAbortGetInterfacesArgs{
    	TaskId:                                pulumi.String("string"),
    	ForceCleanup:                          pulumi.Bool(false),
    	ManagementCommandAbortGetInterfacesId: pulumi.String("string"),
    })
    
    var managementCommandAbortGetInterfacesResource = new ManagementCommandAbortGetInterfaces("managementCommandAbortGetInterfacesResource", ManagementCommandAbortGetInterfacesArgs.builder()
        .taskId("string")
        .forceCleanup(false)
        .managementCommandAbortGetInterfacesId("string")
        .build());
    
    management_command_abort_get_interfaces_resource = checkpoint.ManagementCommandAbortGetInterfaces("managementCommandAbortGetInterfacesResource",
        task_id="string",
        force_cleanup=False,
        management_command_abort_get_interfaces_id="string")
    
    const managementCommandAbortGetInterfacesResource = new checkpoint.ManagementCommandAbortGetInterfaces("managementCommandAbortGetInterfacesResource", {
        taskId: "string",
        forceCleanup: false,
        managementCommandAbortGetInterfacesId: "string",
    });
    
    type: checkpoint:ManagementCommandAbortGetInterfaces
    properties:
        forceCleanup: false
        managementCommandAbortGetInterfacesId: string
        taskId: string
    

    ManagementCommandAbortGetInterfaces Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ManagementCommandAbortGetInterfaces resource accepts the following input properties:

    TaskId string
    get-interfaces task UID.
    ForceCleanup bool
    Forcefully abort the "get-interfaces" task.
    ManagementCommandAbortGetInterfacesId string
    TaskId string
    get-interfaces task UID.
    ForceCleanup bool
    Forcefully abort the "get-interfaces" task.
    ManagementCommandAbortGetInterfacesId string
    taskId String
    get-interfaces task UID.
    forceCleanup Boolean
    Forcefully abort the "get-interfaces" task.
    managementCommandAbortGetInterfacesId String
    taskId string
    get-interfaces task UID.
    forceCleanup boolean
    Forcefully abort the "get-interfaces" task.
    managementCommandAbortGetInterfacesId string
    task_id str
    get-interfaces task UID.
    force_cleanup bool
    Forcefully abort the "get-interfaces" task.
    management_command_abort_get_interfaces_id str
    taskId String
    get-interfaces task UID.
    forceCleanup Boolean
    Forcefully abort the "get-interfaces" task.
    managementCommandAbortGetInterfacesId String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ManagementCommandAbortGetInterfaces resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Message string
    Operation status.
    Id string
    The provider-assigned unique ID for this managed resource.
    Message string
    Operation status.
    id String
    The provider-assigned unique ID for this managed resource.
    message String
    Operation status.
    id string
    The provider-assigned unique ID for this managed resource.
    message string
    Operation status.
    id str
    The provider-assigned unique ID for this managed resource.
    message str
    Operation status.
    id String
    The provider-assigned unique ID for this managed resource.
    message String
    Operation status.

    Look up Existing ManagementCommandAbortGetInterfaces Resource

    Get an existing ManagementCommandAbortGetInterfaces resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ManagementCommandAbortGetInterfacesState, opts?: CustomResourceOptions): ManagementCommandAbortGetInterfaces
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            force_cleanup: Optional[bool] = None,
            management_command_abort_get_interfaces_id: Optional[str] = None,
            message: Optional[str] = None,
            task_id: Optional[str] = None) -> ManagementCommandAbortGetInterfaces
    func GetManagementCommandAbortGetInterfaces(ctx *Context, name string, id IDInput, state *ManagementCommandAbortGetInterfacesState, opts ...ResourceOption) (*ManagementCommandAbortGetInterfaces, error)
    public static ManagementCommandAbortGetInterfaces Get(string name, Input<string> id, ManagementCommandAbortGetInterfacesState? state, CustomResourceOptions? opts = null)
    public static ManagementCommandAbortGetInterfaces get(String name, Output<String> id, ManagementCommandAbortGetInterfacesState state, CustomResourceOptions options)
    resources:  _:    type: checkpoint:ManagementCommandAbortGetInterfaces    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ForceCleanup bool
    Forcefully abort the "get-interfaces" task.
    ManagementCommandAbortGetInterfacesId string
    Message string
    Operation status.
    TaskId string
    get-interfaces task UID.
    ForceCleanup bool
    Forcefully abort the "get-interfaces" task.
    ManagementCommandAbortGetInterfacesId string
    Message string
    Operation status.
    TaskId string
    get-interfaces task UID.
    forceCleanup Boolean
    Forcefully abort the "get-interfaces" task.
    managementCommandAbortGetInterfacesId String
    message String
    Operation status.
    taskId String
    get-interfaces task UID.
    forceCleanup boolean
    Forcefully abort the "get-interfaces" task.
    managementCommandAbortGetInterfacesId string
    message string
    Operation status.
    taskId string
    get-interfaces task UID.
    force_cleanup bool
    Forcefully abort the "get-interfaces" task.
    management_command_abort_get_interfaces_id str
    message str
    Operation status.
    task_id str
    get-interfaces task UID.
    forceCleanup Boolean
    Forcefully abort the "get-interfaces" task.
    managementCommandAbortGetInterfacesId String
    message String
    Operation status.
    taskId String
    get-interfaces task UID.

    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