checkpoint.ManagementNetwork
Explore with Pulumi AI
This resource allows you to add/update/delete Check Point Network Object.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as checkpoint from "@pulumi/checkpoint";
const example = new checkpoint.ManagementNetwork("example", {
maskLength4: 32,
subnet4: "192.0.2.0",
});
import pulumi
import pulumi_checkpoint as checkpoint
example = checkpoint.ManagementNetwork("example",
mask_length4=32,
subnet4="192.0.2.0")
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.NewManagementNetwork(ctx, "example", &checkpoint.ManagementNetworkArgs{
MaskLength4: pulumi.Float64(32),
Subnet4: pulumi.String("192.0.2.0"),
})
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 = new Checkpoint.ManagementNetwork("example", new()
{
MaskLength4 = 32,
Subnet4 = "192.0.2.0",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.checkpoint.ManagementNetwork;
import com.pulumi.checkpoint.ManagementNetworkArgs;
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 example = new ManagementNetwork("example", ManagementNetworkArgs.builder()
.maskLength4(32)
.subnet4("192.0.2.0")
.build());
}
}
resources:
example:
type: checkpoint:ManagementNetwork
properties:
maskLength4: 32
subnet4: 192.0.2.0
Create ManagementNetwork Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagementNetwork(name: string, args?: ManagementNetworkArgs, opts?: CustomResourceOptions);
@overload
def ManagementNetwork(resource_name: str,
args: Optional[ManagementNetworkArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ManagementNetwork(resource_name: str,
opts: Optional[ResourceOptions] = None,
broadcast: Optional[str] = None,
color: Optional[str] = None,
comments: Optional[str] = None,
ignore_errors: Optional[bool] = None,
ignore_warnings: Optional[bool] = None,
management_network_id: Optional[str] = None,
mask_length4: Optional[float] = None,
mask_length6: Optional[float] = None,
name: Optional[str] = None,
nat_settings: Optional[Mapping[str, str]] = None,
subnet4: Optional[str] = None,
subnet6: Optional[str] = None,
tags: Optional[Sequence[str]] = None)
func NewManagementNetwork(ctx *Context, name string, args *ManagementNetworkArgs, opts ...ResourceOption) (*ManagementNetwork, error)
public ManagementNetwork(string name, ManagementNetworkArgs? args = null, CustomResourceOptions? opts = null)
public ManagementNetwork(String name, ManagementNetworkArgs args)
public ManagementNetwork(String name, ManagementNetworkArgs args, CustomResourceOptions options)
type: checkpoint:ManagementNetwork
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 ManagementNetworkArgs
- 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 ManagementNetworkArgs
- 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 ManagementNetworkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagementNetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagementNetworkArgs
- 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 managementNetworkResource = new Checkpoint.ManagementNetwork("managementNetworkResource", new()
{
Broadcast = "string",
Color = "string",
Comments = "string",
IgnoreErrors = false,
IgnoreWarnings = false,
ManagementNetworkId = "string",
MaskLength4 = 0,
MaskLength6 = 0,
Name = "string",
NatSettings =
{
{ "string", "string" },
},
Subnet4 = "string",
Subnet6 = "string",
Tags = new[]
{
"string",
},
});
example, err := checkpoint.NewManagementNetwork(ctx, "managementNetworkResource", &checkpoint.ManagementNetworkArgs{
Broadcast: pulumi.String("string"),
Color: pulumi.String("string"),
Comments: pulumi.String("string"),
IgnoreErrors: pulumi.Bool(false),
IgnoreWarnings: pulumi.Bool(false),
ManagementNetworkId: pulumi.String("string"),
MaskLength4: pulumi.Float64(0),
MaskLength6: pulumi.Float64(0),
Name: pulumi.String("string"),
NatSettings: pulumi.StringMap{
"string": pulumi.String("string"),
},
Subnet4: pulumi.String("string"),
Subnet6: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var managementNetworkResource = new ManagementNetwork("managementNetworkResource", ManagementNetworkArgs.builder()
.broadcast("string")
.color("string")
.comments("string")
.ignoreErrors(false)
.ignoreWarnings(false)
.managementNetworkId("string")
.maskLength4(0)
.maskLength6(0)
.name("string")
.natSettings(Map.of("string", "string"))
.subnet4("string")
.subnet6("string")
.tags("string")
.build());
management_network_resource = checkpoint.ManagementNetwork("managementNetworkResource",
broadcast="string",
color="string",
comments="string",
ignore_errors=False,
ignore_warnings=False,
management_network_id="string",
mask_length4=0,
mask_length6=0,
name="string",
nat_settings={
"string": "string",
},
subnet4="string",
subnet6="string",
tags=["string"])
const managementNetworkResource = new checkpoint.ManagementNetwork("managementNetworkResource", {
broadcast: "string",
color: "string",
comments: "string",
ignoreErrors: false,
ignoreWarnings: false,
managementNetworkId: "string",
maskLength4: 0,
maskLength6: 0,
name: "string",
natSettings: {
string: "string",
},
subnet4: "string",
subnet6: "string",
tags: ["string"],
});
type: checkpoint:ManagementNetwork
properties:
broadcast: string
color: string
comments: string
ignoreErrors: false
ignoreWarnings: false
managementNetworkId: string
maskLength4: 0
maskLength6: 0
name: string
natSettings:
string: string
subnet4: string
subnet6: string
tags:
- string
ManagementNetwork 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 ManagementNetwork resource accepts the following input properties:
- Broadcast string
- "Allow broadcast address inclusion.
- Color string
- Color of the object. Should be one of existing colors.
- Comments string
- Comments string.
- Ignore
Errors bool - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- Ignore
Warnings bool - Apply changes ignoring warnings.
- Management
Network stringId - Mask
Length4 double - IPv4 network mask length.
- Mask
Length6 double - IPv6 network mask length.
- Name string
- Object name. Should be unique in the domain.
- Nat
Settings Dictionary<string, string> - NAT settings. NAT settings blocks are documented below.
- Subnet4 string
- IPv4 network address.
- Subnet6 string
- IPv6 network address..
- List<string>
- Collection of tag identifiers.
- Broadcast string
- "Allow broadcast address inclusion.
- Color string
- Color of the object. Should be one of existing colors.
- Comments string
- Comments string.
- Ignore
Errors bool - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- Ignore
Warnings bool - Apply changes ignoring warnings.
- Management
Network stringId - Mask
Length4 float64 - IPv4 network mask length.
- Mask
Length6 float64 - IPv6 network mask length.
- Name string
- Object name. Should be unique in the domain.
- Nat
Settings map[string]string - NAT settings. NAT settings blocks are documented below.
- Subnet4 string
- IPv4 network address.
- Subnet6 string
- IPv6 network address..
- []string
- Collection of tag identifiers.
- broadcast String
- "Allow broadcast address inclusion.
- color String
- Color of the object. Should be one of existing colors.
- comments String
- Comments string.
- ignore
Errors Boolean - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore
Warnings Boolean - Apply changes ignoring warnings.
- management
Network StringId - mask
Length4 Double - IPv4 network mask length.
- mask
Length6 Double - IPv6 network mask length.
- name String
- Object name. Should be unique in the domain.
- nat
Settings Map<String,String> - NAT settings. NAT settings blocks are documented below.
- subnet4 String
- IPv4 network address.
- subnet6 String
- IPv6 network address..
- List<String>
- Collection of tag identifiers.
- broadcast string
- "Allow broadcast address inclusion.
- color string
- Color of the object. Should be one of existing colors.
- comments string
- Comments string.
- ignore
Errors boolean - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore
Warnings boolean - Apply changes ignoring warnings.
- management
Network stringId - mask
Length4 number - IPv4 network mask length.
- mask
Length6 number - IPv6 network mask length.
- name string
- Object name. Should be unique in the domain.
- nat
Settings {[key: string]: string} - NAT settings. NAT settings blocks are documented below.
- subnet4 string
- IPv4 network address.
- subnet6 string
- IPv6 network address..
- string[]
- Collection of tag identifiers.
- broadcast str
- "Allow broadcast address inclusion.
- color str
- Color of the object. Should be one of existing colors.
- comments str
- Comments string.
- ignore_
errors bool - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore_
warnings bool - Apply changes ignoring warnings.
- management_
network_ strid - mask_
length4 float - IPv4 network mask length.
- mask_
length6 float - IPv6 network mask length.
- name str
- Object name. Should be unique in the domain.
- nat_
settings Mapping[str, str] - NAT settings. NAT settings blocks are documented below.
- subnet4 str
- IPv4 network address.
- subnet6 str
- IPv6 network address..
- Sequence[str]
- Collection of tag identifiers.
- broadcast String
- "Allow broadcast address inclusion.
- color String
- Color of the object. Should be one of existing colors.
- comments String
- Comments string.
- ignore
Errors Boolean - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore
Warnings Boolean - Apply changes ignoring warnings.
- management
Network StringId - mask
Length4 Number - IPv4 network mask length.
- mask
Length6 Number - IPv6 network mask length.
- name String
- Object name. Should be unique in the domain.
- nat
Settings Map<String> - NAT settings. NAT settings blocks are documented below.
- subnet4 String
- IPv4 network address.
- subnet6 String
- IPv6 network address..
- List<String>
- Collection of tag identifiers.
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagementNetwork resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ManagementNetwork Resource
Get an existing ManagementNetwork 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?: ManagementNetworkState, opts?: CustomResourceOptions): ManagementNetwork
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
broadcast: Optional[str] = None,
color: Optional[str] = None,
comments: Optional[str] = None,
ignore_errors: Optional[bool] = None,
ignore_warnings: Optional[bool] = None,
management_network_id: Optional[str] = None,
mask_length4: Optional[float] = None,
mask_length6: Optional[float] = None,
name: Optional[str] = None,
nat_settings: Optional[Mapping[str, str]] = None,
subnet4: Optional[str] = None,
subnet6: Optional[str] = None,
tags: Optional[Sequence[str]] = None) -> ManagementNetwork
func GetManagementNetwork(ctx *Context, name string, id IDInput, state *ManagementNetworkState, opts ...ResourceOption) (*ManagementNetwork, error)
public static ManagementNetwork Get(string name, Input<string> id, ManagementNetworkState? state, CustomResourceOptions? opts = null)
public static ManagementNetwork get(String name, Output<String> id, ManagementNetworkState state, CustomResourceOptions options)
resources: _: type: checkpoint:ManagementNetwork 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.
- Broadcast string
- "Allow broadcast address inclusion.
- Color string
- Color of the object. Should be one of existing colors.
- Comments string
- Comments string.
- Ignore
Errors bool - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- Ignore
Warnings bool - Apply changes ignoring warnings.
- Management
Network stringId - Mask
Length4 double - IPv4 network mask length.
- Mask
Length6 double - IPv6 network mask length.
- Name string
- Object name. Should be unique in the domain.
- Nat
Settings Dictionary<string, string> - NAT settings. NAT settings blocks are documented below.
- Subnet4 string
- IPv4 network address.
- Subnet6 string
- IPv6 network address..
- List<string>
- Collection of tag identifiers.
- Broadcast string
- "Allow broadcast address inclusion.
- Color string
- Color of the object. Should be one of existing colors.
- Comments string
- Comments string.
- Ignore
Errors bool - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- Ignore
Warnings bool - Apply changes ignoring warnings.
- Management
Network stringId - Mask
Length4 float64 - IPv4 network mask length.
- Mask
Length6 float64 - IPv6 network mask length.
- Name string
- Object name. Should be unique in the domain.
- Nat
Settings map[string]string - NAT settings. NAT settings blocks are documented below.
- Subnet4 string
- IPv4 network address.
- Subnet6 string
- IPv6 network address..
- []string
- Collection of tag identifiers.
- broadcast String
- "Allow broadcast address inclusion.
- color String
- Color of the object. Should be one of existing colors.
- comments String
- Comments string.
- ignore
Errors Boolean - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore
Warnings Boolean - Apply changes ignoring warnings.
- management
Network StringId - mask
Length4 Double - IPv4 network mask length.
- mask
Length6 Double - IPv6 network mask length.
- name String
- Object name. Should be unique in the domain.
- nat
Settings Map<String,String> - NAT settings. NAT settings blocks are documented below.
- subnet4 String
- IPv4 network address.
- subnet6 String
- IPv6 network address..
- List<String>
- Collection of tag identifiers.
- broadcast string
- "Allow broadcast address inclusion.
- color string
- Color of the object. Should be one of existing colors.
- comments string
- Comments string.
- ignore
Errors boolean - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore
Warnings boolean - Apply changes ignoring warnings.
- management
Network stringId - mask
Length4 number - IPv4 network mask length.
- mask
Length6 number - IPv6 network mask length.
- name string
- Object name. Should be unique in the domain.
- nat
Settings {[key: string]: string} - NAT settings. NAT settings blocks are documented below.
- subnet4 string
- IPv4 network address.
- subnet6 string
- IPv6 network address..
- string[]
- Collection of tag identifiers.
- broadcast str
- "Allow broadcast address inclusion.
- color str
- Color of the object. Should be one of existing colors.
- comments str
- Comments string.
- ignore_
errors bool - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore_
warnings bool - Apply changes ignoring warnings.
- management_
network_ strid - mask_
length4 float - IPv4 network mask length.
- mask_
length6 float - IPv6 network mask length.
- name str
- Object name. Should be unique in the domain.
- nat_
settings Mapping[str, str] - NAT settings. NAT settings blocks are documented below.
- subnet4 str
- IPv4 network address.
- subnet6 str
- IPv6 network address..
- Sequence[str]
- Collection of tag identifiers.
- broadcast String
- "Allow broadcast address inclusion.
- color String
- Color of the object. Should be one of existing colors.
- comments String
- Comments string.
- ignore
Errors Boolean - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore
Warnings Boolean - Apply changes ignoring warnings.
- management
Network StringId - mask
Length4 Number - IPv4 network mask length.
- mask
Length6 Number - IPv6 network mask length.
- name String
- Object name. Should be unique in the domain.
- nat
Settings Map<String> - NAT settings. NAT settings blocks are documented below.
- subnet4 String
- IPv4 network address.
- subnet6 String
- IPv6 network address..
- List<String>
- Collection of tag identifiers.
Package Details
- Repository
- checkpoint checkpointsw/terraform-provider-checkpoint
- License
- Notes
- This Pulumi package is based on the
checkpoint
Terraform Provider.