checkpoint.ManagementAddressRange
Explore with Pulumi AI
This resource allows you to add/update/delete Check Point Address Range.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as checkpoint from "@pulumi/checkpoint";
const example = new checkpoint.ManagementAddressRange("example", {
ipv4AddressFirst: "192.0.2.1",
ipv4AddressLast: "192.0.2.10",
});
import pulumi
import pulumi_checkpoint as checkpoint
example = checkpoint.ManagementAddressRange("example",
ipv4_address_first="192.0.2.1",
ipv4_address_last="192.0.2.10")
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.NewManagementAddressRange(ctx, "example", &checkpoint.ManagementAddressRangeArgs{
Ipv4AddressFirst: pulumi.String("192.0.2.1"),
Ipv4AddressLast: pulumi.String("192.0.2.10"),
})
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.ManagementAddressRange("example", new()
{
Ipv4AddressFirst = "192.0.2.1",
Ipv4AddressLast = "192.0.2.10",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.checkpoint.ManagementAddressRange;
import com.pulumi.checkpoint.ManagementAddressRangeArgs;
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 ManagementAddressRange("example", ManagementAddressRangeArgs.builder()
.ipv4AddressFirst("192.0.2.1")
.ipv4AddressLast("192.0.2.10")
.build());
}
}
resources:
example:
type: checkpoint:ManagementAddressRange
properties:
ipv4AddressFirst: 192.0.2.1
ipv4AddressLast: 192.0.2.10
Create ManagementAddressRange Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagementAddressRange(name: string, args?: ManagementAddressRangeArgs, opts?: CustomResourceOptions);
@overload
def ManagementAddressRange(resource_name: str,
args: Optional[ManagementAddressRangeArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ManagementAddressRange(resource_name: str,
opts: Optional[ResourceOptions] = None,
color: Optional[str] = None,
comments: Optional[str] = None,
ignore_errors: Optional[bool] = None,
ignore_warnings: Optional[bool] = None,
ipv4_address_first: Optional[str] = None,
ipv4_address_last: Optional[str] = None,
ipv6_address_first: Optional[str] = None,
ipv6_address_last: Optional[str] = None,
management_address_range_id: Optional[str] = None,
name: Optional[str] = None,
nat_settings: Optional[Mapping[str, str]] = None,
tags: Optional[Sequence[str]] = None)
func NewManagementAddressRange(ctx *Context, name string, args *ManagementAddressRangeArgs, opts ...ResourceOption) (*ManagementAddressRange, error)
public ManagementAddressRange(string name, ManagementAddressRangeArgs? args = null, CustomResourceOptions? opts = null)
public ManagementAddressRange(String name, ManagementAddressRangeArgs args)
public ManagementAddressRange(String name, ManagementAddressRangeArgs args, CustomResourceOptions options)
type: checkpoint:ManagementAddressRange
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 ManagementAddressRangeArgs
- 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 ManagementAddressRangeArgs
- 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 ManagementAddressRangeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagementAddressRangeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagementAddressRangeArgs
- 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 managementAddressRangeResource = new Checkpoint.ManagementAddressRange("managementAddressRangeResource", new()
{
Color = "string",
Comments = "string",
IgnoreErrors = false,
IgnoreWarnings = false,
Ipv4AddressFirst = "string",
Ipv4AddressLast = "string",
Ipv6AddressFirst = "string",
Ipv6AddressLast = "string",
ManagementAddressRangeId = "string",
Name = "string",
NatSettings =
{
{ "string", "string" },
},
Tags = new[]
{
"string",
},
});
example, err := checkpoint.NewManagementAddressRange(ctx, "managementAddressRangeResource", &checkpoint.ManagementAddressRangeArgs{
Color: pulumi.String("string"),
Comments: pulumi.String("string"),
IgnoreErrors: pulumi.Bool(false),
IgnoreWarnings: pulumi.Bool(false),
Ipv4AddressFirst: pulumi.String("string"),
Ipv4AddressLast: pulumi.String("string"),
Ipv6AddressFirst: pulumi.String("string"),
Ipv6AddressLast: pulumi.String("string"),
ManagementAddressRangeId: pulumi.String("string"),
Name: pulumi.String("string"),
NatSettings: pulumi.StringMap{
"string": pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var managementAddressRangeResource = new ManagementAddressRange("managementAddressRangeResource", ManagementAddressRangeArgs.builder()
.color("string")
.comments("string")
.ignoreErrors(false)
.ignoreWarnings(false)
.ipv4AddressFirst("string")
.ipv4AddressLast("string")
.ipv6AddressFirst("string")
.ipv6AddressLast("string")
.managementAddressRangeId("string")
.name("string")
.natSettings(Map.of("string", "string"))
.tags("string")
.build());
management_address_range_resource = checkpoint.ManagementAddressRange("managementAddressRangeResource",
color="string",
comments="string",
ignore_errors=False,
ignore_warnings=False,
ipv4_address_first="string",
ipv4_address_last="string",
ipv6_address_first="string",
ipv6_address_last="string",
management_address_range_id="string",
name="string",
nat_settings={
"string": "string",
},
tags=["string"])
const managementAddressRangeResource = new checkpoint.ManagementAddressRange("managementAddressRangeResource", {
color: "string",
comments: "string",
ignoreErrors: false,
ignoreWarnings: false,
ipv4AddressFirst: "string",
ipv4AddressLast: "string",
ipv6AddressFirst: "string",
ipv6AddressLast: "string",
managementAddressRangeId: "string",
name: "string",
natSettings: {
string: "string",
},
tags: ["string"],
});
type: checkpoint:ManagementAddressRange
properties:
color: string
comments: string
ignoreErrors: false
ignoreWarnings: false
ipv4AddressFirst: string
ipv4AddressLast: string
ipv6AddressFirst: string
ipv6AddressLast: string
managementAddressRangeId: string
name: string
natSettings:
string: string
tags:
- string
ManagementAddressRange 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 ManagementAddressRange resource accepts the following input properties:
- 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.
- Ipv4Address
First string - First IPv4 address in the range.
- Ipv4Address
Last string - Last IPv4 address in the range.
- Ipv6Address
First string - First IPv6 address in the range.
- Ipv6Address
Last string - Last IPv6 address in the range.
- Management
Address stringRange Id - Name string
- Object name. Should be unique in the domain.
- Nat
Settings Dictionary<string, string> - NAT settings. NAT settings blocks are documented below.
- List<string>
- Collection of tag identifiers.
- 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.
- Ipv4Address
First string - First IPv4 address in the range.
- Ipv4Address
Last string - Last IPv4 address in the range.
- Ipv6Address
First string - First IPv6 address in the range.
- Ipv6Address
Last string - Last IPv6 address in the range.
- Management
Address stringRange Id - Name string
- Object name. Should be unique in the domain.
- Nat
Settings map[string]string - NAT settings. NAT settings blocks are documented below.
- []string
- Collection of tag identifiers.
- 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.
- ipv4Address
First String - First IPv4 address in the range.
- ipv4Address
Last String - Last IPv4 address in the range.
- ipv6Address
First String - First IPv6 address in the range.
- ipv6Address
Last String - Last IPv6 address in the range.
- management
Address StringRange Id - name String
- Object name. Should be unique in the domain.
- nat
Settings Map<String,String> - NAT settings. NAT settings blocks are documented below.
- List<String>
- Collection of tag identifiers.
- 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.
- ipv4Address
First string - First IPv4 address in the range.
- ipv4Address
Last string - Last IPv4 address in the range.
- ipv6Address
First string - First IPv6 address in the range.
- ipv6Address
Last string - Last IPv6 address in the range.
- management
Address stringRange Id - name string
- Object name. Should be unique in the domain.
- nat
Settings {[key: string]: string} - NAT settings. NAT settings blocks are documented below.
- string[]
- Collection of tag identifiers.
- 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.
- ipv4_
address_ strfirst - First IPv4 address in the range.
- ipv4_
address_ strlast - Last IPv4 address in the range.
- ipv6_
address_ strfirst - First IPv6 address in the range.
- ipv6_
address_ strlast - Last IPv6 address in the range.
- management_
address_ strrange_ id - name str
- Object name. Should be unique in the domain.
- nat_
settings Mapping[str, str] - NAT settings. NAT settings blocks are documented below.
- Sequence[str]
- Collection of tag identifiers.
- 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.
- ipv4Address
First String - First IPv4 address in the range.
- ipv4Address
Last String - Last IPv4 address in the range.
- ipv6Address
First String - First IPv6 address in the range.
- ipv6Address
Last String - Last IPv6 address in the range.
- management
Address StringRange Id - name String
- Object name. Should be unique in the domain.
- nat
Settings Map<String> - NAT settings. NAT settings blocks are documented below.
- List<String>
- Collection of tag identifiers.
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagementAddressRange 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 ManagementAddressRange Resource
Get an existing ManagementAddressRange 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?: ManagementAddressRangeState, opts?: CustomResourceOptions): ManagementAddressRange
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
color: Optional[str] = None,
comments: Optional[str] = None,
ignore_errors: Optional[bool] = None,
ignore_warnings: Optional[bool] = None,
ipv4_address_first: Optional[str] = None,
ipv4_address_last: Optional[str] = None,
ipv6_address_first: Optional[str] = None,
ipv6_address_last: Optional[str] = None,
management_address_range_id: Optional[str] = None,
name: Optional[str] = None,
nat_settings: Optional[Mapping[str, str]] = None,
tags: Optional[Sequence[str]] = None) -> ManagementAddressRange
func GetManagementAddressRange(ctx *Context, name string, id IDInput, state *ManagementAddressRangeState, opts ...ResourceOption) (*ManagementAddressRange, error)
public static ManagementAddressRange Get(string name, Input<string> id, ManagementAddressRangeState? state, CustomResourceOptions? opts = null)
public static ManagementAddressRange get(String name, Output<String> id, ManagementAddressRangeState state, CustomResourceOptions options)
resources: _: type: checkpoint:ManagementAddressRange 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.
- 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.
- Ipv4Address
First string - First IPv4 address in the range.
- Ipv4Address
Last string - Last IPv4 address in the range.
- Ipv6Address
First string - First IPv6 address in the range.
- Ipv6Address
Last string - Last IPv6 address in the range.
- Management
Address stringRange Id - Name string
- Object name. Should be unique in the domain.
- Nat
Settings Dictionary<string, string> - NAT settings. NAT settings blocks are documented below.
- List<string>
- Collection of tag identifiers.
- 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.
- Ipv4Address
First string - First IPv4 address in the range.
- Ipv4Address
Last string - Last IPv4 address in the range.
- Ipv6Address
First string - First IPv6 address in the range.
- Ipv6Address
Last string - Last IPv6 address in the range.
- Management
Address stringRange Id - Name string
- Object name. Should be unique in the domain.
- Nat
Settings map[string]string - NAT settings. NAT settings blocks are documented below.
- []string
- Collection of tag identifiers.
- 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.
- ipv4Address
First String - First IPv4 address in the range.
- ipv4Address
Last String - Last IPv4 address in the range.
- ipv6Address
First String - First IPv6 address in the range.
- ipv6Address
Last String - Last IPv6 address in the range.
- management
Address StringRange Id - name String
- Object name. Should be unique in the domain.
- nat
Settings Map<String,String> - NAT settings. NAT settings blocks are documented below.
- List<String>
- Collection of tag identifiers.
- 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.
- ipv4Address
First string - First IPv4 address in the range.
- ipv4Address
Last string - Last IPv4 address in the range.
- ipv6Address
First string - First IPv6 address in the range.
- ipv6Address
Last string - Last IPv6 address in the range.
- management
Address stringRange Id - name string
- Object name. Should be unique in the domain.
- nat
Settings {[key: string]: string} - NAT settings. NAT settings blocks are documented below.
- string[]
- Collection of tag identifiers.
- 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.
- ipv4_
address_ strfirst - First IPv4 address in the range.
- ipv4_
address_ strlast - Last IPv4 address in the range.
- ipv6_
address_ strfirst - First IPv6 address in the range.
- ipv6_
address_ strlast - Last IPv6 address in the range.
- management_
address_ strrange_ id - name str
- Object name. Should be unique in the domain.
- nat_
settings Mapping[str, str] - NAT settings. NAT settings blocks are documented below.
- Sequence[str]
- Collection of tag identifiers.
- 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.
- ipv4Address
First String - First IPv4 address in the range.
- ipv4Address
Last String - Last IPv4 address in the range.
- ipv6Address
First String - First IPv6 address in the range.
- ipv6Address
Last String - Last IPv6 address in the range.
- management
Address StringRange Id - name String
- Object name. Should be unique in the domain.
- nat
Settings Map<String> - NAT settings. NAT settings blocks are documented below.
- 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.