checkpoint.ManagementCommandGetInterfaces
Explore with Pulumi AI
This resource allows you to execute Check Point Get Interfaces.
import * as pulumi from "@pulumi/pulumi";
import * as checkpoint from "@pulumi/checkpoint";
const getInterfaces = new checkpoint.ManagementCommandGetInterfaces("getInterfaces", {targetUid: "2220d9ad-a251-5555-9a0a-4772a6511111"});
import pulumi
import pulumi_checkpoint as checkpoint
get_interfaces = checkpoint.ManagementCommandGetInterfaces("getInterfaces", target_uid="2220d9ad-a251-5555-9a0a-4772a6511111")
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.NewManagementCommandGetInterfaces(ctx, "getInterfaces", &checkpoint.ManagementCommandGetInterfacesArgs{
TargetUid: pulumi.String("2220d9ad-a251-5555-9a0a-4772a6511111"),
})
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",
});
});
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 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());
}
}
resources:
getInterfaces:
type: checkpoint:ManagementCommandGetInterfaces
properties:
targetUid: 2220d9ad-a251-5555-9a0a-4772a6511111
Create ManagementCommandGetInterfaces Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagementCommandGetInterfaces(name: string, args?: ManagementCommandGetInterfacesArgs, opts?: CustomResourceOptions);
@overload
def ManagementCommandGetInterfaces(resource_name: str,
args: Optional[ManagementCommandGetInterfacesArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ManagementCommandGetInterfaces(resource_name: str,
opts: Optional[ResourceOptions] = None,
group_interfaces_by_subnet: Optional[bool] = None,
management_command_get_interfaces_id: Optional[str] = None,
target_name: Optional[str] = None,
target_uid: Optional[str] = None,
use_defined_by_routes: Optional[bool] = None,
with_topology: Optional[bool] = None)
func NewManagementCommandGetInterfaces(ctx *Context, name string, args *ManagementCommandGetInterfacesArgs, opts ...ResourceOption) (*ManagementCommandGetInterfaces, error)
public ManagementCommandGetInterfaces(string name, ManagementCommandGetInterfacesArgs? args = null, CustomResourceOptions? opts = null)
public ManagementCommandGetInterfaces(String name, ManagementCommandGetInterfacesArgs args)
public ManagementCommandGetInterfaces(String name, ManagementCommandGetInterfacesArgs args, CustomResourceOptions options)
type: checkpoint:ManagementCommandGetInterfaces
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 ManagementCommandGetInterfacesArgs
- 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 ManagementCommandGetInterfacesArgs
- 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 ManagementCommandGetInterfacesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagementCommandGetInterfacesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagementCommandGetInterfacesArgs
- 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 managementCommandGetInterfacesResource = new Checkpoint.ManagementCommandGetInterfaces("managementCommandGetInterfacesResource", new()
{
GroupInterfacesBySubnet = false,
ManagementCommandGetInterfacesId = "string",
TargetName = "string",
TargetUid = "string",
UseDefinedByRoutes = false,
WithTopology = false,
});
example, err := checkpoint.NewManagementCommandGetInterfaces(ctx, "managementCommandGetInterfacesResource", &checkpoint.ManagementCommandGetInterfacesArgs{
GroupInterfacesBySubnet: pulumi.Bool(false),
ManagementCommandGetInterfacesId: pulumi.String("string"),
TargetName: pulumi.String("string"),
TargetUid: pulumi.String("string"),
UseDefinedByRoutes: pulumi.Bool(false),
WithTopology: pulumi.Bool(false),
})
var managementCommandGetInterfacesResource = new ManagementCommandGetInterfaces("managementCommandGetInterfacesResource", ManagementCommandGetInterfacesArgs.builder()
.groupInterfacesBySubnet(false)
.managementCommandGetInterfacesId("string")
.targetName("string")
.targetUid("string")
.useDefinedByRoutes(false)
.withTopology(false)
.build());
management_command_get_interfaces_resource = checkpoint.ManagementCommandGetInterfaces("managementCommandGetInterfacesResource",
group_interfaces_by_subnet=False,
management_command_get_interfaces_id="string",
target_name="string",
target_uid="string",
use_defined_by_routes=False,
with_topology=False)
const managementCommandGetInterfacesResource = new checkpoint.ManagementCommandGetInterfaces("managementCommandGetInterfacesResource", {
groupInterfacesBySubnet: false,
managementCommandGetInterfacesId: "string",
targetName: "string",
targetUid: "string",
useDefinedByRoutes: false,
withTopology: false,
});
type: checkpoint:ManagementCommandGetInterfaces
properties:
groupInterfacesBySubnet: false
managementCommandGetInterfacesId: string
targetName: string
targetUid: string
useDefinedByRoutes: false
withTopology: false
ManagementCommandGetInterfaces 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 ManagementCommandGetInterfaces resource accepts the following input properties:
- Group
Interfaces boolBy Subnet - Specify whether to group the cluster interfaces by a subnet. Otherwise, group the cluster interfaces by their names.
- Management
Command stringGet Interfaces Id - Target
Name string - Target name.
- Target
Uid string - Target unique identifier.
- Use
Defined boolBy Routes - Specify whether to configure the topology "Defined by Routes" where applicable. Otherwise, configure the topology to "This Network" as default for internal interfaces.
- With
Topology bool - Specify whether to fetch the interfaces with their topology. Otherwise, the Management Server fetches the interfaces without their topology.
- Group
Interfaces boolBy Subnet - Specify whether to group the cluster interfaces by a subnet. Otherwise, group the cluster interfaces by their names.
- Management
Command stringGet Interfaces Id - Target
Name string - Target name.
- Target
Uid string - Target unique identifier.
- Use
Defined boolBy Routes - Specify whether to configure the topology "Defined by Routes" where applicable. Otherwise, configure the topology to "This Network" as default for internal interfaces.
- With
Topology bool - Specify whether to fetch the interfaces with their topology. Otherwise, the Management Server fetches the interfaces without their topology.
- group
Interfaces BooleanBy Subnet - Specify whether to group the cluster interfaces by a subnet. Otherwise, group the cluster interfaces by their names.
- management
Command StringGet Interfaces Id - target
Name String - Target name.
- target
Uid String - Target unique identifier.
- use
Defined BooleanBy Routes - Specify whether to configure the topology "Defined by Routes" where applicable. Otherwise, configure the topology to "This Network" as default for internal interfaces.
- with
Topology Boolean - Specify whether to fetch the interfaces with their topology. Otherwise, the Management Server fetches the interfaces without their topology.
- group
Interfaces booleanBy Subnet - Specify whether to group the cluster interfaces by a subnet. Otherwise, group the cluster interfaces by their names.
- management
Command stringGet Interfaces Id - target
Name string - Target name.
- target
Uid string - Target unique identifier.
- use
Defined booleanBy Routes - Specify whether to configure the topology "Defined by Routes" where applicable. Otherwise, configure the topology to "This Network" as default for internal interfaces.
- with
Topology boolean - Specify whether to fetch the interfaces with their topology. Otherwise, the Management Server fetches the interfaces without their topology.
- group_
interfaces_ boolby_ subnet - Specify whether to group the cluster interfaces by a subnet. Otherwise, group the cluster interfaces by their names.
- management_
command_ strget_ interfaces_ id - target_
name str - Target name.
- target_
uid str - Target unique identifier.
- use_
defined_ boolby_ routes - Specify whether to configure the topology "Defined by Routes" where applicable. Otherwise, configure the topology to "This Network" as default for internal interfaces.
- with_
topology bool - Specify whether to fetch the interfaces with their topology. Otherwise, the Management Server fetches the interfaces without their topology.
- group
Interfaces BooleanBy Subnet - Specify whether to group the cluster interfaces by a subnet. Otherwise, group the cluster interfaces by their names.
- management
Command StringGet Interfaces Id - target
Name String - Target name.
- target
Uid String - Target unique identifier.
- use
Defined BooleanBy Routes - Specify whether to configure the topology "Defined by Routes" where applicable. Otherwise, configure the topology to "This Network" as default for internal interfaces.
- with
Topology Boolean - Specify whether to fetch the interfaces with their topology. Otherwise, the Management Server fetches the interfaces without their topology.
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagementCommandGetInterfaces resource produces the following output properties:
Look up Existing ManagementCommandGetInterfaces Resource
Get an existing ManagementCommandGetInterfaces 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?: ManagementCommandGetInterfacesState, opts?: CustomResourceOptions): ManagementCommandGetInterfaces
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
group_interfaces_by_subnet: Optional[bool] = None,
management_command_get_interfaces_id: Optional[str] = None,
target_name: Optional[str] = None,
target_uid: Optional[str] = None,
task_id: Optional[str] = None,
use_defined_by_routes: Optional[bool] = None,
with_topology: Optional[bool] = None) -> ManagementCommandGetInterfaces
func GetManagementCommandGetInterfaces(ctx *Context, name string, id IDInput, state *ManagementCommandGetInterfacesState, opts ...ResourceOption) (*ManagementCommandGetInterfaces, error)
public static ManagementCommandGetInterfaces Get(string name, Input<string> id, ManagementCommandGetInterfacesState? state, CustomResourceOptions? opts = null)
public static ManagementCommandGetInterfaces get(String name, Output<String> id, ManagementCommandGetInterfacesState state, CustomResourceOptions options)
resources: _: type: checkpoint:ManagementCommandGetInterfaces 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.
- Group
Interfaces boolBy Subnet - Specify whether to group the cluster interfaces by a subnet. Otherwise, group the cluster interfaces by their names.
- Management
Command stringGet Interfaces Id - Target
Name string - Target name.
- Target
Uid string - Target unique identifier.
- Task
Id string - The UID of the "get-interfaces" task. Use the "show-task" command to check the progress of the "get-interfaces" task.
- Use
Defined boolBy Routes - Specify whether to configure the topology "Defined by Routes" where applicable. Otherwise, configure the topology to "This Network" as default for internal interfaces.
- With
Topology bool - Specify whether to fetch the interfaces with their topology. Otherwise, the Management Server fetches the interfaces without their topology.
- Group
Interfaces boolBy Subnet - Specify whether to group the cluster interfaces by a subnet. Otherwise, group the cluster interfaces by their names.
- Management
Command stringGet Interfaces Id - Target
Name string - Target name.
- Target
Uid string - Target unique identifier.
- Task
Id string - The UID of the "get-interfaces" task. Use the "show-task" command to check the progress of the "get-interfaces" task.
- Use
Defined boolBy Routes - Specify whether to configure the topology "Defined by Routes" where applicable. Otherwise, configure the topology to "This Network" as default for internal interfaces.
- With
Topology bool - Specify whether to fetch the interfaces with their topology. Otherwise, the Management Server fetches the interfaces without their topology.
- group
Interfaces BooleanBy Subnet - Specify whether to group the cluster interfaces by a subnet. Otherwise, group the cluster interfaces by their names.
- management
Command StringGet Interfaces Id - target
Name String - Target name.
- target
Uid String - Target unique identifier.
- task
Id String - The UID of the "get-interfaces" task. Use the "show-task" command to check the progress of the "get-interfaces" task.
- use
Defined BooleanBy Routes - Specify whether to configure the topology "Defined by Routes" where applicable. Otherwise, configure the topology to "This Network" as default for internal interfaces.
- with
Topology Boolean - Specify whether to fetch the interfaces with their topology. Otherwise, the Management Server fetches the interfaces without their topology.
- group
Interfaces booleanBy Subnet - Specify whether to group the cluster interfaces by a subnet. Otherwise, group the cluster interfaces by their names.
- management
Command stringGet Interfaces Id - target
Name string - Target name.
- target
Uid string - Target unique identifier.
- task
Id string - The UID of the "get-interfaces" task. Use the "show-task" command to check the progress of the "get-interfaces" task.
- use
Defined booleanBy Routes - Specify whether to configure the topology "Defined by Routes" where applicable. Otherwise, configure the topology to "This Network" as default for internal interfaces.
- with
Topology boolean - Specify whether to fetch the interfaces with their topology. Otherwise, the Management Server fetches the interfaces without their topology.
- group_
interfaces_ boolby_ subnet - Specify whether to group the cluster interfaces by a subnet. Otherwise, group the cluster interfaces by their names.
- management_
command_ strget_ interfaces_ id - target_
name str - Target name.
- target_
uid str - Target unique identifier.
- task_
id str - The UID of the "get-interfaces" task. Use the "show-task" command to check the progress of the "get-interfaces" task.
- use_
defined_ boolby_ routes - Specify whether to configure the topology "Defined by Routes" where applicable. Otherwise, configure the topology to "This Network" as default for internal interfaces.
- with_
topology bool - Specify whether to fetch the interfaces with their topology. Otherwise, the Management Server fetches the interfaces without their topology.
- group
Interfaces BooleanBy Subnet - Specify whether to group the cluster interfaces by a subnet. Otherwise, group the cluster interfaces by their names.
- management
Command StringGet Interfaces Id - target
Name String - Target name.
- target
Uid String - Target unique identifier.
- task
Id String - The UID of the "get-interfaces" task. Use the "show-task" command to check the progress of the "get-interfaces" task.
- use
Defined BooleanBy Routes - Specify whether to configure the topology "Defined by Routes" where applicable. Otherwise, configure the topology to "This Network" as default for internal interfaces.
- with
Topology Boolean - Specify whether to fetch the interfaces with their topology. Otherwise, the Management Server fetches the interfaces without their topology.
Package Details
- Repository
- checkpoint checkpointsw/terraform-provider-checkpoint
- License
- Notes
- This Pulumi package is based on the
checkpoint
Terraform Provider.