pulumiverse-scaleway 1.35.0a1761031391__py3-none-any.whl → 1.39.0a1764841480__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.
- pulumiverse_scaleway/__init__.py +38 -0
- pulumiverse_scaleway/_inputs.py +271 -166
- pulumiverse_scaleway/audittrail/__init__.py +10 -0
- pulumiverse_scaleway/audittrail/get_event.py +410 -0
- pulumiverse_scaleway/audittrail/outputs.py +234 -0
- pulumiverse_scaleway/baremetal_server.py +159 -0
- pulumiverse_scaleway/billing/get_consumptions.py +4 -0
- pulumiverse_scaleway/block/snapshot.py +78 -0
- pulumiverse_scaleway/block_snapshot.py +78 -0
- pulumiverse_scaleway/cockpit_grafana_user.py +0 -42
- pulumiverse_scaleway/database_instance.py +105 -55
- pulumiverse_scaleway/database_user.py +6 -6
- pulumiverse_scaleway/databases/_inputs.py +97 -3
- pulumiverse_scaleway/databases/get_instance.py +12 -1
- pulumiverse_scaleway/databases/instance.py +105 -55
- pulumiverse_scaleway/databases/outputs.py +127 -2
- pulumiverse_scaleway/databases/user.py +6 -6
- pulumiverse_scaleway/datawarehouse/__init__.py +13 -0
- pulumiverse_scaleway/datawarehouse/_inputs.py +149 -0
- pulumiverse_scaleway/datawarehouse/database.py +338 -0
- pulumiverse_scaleway/datawarehouse/deployment.py +821 -0
- pulumiverse_scaleway/datawarehouse/outputs.py +113 -0
- pulumiverse_scaleway/datawarehouse/user.py +451 -0
- pulumiverse_scaleway/domain/record.py +4 -4
- pulumiverse_scaleway/domain_record.py +4 -4
- pulumiverse_scaleway/edge_services_cache_stage.py +30 -0
- pulumiverse_scaleway/edge_services_dns_stage.py +28 -0
- pulumiverse_scaleway/elasticmetal/get_offer.py +2 -0
- pulumiverse_scaleway/elasticmetal/get_server.py +12 -1
- pulumiverse_scaleway/elasticmetal/server.py +159 -0
- pulumiverse_scaleway/file_filesystem.py +39 -35
- pulumiverse_scaleway/get_baremetal_offer.py +2 -0
- pulumiverse_scaleway/get_baremetal_server.py +12 -1
- pulumiverse_scaleway/get_billing_consumptions.py +4 -0
- pulumiverse_scaleway/get_database_instance.py +12 -1
- pulumiverse_scaleway/get_instance_ip.py +14 -2
- pulumiverse_scaleway/get_instance_server.py +13 -83
- pulumiverse_scaleway/get_k8s_version.py +12 -1
- pulumiverse_scaleway/get_kubernetes_cluster.py +34 -1
- pulumiverse_scaleway/get_loadbalancer.py +12 -1
- pulumiverse_scaleway/get_loadbalancer_certificate.py +60 -0
- pulumiverse_scaleway/iam/__init__.py +1 -0
- pulumiverse_scaleway/iam/get_policy.py +293 -0
- pulumiverse_scaleway/iam/outputs.py +52 -0
- pulumiverse_scaleway/inference/deployment.py +36 -0
- pulumiverse_scaleway/inference/model.py +7 -7
- pulumiverse_scaleway/inference_deployment.py +36 -0
- pulumiverse_scaleway/instance/_inputs.py +155 -144
- pulumiverse_scaleway/instance/get_ip.py +14 -2
- pulumiverse_scaleway/instance/get_server.py +13 -83
- pulumiverse_scaleway/instance/image.py +94 -40
- pulumiverse_scaleway/instance/outputs.py +164 -167
- pulumiverse_scaleway/instance/server.py +116 -244
- pulumiverse_scaleway/instance/user_data.py +4 -4
- pulumiverse_scaleway/instance/volume.py +14 -0
- pulumiverse_scaleway/instance_image.py +94 -40
- pulumiverse_scaleway/instance_server.py +116 -244
- pulumiverse_scaleway/instance_user_data.py +4 -4
- pulumiverse_scaleway/instance_volume.py +14 -0
- pulumiverse_scaleway/iot/device.py +0 -38
- pulumiverse_scaleway/iot/hub.py +11 -11
- pulumiverse_scaleway/iot/route.py +20 -20
- pulumiverse_scaleway/iot_device.py +0 -38
- pulumiverse_scaleway/iot_hub.py +11 -11
- pulumiverse_scaleway/iot_route.py +20 -20
- pulumiverse_scaleway/ipam/_inputs.py +6 -6
- pulumiverse_scaleway/ipam/ip.py +35 -7
- pulumiverse_scaleway/ipam/ip_reverse_dns.py +70 -0
- pulumiverse_scaleway/ipam/outputs.py +4 -4
- pulumiverse_scaleway/ipam_ip.py +35 -7
- pulumiverse_scaleway/ipam_ip_reverse_dns.py +70 -0
- pulumiverse_scaleway/key_manager_key.py +134 -25
- pulumiverse_scaleway/kubernetes/cluster.py +290 -4
- pulumiverse_scaleway/kubernetes/get_cluster.py +34 -1
- pulumiverse_scaleway/kubernetes/get_version.py +12 -1
- pulumiverse_scaleway/kubernetes/pool.py +7 -7
- pulumiverse_scaleway/kubernetes_cluster.py +290 -4
- pulumiverse_scaleway/kubernetes_node_pool.py +7 -7
- pulumiverse_scaleway/loadbalancer.py +55 -1
- pulumiverse_scaleway/loadbalancers/__init__.py +1 -0
- pulumiverse_scaleway/loadbalancers/_inputs.py +13 -13
- pulumiverse_scaleway/loadbalancers/get_certificate.py +60 -0
- pulumiverse_scaleway/loadbalancers/get_load_balancer.py +12 -1
- pulumiverse_scaleway/loadbalancers/load_balancer.py +55 -1
- pulumiverse_scaleway/loadbalancers/outputs.py +9 -9
- pulumiverse_scaleway/loadbalancers/private_network.py +505 -0
- pulumiverse_scaleway/mongo_db_instance.py +14 -14
- pulumiverse_scaleway/mongodb/instance.py +14 -14
- pulumiverse_scaleway/network/gateway_network.py +7 -7
- pulumiverse_scaleway/object/__init__.py +1 -0
- pulumiverse_scaleway/object/bucket_policy.py +0 -64
- pulumiverse_scaleway/object/get.py +290 -0
- pulumiverse_scaleway/object/item.py +37 -7
- pulumiverse_scaleway/object_bucket_policy.py +0 -64
- pulumiverse_scaleway/object_item.py +37 -7
- pulumiverse_scaleway/observability/__init__.py +1 -0
- pulumiverse_scaleway/observability/get_grafana.py +103 -0
- pulumiverse_scaleway/observability/get_sources.py +6 -6
- pulumiverse_scaleway/observability/grafana_user.py +0 -42
- pulumiverse_scaleway/observability/outputs.py +2 -2
- pulumiverse_scaleway/outputs.py +304 -182
- pulumiverse_scaleway/pulumi-plugin.json +1 -1
- pulumiverse_scaleway/tem/domain.py +42 -0
- pulumiverse_scaleway/tem_domain.py +42 -0
- pulumiverse_scaleway/vpc_gateway_network.py +7 -7
- {pulumiverse_scaleway-1.35.0a1761031391.dist-info → pulumiverse_scaleway-1.39.0a1764841480.dist-info}/METADATA +1 -1
- {pulumiverse_scaleway-1.35.0a1761031391.dist-info → pulumiverse_scaleway-1.39.0a1764841480.dist-info}/RECORD +109 -96
- {pulumiverse_scaleway-1.35.0a1761031391.dist-info → pulumiverse_scaleway-1.39.0a1764841480.dist-info}/WHEEL +0 -0
- {pulumiverse_scaleway-1.35.0a1761031391.dist-info → pulumiverse_scaleway-1.39.0a1764841480.dist-info}/top_level.txt +0 -0
|
@@ -28,7 +28,7 @@ class ServerArgs:
|
|
|
28
28
|
bootscript_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
29
29
|
cloud_init: Optional[pulumi.Input[_builtins.str]] = None,
|
|
30
30
|
enable_dynamic_ip: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
31
|
-
|
|
31
|
+
filesystems: Optional[pulumi.Input[Sequence[pulumi.Input['ServerFilesystemArgs']]]] = None,
|
|
32
32
|
image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
33
33
|
ip_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
34
34
|
ip_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
@@ -67,21 +67,21 @@ class ServerArgs:
|
|
|
67
67
|
:param pulumi.Input[_builtins.str] bootscript_id: ID of the target bootscript (set boot_type to bootscript)
|
|
68
68
|
:param pulumi.Input[_builtins.str] cloud_init: The cloud init script associated with this server
|
|
69
69
|
:param pulumi.Input[_builtins.bool] enable_dynamic_ip: If true a dynamic IP will be attached to the server.
|
|
70
|
-
:param pulumi.Input[
|
|
71
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
70
|
+
:param pulumi.Input[Sequence[pulumi.Input['ServerFilesystemArgs']]] filesystems: List of filesystems attached to the server.
|
|
72
71
|
:param pulumi.Input[_builtins.str] image: The UUID or the label of the base image used by the server. You can use [this endpoint](https://www.scaleway.com/en/developers/api/marketplace/#path-marketplace-images-list-marketplace-images)
|
|
73
72
|
to find either the right `label` or the right local image `ID` for a given `type`. Optional when creating an instance with an existing root volume.
|
|
74
73
|
|
|
75
74
|
You can check the available labels with our [CLI](https://www.scaleway.com/en/docs/compute/instances/api-cli/creating-managing-instances-with-cliv2/). ```scw marketplace image list```
|
|
76
75
|
|
|
77
76
|
To retrieve more information by label please use: ```scw marketplace image get label=<LABEL>```
|
|
77
|
+
|
|
78
|
+
To obtain a local-image UUID from a label, please use: ```scw marketplace local-image list image-label=<LABEL>```
|
|
78
79
|
:param pulumi.Input[_builtins.str] ip_id: The ID of the reserved IP that is attached to the server.
|
|
79
80
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] ip_ids: List of ID of reserved IPs that are attached to the server. Cannot be used with `ip_id`.
|
|
80
81
|
|
|
81
82
|
> `ip_id` to `ip_ids` migration: if moving the ip from the old `ip_id` field to the new `ip_ids`, it should not detach the ip.
|
|
82
83
|
:param pulumi.Input[_builtins.str] name: The name of the server.
|
|
83
|
-
:param pulumi.Input[_builtins.str] placement_group_id: The [placement group](https://www.scaleway.com/en/developers/api/instance/#path-security-groups-update-a-security-group the server is attached to.
|
|
84
|
-
|
|
84
|
+
:param pulumi.Input[_builtins.str] placement_group_id: The [placement group](<https://www.scaleway.com/en/developers/api/instance/#path-security-groups-update-a-security-group> the server is attached to.
|
|
85
85
|
|
|
86
86
|
> **Important:** When updating `placement_group_id` the `state` must be set to `stopped`, otherwise it will fail.
|
|
87
87
|
:param pulumi.Input[Sequence[pulumi.Input['ServerPrivateIpArgs']]] private_ips: The list of private IPv4 and IPv6 addresses associated with the resource.
|
|
@@ -119,11 +119,8 @@ class ServerArgs:
|
|
|
119
119
|
pulumi.set(__self__, "cloud_init", cloud_init)
|
|
120
120
|
if enable_dynamic_ip is not None:
|
|
121
121
|
pulumi.set(__self__, "enable_dynamic_ip", enable_dynamic_ip)
|
|
122
|
-
if
|
|
123
|
-
|
|
124
|
-
pulumi.log.warn("""enable_ipv6 is deprecated: Please use a instance.Ip with a `routed_ipv6` type""")
|
|
125
|
-
if enable_ipv6 is not None:
|
|
126
|
-
pulumi.set(__self__, "enable_ipv6", enable_ipv6)
|
|
122
|
+
if filesystems is not None:
|
|
123
|
+
pulumi.set(__self__, "filesystems", filesystems)
|
|
127
124
|
if image is not None:
|
|
128
125
|
pulumi.set(__self__, "image", image)
|
|
129
126
|
if ip_id is not None:
|
|
@@ -257,18 +254,16 @@ class ServerArgs:
|
|
|
257
254
|
pulumi.set(self, "enable_dynamic_ip", value)
|
|
258
255
|
|
|
259
256
|
@_builtins.property
|
|
260
|
-
@pulumi.getter
|
|
261
|
-
|
|
262
|
-
def enable_ipv6(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
257
|
+
@pulumi.getter
|
|
258
|
+
def filesystems(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServerFilesystemArgs']]]]:
|
|
263
259
|
"""
|
|
264
|
-
|
|
265
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
260
|
+
List of filesystems attached to the server.
|
|
266
261
|
"""
|
|
267
|
-
return pulumi.get(self, "
|
|
262
|
+
return pulumi.get(self, "filesystems")
|
|
268
263
|
|
|
269
|
-
@
|
|
270
|
-
def
|
|
271
|
-
pulumi.set(self, "
|
|
264
|
+
@filesystems.setter
|
|
265
|
+
def filesystems(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ServerFilesystemArgs']]]]):
|
|
266
|
+
pulumi.set(self, "filesystems", value)
|
|
272
267
|
|
|
273
268
|
@_builtins.property
|
|
274
269
|
@pulumi.getter
|
|
@@ -280,6 +275,8 @@ class ServerArgs:
|
|
|
280
275
|
You can check the available labels with our [CLI](https://www.scaleway.com/en/docs/compute/instances/api-cli/creating-managing-instances-with-cliv2/). ```scw marketplace image list```
|
|
281
276
|
|
|
282
277
|
To retrieve more information by label please use: ```scw marketplace image get label=<LABEL>```
|
|
278
|
+
|
|
279
|
+
To obtain a local-image UUID from a label, please use: ```scw marketplace local-image list image-label=<LABEL>```
|
|
283
280
|
"""
|
|
284
281
|
return pulumi.get(self, "image")
|
|
285
282
|
|
|
@@ -329,8 +326,7 @@ class ServerArgs:
|
|
|
329
326
|
@pulumi.getter(name="placementGroupId")
|
|
330
327
|
def placement_group_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
331
328
|
"""
|
|
332
|
-
The [placement group](https://www.scaleway.com/en/developers/api/instance/#path-security-groups-update-a-security-group the server is attached to.
|
|
333
|
-
|
|
329
|
+
The [placement group](<https://www.scaleway.com/en/developers/api/instance/#path-security-groups-update-a-security-group> the server is attached to.
|
|
334
330
|
|
|
335
331
|
> **Important:** When updating `placement_group_id` the `state` must be set to `stopped`, otherwise it will fail.
|
|
336
332
|
"""
|
|
@@ -500,23 +496,18 @@ class _ServerState:
|
|
|
500
496
|
bootscript_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
501
497
|
cloud_init: Optional[pulumi.Input[_builtins.str]] = None,
|
|
502
498
|
enable_dynamic_ip: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
503
|
-
|
|
499
|
+
filesystems: Optional[pulumi.Input[Sequence[pulumi.Input['ServerFilesystemArgs']]]] = None,
|
|
504
500
|
image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
505
501
|
ip_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
506
502
|
ip_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
507
|
-
ipv6_address: Optional[pulumi.Input[_builtins.str]] = None,
|
|
508
|
-
ipv6_gateway: Optional[pulumi.Input[_builtins.str]] = None,
|
|
509
|
-
ipv6_prefix_length: Optional[pulumi.Input[_builtins.int]] = None,
|
|
510
503
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
511
504
|
organization_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
512
505
|
placement_group_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
513
506
|
placement_group_policy_respected: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
514
|
-
private_ip: Optional[pulumi.Input[_builtins.str]] = None,
|
|
515
507
|
private_ips: Optional[pulumi.Input[Sequence[pulumi.Input['ServerPrivateIpArgs']]]] = None,
|
|
516
508
|
private_networks: Optional[pulumi.Input[Sequence[pulumi.Input['ServerPrivateNetworkArgs']]]] = None,
|
|
517
509
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
518
510
|
protected: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
519
|
-
public_ip: Optional[pulumi.Input[_builtins.str]] = None,
|
|
520
511
|
public_ips: Optional[pulumi.Input[Sequence[pulumi.Input['ServerPublicIpArgs']]]] = None,
|
|
521
512
|
replace_on_type_change: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
522
513
|
root_volume: Optional[pulumi.Input['ServerRootVolumeArgs']] = None,
|
|
@@ -541,38 +532,30 @@ class _ServerState:
|
|
|
541
532
|
:param pulumi.Input[_builtins.str] bootscript_id: ID of the target bootscript (set boot_type to bootscript)
|
|
542
533
|
:param pulumi.Input[_builtins.str] cloud_init: The cloud init script associated with this server
|
|
543
534
|
:param pulumi.Input[_builtins.bool] enable_dynamic_ip: If true a dynamic IP will be attached to the server.
|
|
544
|
-
:param pulumi.Input[
|
|
545
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
535
|
+
:param pulumi.Input[Sequence[pulumi.Input['ServerFilesystemArgs']]] filesystems: List of filesystems attached to the server.
|
|
546
536
|
:param pulumi.Input[_builtins.str] image: The UUID or the label of the base image used by the server. You can use [this endpoint](https://www.scaleway.com/en/developers/api/marketplace/#path-marketplace-images-list-marketplace-images)
|
|
547
537
|
to find either the right `label` or the right local image `ID` for a given `type`. Optional when creating an instance with an existing root volume.
|
|
548
538
|
|
|
549
539
|
You can check the available labels with our [CLI](https://www.scaleway.com/en/docs/compute/instances/api-cli/creating-managing-instances-with-cliv2/). ```scw marketplace image list```
|
|
550
540
|
|
|
551
541
|
To retrieve more information by label please use: ```scw marketplace image get label=<LABEL>```
|
|
542
|
+
|
|
543
|
+
To obtain a local-image UUID from a label, please use: ```scw marketplace local-image list image-label=<LABEL>```
|
|
552
544
|
:param pulumi.Input[_builtins.str] ip_id: The ID of the reserved IP that is attached to the server.
|
|
553
545
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] ip_ids: List of ID of reserved IPs that are attached to the server. Cannot be used with `ip_id`.
|
|
554
546
|
|
|
555
547
|
> `ip_id` to `ip_ids` migration: if moving the ip from the old `ip_id` field to the new `ip_ids`, it should not detach the ip.
|
|
556
|
-
:param pulumi.Input[_builtins.str] ipv6_address: The default ipv6 address routed to the server. ( Only set when enable_ipv6 is set to true )
|
|
557
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
558
|
-
:param pulumi.Input[_builtins.str] ipv6_gateway: The ipv6 gateway address. ( Only set when enable_ipv6 is set to true )
|
|
559
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
560
|
-
:param pulumi.Input[_builtins.int] ipv6_prefix_length: The prefix length of the ipv6 subnet routed to the server. ( Only set when enable_ipv6 is set to true )
|
|
561
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
562
548
|
:param pulumi.Input[_builtins.str] name: The name of the server.
|
|
563
549
|
:param pulumi.Input[_builtins.str] organization_id: The organization ID the server is associated with.
|
|
564
|
-
:param pulumi.Input[_builtins.str] placement_group_id: The [placement group](https://www.scaleway.com/en/developers/api/instance/#path-security-groups-update-a-security-group the server is attached to.
|
|
565
|
-
|
|
550
|
+
:param pulumi.Input[_builtins.str] placement_group_id: The [placement group](<https://www.scaleway.com/en/developers/api/instance/#path-security-groups-update-a-security-group> the server is attached to.
|
|
566
551
|
|
|
567
552
|
> **Important:** When updating `placement_group_id` the `state` must be set to `stopped`, otherwise it will fail.
|
|
568
|
-
:param pulumi.Input[_builtins.bool] placement_group_policy_respected: (Deprecated) Always false, use instance_placement_group
|
|
569
|
-
:param pulumi.Input[_builtins.str] private_ip: The Scaleway internal IP address of the server (Deprecated use ipam_ip datasource instead).
|
|
553
|
+
:param pulumi.Input[_builtins.bool] placement_group_policy_respected: (Deprecated) Always false, use instance_placement_group resource to known when the placement group policy is respected.
|
|
570
554
|
:param pulumi.Input[Sequence[pulumi.Input['ServerPrivateIpArgs']]] private_ips: The list of private IPv4 and IPv6 addresses associated with the resource.
|
|
571
555
|
:param pulumi.Input[Sequence[pulumi.Input['ServerPrivateNetworkArgs']]] private_networks: The private network associated with the server.
|
|
572
556
|
Use the `pn_id` key to attach a [private_network](https://www.scaleway.com/en/developers/api/instance/#path-private-nics-list-all-private-nics) on your instance.
|
|
573
557
|
:param pulumi.Input[_builtins.str] project_id: `project_id`) The ID of the project the server is associated with.
|
|
574
558
|
:param pulumi.Input[_builtins.bool] protected: Set to true to activate server protection option.
|
|
575
|
-
:param pulumi.Input[_builtins.str] public_ip: The public IP address of the server (Deprecated use `public_ips` instead).
|
|
576
559
|
:param pulumi.Input[Sequence[pulumi.Input['ServerPublicIpArgs']]] public_ips: The list of public IPs of the server.
|
|
577
560
|
:param pulumi.Input[_builtins.bool] replace_on_type_change: If true, the server will be replaced if `type` is changed. Otherwise, the server will migrate.
|
|
578
561
|
:param pulumi.Input['ServerRootVolumeArgs'] root_volume: Root [volume](https://www.scaleway.com/en/developers/api/instance/#path-volume-types-list-volume-types) attached to the server on creation.
|
|
@@ -608,32 +591,14 @@ class _ServerState:
|
|
|
608
591
|
pulumi.set(__self__, "cloud_init", cloud_init)
|
|
609
592
|
if enable_dynamic_ip is not None:
|
|
610
593
|
pulumi.set(__self__, "enable_dynamic_ip", enable_dynamic_ip)
|
|
611
|
-
if
|
|
612
|
-
|
|
613
|
-
pulumi.log.warn("""enable_ipv6 is deprecated: Please use a instance.Ip with a `routed_ipv6` type""")
|
|
614
|
-
if enable_ipv6 is not None:
|
|
615
|
-
pulumi.set(__self__, "enable_ipv6", enable_ipv6)
|
|
594
|
+
if filesystems is not None:
|
|
595
|
+
pulumi.set(__self__, "filesystems", filesystems)
|
|
616
596
|
if image is not None:
|
|
617
597
|
pulumi.set(__self__, "image", image)
|
|
618
598
|
if ip_id is not None:
|
|
619
599
|
pulumi.set(__self__, "ip_id", ip_id)
|
|
620
600
|
if ip_ids is not None:
|
|
621
601
|
pulumi.set(__self__, "ip_ids", ip_ids)
|
|
622
|
-
if ipv6_address is not None:
|
|
623
|
-
warnings.warn("""Please use a instance.Ip with a `routed_ipv6` type""", DeprecationWarning)
|
|
624
|
-
pulumi.log.warn("""ipv6_address is deprecated: Please use a instance.Ip with a `routed_ipv6` type""")
|
|
625
|
-
if ipv6_address is not None:
|
|
626
|
-
pulumi.set(__self__, "ipv6_address", ipv6_address)
|
|
627
|
-
if ipv6_gateway is not None:
|
|
628
|
-
warnings.warn("""Please use a instance.Ip with a `routed_ipv6` type""", DeprecationWarning)
|
|
629
|
-
pulumi.log.warn("""ipv6_gateway is deprecated: Please use a instance.Ip with a `routed_ipv6` type""")
|
|
630
|
-
if ipv6_gateway is not None:
|
|
631
|
-
pulumi.set(__self__, "ipv6_gateway", ipv6_gateway)
|
|
632
|
-
if ipv6_prefix_length is not None:
|
|
633
|
-
warnings.warn("""Please use a instance.Ip with a `routed_ipv6` type""", DeprecationWarning)
|
|
634
|
-
pulumi.log.warn("""ipv6_prefix_length is deprecated: Please use a instance.Ip with a `routed_ipv6` type""")
|
|
635
|
-
if ipv6_prefix_length is not None:
|
|
636
|
-
pulumi.set(__self__, "ipv6_prefix_length", ipv6_prefix_length)
|
|
637
602
|
if name is not None:
|
|
638
603
|
pulumi.set(__self__, "name", name)
|
|
639
604
|
if organization_id is not None:
|
|
@@ -642,11 +607,6 @@ class _ServerState:
|
|
|
642
607
|
pulumi.set(__self__, "placement_group_id", placement_group_id)
|
|
643
608
|
if placement_group_policy_respected is not None:
|
|
644
609
|
pulumi.set(__self__, "placement_group_policy_respected", placement_group_policy_respected)
|
|
645
|
-
if private_ip is not None:
|
|
646
|
-
warnings.warn("""Use ipam_ip datasource instead to fetch your server's IP in your private network.""", DeprecationWarning)
|
|
647
|
-
pulumi.log.warn("""private_ip is deprecated: Use ipam_ip datasource instead to fetch your server's IP in your private network.""")
|
|
648
|
-
if private_ip is not None:
|
|
649
|
-
pulumi.set(__self__, "private_ip", private_ip)
|
|
650
610
|
if private_ips is not None:
|
|
651
611
|
pulumi.set(__self__, "private_ips", private_ips)
|
|
652
612
|
if private_networks is not None:
|
|
@@ -655,11 +615,6 @@ class _ServerState:
|
|
|
655
615
|
pulumi.set(__self__, "project_id", project_id)
|
|
656
616
|
if protected is not None:
|
|
657
617
|
pulumi.set(__self__, "protected", protected)
|
|
658
|
-
if public_ip is not None:
|
|
659
|
-
warnings.warn("""Use public_ips instead""", DeprecationWarning)
|
|
660
|
-
pulumi.log.warn("""public_ip is deprecated: Use public_ips instead""")
|
|
661
|
-
if public_ip is not None:
|
|
662
|
-
pulumi.set(__self__, "public_ip", public_ip)
|
|
663
618
|
if public_ips is not None:
|
|
664
619
|
pulumi.set(__self__, "public_ips", public_ips)
|
|
665
620
|
if replace_on_type_change is not None:
|
|
@@ -760,18 +715,16 @@ class _ServerState:
|
|
|
760
715
|
pulumi.set(self, "enable_dynamic_ip", value)
|
|
761
716
|
|
|
762
717
|
@_builtins.property
|
|
763
|
-
@pulumi.getter
|
|
764
|
-
|
|
765
|
-
def enable_ipv6(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
718
|
+
@pulumi.getter
|
|
719
|
+
def filesystems(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServerFilesystemArgs']]]]:
|
|
766
720
|
"""
|
|
767
|
-
|
|
768
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
721
|
+
List of filesystems attached to the server.
|
|
769
722
|
"""
|
|
770
|
-
return pulumi.get(self, "
|
|
723
|
+
return pulumi.get(self, "filesystems")
|
|
771
724
|
|
|
772
|
-
@
|
|
773
|
-
def
|
|
774
|
-
pulumi.set(self, "
|
|
725
|
+
@filesystems.setter
|
|
726
|
+
def filesystems(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ServerFilesystemArgs']]]]):
|
|
727
|
+
pulumi.set(self, "filesystems", value)
|
|
775
728
|
|
|
776
729
|
@_builtins.property
|
|
777
730
|
@pulumi.getter
|
|
@@ -783,6 +736,8 @@ class _ServerState:
|
|
|
783
736
|
You can check the available labels with our [CLI](https://www.scaleway.com/en/docs/compute/instances/api-cli/creating-managing-instances-with-cliv2/). ```scw marketplace image list```
|
|
784
737
|
|
|
785
738
|
To retrieve more information by label please use: ```scw marketplace image get label=<LABEL>```
|
|
739
|
+
|
|
740
|
+
To obtain a local-image UUID from a label, please use: ```scw marketplace local-image list image-label=<LABEL>```
|
|
786
741
|
"""
|
|
787
742
|
return pulumi.get(self, "image")
|
|
788
743
|
|
|
@@ -816,48 +771,6 @@ class _ServerState:
|
|
|
816
771
|
def ip_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
817
772
|
pulumi.set(self, "ip_ids", value)
|
|
818
773
|
|
|
819
|
-
@_builtins.property
|
|
820
|
-
@pulumi.getter(name="ipv6Address")
|
|
821
|
-
@_utilities.deprecated("""Please use a instance.Ip with a `routed_ipv6` type""")
|
|
822
|
-
def ipv6_address(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
823
|
-
"""
|
|
824
|
-
The default ipv6 address routed to the server. ( Only set when enable_ipv6 is set to true )
|
|
825
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
826
|
-
"""
|
|
827
|
-
return pulumi.get(self, "ipv6_address")
|
|
828
|
-
|
|
829
|
-
@ipv6_address.setter
|
|
830
|
-
def ipv6_address(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
831
|
-
pulumi.set(self, "ipv6_address", value)
|
|
832
|
-
|
|
833
|
-
@_builtins.property
|
|
834
|
-
@pulumi.getter(name="ipv6Gateway")
|
|
835
|
-
@_utilities.deprecated("""Please use a instance.Ip with a `routed_ipv6` type""")
|
|
836
|
-
def ipv6_gateway(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
837
|
-
"""
|
|
838
|
-
The ipv6 gateway address. ( Only set when enable_ipv6 is set to true )
|
|
839
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
840
|
-
"""
|
|
841
|
-
return pulumi.get(self, "ipv6_gateway")
|
|
842
|
-
|
|
843
|
-
@ipv6_gateway.setter
|
|
844
|
-
def ipv6_gateway(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
845
|
-
pulumi.set(self, "ipv6_gateway", value)
|
|
846
|
-
|
|
847
|
-
@_builtins.property
|
|
848
|
-
@pulumi.getter(name="ipv6PrefixLength")
|
|
849
|
-
@_utilities.deprecated("""Please use a instance.Ip with a `routed_ipv6` type""")
|
|
850
|
-
def ipv6_prefix_length(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
851
|
-
"""
|
|
852
|
-
The prefix length of the ipv6 subnet routed to the server. ( Only set when enable_ipv6 is set to true )
|
|
853
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
854
|
-
"""
|
|
855
|
-
return pulumi.get(self, "ipv6_prefix_length")
|
|
856
|
-
|
|
857
|
-
@ipv6_prefix_length.setter
|
|
858
|
-
def ipv6_prefix_length(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
859
|
-
pulumi.set(self, "ipv6_prefix_length", value)
|
|
860
|
-
|
|
861
774
|
@_builtins.property
|
|
862
775
|
@pulumi.getter
|
|
863
776
|
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
@@ -886,8 +799,7 @@ class _ServerState:
|
|
|
886
799
|
@pulumi.getter(name="placementGroupId")
|
|
887
800
|
def placement_group_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
888
801
|
"""
|
|
889
|
-
The [placement group](https://www.scaleway.com/en/developers/api/instance/#path-security-groups-update-a-security-group the server is attached to.
|
|
890
|
-
|
|
802
|
+
The [placement group](<https://www.scaleway.com/en/developers/api/instance/#path-security-groups-update-a-security-group> the server is attached to.
|
|
891
803
|
|
|
892
804
|
> **Important:** When updating `placement_group_id` the `state` must be set to `stopped`, otherwise it will fail.
|
|
893
805
|
"""
|
|
@@ -901,7 +813,7 @@ class _ServerState:
|
|
|
901
813
|
@pulumi.getter(name="placementGroupPolicyRespected")
|
|
902
814
|
def placement_group_policy_respected(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
903
815
|
"""
|
|
904
|
-
(Deprecated) Always false, use instance_placement_group
|
|
816
|
+
(Deprecated) Always false, use instance_placement_group resource to known when the placement group policy is respected.
|
|
905
817
|
"""
|
|
906
818
|
return pulumi.get(self, "placement_group_policy_respected")
|
|
907
819
|
|
|
@@ -909,19 +821,6 @@ class _ServerState:
|
|
|
909
821
|
def placement_group_policy_respected(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
910
822
|
pulumi.set(self, "placement_group_policy_respected", value)
|
|
911
823
|
|
|
912
|
-
@_builtins.property
|
|
913
|
-
@pulumi.getter(name="privateIp")
|
|
914
|
-
@_utilities.deprecated("""Use ipam_ip datasource instead to fetch your server's IP in your private network.""")
|
|
915
|
-
def private_ip(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
916
|
-
"""
|
|
917
|
-
The Scaleway internal IP address of the server (Deprecated use ipam_ip datasource instead).
|
|
918
|
-
"""
|
|
919
|
-
return pulumi.get(self, "private_ip")
|
|
920
|
-
|
|
921
|
-
@private_ip.setter
|
|
922
|
-
def private_ip(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
923
|
-
pulumi.set(self, "private_ip", value)
|
|
924
|
-
|
|
925
824
|
@_builtins.property
|
|
926
825
|
@pulumi.getter(name="privateIps")
|
|
927
826
|
def private_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServerPrivateIpArgs']]]]:
|
|
@@ -971,19 +870,6 @@ class _ServerState:
|
|
|
971
870
|
def protected(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
972
871
|
pulumi.set(self, "protected", value)
|
|
973
872
|
|
|
974
|
-
@_builtins.property
|
|
975
|
-
@pulumi.getter(name="publicIp")
|
|
976
|
-
@_utilities.deprecated("""Use public_ips instead""")
|
|
977
|
-
def public_ip(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
978
|
-
"""
|
|
979
|
-
The public IP address of the server (Deprecated use `public_ips` instead).
|
|
980
|
-
"""
|
|
981
|
-
return pulumi.get(self, "public_ip")
|
|
982
|
-
|
|
983
|
-
@public_ip.setter
|
|
984
|
-
def public_ip(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
985
|
-
pulumi.set(self, "public_ip", value)
|
|
986
|
-
|
|
987
873
|
@_builtins.property
|
|
988
874
|
@pulumi.getter(name="publicIps")
|
|
989
875
|
def public_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServerPublicIpArgs']]]]:
|
|
@@ -1115,7 +1001,7 @@ class Server(pulumi.CustomResource):
|
|
|
1115
1001
|
bootscript_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1116
1002
|
cloud_init: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1117
1003
|
enable_dynamic_ip: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1118
|
-
|
|
1004
|
+
filesystems: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServerFilesystemArgs', 'ServerFilesystemArgsDict']]]]] = None,
|
|
1119
1005
|
image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1120
1006
|
ip_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1121
1007
|
ip_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
@@ -1177,6 +1063,35 @@ class Server(pulumi.CustomResource):
|
|
|
1177
1063
|
additional_volume_ids=[data.id])
|
|
1178
1064
|
```
|
|
1179
1065
|
|
|
1066
|
+
### With filesystem
|
|
1067
|
+
|
|
1068
|
+
```python
|
|
1069
|
+
import pulumi
|
|
1070
|
+
import pulumiverse_scaleway as scaleway
|
|
1071
|
+
|
|
1072
|
+
volume = scaleway.block.Volume("volume",
|
|
1073
|
+
iops=15000,
|
|
1074
|
+
size_in_gb=15)
|
|
1075
|
+
terraform_instance_filesystem = scaleway.FileFilesystem("terraform_instance_filesystem",
|
|
1076
|
+
name="filesystem-instance-terraform",
|
|
1077
|
+
size_in_gb=100)
|
|
1078
|
+
base = scaleway.instance.Server("base",
|
|
1079
|
+
type="POP2-HM-2C-16G",
|
|
1080
|
+
state="started",
|
|
1081
|
+
tags=[
|
|
1082
|
+
"terraform-test",
|
|
1083
|
+
"scaleway_instance_server",
|
|
1084
|
+
"state",
|
|
1085
|
+
],
|
|
1086
|
+
root_volume={
|
|
1087
|
+
"volume_type": "sbs_volume",
|
|
1088
|
+
"volume_id": volume.id,
|
|
1089
|
+
},
|
|
1090
|
+
filesystems=[{
|
|
1091
|
+
"filesystem_id": terraform_instance_filesystem.id,
|
|
1092
|
+
}])
|
|
1093
|
+
```
|
|
1094
|
+
|
|
1180
1095
|
### With a reserved IP
|
|
1181
1096
|
|
|
1182
1097
|
```python
|
|
@@ -1331,21 +1246,21 @@ class Server(pulumi.CustomResource):
|
|
|
1331
1246
|
:param pulumi.Input[_builtins.str] bootscript_id: ID of the target bootscript (set boot_type to bootscript)
|
|
1332
1247
|
:param pulumi.Input[_builtins.str] cloud_init: The cloud init script associated with this server
|
|
1333
1248
|
:param pulumi.Input[_builtins.bool] enable_dynamic_ip: If true a dynamic IP will be attached to the server.
|
|
1334
|
-
:param pulumi.Input[
|
|
1335
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
1249
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ServerFilesystemArgs', 'ServerFilesystemArgsDict']]]] filesystems: List of filesystems attached to the server.
|
|
1336
1250
|
:param pulumi.Input[_builtins.str] image: The UUID or the label of the base image used by the server. You can use [this endpoint](https://www.scaleway.com/en/developers/api/marketplace/#path-marketplace-images-list-marketplace-images)
|
|
1337
1251
|
to find either the right `label` or the right local image `ID` for a given `type`. Optional when creating an instance with an existing root volume.
|
|
1338
1252
|
|
|
1339
1253
|
You can check the available labels with our [CLI](https://www.scaleway.com/en/docs/compute/instances/api-cli/creating-managing-instances-with-cliv2/). ```scw marketplace image list```
|
|
1340
1254
|
|
|
1341
1255
|
To retrieve more information by label please use: ```scw marketplace image get label=<LABEL>```
|
|
1256
|
+
|
|
1257
|
+
To obtain a local-image UUID from a label, please use: ```scw marketplace local-image list image-label=<LABEL>```
|
|
1342
1258
|
:param pulumi.Input[_builtins.str] ip_id: The ID of the reserved IP that is attached to the server.
|
|
1343
1259
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] ip_ids: List of ID of reserved IPs that are attached to the server. Cannot be used with `ip_id`.
|
|
1344
1260
|
|
|
1345
1261
|
> `ip_id` to `ip_ids` migration: if moving the ip from the old `ip_id` field to the new `ip_ids`, it should not detach the ip.
|
|
1346
1262
|
:param pulumi.Input[_builtins.str] name: The name of the server.
|
|
1347
|
-
:param pulumi.Input[_builtins.str] placement_group_id: The [placement group](https://www.scaleway.com/en/developers/api/instance/#path-security-groups-update-a-security-group the server is attached to.
|
|
1348
|
-
|
|
1263
|
+
:param pulumi.Input[_builtins.str] placement_group_id: The [placement group](<https://www.scaleway.com/en/developers/api/instance/#path-security-groups-update-a-security-group> the server is attached to.
|
|
1349
1264
|
|
|
1350
1265
|
> **Important:** When updating `placement_group_id` the `state` must be set to `stopped`, otherwise it will fail.
|
|
1351
1266
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ServerPrivateIpArgs', 'ServerPrivateIpArgsDict']]]] private_ips: The list of private IPv4 and IPv6 addresses associated with the resource.
|
|
@@ -1421,6 +1336,35 @@ class Server(pulumi.CustomResource):
|
|
|
1421
1336
|
additional_volume_ids=[data.id])
|
|
1422
1337
|
```
|
|
1423
1338
|
|
|
1339
|
+
### With filesystem
|
|
1340
|
+
|
|
1341
|
+
```python
|
|
1342
|
+
import pulumi
|
|
1343
|
+
import pulumiverse_scaleway as scaleway
|
|
1344
|
+
|
|
1345
|
+
volume = scaleway.block.Volume("volume",
|
|
1346
|
+
iops=15000,
|
|
1347
|
+
size_in_gb=15)
|
|
1348
|
+
terraform_instance_filesystem = scaleway.FileFilesystem("terraform_instance_filesystem",
|
|
1349
|
+
name="filesystem-instance-terraform",
|
|
1350
|
+
size_in_gb=100)
|
|
1351
|
+
base = scaleway.instance.Server("base",
|
|
1352
|
+
type="POP2-HM-2C-16G",
|
|
1353
|
+
state="started",
|
|
1354
|
+
tags=[
|
|
1355
|
+
"terraform-test",
|
|
1356
|
+
"scaleway_instance_server",
|
|
1357
|
+
"state",
|
|
1358
|
+
],
|
|
1359
|
+
root_volume={
|
|
1360
|
+
"volume_type": "sbs_volume",
|
|
1361
|
+
"volume_id": volume.id,
|
|
1362
|
+
},
|
|
1363
|
+
filesystems=[{
|
|
1364
|
+
"filesystem_id": terraform_instance_filesystem.id,
|
|
1365
|
+
}])
|
|
1366
|
+
```
|
|
1367
|
+
|
|
1424
1368
|
### With a reserved IP
|
|
1425
1369
|
|
|
1426
1370
|
```python
|
|
@@ -1581,7 +1525,7 @@ class Server(pulumi.CustomResource):
|
|
|
1581
1525
|
bootscript_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1582
1526
|
cloud_init: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1583
1527
|
enable_dynamic_ip: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1584
|
-
|
|
1528
|
+
filesystems: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServerFilesystemArgs', 'ServerFilesystemArgsDict']]]]] = None,
|
|
1585
1529
|
image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1586
1530
|
ip_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1587
1531
|
ip_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
@@ -1615,7 +1559,7 @@ class Server(pulumi.CustomResource):
|
|
|
1615
1559
|
__props__.__dict__["bootscript_id"] = bootscript_id
|
|
1616
1560
|
__props__.__dict__["cloud_init"] = cloud_init
|
|
1617
1561
|
__props__.__dict__["enable_dynamic_ip"] = enable_dynamic_ip
|
|
1618
|
-
__props__.__dict__["
|
|
1562
|
+
__props__.__dict__["filesystems"] = filesystems
|
|
1619
1563
|
__props__.__dict__["image"] = image
|
|
1620
1564
|
__props__.__dict__["ip_id"] = ip_id
|
|
1621
1565
|
__props__.__dict__["ip_ids"] = ip_ids
|
|
@@ -1636,13 +1580,8 @@ class Server(pulumi.CustomResource):
|
|
|
1636
1580
|
__props__.__dict__["type"] = type
|
|
1637
1581
|
__props__.__dict__["user_data"] = user_data
|
|
1638
1582
|
__props__.__dict__["zone"] = zone
|
|
1639
|
-
__props__.__dict__["ipv6_address"] = None
|
|
1640
|
-
__props__.__dict__["ipv6_gateway"] = None
|
|
1641
|
-
__props__.__dict__["ipv6_prefix_length"] = None
|
|
1642
1583
|
__props__.__dict__["organization_id"] = None
|
|
1643
1584
|
__props__.__dict__["placement_group_policy_respected"] = None
|
|
1644
|
-
__props__.__dict__["private_ip"] = None
|
|
1645
|
-
__props__.__dict__["public_ip"] = None
|
|
1646
1585
|
alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="scaleway:index/instanceServer:InstanceServer")])
|
|
1647
1586
|
opts = pulumi.ResourceOptions.merge(opts, alias_opts)
|
|
1648
1587
|
super(Server, __self__).__init__(
|
|
@@ -1661,23 +1600,18 @@ class Server(pulumi.CustomResource):
|
|
|
1661
1600
|
bootscript_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1662
1601
|
cloud_init: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1663
1602
|
enable_dynamic_ip: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1664
|
-
|
|
1603
|
+
filesystems: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServerFilesystemArgs', 'ServerFilesystemArgsDict']]]]] = None,
|
|
1665
1604
|
image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1666
1605
|
ip_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1667
1606
|
ip_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1668
|
-
ipv6_address: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1669
|
-
ipv6_gateway: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1670
|
-
ipv6_prefix_length: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1671
1607
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1672
1608
|
organization_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1673
1609
|
placement_group_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1674
1610
|
placement_group_policy_respected: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1675
|
-
private_ip: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1676
1611
|
private_ips: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServerPrivateIpArgs', 'ServerPrivateIpArgsDict']]]]] = None,
|
|
1677
1612
|
private_networks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServerPrivateNetworkArgs', 'ServerPrivateNetworkArgsDict']]]]] = None,
|
|
1678
1613
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1679
1614
|
protected: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1680
|
-
public_ip: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1681
1615
|
public_ips: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServerPublicIpArgs', 'ServerPublicIpArgsDict']]]]] = None,
|
|
1682
1616
|
replace_on_type_change: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1683
1617
|
root_volume: Optional[pulumi.Input[Union['ServerRootVolumeArgs', 'ServerRootVolumeArgsDict']]] = None,
|
|
@@ -1707,38 +1641,30 @@ class Server(pulumi.CustomResource):
|
|
|
1707
1641
|
:param pulumi.Input[_builtins.str] bootscript_id: ID of the target bootscript (set boot_type to bootscript)
|
|
1708
1642
|
:param pulumi.Input[_builtins.str] cloud_init: The cloud init script associated with this server
|
|
1709
1643
|
:param pulumi.Input[_builtins.bool] enable_dynamic_ip: If true a dynamic IP will be attached to the server.
|
|
1710
|
-
:param pulumi.Input[
|
|
1711
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
1644
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ServerFilesystemArgs', 'ServerFilesystemArgsDict']]]] filesystems: List of filesystems attached to the server.
|
|
1712
1645
|
:param pulumi.Input[_builtins.str] image: The UUID or the label of the base image used by the server. You can use [this endpoint](https://www.scaleway.com/en/developers/api/marketplace/#path-marketplace-images-list-marketplace-images)
|
|
1713
1646
|
to find either the right `label` or the right local image `ID` for a given `type`. Optional when creating an instance with an existing root volume.
|
|
1714
1647
|
|
|
1715
1648
|
You can check the available labels with our [CLI](https://www.scaleway.com/en/docs/compute/instances/api-cli/creating-managing-instances-with-cliv2/). ```scw marketplace image list```
|
|
1716
1649
|
|
|
1717
1650
|
To retrieve more information by label please use: ```scw marketplace image get label=<LABEL>```
|
|
1651
|
+
|
|
1652
|
+
To obtain a local-image UUID from a label, please use: ```scw marketplace local-image list image-label=<LABEL>```
|
|
1718
1653
|
:param pulumi.Input[_builtins.str] ip_id: The ID of the reserved IP that is attached to the server.
|
|
1719
1654
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] ip_ids: List of ID of reserved IPs that are attached to the server. Cannot be used with `ip_id`.
|
|
1720
1655
|
|
|
1721
1656
|
> `ip_id` to `ip_ids` migration: if moving the ip from the old `ip_id` field to the new `ip_ids`, it should not detach the ip.
|
|
1722
|
-
:param pulumi.Input[_builtins.str] ipv6_address: The default ipv6 address routed to the server. ( Only set when enable_ipv6 is set to true )
|
|
1723
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
1724
|
-
:param pulumi.Input[_builtins.str] ipv6_gateway: The ipv6 gateway address. ( Only set when enable_ipv6 is set to true )
|
|
1725
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
1726
|
-
:param pulumi.Input[_builtins.int] ipv6_prefix_length: The prefix length of the ipv6 subnet routed to the server. ( Only set when enable_ipv6 is set to true )
|
|
1727
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
1728
1657
|
:param pulumi.Input[_builtins.str] name: The name of the server.
|
|
1729
1658
|
:param pulumi.Input[_builtins.str] organization_id: The organization ID the server is associated with.
|
|
1730
|
-
:param pulumi.Input[_builtins.str] placement_group_id: The [placement group](https://www.scaleway.com/en/developers/api/instance/#path-security-groups-update-a-security-group the server is attached to.
|
|
1731
|
-
|
|
1659
|
+
:param pulumi.Input[_builtins.str] placement_group_id: The [placement group](<https://www.scaleway.com/en/developers/api/instance/#path-security-groups-update-a-security-group> the server is attached to.
|
|
1732
1660
|
|
|
1733
1661
|
> **Important:** When updating `placement_group_id` the `state` must be set to `stopped`, otherwise it will fail.
|
|
1734
|
-
:param pulumi.Input[_builtins.bool] placement_group_policy_respected: (Deprecated) Always false, use instance_placement_group
|
|
1735
|
-
:param pulumi.Input[_builtins.str] private_ip: The Scaleway internal IP address of the server (Deprecated use ipam_ip datasource instead).
|
|
1662
|
+
:param pulumi.Input[_builtins.bool] placement_group_policy_respected: (Deprecated) Always false, use instance_placement_group resource to known when the placement group policy is respected.
|
|
1736
1663
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ServerPrivateIpArgs', 'ServerPrivateIpArgsDict']]]] private_ips: The list of private IPv4 and IPv6 addresses associated with the resource.
|
|
1737
1664
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ServerPrivateNetworkArgs', 'ServerPrivateNetworkArgsDict']]]] private_networks: The private network associated with the server.
|
|
1738
1665
|
Use the `pn_id` key to attach a [private_network](https://www.scaleway.com/en/developers/api/instance/#path-private-nics-list-all-private-nics) on your instance.
|
|
1739
1666
|
:param pulumi.Input[_builtins.str] project_id: `project_id`) The ID of the project the server is associated with.
|
|
1740
1667
|
:param pulumi.Input[_builtins.bool] protected: Set to true to activate server protection option.
|
|
1741
|
-
:param pulumi.Input[_builtins.str] public_ip: The public IP address of the server (Deprecated use `public_ips` instead).
|
|
1742
1668
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ServerPublicIpArgs', 'ServerPublicIpArgsDict']]]] public_ips: The list of public IPs of the server.
|
|
1743
1669
|
:param pulumi.Input[_builtins.bool] replace_on_type_change: If true, the server will be replaced if `type` is changed. Otherwise, the server will migrate.
|
|
1744
1670
|
:param pulumi.Input[Union['ServerRootVolumeArgs', 'ServerRootVolumeArgsDict']] root_volume: Root [volume](https://www.scaleway.com/en/developers/api/instance/#path-volume-types-list-volume-types) attached to the server on creation.
|
|
@@ -1769,23 +1695,18 @@ class Server(pulumi.CustomResource):
|
|
|
1769
1695
|
__props__.__dict__["bootscript_id"] = bootscript_id
|
|
1770
1696
|
__props__.__dict__["cloud_init"] = cloud_init
|
|
1771
1697
|
__props__.__dict__["enable_dynamic_ip"] = enable_dynamic_ip
|
|
1772
|
-
__props__.__dict__["
|
|
1698
|
+
__props__.__dict__["filesystems"] = filesystems
|
|
1773
1699
|
__props__.__dict__["image"] = image
|
|
1774
1700
|
__props__.__dict__["ip_id"] = ip_id
|
|
1775
1701
|
__props__.__dict__["ip_ids"] = ip_ids
|
|
1776
|
-
__props__.__dict__["ipv6_address"] = ipv6_address
|
|
1777
|
-
__props__.__dict__["ipv6_gateway"] = ipv6_gateway
|
|
1778
|
-
__props__.__dict__["ipv6_prefix_length"] = ipv6_prefix_length
|
|
1779
1702
|
__props__.__dict__["name"] = name
|
|
1780
1703
|
__props__.__dict__["organization_id"] = organization_id
|
|
1781
1704
|
__props__.__dict__["placement_group_id"] = placement_group_id
|
|
1782
1705
|
__props__.__dict__["placement_group_policy_respected"] = placement_group_policy_respected
|
|
1783
|
-
__props__.__dict__["private_ip"] = private_ip
|
|
1784
1706
|
__props__.__dict__["private_ips"] = private_ips
|
|
1785
1707
|
__props__.__dict__["private_networks"] = private_networks
|
|
1786
1708
|
__props__.__dict__["project_id"] = project_id
|
|
1787
1709
|
__props__.__dict__["protected"] = protected
|
|
1788
|
-
__props__.__dict__["public_ip"] = public_ip
|
|
1789
1710
|
__props__.__dict__["public_ips"] = public_ips
|
|
1790
1711
|
__props__.__dict__["replace_on_type_change"] = replace_on_type_change
|
|
1791
1712
|
__props__.__dict__["root_volume"] = root_volume
|
|
@@ -1854,14 +1775,12 @@ class Server(pulumi.CustomResource):
|
|
|
1854
1775
|
return pulumi.get(self, "enable_dynamic_ip")
|
|
1855
1776
|
|
|
1856
1777
|
@_builtins.property
|
|
1857
|
-
@pulumi.getter
|
|
1858
|
-
|
|
1859
|
-
def enable_ipv6(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1778
|
+
@pulumi.getter
|
|
1779
|
+
def filesystems(self) -> pulumi.Output[Sequence['outputs.ServerFilesystem']]:
|
|
1860
1780
|
"""
|
|
1861
|
-
|
|
1862
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
1781
|
+
List of filesystems attached to the server.
|
|
1863
1782
|
"""
|
|
1864
|
-
return pulumi.get(self, "
|
|
1783
|
+
return pulumi.get(self, "filesystems")
|
|
1865
1784
|
|
|
1866
1785
|
@_builtins.property
|
|
1867
1786
|
@pulumi.getter
|
|
@@ -1873,6 +1792,8 @@ class Server(pulumi.CustomResource):
|
|
|
1873
1792
|
You can check the available labels with our [CLI](https://www.scaleway.com/en/docs/compute/instances/api-cli/creating-managing-instances-with-cliv2/). ```scw marketplace image list```
|
|
1874
1793
|
|
|
1875
1794
|
To retrieve more information by label please use: ```scw marketplace image get label=<LABEL>```
|
|
1795
|
+
|
|
1796
|
+
To obtain a local-image UUID from a label, please use: ```scw marketplace local-image list image-label=<LABEL>```
|
|
1876
1797
|
"""
|
|
1877
1798
|
return pulumi.get(self, "image")
|
|
1878
1799
|
|
|
@@ -1894,36 +1815,6 @@ class Server(pulumi.CustomResource):
|
|
|
1894
1815
|
"""
|
|
1895
1816
|
return pulumi.get(self, "ip_ids")
|
|
1896
1817
|
|
|
1897
|
-
@_builtins.property
|
|
1898
|
-
@pulumi.getter(name="ipv6Address")
|
|
1899
|
-
@_utilities.deprecated("""Please use a instance.Ip with a `routed_ipv6` type""")
|
|
1900
|
-
def ipv6_address(self) -> pulumi.Output[_builtins.str]:
|
|
1901
|
-
"""
|
|
1902
|
-
The default ipv6 address routed to the server. ( Only set when enable_ipv6 is set to true )
|
|
1903
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
1904
|
-
"""
|
|
1905
|
-
return pulumi.get(self, "ipv6_address")
|
|
1906
|
-
|
|
1907
|
-
@_builtins.property
|
|
1908
|
-
@pulumi.getter(name="ipv6Gateway")
|
|
1909
|
-
@_utilities.deprecated("""Please use a instance.Ip with a `routed_ipv6` type""")
|
|
1910
|
-
def ipv6_gateway(self) -> pulumi.Output[_builtins.str]:
|
|
1911
|
-
"""
|
|
1912
|
-
The ipv6 gateway address. ( Only set when enable_ipv6 is set to true )
|
|
1913
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
1914
|
-
"""
|
|
1915
|
-
return pulumi.get(self, "ipv6_gateway")
|
|
1916
|
-
|
|
1917
|
-
@_builtins.property
|
|
1918
|
-
@pulumi.getter(name="ipv6PrefixLength")
|
|
1919
|
-
@_utilities.deprecated("""Please use a instance.Ip with a `routed_ipv6` type""")
|
|
1920
|
-
def ipv6_prefix_length(self) -> pulumi.Output[_builtins.int]:
|
|
1921
|
-
"""
|
|
1922
|
-
The prefix length of the ipv6 subnet routed to the server. ( Only set when enable_ipv6 is set to true )
|
|
1923
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
1924
|
-
"""
|
|
1925
|
-
return pulumi.get(self, "ipv6_prefix_length")
|
|
1926
|
-
|
|
1927
1818
|
@_builtins.property
|
|
1928
1819
|
@pulumi.getter
|
|
1929
1820
|
def name(self) -> pulumi.Output[_builtins.str]:
|
|
@@ -1944,8 +1835,7 @@ class Server(pulumi.CustomResource):
|
|
|
1944
1835
|
@pulumi.getter(name="placementGroupId")
|
|
1945
1836
|
def placement_group_id(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1946
1837
|
"""
|
|
1947
|
-
The [placement group](https://www.scaleway.com/en/developers/api/instance/#path-security-groups-update-a-security-group the server is attached to.
|
|
1948
|
-
|
|
1838
|
+
The [placement group](<https://www.scaleway.com/en/developers/api/instance/#path-security-groups-update-a-security-group> the server is attached to.
|
|
1949
1839
|
|
|
1950
1840
|
> **Important:** When updating `placement_group_id` the `state` must be set to `stopped`, otherwise it will fail.
|
|
1951
1841
|
"""
|
|
@@ -1955,19 +1845,10 @@ class Server(pulumi.CustomResource):
|
|
|
1955
1845
|
@pulumi.getter(name="placementGroupPolicyRespected")
|
|
1956
1846
|
def placement_group_policy_respected(self) -> pulumi.Output[_builtins.bool]:
|
|
1957
1847
|
"""
|
|
1958
|
-
(Deprecated) Always false, use instance_placement_group
|
|
1848
|
+
(Deprecated) Always false, use instance_placement_group resource to known when the placement group policy is respected.
|
|
1959
1849
|
"""
|
|
1960
1850
|
return pulumi.get(self, "placement_group_policy_respected")
|
|
1961
1851
|
|
|
1962
|
-
@_builtins.property
|
|
1963
|
-
@pulumi.getter(name="privateIp")
|
|
1964
|
-
@_utilities.deprecated("""Use ipam_ip datasource instead to fetch your server's IP in your private network.""")
|
|
1965
|
-
def private_ip(self) -> pulumi.Output[_builtins.str]:
|
|
1966
|
-
"""
|
|
1967
|
-
The Scaleway internal IP address of the server (Deprecated use ipam_ip datasource instead).
|
|
1968
|
-
"""
|
|
1969
|
-
return pulumi.get(self, "private_ip")
|
|
1970
|
-
|
|
1971
1852
|
@_builtins.property
|
|
1972
1853
|
@pulumi.getter(name="privateIps")
|
|
1973
1854
|
def private_ips(self) -> pulumi.Output[Sequence['outputs.ServerPrivateIp']]:
|
|
@@ -2001,15 +1882,6 @@ class Server(pulumi.CustomResource):
|
|
|
2001
1882
|
"""
|
|
2002
1883
|
return pulumi.get(self, "protected")
|
|
2003
1884
|
|
|
2004
|
-
@_builtins.property
|
|
2005
|
-
@pulumi.getter(name="publicIp")
|
|
2006
|
-
@_utilities.deprecated("""Use public_ips instead""")
|
|
2007
|
-
def public_ip(self) -> pulumi.Output[_builtins.str]:
|
|
2008
|
-
"""
|
|
2009
|
-
The public IP address of the server (Deprecated use `public_ips` instead).
|
|
2010
|
-
"""
|
|
2011
|
-
return pulumi.get(self, "public_ip")
|
|
2012
|
-
|
|
2013
1885
|
@_builtins.property
|
|
2014
1886
|
@pulumi.getter(name="publicIps")
|
|
2015
1887
|
def public_ips(self) -> pulumi.Output[Sequence['outputs.ServerPublicIp']]:
|