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 InstanceServerArgs:
|
|
|
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['InstanceServerFilesystemArgs']]]] = 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 InstanceServerArgs:
|
|
|
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['InstanceServerFilesystemArgs']]] 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['InstanceServerPrivateIpArgs']]] private_ips: The list of private IPv4 and IPv6 addresses associated with the resource.
|
|
@@ -119,11 +119,8 @@ class InstanceServerArgs:
|
|
|
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 InstanceServerArgs:
|
|
|
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['InstanceServerFilesystemArgs']]]]:
|
|
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['InstanceServerFilesystemArgs']]]]):
|
|
266
|
+
pulumi.set(self, "filesystems", value)
|
|
272
267
|
|
|
273
268
|
@_builtins.property
|
|
274
269
|
@pulumi.getter
|
|
@@ -280,6 +275,8 @@ class InstanceServerArgs:
|
|
|
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 InstanceServerArgs:
|
|
|
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 _InstanceServerState:
|
|
|
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['InstanceServerFilesystemArgs']]]] = 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['InstanceServerPrivateIpArgs']]]] = None,
|
|
516
508
|
private_networks: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceServerPrivateNetworkArgs']]]] = 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['InstanceServerPublicIpArgs']]]] = None,
|
|
521
512
|
replace_on_type_change: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
522
513
|
root_volume: Optional[pulumi.Input['InstanceServerRootVolumeArgs']] = None,
|
|
@@ -541,38 +532,30 @@ class _InstanceServerState:
|
|
|
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['InstanceServerFilesystemArgs']]] 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['InstanceServerPrivateIpArgs']]] private_ips: The list of private IPv4 and IPv6 addresses associated with the resource.
|
|
571
555
|
:param pulumi.Input[Sequence[pulumi.Input['InstanceServerPrivateNetworkArgs']]] 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['InstanceServerPublicIpArgs']]] 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['InstanceServerRootVolumeArgs'] 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 _InstanceServerState:
|
|
|
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 _InstanceServerState:
|
|
|
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 _InstanceServerState:
|
|
|
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 _InstanceServerState:
|
|
|
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['InstanceServerFilesystemArgs']]]]:
|
|
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['InstanceServerFilesystemArgs']]]]):
|
|
727
|
+
pulumi.set(self, "filesystems", value)
|
|
775
728
|
|
|
776
729
|
@_builtins.property
|
|
777
730
|
@pulumi.getter
|
|
@@ -783,6 +736,8 @@ class _InstanceServerState:
|
|
|
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 _InstanceServerState:
|
|
|
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 _InstanceServerState:
|
|
|
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 _InstanceServerState:
|
|
|
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 _InstanceServerState:
|
|
|
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['InstanceServerPrivateIpArgs']]]]:
|
|
@@ -971,19 +870,6 @@ class _InstanceServerState:
|
|
|
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['InstanceServerPublicIpArgs']]]]:
|
|
@@ -1120,7 +1006,7 @@ class InstanceServer(pulumi.CustomResource):
|
|
|
1120
1006
|
bootscript_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1121
1007
|
cloud_init: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1122
1008
|
enable_dynamic_ip: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1123
|
-
|
|
1009
|
+
filesystems: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceServerFilesystemArgs', 'InstanceServerFilesystemArgsDict']]]]] = None,
|
|
1124
1010
|
image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1125
1011
|
ip_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1126
1012
|
ip_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
@@ -1182,6 +1068,35 @@ class InstanceServer(pulumi.CustomResource):
|
|
|
1182
1068
|
additional_volume_ids=[data.id])
|
|
1183
1069
|
```
|
|
1184
1070
|
|
|
1071
|
+
### With filesystem
|
|
1072
|
+
|
|
1073
|
+
```python
|
|
1074
|
+
import pulumi
|
|
1075
|
+
import pulumiverse_scaleway as scaleway
|
|
1076
|
+
|
|
1077
|
+
volume = scaleway.block.Volume("volume",
|
|
1078
|
+
iops=15000,
|
|
1079
|
+
size_in_gb=15)
|
|
1080
|
+
terraform_instance_filesystem = scaleway.FileFilesystem("terraform_instance_filesystem",
|
|
1081
|
+
name="filesystem-instance-terraform",
|
|
1082
|
+
size_in_gb=100)
|
|
1083
|
+
base = scaleway.instance.Server("base",
|
|
1084
|
+
type="POP2-HM-2C-16G",
|
|
1085
|
+
state="started",
|
|
1086
|
+
tags=[
|
|
1087
|
+
"terraform-test",
|
|
1088
|
+
"scaleway_instance_server",
|
|
1089
|
+
"state",
|
|
1090
|
+
],
|
|
1091
|
+
root_volume={
|
|
1092
|
+
"volume_type": "sbs_volume",
|
|
1093
|
+
"volume_id": volume.id,
|
|
1094
|
+
},
|
|
1095
|
+
filesystems=[{
|
|
1096
|
+
"filesystem_id": terraform_instance_filesystem.id,
|
|
1097
|
+
}])
|
|
1098
|
+
```
|
|
1099
|
+
|
|
1185
1100
|
### With a reserved IP
|
|
1186
1101
|
|
|
1187
1102
|
```python
|
|
@@ -1336,21 +1251,21 @@ class InstanceServer(pulumi.CustomResource):
|
|
|
1336
1251
|
:param pulumi.Input[_builtins.str] bootscript_id: ID of the target bootscript (set boot_type to bootscript)
|
|
1337
1252
|
:param pulumi.Input[_builtins.str] cloud_init: The cloud init script associated with this server
|
|
1338
1253
|
:param pulumi.Input[_builtins.bool] enable_dynamic_ip: If true a dynamic IP will be attached to the server.
|
|
1339
|
-
:param pulumi.Input[
|
|
1340
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
1254
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['InstanceServerFilesystemArgs', 'InstanceServerFilesystemArgsDict']]]] filesystems: List of filesystems attached to the server.
|
|
1341
1255
|
: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)
|
|
1342
1256
|
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.
|
|
1343
1257
|
|
|
1344
1258
|
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```
|
|
1345
1259
|
|
|
1346
1260
|
To retrieve more information by label please use: ```scw marketplace image get label=<LABEL>```
|
|
1261
|
+
|
|
1262
|
+
To obtain a local-image UUID from a label, please use: ```scw marketplace local-image list image-label=<LABEL>```
|
|
1347
1263
|
:param pulumi.Input[_builtins.str] ip_id: The ID of the reserved IP that is attached to the server.
|
|
1348
1264
|
: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`.
|
|
1349
1265
|
|
|
1350
1266
|
> `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.
|
|
1351
1267
|
:param pulumi.Input[_builtins.str] name: The name of the server.
|
|
1352
|
-
: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.
|
|
1353
|
-
|
|
1268
|
+
: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.
|
|
1354
1269
|
|
|
1355
1270
|
> **Important:** When updating `placement_group_id` the `state` must be set to `stopped`, otherwise it will fail.
|
|
1356
1271
|
:param pulumi.Input[Sequence[pulumi.Input[Union['InstanceServerPrivateIpArgs', 'InstanceServerPrivateIpArgsDict']]]] private_ips: The list of private IPv4 and IPv6 addresses associated with the resource.
|
|
@@ -1426,6 +1341,35 @@ class InstanceServer(pulumi.CustomResource):
|
|
|
1426
1341
|
additional_volume_ids=[data.id])
|
|
1427
1342
|
```
|
|
1428
1343
|
|
|
1344
|
+
### With filesystem
|
|
1345
|
+
|
|
1346
|
+
```python
|
|
1347
|
+
import pulumi
|
|
1348
|
+
import pulumiverse_scaleway as scaleway
|
|
1349
|
+
|
|
1350
|
+
volume = scaleway.block.Volume("volume",
|
|
1351
|
+
iops=15000,
|
|
1352
|
+
size_in_gb=15)
|
|
1353
|
+
terraform_instance_filesystem = scaleway.FileFilesystem("terraform_instance_filesystem",
|
|
1354
|
+
name="filesystem-instance-terraform",
|
|
1355
|
+
size_in_gb=100)
|
|
1356
|
+
base = scaleway.instance.Server("base",
|
|
1357
|
+
type="POP2-HM-2C-16G",
|
|
1358
|
+
state="started",
|
|
1359
|
+
tags=[
|
|
1360
|
+
"terraform-test",
|
|
1361
|
+
"scaleway_instance_server",
|
|
1362
|
+
"state",
|
|
1363
|
+
],
|
|
1364
|
+
root_volume={
|
|
1365
|
+
"volume_type": "sbs_volume",
|
|
1366
|
+
"volume_id": volume.id,
|
|
1367
|
+
},
|
|
1368
|
+
filesystems=[{
|
|
1369
|
+
"filesystem_id": terraform_instance_filesystem.id,
|
|
1370
|
+
}])
|
|
1371
|
+
```
|
|
1372
|
+
|
|
1429
1373
|
### With a reserved IP
|
|
1430
1374
|
|
|
1431
1375
|
```python
|
|
@@ -1586,7 +1530,7 @@ class InstanceServer(pulumi.CustomResource):
|
|
|
1586
1530
|
bootscript_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1587
1531
|
cloud_init: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1588
1532
|
enable_dynamic_ip: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1589
|
-
|
|
1533
|
+
filesystems: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceServerFilesystemArgs', 'InstanceServerFilesystemArgsDict']]]]] = None,
|
|
1590
1534
|
image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1591
1535
|
ip_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1592
1536
|
ip_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
@@ -1621,7 +1565,7 @@ class InstanceServer(pulumi.CustomResource):
|
|
|
1621
1565
|
__props__.__dict__["bootscript_id"] = bootscript_id
|
|
1622
1566
|
__props__.__dict__["cloud_init"] = cloud_init
|
|
1623
1567
|
__props__.__dict__["enable_dynamic_ip"] = enable_dynamic_ip
|
|
1624
|
-
__props__.__dict__["
|
|
1568
|
+
__props__.__dict__["filesystems"] = filesystems
|
|
1625
1569
|
__props__.__dict__["image"] = image
|
|
1626
1570
|
__props__.__dict__["ip_id"] = ip_id
|
|
1627
1571
|
__props__.__dict__["ip_ids"] = ip_ids
|
|
@@ -1642,13 +1586,8 @@ class InstanceServer(pulumi.CustomResource):
|
|
|
1642
1586
|
__props__.__dict__["type"] = type
|
|
1643
1587
|
__props__.__dict__["user_data"] = user_data
|
|
1644
1588
|
__props__.__dict__["zone"] = zone
|
|
1645
|
-
__props__.__dict__["ipv6_address"] = None
|
|
1646
|
-
__props__.__dict__["ipv6_gateway"] = None
|
|
1647
|
-
__props__.__dict__["ipv6_prefix_length"] = None
|
|
1648
1589
|
__props__.__dict__["organization_id"] = None
|
|
1649
1590
|
__props__.__dict__["placement_group_policy_respected"] = None
|
|
1650
|
-
__props__.__dict__["private_ip"] = None
|
|
1651
|
-
__props__.__dict__["public_ip"] = None
|
|
1652
1591
|
super(InstanceServer, __self__).__init__(
|
|
1653
1592
|
'scaleway:index/instanceServer:InstanceServer',
|
|
1654
1593
|
resource_name,
|
|
@@ -1665,23 +1604,18 @@ class InstanceServer(pulumi.CustomResource):
|
|
|
1665
1604
|
bootscript_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1666
1605
|
cloud_init: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1667
1606
|
enable_dynamic_ip: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1668
|
-
|
|
1607
|
+
filesystems: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceServerFilesystemArgs', 'InstanceServerFilesystemArgsDict']]]]] = None,
|
|
1669
1608
|
image: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1670
1609
|
ip_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1671
1610
|
ip_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1672
|
-
ipv6_address: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1673
|
-
ipv6_gateway: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1674
|
-
ipv6_prefix_length: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1675
1611
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1676
1612
|
organization_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1677
1613
|
placement_group_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1678
1614
|
placement_group_policy_respected: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1679
|
-
private_ip: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1680
1615
|
private_ips: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceServerPrivateIpArgs', 'InstanceServerPrivateIpArgsDict']]]]] = None,
|
|
1681
1616
|
private_networks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceServerPrivateNetworkArgs', 'InstanceServerPrivateNetworkArgsDict']]]]] = None,
|
|
1682
1617
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1683
1618
|
protected: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1684
|
-
public_ip: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1685
1619
|
public_ips: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceServerPublicIpArgs', 'InstanceServerPublicIpArgsDict']]]]] = None,
|
|
1686
1620
|
replace_on_type_change: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1687
1621
|
root_volume: Optional[pulumi.Input[Union['InstanceServerRootVolumeArgs', 'InstanceServerRootVolumeArgsDict']]] = None,
|
|
@@ -1711,38 +1645,30 @@ class InstanceServer(pulumi.CustomResource):
|
|
|
1711
1645
|
:param pulumi.Input[_builtins.str] bootscript_id: ID of the target bootscript (set boot_type to bootscript)
|
|
1712
1646
|
:param pulumi.Input[_builtins.str] cloud_init: The cloud init script associated with this server
|
|
1713
1647
|
:param pulumi.Input[_builtins.bool] enable_dynamic_ip: If true a dynamic IP will be attached to the server.
|
|
1714
|
-
:param pulumi.Input[
|
|
1715
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
1648
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['InstanceServerFilesystemArgs', 'InstanceServerFilesystemArgsDict']]]] filesystems: List of filesystems attached to the server.
|
|
1716
1649
|
: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)
|
|
1717
1650
|
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.
|
|
1718
1651
|
|
|
1719
1652
|
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```
|
|
1720
1653
|
|
|
1721
1654
|
To retrieve more information by label please use: ```scw marketplace image get label=<LABEL>```
|
|
1655
|
+
|
|
1656
|
+
To obtain a local-image UUID from a label, please use: ```scw marketplace local-image list image-label=<LABEL>```
|
|
1722
1657
|
:param pulumi.Input[_builtins.str] ip_id: The ID of the reserved IP that is attached to the server.
|
|
1723
1658
|
: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`.
|
|
1724
1659
|
|
|
1725
1660
|
> `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.
|
|
1726
|
-
:param pulumi.Input[_builtins.str] ipv6_address: The default ipv6 address 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
|
-
:param pulumi.Input[_builtins.str] ipv6_gateway: The ipv6 gateway address. ( Only set when enable_ipv6 is set to true )
|
|
1729
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
1730
|
-
: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 )
|
|
1731
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
1732
1661
|
:param pulumi.Input[_builtins.str] name: The name of the server.
|
|
1733
1662
|
:param pulumi.Input[_builtins.str] organization_id: The organization ID the server is associated with.
|
|
1734
|
-
: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.
|
|
1735
|
-
|
|
1663
|
+
: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.
|
|
1736
1664
|
|
|
1737
1665
|
> **Important:** When updating `placement_group_id` the `state` must be set to `stopped`, otherwise it will fail.
|
|
1738
|
-
:param pulumi.Input[_builtins.bool] placement_group_policy_respected: (Deprecated) Always false, use instance_placement_group
|
|
1739
|
-
:param pulumi.Input[_builtins.str] private_ip: The Scaleway internal IP address of the server (Deprecated use ipam_ip datasource instead).
|
|
1666
|
+
: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.
|
|
1740
1667
|
:param pulumi.Input[Sequence[pulumi.Input[Union['InstanceServerPrivateIpArgs', 'InstanceServerPrivateIpArgsDict']]]] private_ips: The list of private IPv4 and IPv6 addresses associated with the resource.
|
|
1741
1668
|
:param pulumi.Input[Sequence[pulumi.Input[Union['InstanceServerPrivateNetworkArgs', 'InstanceServerPrivateNetworkArgsDict']]]] private_networks: The private network associated with the server.
|
|
1742
1669
|
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.
|
|
1743
1670
|
:param pulumi.Input[_builtins.str] project_id: `project_id`) The ID of the project the server is associated with.
|
|
1744
1671
|
:param pulumi.Input[_builtins.bool] protected: Set to true to activate server protection option.
|
|
1745
|
-
:param pulumi.Input[_builtins.str] public_ip: The public IP address of the server (Deprecated use `public_ips` instead).
|
|
1746
1672
|
:param pulumi.Input[Sequence[pulumi.Input[Union['InstanceServerPublicIpArgs', 'InstanceServerPublicIpArgsDict']]]] public_ips: The list of public IPs of the server.
|
|
1747
1673
|
: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.
|
|
1748
1674
|
:param pulumi.Input[Union['InstanceServerRootVolumeArgs', 'InstanceServerRootVolumeArgsDict']] root_volume: Root [volume](https://www.scaleway.com/en/developers/api/instance/#path-volume-types-list-volume-types) attached to the server on creation.
|
|
@@ -1773,23 +1699,18 @@ class InstanceServer(pulumi.CustomResource):
|
|
|
1773
1699
|
__props__.__dict__["bootscript_id"] = bootscript_id
|
|
1774
1700
|
__props__.__dict__["cloud_init"] = cloud_init
|
|
1775
1701
|
__props__.__dict__["enable_dynamic_ip"] = enable_dynamic_ip
|
|
1776
|
-
__props__.__dict__["
|
|
1702
|
+
__props__.__dict__["filesystems"] = filesystems
|
|
1777
1703
|
__props__.__dict__["image"] = image
|
|
1778
1704
|
__props__.__dict__["ip_id"] = ip_id
|
|
1779
1705
|
__props__.__dict__["ip_ids"] = ip_ids
|
|
1780
|
-
__props__.__dict__["ipv6_address"] = ipv6_address
|
|
1781
|
-
__props__.__dict__["ipv6_gateway"] = ipv6_gateway
|
|
1782
|
-
__props__.__dict__["ipv6_prefix_length"] = ipv6_prefix_length
|
|
1783
1706
|
__props__.__dict__["name"] = name
|
|
1784
1707
|
__props__.__dict__["organization_id"] = organization_id
|
|
1785
1708
|
__props__.__dict__["placement_group_id"] = placement_group_id
|
|
1786
1709
|
__props__.__dict__["placement_group_policy_respected"] = placement_group_policy_respected
|
|
1787
|
-
__props__.__dict__["private_ip"] = private_ip
|
|
1788
1710
|
__props__.__dict__["private_ips"] = private_ips
|
|
1789
1711
|
__props__.__dict__["private_networks"] = private_networks
|
|
1790
1712
|
__props__.__dict__["project_id"] = project_id
|
|
1791
1713
|
__props__.__dict__["protected"] = protected
|
|
1792
|
-
__props__.__dict__["public_ip"] = public_ip
|
|
1793
1714
|
__props__.__dict__["public_ips"] = public_ips
|
|
1794
1715
|
__props__.__dict__["replace_on_type_change"] = replace_on_type_change
|
|
1795
1716
|
__props__.__dict__["root_volume"] = root_volume
|
|
@@ -1858,14 +1779,12 @@ class InstanceServer(pulumi.CustomResource):
|
|
|
1858
1779
|
return pulumi.get(self, "enable_dynamic_ip")
|
|
1859
1780
|
|
|
1860
1781
|
@_builtins.property
|
|
1861
|
-
@pulumi.getter
|
|
1862
|
-
|
|
1863
|
-
def enable_ipv6(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1782
|
+
@pulumi.getter
|
|
1783
|
+
def filesystems(self) -> pulumi.Output[Sequence['outputs.InstanceServerFilesystem']]:
|
|
1864
1784
|
"""
|
|
1865
|
-
|
|
1866
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
1785
|
+
List of filesystems attached to the server.
|
|
1867
1786
|
"""
|
|
1868
|
-
return pulumi.get(self, "
|
|
1787
|
+
return pulumi.get(self, "filesystems")
|
|
1869
1788
|
|
|
1870
1789
|
@_builtins.property
|
|
1871
1790
|
@pulumi.getter
|
|
@@ -1877,6 +1796,8 @@ class InstanceServer(pulumi.CustomResource):
|
|
|
1877
1796
|
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```
|
|
1878
1797
|
|
|
1879
1798
|
To retrieve more information by label please use: ```scw marketplace image get label=<LABEL>```
|
|
1799
|
+
|
|
1800
|
+
To obtain a local-image UUID from a label, please use: ```scw marketplace local-image list image-label=<LABEL>```
|
|
1880
1801
|
"""
|
|
1881
1802
|
return pulumi.get(self, "image")
|
|
1882
1803
|
|
|
@@ -1898,36 +1819,6 @@ class InstanceServer(pulumi.CustomResource):
|
|
|
1898
1819
|
"""
|
|
1899
1820
|
return pulumi.get(self, "ip_ids")
|
|
1900
1821
|
|
|
1901
|
-
@_builtins.property
|
|
1902
|
-
@pulumi.getter(name="ipv6Address")
|
|
1903
|
-
@_utilities.deprecated("""Please use a instance.Ip with a `routed_ipv6` type""")
|
|
1904
|
-
def ipv6_address(self) -> pulumi.Output[_builtins.str]:
|
|
1905
|
-
"""
|
|
1906
|
-
The default ipv6 address routed to the server. ( Only set when enable_ipv6 is set to true )
|
|
1907
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
1908
|
-
"""
|
|
1909
|
-
return pulumi.get(self, "ipv6_address")
|
|
1910
|
-
|
|
1911
|
-
@_builtins.property
|
|
1912
|
-
@pulumi.getter(name="ipv6Gateway")
|
|
1913
|
-
@_utilities.deprecated("""Please use a instance.Ip with a `routed_ipv6` type""")
|
|
1914
|
-
def ipv6_gateway(self) -> pulumi.Output[_builtins.str]:
|
|
1915
|
-
"""
|
|
1916
|
-
The ipv6 gateway address. ( Only set when enable_ipv6 is set to true )
|
|
1917
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
1918
|
-
"""
|
|
1919
|
-
return pulumi.get(self, "ipv6_gateway")
|
|
1920
|
-
|
|
1921
|
-
@_builtins.property
|
|
1922
|
-
@pulumi.getter(name="ipv6PrefixLength")
|
|
1923
|
-
@_utilities.deprecated("""Please use a instance.Ip with a `routed_ipv6` type""")
|
|
1924
|
-
def ipv6_prefix_length(self) -> pulumi.Output[_builtins.int]:
|
|
1925
|
-
"""
|
|
1926
|
-
The prefix length of the ipv6 subnet routed to the server. ( Only set when enable_ipv6 is set to true )
|
|
1927
|
-
Deprecated: Please use a instance.Ip with a `routed_ipv6` type.
|
|
1928
|
-
"""
|
|
1929
|
-
return pulumi.get(self, "ipv6_prefix_length")
|
|
1930
|
-
|
|
1931
1822
|
@_builtins.property
|
|
1932
1823
|
@pulumi.getter
|
|
1933
1824
|
def name(self) -> pulumi.Output[_builtins.str]:
|
|
@@ -1948,8 +1839,7 @@ class InstanceServer(pulumi.CustomResource):
|
|
|
1948
1839
|
@pulumi.getter(name="placementGroupId")
|
|
1949
1840
|
def placement_group_id(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1950
1841
|
"""
|
|
1951
|
-
The [placement group](https://www.scaleway.com/en/developers/api/instance/#path-security-groups-update-a-security-group the server is attached to.
|
|
1952
|
-
|
|
1842
|
+
The [placement group](<https://www.scaleway.com/en/developers/api/instance/#path-security-groups-update-a-security-group> the server is attached to.
|
|
1953
1843
|
|
|
1954
1844
|
> **Important:** When updating `placement_group_id` the `state` must be set to `stopped`, otherwise it will fail.
|
|
1955
1845
|
"""
|
|
@@ -1959,19 +1849,10 @@ class InstanceServer(pulumi.CustomResource):
|
|
|
1959
1849
|
@pulumi.getter(name="placementGroupPolicyRespected")
|
|
1960
1850
|
def placement_group_policy_respected(self) -> pulumi.Output[_builtins.bool]:
|
|
1961
1851
|
"""
|
|
1962
|
-
(Deprecated) Always false, use instance_placement_group
|
|
1852
|
+
(Deprecated) Always false, use instance_placement_group resource to known when the placement group policy is respected.
|
|
1963
1853
|
"""
|
|
1964
1854
|
return pulumi.get(self, "placement_group_policy_respected")
|
|
1965
1855
|
|
|
1966
|
-
@_builtins.property
|
|
1967
|
-
@pulumi.getter(name="privateIp")
|
|
1968
|
-
@_utilities.deprecated("""Use ipam_ip datasource instead to fetch your server's IP in your private network.""")
|
|
1969
|
-
def private_ip(self) -> pulumi.Output[_builtins.str]:
|
|
1970
|
-
"""
|
|
1971
|
-
The Scaleway internal IP address of the server (Deprecated use ipam_ip datasource instead).
|
|
1972
|
-
"""
|
|
1973
|
-
return pulumi.get(self, "private_ip")
|
|
1974
|
-
|
|
1975
1856
|
@_builtins.property
|
|
1976
1857
|
@pulumi.getter(name="privateIps")
|
|
1977
1858
|
def private_ips(self) -> pulumi.Output[Sequence['outputs.InstanceServerPrivateIp']]:
|
|
@@ -2005,15 +1886,6 @@ class InstanceServer(pulumi.CustomResource):
|
|
|
2005
1886
|
"""
|
|
2006
1887
|
return pulumi.get(self, "protected")
|
|
2007
1888
|
|
|
2008
|
-
@_builtins.property
|
|
2009
|
-
@pulumi.getter(name="publicIp")
|
|
2010
|
-
@_utilities.deprecated("""Use public_ips instead""")
|
|
2011
|
-
def public_ip(self) -> pulumi.Output[_builtins.str]:
|
|
2012
|
-
"""
|
|
2013
|
-
The public IP address of the server (Deprecated use `public_ips` instead).
|
|
2014
|
-
"""
|
|
2015
|
-
return pulumi.get(self, "public_ip")
|
|
2016
|
-
|
|
2017
1889
|
@_builtins.property
|
|
2018
1890
|
@pulumi.getter(name="publicIps")
|
|
2019
1891
|
def public_ips(self) -> pulumi.Output[Sequence['outputs.InstanceServerPublicIp']]:
|