cdktf-cdktf-provider-upcloud 11.0.3__py3-none-any.whl → 12.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cdktf-cdktf-provider-upcloud might be problematic. Click here for more details.
- cdktf_cdktf_provider_upcloud/__init__.py +3 -3
- cdktf_cdktf_provider_upcloud/_jsii/__init__.py +2 -2
- cdktf_cdktf_provider_upcloud/_jsii/provider-upcloud@12.0.0.jsii.tgz +0 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_hosts/__init__.py +11 -7
- cdktf_cdktf_provider_upcloud/data_upcloud_ip_addresses/__init__.py +11 -7
- cdktf_cdktf_provider_upcloud/data_upcloud_kubernetes_cluster/__init__.py +11 -7
- cdktf_cdktf_provider_upcloud/data_upcloud_managed_database_mysql_sessions/__init__.py +26 -22
- cdktf_cdktf_provider_upcloud/data_upcloud_managed_database_opensearch_indices/__init__.py +17 -13
- cdktf_cdktf_provider_upcloud/data_upcloud_managed_database_postgresql_sessions/__init__.py +34 -30
- cdktf_cdktf_provider_upcloud/data_upcloud_managed_database_redis_sessions/__init__.py +26 -22
- cdktf_cdktf_provider_upcloud/data_upcloud_managed_object_storage_regions/__init__.py +11 -7
- cdktf_cdktf_provider_upcloud/data_upcloud_networks/__init__.py +17 -13
- cdktf_cdktf_provider_upcloud/data_upcloud_storage/__init__.py +29 -25
- cdktf_cdktf_provider_upcloud/data_upcloud_tags/__init__.py +11 -7
- cdktf_cdktf_provider_upcloud/data_upcloud_zone/__init__.py +14 -10
- cdktf_cdktf_provider_upcloud/data_upcloud_zones/__init__.py +14 -10
- cdktf_cdktf_provider_upcloud/firewall_rules/__init__.py +45 -41
- cdktf_cdktf_provider_upcloud/floating_ip_address/__init__.py +23 -19
- cdktf_cdktf_provider_upcloud/gateway/__init__.py +32 -28
- cdktf_cdktf_provider_upcloud/kubernetes_cluster/__init__.py +32 -28
- cdktf_cdktf_provider_upcloud/kubernetes_node_group/__init__.py +51 -47
- cdktf_cdktf_provider_upcloud/loadbalancer/__init__.py +40 -36
- cdktf_cdktf_provider_upcloud/loadbalancer_backend/__init__.py +68 -64
- cdktf_cdktf_provider_upcloud/loadbalancer_backend_tls_config/__init__.py +20 -16
- cdktf_cdktf_provider_upcloud/loadbalancer_dynamic_backend_member/__init__.py +32 -28
- cdktf_cdktf_provider_upcloud/loadbalancer_dynamic_certificate_bundle/__init__.py +20 -16
- cdktf_cdktf_provider_upcloud/loadbalancer_frontend/__init__.py +43 -39
- cdktf_cdktf_provider_upcloud/loadbalancer_frontend_rule/__init__.py +169 -165
- cdktf_cdktf_provider_upcloud/loadbalancer_frontend_tls_config/__init__.py +20 -16
- cdktf_cdktf_provider_upcloud/loadbalancer_manual_certificate_bundle/__init__.py +23 -19
- cdktf_cdktf_provider_upcloud/loadbalancer_resolver/__init__.py +35 -31
- cdktf_cdktf_provider_upcloud/loadbalancer_static_backend_member/__init__.py +32 -28
- cdktf_cdktf_provider_upcloud/managed_database_logical_database/__init__.py +23 -19
- cdktf_cdktf_provider_upcloud/managed_database_mysql/__init__.py +179 -175
- cdktf_cdktf_provider_upcloud/managed_database_opensearch/__init__.py +77 -73
- cdktf_cdktf_provider_upcloud/managed_database_postgresql/__init__.py +296 -292
- cdktf_cdktf_provider_upcloud/managed_database_redis/__init__.py +104 -100
- cdktf_cdktf_provider_upcloud/managed_database_user/__init__.py +54 -50
- cdktf_cdktf_provider_upcloud/managed_object_storage/__init__.py +77 -30
- cdktf_cdktf_provider_upcloud/managed_object_storage_user_access_key/__init__.py +23 -19
- cdktf_cdktf_provider_upcloud/network/__init__.py +44 -40
- cdktf_cdktf_provider_upcloud/object_storage/__init__.py +34 -30
- cdktf_cdktf_provider_upcloud/provider/__init__.py +29 -25
- cdktf_cdktf_provider_upcloud/router/__init__.py +23 -19
- cdktf_cdktf_provider_upcloud/server/__init__.py +145 -141
- cdktf_cdktf_provider_upcloud/server_group/__init__.py +23 -19
- cdktf_cdktf_provider_upcloud/storage/__init__.py +59 -55
- cdktf_cdktf_provider_upcloud/tag/__init__.py +20 -16
- {cdktf_cdktf_provider_upcloud-11.0.3.dist-info → cdktf_cdktf_provider_upcloud-12.0.0.dist-info}/LICENSE +1 -1
- {cdktf_cdktf_provider_upcloud-11.0.3.dist-info → cdktf_cdktf_provider_upcloud-12.0.0.dist-info}/METADATA +5 -5
- cdktf_cdktf_provider_upcloud-12.0.0.dist-info/RECORD +54 -0
- cdktf_cdktf_provider_upcloud/_jsii/provider-upcloud@11.0.3.jsii.tgz +0 -0
- cdktf_cdktf_provider_upcloud-11.0.3.dist-info/RECORD +0 -54
- {cdktf_cdktf_provider_upcloud-11.0.3.dist-info → cdktf_cdktf_provider_upcloud-12.0.0.dist-info}/WHEEL +0 -0
- {cdktf_cdktf_provider_upcloud-11.0.3.dist-info → cdktf_cdktf_provider_upcloud-12.0.0.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'''
|
|
2
2
|
# `upcloud_server`
|
|
3
3
|
|
|
4
|
-
Refer to the Terraform
|
|
4
|
+
Refer to the Terraform Registry for docs: [`upcloud_server`](https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server).
|
|
5
5
|
'''
|
|
6
6
|
import abc
|
|
7
7
|
import builtins
|
|
@@ -26,7 +26,7 @@ class Server(
|
|
|
26
26
|
metaclass=jsii.JSIIMeta,
|
|
27
27
|
jsii_type="@cdktf/provider-upcloud.server.Server",
|
|
28
28
|
):
|
|
29
|
-
'''Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
29
|
+
'''Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server upcloud_server}.'''
|
|
30
30
|
|
|
31
31
|
def __init__(
|
|
32
32
|
self,
|
|
@@ -63,32 +63,32 @@ class Server(
|
|
|
63
63
|
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
64
64
|
provisioners: typing.Optional[typing.Sequence[typing.Union[typing.Union[_cdktf_9a9027ec.FileProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.LocalExecProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.RemoteExecProvisioner, typing.Dict[builtins.str, typing.Any]]]]] = None,
|
|
65
65
|
) -> None:
|
|
66
|
-
'''Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
66
|
+
'''Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server upcloud_server} Resource.
|
|
67
67
|
|
|
68
68
|
:param scope: The scope in which to define this construct.
|
|
69
69
|
:param id_: The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
70
|
-
:param hostname: A valid domain name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
71
|
-
:param network_interface: network_interface block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
72
|
-
:param zone: The zone in which the server will be hosted, e.g. ``de-fra1``. You can list available zones with ``upctl zone list``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
73
|
-
:param boot_order: The boot device order, ``cdrom``|``disk``|``network`` or comma separated combination of those values. Defaults to ``disk``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
74
|
-
:param cpu: The number of CPU for the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
75
|
-
:param firewall: Are firewall rules active for the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
76
|
-
:param host: Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
77
|
-
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
78
|
-
:param labels: Key-value pairs to classify the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
79
|
-
:param login: login block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
80
|
-
:param mem: The size of memory for the server (in megabytes). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
81
|
-
:param metadata: Is the metadata service active for the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
82
|
-
:param nic_model: The model of the server's network interfaces. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
83
|
-
:param plan: The pricing plan used for the server. You can list available server plans with ``upctl server plans``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
84
|
-
:param simple_backup: simple_backup block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
85
|
-
:param storage_devices: storage_devices block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
86
|
-
:param tags: The server related tags. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
87
|
-
:param template: template block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
88
|
-
:param timezone: A timezone identifier, e.g. ``Europe/Helsinki``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
89
|
-
:param title: A short, informational description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
90
|
-
:param user_data: Defines URL for a server setup script, or the script body itself. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
91
|
-
:param video_model: The model of the server's video interface. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
70
|
+
:param hostname: A valid domain name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#hostname Server#hostname}
|
|
71
|
+
:param network_interface: network_interface block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#network_interface Server#network_interface}
|
|
72
|
+
:param zone: The zone in which the server will be hosted, e.g. ``de-fra1``. You can list available zones with ``upctl zone list``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#zone Server#zone}
|
|
73
|
+
:param boot_order: The boot device order, ``cdrom``|``disk``|``network`` or comma separated combination of those values. Defaults to ``disk``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#boot_order Server#boot_order}
|
|
74
|
+
:param cpu: The number of CPU for the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#cpu Server#cpu}
|
|
75
|
+
:param firewall: Are firewall rules active for the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#firewall Server#firewall}
|
|
76
|
+
:param host: Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#host Server#host}
|
|
77
|
+
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#id Server#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
|
|
78
|
+
:param labels: Key-value pairs to classify the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#labels Server#labels}
|
|
79
|
+
:param login: login block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#login Server#login}
|
|
80
|
+
:param mem: The size of memory for the server (in megabytes). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#mem Server#mem}
|
|
81
|
+
:param metadata: Is the metadata service active for the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#metadata Server#metadata}
|
|
82
|
+
:param nic_model: The model of the server's network interfaces. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#nic_model Server#nic_model}
|
|
83
|
+
:param plan: The pricing plan used for the server. You can list available server plans with ``upctl server plans``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#plan Server#plan}
|
|
84
|
+
:param simple_backup: simple_backup block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#simple_backup Server#simple_backup}
|
|
85
|
+
:param storage_devices: storage_devices block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#storage_devices Server#storage_devices}
|
|
86
|
+
:param tags: The server related tags. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#tags Server#tags}
|
|
87
|
+
:param template: template block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#template Server#template}
|
|
88
|
+
:param timezone: A timezone identifier, e.g. ``Europe/Helsinki``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#timezone Server#timezone}
|
|
89
|
+
:param title: A short, informational description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#title Server#title}
|
|
90
|
+
:param user_data: Defines URL for a server setup script, or the script body itself. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#user_data Server#user_data}
|
|
91
|
+
:param video_model: The model of the server's video interface. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#video_model Server#video_model}
|
|
92
92
|
:param connection:
|
|
93
93
|
:param count:
|
|
94
94
|
:param depends_on:
|
|
@@ -148,7 +148,7 @@ class Server(
|
|
|
148
148
|
|
|
149
149
|
:param scope: The scope in which to define this construct.
|
|
150
150
|
:param import_to_id: The construct id used in the generated config for the Server to import.
|
|
151
|
-
:param import_from_id: The id of the existing Server that should be imported. Refer to the {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
151
|
+
:param import_from_id: The id of the existing Server that should be imported. Refer to the {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#import import section} in the documentation of this resource for the id to use
|
|
152
152
|
:param provider: ? Optional instance of the provider where the Server to import is found.
|
|
153
153
|
'''
|
|
154
154
|
if __debug__:
|
|
@@ -169,10 +169,10 @@ class Server(
|
|
|
169
169
|
user: typing.Optional[builtins.str] = None,
|
|
170
170
|
) -> None:
|
|
171
171
|
'''
|
|
172
|
-
:param create_password: Indicates a password should be create to allow access. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
173
|
-
:param keys: A list of ssh keys to access the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
174
|
-
:param password_delivery: The delivery method for the server's root password (one of ``none``, ``email`` or ``sms``). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
175
|
-
:param user: Username to be create to access the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
172
|
+
:param create_password: Indicates a password should be create to allow access. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#create_password Server#create_password}
|
|
173
|
+
:param keys: A list of ssh keys to access the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#keys Server#keys}
|
|
174
|
+
:param password_delivery: The delivery method for the server's root password (one of ``none``, ``email`` or ``sms``). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#password_delivery Server#password_delivery}
|
|
175
|
+
:param user: Username to be create to access the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#user Server#user}
|
|
176
176
|
'''
|
|
177
177
|
value = ServerLogin(
|
|
178
178
|
create_password=create_password,
|
|
@@ -199,8 +199,8 @@ class Server(
|
|
|
199
199
|
@jsii.member(jsii_name="putSimpleBackup")
|
|
200
200
|
def put_simple_backup(self, *, plan: builtins.str, time: builtins.str) -> None:
|
|
201
201
|
'''
|
|
202
|
-
:param plan: Simple backup plan. Accepted values: daily, dailies, weeklies, monthlies. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
203
|
-
:param time: Time of the day at which backup will be taken. Should be provided in a hhmm format (e.g. 2230). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
202
|
+
:param plan: Simple backup plan. Accepted values: daily, dailies, weeklies, monthlies. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#plan Server#plan}
|
|
203
|
+
:param time: Time of the day at which backup will be taken. Should be provided in a hhmm format (e.g. 2230). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#time Server#time}
|
|
204
204
|
'''
|
|
205
205
|
value = ServerSimpleBackup(plan=plan, time=time)
|
|
206
206
|
|
|
@@ -233,14 +233,14 @@ class Server(
|
|
|
233
233
|
title: typing.Optional[builtins.str] = None,
|
|
234
234
|
) -> None:
|
|
235
235
|
'''
|
|
236
|
-
:param storage: A valid storage UUID or template name. You can list available public templates with ``upctl storage list --public --template`` and available private templates with ``upctl storage list --template``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
237
|
-
:param address: The device address the storage will be attached to (``scsi``|``virtio``|``ide``). Leave ``address_position`` field empty to auto-select next available address from that bus. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
238
|
-
:param address_position: The device position in the given bus (defined via field ``address``). For example ``0:0``, or ``0``. Leave empty to auto-select next available address in the given bus. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
239
|
-
:param backup_rule: backup_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
240
|
-
:param delete_autoresize_backup: If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
241
|
-
:param filesystem_autoresize: If set to true, provider will attempt to resize partition and filesystem when the size of template storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
242
|
-
:param size: The size of the storage in gigabytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
243
|
-
:param title: A short, informative description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
236
|
+
:param storage: A valid storage UUID or template name. You can list available public templates with ``upctl storage list --public --template`` and available private templates with ``upctl storage list --template``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#storage Server#storage}
|
|
237
|
+
:param address: The device address the storage will be attached to (``scsi``|``virtio``|``ide``). Leave ``address_position`` field empty to auto-select next available address from that bus. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address Server#address}
|
|
238
|
+
:param address_position: The device position in the given bus (defined via field ``address``). For example ``0:0``, or ``0``. Leave empty to auto-select next available address in the given bus. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address_position Server#address_position}
|
|
239
|
+
:param backup_rule: backup_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#backup_rule Server#backup_rule}
|
|
240
|
+
:param delete_autoresize_backup: If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#delete_autoresize_backup Server#delete_autoresize_backup}
|
|
241
|
+
:param filesystem_autoresize: If set to true, provider will attempt to resize partition and filesystem when the size of template storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#filesystem_autoresize Server#filesystem_autoresize}
|
|
242
|
+
:param size: The size of the storage in gigabytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#size Server#size}
|
|
243
|
+
:param title: A short, informative description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#title Server#title}
|
|
244
244
|
'''
|
|
245
245
|
value = ServerTemplate(
|
|
246
246
|
storage=storage,
|
|
@@ -335,6 +335,10 @@ class Server(
|
|
|
335
335
|
def _synthesize_attributes(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
336
336
|
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "synthesizeAttributes", []))
|
|
337
337
|
|
|
338
|
+
@jsii.member(jsii_name="synthesizeHclAttributes")
|
|
339
|
+
def _synthesize_hcl_attributes(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
340
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "synthesizeHclAttributes", []))
|
|
341
|
+
|
|
338
342
|
@jsii.python.classproperty
|
|
339
343
|
@jsii.member(jsii_name="tfResourceType")
|
|
340
344
|
def TF_RESOURCE_TYPE(cls) -> builtins.str:
|
|
@@ -773,28 +777,28 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
773
777
|
:param lifecycle:
|
|
774
778
|
:param provider:
|
|
775
779
|
:param provisioners:
|
|
776
|
-
:param hostname: A valid domain name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
777
|
-
:param network_interface: network_interface block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
778
|
-
:param zone: The zone in which the server will be hosted, e.g. ``de-fra1``. You can list available zones with ``upctl zone list``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
779
|
-
:param boot_order: The boot device order, ``cdrom``|``disk``|``network`` or comma separated combination of those values. Defaults to ``disk``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
780
|
-
:param cpu: The number of CPU for the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
781
|
-
:param firewall: Are firewall rules active for the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
782
|
-
:param host: Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
783
|
-
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
784
|
-
:param labels: Key-value pairs to classify the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
785
|
-
:param login: login block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
786
|
-
:param mem: The size of memory for the server (in megabytes). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
787
|
-
:param metadata: Is the metadata service active for the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
788
|
-
:param nic_model: The model of the server's network interfaces. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
789
|
-
:param plan: The pricing plan used for the server. You can list available server plans with ``upctl server plans``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
790
|
-
:param simple_backup: simple_backup block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
791
|
-
:param storage_devices: storage_devices block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
792
|
-
:param tags: The server related tags. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
793
|
-
:param template: template block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
794
|
-
:param timezone: A timezone identifier, e.g. ``Europe/Helsinki``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
795
|
-
:param title: A short, informational description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
796
|
-
:param user_data: Defines URL for a server setup script, or the script body itself. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
797
|
-
:param video_model: The model of the server's video interface. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
780
|
+
:param hostname: A valid domain name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#hostname Server#hostname}
|
|
781
|
+
:param network_interface: network_interface block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#network_interface Server#network_interface}
|
|
782
|
+
:param zone: The zone in which the server will be hosted, e.g. ``de-fra1``. You can list available zones with ``upctl zone list``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#zone Server#zone}
|
|
783
|
+
:param boot_order: The boot device order, ``cdrom``|``disk``|``network`` or comma separated combination of those values. Defaults to ``disk``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#boot_order Server#boot_order}
|
|
784
|
+
:param cpu: The number of CPU for the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#cpu Server#cpu}
|
|
785
|
+
:param firewall: Are firewall rules active for the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#firewall Server#firewall}
|
|
786
|
+
:param host: Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#host Server#host}
|
|
787
|
+
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#id Server#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
|
|
788
|
+
:param labels: Key-value pairs to classify the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#labels Server#labels}
|
|
789
|
+
:param login: login block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#login Server#login}
|
|
790
|
+
:param mem: The size of memory for the server (in megabytes). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#mem Server#mem}
|
|
791
|
+
:param metadata: Is the metadata service active for the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#metadata Server#metadata}
|
|
792
|
+
:param nic_model: The model of the server's network interfaces. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#nic_model Server#nic_model}
|
|
793
|
+
:param plan: The pricing plan used for the server. You can list available server plans with ``upctl server plans``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#plan Server#plan}
|
|
794
|
+
:param simple_backup: simple_backup block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#simple_backup Server#simple_backup}
|
|
795
|
+
:param storage_devices: storage_devices block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#storage_devices Server#storage_devices}
|
|
796
|
+
:param tags: The server related tags. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#tags Server#tags}
|
|
797
|
+
:param template: template block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#template Server#template}
|
|
798
|
+
:param timezone: A timezone identifier, e.g. ``Europe/Helsinki``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#timezone Server#timezone}
|
|
799
|
+
:param title: A short, informational description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#title Server#title}
|
|
800
|
+
:param user_data: Defines URL for a server setup script, or the script body itself. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#user_data Server#user_data}
|
|
801
|
+
:param video_model: The model of the server's video interface. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#video_model Server#video_model}
|
|
798
802
|
'''
|
|
799
803
|
if isinstance(lifecycle, dict):
|
|
800
804
|
lifecycle = _cdktf_9a9027ec.TerraformResourceLifecycle(**lifecycle)
|
|
@@ -961,7 +965,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
961
965
|
def hostname(self) -> builtins.str:
|
|
962
966
|
'''A valid domain name.
|
|
963
967
|
|
|
964
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
968
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#hostname Server#hostname}
|
|
965
969
|
'''
|
|
966
970
|
result = self._values.get("hostname")
|
|
967
971
|
assert result is not None, "Required property 'hostname' is missing"
|
|
@@ -973,7 +977,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
973
977
|
) -> typing.Union[_cdktf_9a9027ec.IResolvable, typing.List["ServerNetworkInterface"]]:
|
|
974
978
|
'''network_interface block.
|
|
975
979
|
|
|
976
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
980
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#network_interface Server#network_interface}
|
|
977
981
|
'''
|
|
978
982
|
result = self._values.get("network_interface")
|
|
979
983
|
assert result is not None, "Required property 'network_interface' is missing"
|
|
@@ -983,7 +987,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
983
987
|
def zone(self) -> builtins.str:
|
|
984
988
|
'''The zone in which the server will be hosted, e.g. ``de-fra1``. You can list available zones with ``upctl zone list``.
|
|
985
989
|
|
|
986
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
990
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#zone Server#zone}
|
|
987
991
|
'''
|
|
988
992
|
result = self._values.get("zone")
|
|
989
993
|
assert result is not None, "Required property 'zone' is missing"
|
|
@@ -993,7 +997,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
993
997
|
def boot_order(self) -> typing.Optional[builtins.str]:
|
|
994
998
|
'''The boot device order, ``cdrom``|``disk``|``network`` or comma separated combination of those values. Defaults to ``disk``.
|
|
995
999
|
|
|
996
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1000
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#boot_order Server#boot_order}
|
|
997
1001
|
'''
|
|
998
1002
|
result = self._values.get("boot_order")
|
|
999
1003
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1002,7 +1006,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1002
1006
|
def cpu(self) -> typing.Optional[jsii.Number]:
|
|
1003
1007
|
'''The number of CPU for the server.
|
|
1004
1008
|
|
|
1005
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1009
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#cpu Server#cpu}
|
|
1006
1010
|
'''
|
|
1007
1011
|
result = self._values.get("cpu")
|
|
1008
1012
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
@@ -1013,7 +1017,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1013
1017
|
) -> typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]]:
|
|
1014
1018
|
'''Are firewall rules active for the server.
|
|
1015
1019
|
|
|
1016
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1020
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#firewall Server#firewall}
|
|
1017
1021
|
'''
|
|
1018
1022
|
result = self._values.get("firewall")
|
|
1019
1023
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
@@ -1024,14 +1028,14 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1024
1028
|
|
|
1025
1029
|
Refers to value from host -attribute. Only available for private cloud hosts
|
|
1026
1030
|
|
|
1027
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1031
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#host Server#host}
|
|
1028
1032
|
'''
|
|
1029
1033
|
result = self._values.get("host")
|
|
1030
1034
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
1031
1035
|
|
|
1032
1036
|
@builtins.property
|
|
1033
1037
|
def id(self) -> typing.Optional[builtins.str]:
|
|
1034
|
-
'''Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1038
|
+
'''Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#id Server#id}.
|
|
1035
1039
|
|
|
1036
1040
|
Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
1037
1041
|
If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
|
|
@@ -1043,7 +1047,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1043
1047
|
def labels(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
1044
1048
|
'''Key-value pairs to classify the server.
|
|
1045
1049
|
|
|
1046
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1050
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#labels Server#labels}
|
|
1047
1051
|
'''
|
|
1048
1052
|
result = self._values.get("labels")
|
|
1049
1053
|
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
@@ -1052,7 +1056,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1052
1056
|
def login(self) -> typing.Optional["ServerLogin"]:
|
|
1053
1057
|
'''login block.
|
|
1054
1058
|
|
|
1055
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1059
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#login Server#login}
|
|
1056
1060
|
'''
|
|
1057
1061
|
result = self._values.get("login")
|
|
1058
1062
|
return typing.cast(typing.Optional["ServerLogin"], result)
|
|
@@ -1061,7 +1065,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1061
1065
|
def mem(self) -> typing.Optional[jsii.Number]:
|
|
1062
1066
|
'''The size of memory for the server (in megabytes).
|
|
1063
1067
|
|
|
1064
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1068
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#mem Server#mem}
|
|
1065
1069
|
'''
|
|
1066
1070
|
result = self._values.get("mem")
|
|
1067
1071
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
@@ -1072,7 +1076,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1072
1076
|
) -> typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]]:
|
|
1073
1077
|
'''Is the metadata service active for the server.
|
|
1074
1078
|
|
|
1075
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1079
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#metadata Server#metadata}
|
|
1076
1080
|
'''
|
|
1077
1081
|
result = self._values.get("metadata")
|
|
1078
1082
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
@@ -1081,7 +1085,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1081
1085
|
def nic_model(self) -> typing.Optional[builtins.str]:
|
|
1082
1086
|
'''The model of the server's network interfaces.
|
|
1083
1087
|
|
|
1084
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1088
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#nic_model Server#nic_model}
|
|
1085
1089
|
'''
|
|
1086
1090
|
result = self._values.get("nic_model")
|
|
1087
1091
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1090,7 +1094,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1090
1094
|
def plan(self) -> typing.Optional[builtins.str]:
|
|
1091
1095
|
'''The pricing plan used for the server. You can list available server plans with ``upctl server plans``.
|
|
1092
1096
|
|
|
1093
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1097
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#plan Server#plan}
|
|
1094
1098
|
'''
|
|
1095
1099
|
result = self._values.get("plan")
|
|
1096
1100
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1099,7 +1103,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1099
1103
|
def simple_backup(self) -> typing.Optional["ServerSimpleBackup"]:
|
|
1100
1104
|
'''simple_backup block.
|
|
1101
1105
|
|
|
1102
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1106
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#simple_backup Server#simple_backup}
|
|
1103
1107
|
'''
|
|
1104
1108
|
result = self._values.get("simple_backup")
|
|
1105
1109
|
return typing.cast(typing.Optional["ServerSimpleBackup"], result)
|
|
@@ -1110,7 +1114,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1110
1114
|
) -> typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.List["ServerStorageDevices"]]]:
|
|
1111
1115
|
'''storage_devices block.
|
|
1112
1116
|
|
|
1113
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1117
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#storage_devices Server#storage_devices}
|
|
1114
1118
|
'''
|
|
1115
1119
|
result = self._values.get("storage_devices")
|
|
1116
1120
|
return typing.cast(typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.List["ServerStorageDevices"]]], result)
|
|
@@ -1119,7 +1123,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1119
1123
|
def tags(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
1120
1124
|
'''The server related tags.
|
|
1121
1125
|
|
|
1122
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1126
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#tags Server#tags}
|
|
1123
1127
|
'''
|
|
1124
1128
|
result = self._values.get("tags")
|
|
1125
1129
|
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
@@ -1128,7 +1132,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1128
1132
|
def template(self) -> typing.Optional["ServerTemplate"]:
|
|
1129
1133
|
'''template block.
|
|
1130
1134
|
|
|
1131
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1135
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#template Server#template}
|
|
1132
1136
|
'''
|
|
1133
1137
|
result = self._values.get("template")
|
|
1134
1138
|
return typing.cast(typing.Optional["ServerTemplate"], result)
|
|
@@ -1137,7 +1141,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1137
1141
|
def timezone(self) -> typing.Optional[builtins.str]:
|
|
1138
1142
|
'''A timezone identifier, e.g. ``Europe/Helsinki``.
|
|
1139
1143
|
|
|
1140
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1144
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#timezone Server#timezone}
|
|
1141
1145
|
'''
|
|
1142
1146
|
result = self._values.get("timezone")
|
|
1143
1147
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1146,7 +1150,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1146
1150
|
def title(self) -> typing.Optional[builtins.str]:
|
|
1147
1151
|
'''A short, informational description.
|
|
1148
1152
|
|
|
1149
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1153
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#title Server#title}
|
|
1150
1154
|
'''
|
|
1151
1155
|
result = self._values.get("title")
|
|
1152
1156
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1155,7 +1159,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1155
1159
|
def user_data(self) -> typing.Optional[builtins.str]:
|
|
1156
1160
|
'''Defines URL for a server setup script, or the script body itself.
|
|
1157
1161
|
|
|
1158
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1162
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#user_data Server#user_data}
|
|
1159
1163
|
'''
|
|
1160
1164
|
result = self._values.get("user_data")
|
|
1161
1165
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1164,7 +1168,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1164
1168
|
def video_model(self) -> typing.Optional[builtins.str]:
|
|
1165
1169
|
'''The model of the server's video interface.
|
|
1166
1170
|
|
|
1167
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1171
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#video_model Server#video_model}
|
|
1168
1172
|
'''
|
|
1169
1173
|
result = self._values.get("video_model")
|
|
1170
1174
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1201,10 +1205,10 @@ class ServerLogin:
|
|
|
1201
1205
|
user: typing.Optional[builtins.str] = None,
|
|
1202
1206
|
) -> None:
|
|
1203
1207
|
'''
|
|
1204
|
-
:param create_password: Indicates a password should be create to allow access. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1205
|
-
:param keys: A list of ssh keys to access the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1206
|
-
:param password_delivery: The delivery method for the server's root password (one of ``none``, ``email`` or ``sms``). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1207
|
-
:param user: Username to be create to access the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1208
|
+
:param create_password: Indicates a password should be create to allow access. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#create_password Server#create_password}
|
|
1209
|
+
:param keys: A list of ssh keys to access the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#keys Server#keys}
|
|
1210
|
+
:param password_delivery: The delivery method for the server's root password (one of ``none``, ``email`` or ``sms``). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#password_delivery Server#password_delivery}
|
|
1211
|
+
:param user: Username to be create to access the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#user Server#user}
|
|
1208
1212
|
'''
|
|
1209
1213
|
if __debug__:
|
|
1210
1214
|
type_hints = typing.get_type_hints(_typecheckingstub__ba39a2ee1d911b76fb74554613ea114a5a572a0bf44aae12941ef4644ef7377a)
|
|
@@ -1228,7 +1232,7 @@ class ServerLogin:
|
|
|
1228
1232
|
) -> typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]]:
|
|
1229
1233
|
'''Indicates a password should be create to allow access.
|
|
1230
1234
|
|
|
1231
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1235
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#create_password Server#create_password}
|
|
1232
1236
|
'''
|
|
1233
1237
|
result = self._values.get("create_password")
|
|
1234
1238
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
@@ -1237,7 +1241,7 @@ class ServerLogin:
|
|
|
1237
1241
|
def keys(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
1238
1242
|
'''A list of ssh keys to access the server.
|
|
1239
1243
|
|
|
1240
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1244
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#keys Server#keys}
|
|
1241
1245
|
'''
|
|
1242
1246
|
result = self._values.get("keys")
|
|
1243
1247
|
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
@@ -1246,7 +1250,7 @@ class ServerLogin:
|
|
|
1246
1250
|
def password_delivery(self) -> typing.Optional[builtins.str]:
|
|
1247
1251
|
'''The delivery method for the server's root password (one of ``none``, ``email`` or ``sms``).
|
|
1248
1252
|
|
|
1249
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1253
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#password_delivery Server#password_delivery}
|
|
1250
1254
|
'''
|
|
1251
1255
|
result = self._values.get("password_delivery")
|
|
1252
1256
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1255,7 +1259,7 @@ class ServerLogin:
|
|
|
1255
1259
|
def user(self) -> typing.Optional[builtins.str]:
|
|
1256
1260
|
'''Username to be create to access the server.
|
|
1257
1261
|
|
|
1258
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1262
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#user Server#user}
|
|
1259
1263
|
'''
|
|
1260
1264
|
result = self._values.get("user")
|
|
1261
1265
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1420,12 +1424,12 @@ class ServerNetworkInterface:
|
|
|
1420
1424
|
source_ip_filtering: typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]] = None,
|
|
1421
1425
|
) -> None:
|
|
1422
1426
|
'''
|
|
1423
|
-
:param type: Network interface type. For private network interfaces, a network must be specified with an existing network id. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1424
|
-
:param bootable: ``true`` if this interface should be used for network booting. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1425
|
-
:param ip_address: The assigned IP address. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1426
|
-
:param ip_address_family: The IP address type of this interface (one of ``IPv4`` or ``IPv6``). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1427
|
-
:param network: The unique ID of a network to attach this network to. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1428
|
-
:param source_ip_filtering: ``true`` if source IP should be filtered. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1427
|
+
:param type: Network interface type. For private network interfaces, a network must be specified with an existing network id. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#type Server#type}
|
|
1428
|
+
:param bootable: ``true`` if this interface should be used for network booting. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#bootable Server#bootable}
|
|
1429
|
+
:param ip_address: The assigned IP address. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#ip_address Server#ip_address}
|
|
1430
|
+
:param ip_address_family: The IP address type of this interface (one of ``IPv4`` or ``IPv6``). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#ip_address_family Server#ip_address_family}
|
|
1431
|
+
:param network: The unique ID of a network to attach this network to. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#network Server#network}
|
|
1432
|
+
:param source_ip_filtering: ``true`` if source IP should be filtered. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#source_ip_filtering Server#source_ip_filtering}
|
|
1429
1433
|
'''
|
|
1430
1434
|
if __debug__:
|
|
1431
1435
|
type_hints = typing.get_type_hints(_typecheckingstub__fd495e0f43b555636347e658837821c13810606782b5f840f155acbfbcf8b7ea)
|
|
@@ -1453,7 +1457,7 @@ class ServerNetworkInterface:
|
|
|
1453
1457
|
def type(self) -> builtins.str:
|
|
1454
1458
|
'''Network interface type. For private network interfaces, a network must be specified with an existing network id.
|
|
1455
1459
|
|
|
1456
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1460
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#type Server#type}
|
|
1457
1461
|
'''
|
|
1458
1462
|
result = self._values.get("type")
|
|
1459
1463
|
assert result is not None, "Required property 'type' is missing"
|
|
@@ -1465,7 +1469,7 @@ class ServerNetworkInterface:
|
|
|
1465
1469
|
) -> typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]]:
|
|
1466
1470
|
'''``true`` if this interface should be used for network booting.
|
|
1467
1471
|
|
|
1468
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1472
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#bootable Server#bootable}
|
|
1469
1473
|
'''
|
|
1470
1474
|
result = self._values.get("bootable")
|
|
1471
1475
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
@@ -1474,7 +1478,7 @@ class ServerNetworkInterface:
|
|
|
1474
1478
|
def ip_address(self) -> typing.Optional[builtins.str]:
|
|
1475
1479
|
'''The assigned IP address.
|
|
1476
1480
|
|
|
1477
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1481
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#ip_address Server#ip_address}
|
|
1478
1482
|
'''
|
|
1479
1483
|
result = self._values.get("ip_address")
|
|
1480
1484
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1483,7 +1487,7 @@ class ServerNetworkInterface:
|
|
|
1483
1487
|
def ip_address_family(self) -> typing.Optional[builtins.str]:
|
|
1484
1488
|
'''The IP address type of this interface (one of ``IPv4`` or ``IPv6``).
|
|
1485
1489
|
|
|
1486
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1490
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#ip_address_family Server#ip_address_family}
|
|
1487
1491
|
'''
|
|
1488
1492
|
result = self._values.get("ip_address_family")
|
|
1489
1493
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1492,7 +1496,7 @@ class ServerNetworkInterface:
|
|
|
1492
1496
|
def network(self) -> typing.Optional[builtins.str]:
|
|
1493
1497
|
'''The unique ID of a network to attach this network to.
|
|
1494
1498
|
|
|
1495
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1499
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#network Server#network}
|
|
1496
1500
|
'''
|
|
1497
1501
|
result = self._values.get("network")
|
|
1498
1502
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1503,7 +1507,7 @@ class ServerNetworkInterface:
|
|
|
1503
1507
|
) -> typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]]:
|
|
1504
1508
|
'''``true`` if source IP should be filtered.
|
|
1505
1509
|
|
|
1506
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1510
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#source_ip_filtering Server#source_ip_filtering}
|
|
1507
1511
|
'''
|
|
1508
1512
|
result = self._values.get("source_ip_filtering")
|
|
1509
1513
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
@@ -1806,8 +1810,8 @@ class ServerNetworkInterfaceOutputReference(
|
|
|
1806
1810
|
class ServerSimpleBackup:
|
|
1807
1811
|
def __init__(self, *, plan: builtins.str, time: builtins.str) -> None:
|
|
1808
1812
|
'''
|
|
1809
|
-
:param plan: Simple backup plan. Accepted values: daily, dailies, weeklies, monthlies. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1810
|
-
:param time: Time of the day at which backup will be taken. Should be provided in a hhmm format (e.g. 2230). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1813
|
+
:param plan: Simple backup plan. Accepted values: daily, dailies, weeklies, monthlies. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#plan Server#plan}
|
|
1814
|
+
:param time: Time of the day at which backup will be taken. Should be provided in a hhmm format (e.g. 2230). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#time Server#time}
|
|
1811
1815
|
'''
|
|
1812
1816
|
if __debug__:
|
|
1813
1817
|
type_hints = typing.get_type_hints(_typecheckingstub__e0bd20cac4bdde3b91171ae0bf44e53e9583617261eaf0793a175a7d8da3cee3)
|
|
@@ -1822,7 +1826,7 @@ class ServerSimpleBackup:
|
|
|
1822
1826
|
def plan(self) -> builtins.str:
|
|
1823
1827
|
'''Simple backup plan. Accepted values: daily, dailies, weeklies, monthlies.
|
|
1824
1828
|
|
|
1825
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1829
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#plan Server#plan}
|
|
1826
1830
|
'''
|
|
1827
1831
|
result = self._values.get("plan")
|
|
1828
1832
|
assert result is not None, "Required property 'plan' is missing"
|
|
@@ -1832,7 +1836,7 @@ class ServerSimpleBackup:
|
|
|
1832
1836
|
def time(self) -> builtins.str:
|
|
1833
1837
|
'''Time of the day at which backup will be taken. Should be provided in a hhmm format (e.g. 2230).
|
|
1834
1838
|
|
|
1835
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1839
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#time Server#time}
|
|
1836
1840
|
'''
|
|
1837
1841
|
result = self._values.get("time")
|
|
1838
1842
|
assert result is not None, "Required property 'time' is missing"
|
|
@@ -1937,10 +1941,10 @@ class ServerStorageDevices:
|
|
|
1937
1941
|
type: typing.Optional[builtins.str] = None,
|
|
1938
1942
|
) -> None:
|
|
1939
1943
|
'''
|
|
1940
|
-
:param storage: A valid storage UUID. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1941
|
-
:param address: The device address the storage will be attached to (``scsi``|``virtio``|``ide``). Leave ``address_position`` field empty to auto-select next available address from that bus. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1942
|
-
:param address_position: The device position in the given bus (defined via field ``address``). For example ``0:0``, or ``0``. Leave empty to auto-select next available address in the given bus. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1943
|
-
:param type: The device type the storage will be attached as. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1944
|
+
:param storage: A valid storage UUID. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#storage Server#storage}
|
|
1945
|
+
:param address: The device address the storage will be attached to (``scsi``|``virtio``|``ide``). Leave ``address_position`` field empty to auto-select next available address from that bus. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address Server#address}
|
|
1946
|
+
:param address_position: The device position in the given bus (defined via field ``address``). For example ``0:0``, or ``0``. Leave empty to auto-select next available address in the given bus. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address_position Server#address_position}
|
|
1947
|
+
:param type: The device type the storage will be attached as. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#type Server#type}
|
|
1944
1948
|
'''
|
|
1945
1949
|
if __debug__:
|
|
1946
1950
|
type_hints = typing.get_type_hints(_typecheckingstub__deefc3ca26ddd4529dd49d665d0a7e4d178ed9e318d7a6ed318fe000f57713ea)
|
|
@@ -1962,7 +1966,7 @@ class ServerStorageDevices:
|
|
|
1962
1966
|
def storage(self) -> builtins.str:
|
|
1963
1967
|
'''A valid storage UUID.
|
|
1964
1968
|
|
|
1965
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1969
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#storage Server#storage}
|
|
1966
1970
|
'''
|
|
1967
1971
|
result = self._values.get("storage")
|
|
1968
1972
|
assert result is not None, "Required property 'storage' is missing"
|
|
@@ -1974,7 +1978,7 @@ class ServerStorageDevices:
|
|
|
1974
1978
|
|
|
1975
1979
|
Leave ``address_position`` field empty to auto-select next available address from that bus.
|
|
1976
1980
|
|
|
1977
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1981
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address Server#address}
|
|
1978
1982
|
'''
|
|
1979
1983
|
result = self._values.get("address")
|
|
1980
1984
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1985,7 +1989,7 @@ class ServerStorageDevices:
|
|
|
1985
1989
|
|
|
1986
1990
|
For example ``0:0``, or ``0``. Leave empty to auto-select next available address in the given bus.
|
|
1987
1991
|
|
|
1988
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1992
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address_position Server#address_position}
|
|
1989
1993
|
'''
|
|
1990
1994
|
result = self._values.get("address_position")
|
|
1991
1995
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1994,7 +1998,7 @@ class ServerStorageDevices:
|
|
|
1994
1998
|
def type(self) -> typing.Optional[builtins.str]:
|
|
1995
1999
|
'''The device type the storage will be attached as.
|
|
1996
2000
|
|
|
1997
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2001
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#type Server#type}
|
|
1998
2002
|
'''
|
|
1999
2003
|
result = self._values.get("type")
|
|
2000
2004
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -2253,14 +2257,14 @@ class ServerTemplate:
|
|
|
2253
2257
|
title: typing.Optional[builtins.str] = None,
|
|
2254
2258
|
) -> None:
|
|
2255
2259
|
'''
|
|
2256
|
-
:param storage: A valid storage UUID or template name. You can list available public templates with ``upctl storage list --public --template`` and available private templates with ``upctl storage list --template``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2257
|
-
:param address: The device address the storage will be attached to (``scsi``|``virtio``|``ide``). Leave ``address_position`` field empty to auto-select next available address from that bus. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2258
|
-
:param address_position: The device position in the given bus (defined via field ``address``). For example ``0:0``, or ``0``. Leave empty to auto-select next available address in the given bus. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2259
|
-
:param backup_rule: backup_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2260
|
-
:param delete_autoresize_backup: If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2261
|
-
:param filesystem_autoresize: If set to true, provider will attempt to resize partition and filesystem when the size of template storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2262
|
-
:param size: The size of the storage in gigabytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2263
|
-
:param title: A short, informative description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2260
|
+
:param storage: A valid storage UUID or template name. You can list available public templates with ``upctl storage list --public --template`` and available private templates with ``upctl storage list --template``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#storage Server#storage}
|
|
2261
|
+
:param address: The device address the storage will be attached to (``scsi``|``virtio``|``ide``). Leave ``address_position`` field empty to auto-select next available address from that bus. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address Server#address}
|
|
2262
|
+
:param address_position: The device position in the given bus (defined via field ``address``). For example ``0:0``, or ``0``. Leave empty to auto-select next available address in the given bus. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address_position Server#address_position}
|
|
2263
|
+
:param backup_rule: backup_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#backup_rule Server#backup_rule}
|
|
2264
|
+
:param delete_autoresize_backup: If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#delete_autoresize_backup Server#delete_autoresize_backup}
|
|
2265
|
+
:param filesystem_autoresize: If set to true, provider will attempt to resize partition and filesystem when the size of template storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#filesystem_autoresize Server#filesystem_autoresize}
|
|
2266
|
+
:param size: The size of the storage in gigabytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#size Server#size}
|
|
2267
|
+
:param title: A short, informative description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#title Server#title}
|
|
2264
2268
|
'''
|
|
2265
2269
|
if isinstance(backup_rule, dict):
|
|
2266
2270
|
backup_rule = ServerTemplateBackupRule(**backup_rule)
|
|
@@ -2298,7 +2302,7 @@ class ServerTemplate:
|
|
|
2298
2302
|
|
|
2299
2303
|
You can list available public templates with ``upctl storage list --public --template`` and available private templates with ``upctl storage list --template``.
|
|
2300
2304
|
|
|
2301
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2305
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#storage Server#storage}
|
|
2302
2306
|
'''
|
|
2303
2307
|
result = self._values.get("storage")
|
|
2304
2308
|
assert result is not None, "Required property 'storage' is missing"
|
|
@@ -2310,7 +2314,7 @@ class ServerTemplate:
|
|
|
2310
2314
|
|
|
2311
2315
|
Leave ``address_position`` field empty to auto-select next available address from that bus.
|
|
2312
2316
|
|
|
2313
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2317
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address Server#address}
|
|
2314
2318
|
'''
|
|
2315
2319
|
result = self._values.get("address")
|
|
2316
2320
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -2321,7 +2325,7 @@ class ServerTemplate:
|
|
|
2321
2325
|
|
|
2322
2326
|
For example ``0:0``, or ``0``. Leave empty to auto-select next available address in the given bus.
|
|
2323
2327
|
|
|
2324
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2328
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address_position Server#address_position}
|
|
2325
2329
|
'''
|
|
2326
2330
|
result = self._values.get("address_position")
|
|
2327
2331
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -2330,7 +2334,7 @@ class ServerTemplate:
|
|
|
2330
2334
|
def backup_rule(self) -> typing.Optional["ServerTemplateBackupRule"]:
|
|
2331
2335
|
'''backup_rule block.
|
|
2332
2336
|
|
|
2333
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2337
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#backup_rule Server#backup_rule}
|
|
2334
2338
|
'''
|
|
2335
2339
|
result = self._values.get("backup_rule")
|
|
2336
2340
|
return typing.cast(typing.Optional["ServerTemplateBackupRule"], result)
|
|
@@ -2341,7 +2345,7 @@ class ServerTemplate:
|
|
|
2341
2345
|
) -> typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]]:
|
|
2342
2346
|
'''If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
|
|
2343
2347
|
|
|
2344
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2348
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#delete_autoresize_backup Server#delete_autoresize_backup}
|
|
2345
2349
|
'''
|
|
2346
2350
|
result = self._values.get("delete_autoresize_backup")
|
|
2347
2351
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
@@ -2356,7 +2360,7 @@ class ServerTemplate:
|
|
|
2356
2360
|
to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true).
|
|
2357
2361
|
Taking and keeping backups incure costs.
|
|
2358
2362
|
|
|
2359
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2363
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#filesystem_autoresize Server#filesystem_autoresize}
|
|
2360
2364
|
'''
|
|
2361
2365
|
result = self._values.get("filesystem_autoresize")
|
|
2362
2366
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
@@ -2365,7 +2369,7 @@ class ServerTemplate:
|
|
|
2365
2369
|
def size(self) -> typing.Optional[jsii.Number]:
|
|
2366
2370
|
'''The size of the storage in gigabytes.
|
|
2367
2371
|
|
|
2368
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2372
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#size Server#size}
|
|
2369
2373
|
'''
|
|
2370
2374
|
result = self._values.get("size")
|
|
2371
2375
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
@@ -2374,7 +2378,7 @@ class ServerTemplate:
|
|
|
2374
2378
|
def title(self) -> typing.Optional[builtins.str]:
|
|
2375
2379
|
'''A short, informative description.
|
|
2376
2380
|
|
|
2377
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2381
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#title Server#title}
|
|
2378
2382
|
'''
|
|
2379
2383
|
result = self._values.get("title")
|
|
2380
2384
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -2405,9 +2409,9 @@ class ServerTemplateBackupRule:
|
|
|
2405
2409
|
time: builtins.str,
|
|
2406
2410
|
) -> None:
|
|
2407
2411
|
'''
|
|
2408
|
-
:param interval: The weekday when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2409
|
-
:param retention: The number of days before a backup is automatically deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2410
|
-
:param time: The time of day when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2412
|
+
:param interval: The weekday when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#interval Server#interval}
|
|
2413
|
+
:param retention: The number of days before a backup is automatically deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#retention Server#retention}
|
|
2414
|
+
:param time: The time of day when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#time Server#time}
|
|
2411
2415
|
'''
|
|
2412
2416
|
if __debug__:
|
|
2413
2417
|
type_hints = typing.get_type_hints(_typecheckingstub__0da849dc75d0030fd1866a13a6da5cd60acc32df054d4b38c21875c14c699895)
|
|
@@ -2424,7 +2428,7 @@ class ServerTemplateBackupRule:
|
|
|
2424
2428
|
def interval(self) -> builtins.str:
|
|
2425
2429
|
'''The weekday when the backup is created.
|
|
2426
2430
|
|
|
2427
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2431
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#interval Server#interval}
|
|
2428
2432
|
'''
|
|
2429
2433
|
result = self._values.get("interval")
|
|
2430
2434
|
assert result is not None, "Required property 'interval' is missing"
|
|
@@ -2434,7 +2438,7 @@ class ServerTemplateBackupRule:
|
|
|
2434
2438
|
def retention(self) -> jsii.Number:
|
|
2435
2439
|
'''The number of days before a backup is automatically deleted.
|
|
2436
2440
|
|
|
2437
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2441
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#retention Server#retention}
|
|
2438
2442
|
'''
|
|
2439
2443
|
result = self._values.get("retention")
|
|
2440
2444
|
assert result is not None, "Required property 'retention' is missing"
|
|
@@ -2444,7 +2448,7 @@ class ServerTemplateBackupRule:
|
|
|
2444
2448
|
def time(self) -> builtins.str:
|
|
2445
2449
|
'''The time of day when the backup is created.
|
|
2446
2450
|
|
|
2447
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2451
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#time Server#time}
|
|
2448
2452
|
'''
|
|
2449
2453
|
result = self._values.get("time")
|
|
2450
2454
|
assert result is not None, "Required property 'time' is missing"
|
|
@@ -2575,9 +2579,9 @@ class ServerTemplateOutputReference(
|
|
|
2575
2579
|
time: builtins.str,
|
|
2576
2580
|
) -> None:
|
|
2577
2581
|
'''
|
|
2578
|
-
:param interval: The weekday when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2579
|
-
:param retention: The number of days before a backup is automatically deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2580
|
-
:param time: The time of day when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2582
|
+
:param interval: The weekday when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#interval Server#interval}
|
|
2583
|
+
:param retention: The number of days before a backup is automatically deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#retention Server#retention}
|
|
2584
|
+
:param time: The time of day when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#time Server#time}
|
|
2581
2585
|
'''
|
|
2582
2586
|
value = ServerTemplateBackupRule(
|
|
2583
2587
|
interval=interval, retention=retention, time=time
|