fortios.firewall.Iptranslation
Explore with Pulumi AI
Configure firewall IP-translation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname = new fortios.firewall.Iptranslation("trname", {
endip: "2.2.2.2",
mapStartip: "0.0.0.0",
startip: "1.1.1.1",
transid: 1,
type: "SCTP",
});
import pulumi
import pulumiverse_fortios as fortios
trname = fortios.firewall.Iptranslation("trname",
endip="2.2.2.2",
map_startip="0.0.0.0",
startip="1.1.1.1",
transid=1,
type="SCTP")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/firewall"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := firewall.NewIptranslation(ctx, "trname", &firewall.IptranslationArgs{
Endip: pulumi.String("2.2.2.2"),
MapStartip: pulumi.String("0.0.0.0"),
Startip: pulumi.String("1.1.1.1"),
Transid: pulumi.Int(1),
Type: pulumi.String("SCTP"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;
return await Deployment.RunAsync(() =>
{
var trname = new Fortios.Firewall.Iptranslation("trname", new()
{
Endip = "2.2.2.2",
MapStartip = "0.0.0.0",
Startip = "1.1.1.1",
Transid = 1,
Type = "SCTP",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.firewall.Iptranslation;
import com.pulumi.fortios.firewall.IptranslationArgs;
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 trname = new Iptranslation("trname", IptranslationArgs.builder()
.endip("2.2.2.2")
.mapStartip("0.0.0.0")
.startip("1.1.1.1")
.transid(1)
.type("SCTP")
.build());
}
}
resources:
trname:
type: fortios:firewall:Iptranslation
properties:
endip: 2.2.2.2
mapStartip: 0.0.0.0
startip: 1.1.1.1
transid: 1
type: SCTP
Create Iptranslation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Iptranslation(name: string, args: IptranslationArgs, opts?: CustomResourceOptions);
@overload
def Iptranslation(resource_name: str,
args: IptranslationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Iptranslation(resource_name: str,
opts: Optional[ResourceOptions] = None,
endip: Optional[str] = None,
map_startip: Optional[str] = None,
startip: Optional[str] = None,
transid: Optional[int] = None,
type: Optional[str] = None,
vdomparam: Optional[str] = None)
func NewIptranslation(ctx *Context, name string, args IptranslationArgs, opts ...ResourceOption) (*Iptranslation, error)
public Iptranslation(string name, IptranslationArgs args, CustomResourceOptions? opts = null)
public Iptranslation(String name, IptranslationArgs args)
public Iptranslation(String name, IptranslationArgs args, CustomResourceOptions options)
type: fortios:firewall:Iptranslation
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 IptranslationArgs
- 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 IptranslationArgs
- 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 IptranslationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IptranslationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IptranslationArgs
- 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 iptranslationResource = new Fortios.Firewall.Iptranslation("iptranslationResource", new()
{
Endip = "string",
MapStartip = "string",
Startip = "string",
Transid = 0,
Type = "string",
Vdomparam = "string",
});
example, err := firewall.NewIptranslation(ctx, "iptranslationResource", &firewall.IptranslationArgs{
Endip: pulumi.String("string"),
MapStartip: pulumi.String("string"),
Startip: pulumi.String("string"),
Transid: pulumi.Int(0),
Type: pulumi.String("string"),
Vdomparam: pulumi.String("string"),
})
var iptranslationResource = new Iptranslation("iptranslationResource", IptranslationArgs.builder()
.endip("string")
.mapStartip("string")
.startip("string")
.transid(0)
.type("string")
.vdomparam("string")
.build());
iptranslation_resource = fortios.firewall.Iptranslation("iptranslationResource",
endip="string",
map_startip="string",
startip="string",
transid=0,
type="string",
vdomparam="string")
const iptranslationResource = new fortios.firewall.Iptranslation("iptranslationResource", {
endip: "string",
mapStartip: "string",
startip: "string",
transid: 0,
type: "string",
vdomparam: "string",
});
type: fortios:firewall:Iptranslation
properties:
endip: string
mapStartip: string
startip: string
transid: 0
type: string
vdomparam: string
Iptranslation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Iptranslation resource accepts the following input properties:
- Endip string
- Final IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- Map
Startip string - Address to be used as the starting point for translation in the range (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- Startip string
- First IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- Transid int
- IP translation ID.
- Type string
- IP translation type (option: SCTP). Valid values:
SCTP
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Endip string
- Final IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- Map
Startip string - Address to be used as the starting point for translation in the range (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- Startip string
- First IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- Transid int
- IP translation ID.
- Type string
- IP translation type (option: SCTP). Valid values:
SCTP
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- endip String
- Final IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- map
Startip String - Address to be used as the starting point for translation in the range (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- startip String
- First IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- transid Integer
- IP translation ID.
- type String
- IP translation type (option: SCTP). Valid values:
SCTP
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- endip string
- Final IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- map
Startip string - Address to be used as the starting point for translation in the range (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- startip string
- First IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- transid number
- IP translation ID.
- type string
- IP translation type (option: SCTP). Valid values:
SCTP
. - vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- endip str
- Final IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- map_
startip str - Address to be used as the starting point for translation in the range (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- startip str
- First IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- transid int
- IP translation ID.
- type str
- IP translation type (option: SCTP). Valid values:
SCTP
. - vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- endip String
- Final IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- map
Startip String - Address to be used as the starting point for translation in the range (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- startip String
- First IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- transid Number
- IP translation ID.
- type String
- IP translation type (option: SCTP). Valid values:
SCTP
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Outputs
All input properties are implicitly available as output properties. Additionally, the Iptranslation 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 Iptranslation Resource
Get an existing Iptranslation 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?: IptranslationState, opts?: CustomResourceOptions): Iptranslation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
endip: Optional[str] = None,
map_startip: Optional[str] = None,
startip: Optional[str] = None,
transid: Optional[int] = None,
type: Optional[str] = None,
vdomparam: Optional[str] = None) -> Iptranslation
func GetIptranslation(ctx *Context, name string, id IDInput, state *IptranslationState, opts ...ResourceOption) (*Iptranslation, error)
public static Iptranslation Get(string name, Input<string> id, IptranslationState? state, CustomResourceOptions? opts = null)
public static Iptranslation get(String name, Output<String> id, IptranslationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Endip string
- Final IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- Map
Startip string - Address to be used as the starting point for translation in the range (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- Startip string
- First IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- Transid int
- IP translation ID.
- Type string
- IP translation type (option: SCTP). Valid values:
SCTP
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Endip string
- Final IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- Map
Startip string - Address to be used as the starting point for translation in the range (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- Startip string
- First IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- Transid int
- IP translation ID.
- Type string
- IP translation type (option: SCTP). Valid values:
SCTP
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- endip String
- Final IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- map
Startip String - Address to be used as the starting point for translation in the range (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- startip String
- First IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- transid Integer
- IP translation ID.
- type String
- IP translation type (option: SCTP). Valid values:
SCTP
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- endip string
- Final IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- map
Startip string - Address to be used as the starting point for translation in the range (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- startip string
- First IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- transid number
- IP translation ID.
- type string
- IP translation type (option: SCTP). Valid values:
SCTP
. - vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- endip str
- Final IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- map_
startip str - Address to be used as the starting point for translation in the range (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- startip str
- First IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- transid int
- IP translation ID.
- type str
- IP translation type (option: SCTP). Valid values:
SCTP
. - vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- endip String
- Final IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- map
Startip String - Address to be used as the starting point for translation in the range (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- startip String
- First IPv4 address (inclusive) in the range of the addresses to be translated (format xxx.xxx.xxx.xxx, default: 0.0.0.0).
- transid Number
- IP translation ID.
- type String
- IP translation type (option: SCTP). Valid values:
SCTP
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Import
Firewall IpTranslation can be imported using any of these accepted formats:
$ pulumi import fortios:firewall/iptranslation:Iptranslation labelname {{transid}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:firewall/iptranslation:Iptranslation labelname {{transid}}
$ unset “FORTIOS_IMPORT_TABLE”
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.