checkpoint.ManagementCommandAbortGetInterfaces
Explore with Pulumi AI
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:
- Task
Id string - get-interfaces task UID.
- Force
Cleanup bool - Forcefully abort the "get-interfaces" task.
- Management
Command stringAbort Get Interfaces Id
- Task
Id string - get-interfaces task UID.
- Force
Cleanup bool - Forcefully abort the "get-interfaces" task.
- Management
Command stringAbort Get Interfaces Id
- task
Id String - get-interfaces task UID.
- force
Cleanup Boolean - Forcefully abort the "get-interfaces" task.
- management
Command StringAbort Get Interfaces Id
- task
Id string - get-interfaces task UID.
- force
Cleanup boolean - Forcefully abort the "get-interfaces" task.
- management
Command stringAbort Get Interfaces Id
- task_
id str - get-interfaces task UID.
- force_
cleanup bool - Forcefully abort the "get-interfaces" task.
- management_
command_ strabort_ get_ interfaces_ id
- task
Id String - get-interfaces task UID.
- force
Cleanup Boolean - Forcefully abort the "get-interfaces" task.
- management
Command StringAbort Get Interfaces Id
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagementCommandAbortGetInterfaces resource produces the following output properties:
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.
- Force
Cleanup bool - Forcefully abort the "get-interfaces" task.
- Management
Command stringAbort Get Interfaces Id - Message string
- Operation status.
- Task
Id string - get-interfaces task UID.
- Force
Cleanup bool - Forcefully abort the "get-interfaces" task.
- Management
Command stringAbort Get Interfaces Id - Message string
- Operation status.
- Task
Id string - get-interfaces task UID.
- force
Cleanup Boolean - Forcefully abort the "get-interfaces" task.
- management
Command StringAbort Get Interfaces Id - message String
- Operation status.
- task
Id String - get-interfaces task UID.
- force
Cleanup boolean - Forcefully abort the "get-interfaces" task.
- management
Command stringAbort Get Interfaces Id - message string
- Operation status.
- task
Id string - get-interfaces task UID.
- force_
cleanup bool - Forcefully abort the "get-interfaces" task.
- management_
command_ strabort_ get_ interfaces_ id - message str
- Operation status.
- task_
id str - get-interfaces task UID.
- force
Cleanup Boolean - Forcefully abort the "get-interfaces" task.
- management
Command StringAbort Get Interfaces Id - message String
- Operation status.
- task
Id 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.