published on Friday, Jul 3, 2026 by OlivierPaquien
Freeboxpublished on Friday, Jul 3, 2026 by OlivierPaquien
Create Server Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Server(name: string, args?: ServerArgs, opts?: CustomResourceOptions);@overload
def Server(resource_name: str,
args: Optional[ServerArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Server(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
push_dhcp: Optional[bool] = None,
server_ip: Optional[str] = None,
server_mask: Optional[str] = None,
server_port: Optional[int] = None)func NewServer(ctx *Context, name string, args *ServerArgs, opts ...ResourceOption) (*Server, error)public Server(string name, ServerArgs? args = null, CustomResourceOptions? opts = null)
public Server(String name, ServerArgs args)
public Server(String name, ServerArgs args, CustomResourceOptions options)
type: freebox:vpn:Server
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "freebox_vpn_server" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ServerArgs
- 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 ServerArgs
- 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 ServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServerArgs
- 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 serverResource = new Freebox.Vpn.Server("serverResource", new()
{
Enabled = false,
PushDhcp = false,
ServerIp = "string",
ServerMask = "string",
ServerPort = 0,
});
example, err := vpn.NewServer(ctx, "serverResource", &vpn.ServerArgs{
Enabled: pulumi.Bool(false),
PushDhcp: pulumi.Bool(false),
ServerIp: pulumi.String("string"),
ServerMask: pulumi.String("string"),
ServerPort: pulumi.Int(0),
})
resource "freebox_vpn_server" "serverResource" {
lifecycle {
create_before_destroy = true
}
enabled = false
push_dhcp = false
server_ip = "string"
server_mask = "string"
server_port = 0
}
var serverResource = new Server("serverResource", ServerArgs.builder()
.enabled(false)
.pushDhcp(false)
.serverIp("string")
.serverMask("string")
.serverPort(0)
.build());
server_resource = freebox.vpn.Server("serverResource",
enabled=False,
push_dhcp=False,
server_ip="string",
server_mask="string",
server_port=0)
const serverResource = new freebox.vpn.Server("serverResource", {
enabled: false,
pushDhcp: false,
serverIp: "string",
serverMask: "string",
serverPort: 0,
});
type: freebox:vpn:Server
properties:
enabled: false
pushDhcp: false
serverIp: string
serverMask: string
serverPort: 0
Server 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 Server resource accepts the following input properties:
- Enabled bool
- Push
Dhcp bool - Server
Ip string - Server
Mask string - Server
Port int
- Enabled bool
- Push
Dhcp bool - Server
Ip string - Server
Mask string - Server
Port int
- enabled bool
- push_
dhcp bool - server_
ip string - server_
mask string - server_
port number
- enabled Boolean
- push
Dhcp Boolean - server
Ip String - server
Mask String - server
Port Integer
- enabled boolean
- push
Dhcp boolean - server
Ip string - server
Mask string - server
Port number
- enabled bool
- push_
dhcp bool - server_
ip str - server_
mask str - server_
port int
- enabled Boolean
- push
Dhcp Boolean - server
Ip String - server
Mask String - server
Port Number
Outputs
All input properties are implicitly available as output properties. Additionally, the Server resource produces the following output properties:
Look up Existing Server Resource
Get an existing Server 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>, opts?: CustomResourceOptions): Server@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> Serverfunc GetServer(ctx *Context, name string, id IDInput, state *ServerState, opts ...ResourceOption) (*Server, error)public static Server Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static Server get(String name, Output<String> id, CustomResourceOptions options)resources: existingServer: type: freebox:vpn:Server get: id: ${id}import {
to = freebox_vpn_server.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state ServerState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Package Details
- Repository
- freebox
- License
Freeboxpublished on Friday, Jul 3, 2026 by OlivierPaquien