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
|
@@ -195,9 +195,9 @@ class UserData(pulumi.CustomResource):
|
|
|
195
195
|
|
|
196
196
|
The typical use case is to pass something like a shell script or a configuration file as user data.
|
|
197
197
|
|
|
198
|
-
For more information about [user_data](https://www.scaleway.com/en/developers/api/instance/#path-user-data-list-user-data) check our documentation guide
|
|
198
|
+
For more information about [user_data](https://www.scaleway.com/en/developers/api/instance/#path-user-data-list-user-data) check [our documentation guide](https://www.scaleway.com/en/docs/compute/instances/how-to/use-boot-modes/#how-to-use-cloud-init).
|
|
199
199
|
|
|
200
|
-
About cloud-init documentation please check
|
|
200
|
+
About cloud-init documentation please check [the official documentation](https://cloudinit.readthedocs.io/en/latest/).
|
|
201
201
|
|
|
202
202
|
## Example Usage
|
|
203
203
|
|
|
@@ -269,9 +269,9 @@ class UserData(pulumi.CustomResource):
|
|
|
269
269
|
|
|
270
270
|
The typical use case is to pass something like a shell script or a configuration file as user data.
|
|
271
271
|
|
|
272
|
-
For more information about [user_data](https://www.scaleway.com/en/developers/api/instance/#path-user-data-list-user-data) check our documentation guide
|
|
272
|
+
For more information about [user_data](https://www.scaleway.com/en/developers/api/instance/#path-user-data-list-user-data) check [our documentation guide](https://www.scaleway.com/en/docs/compute/instances/how-to/use-boot-modes/#how-to-use-cloud-init).
|
|
273
273
|
|
|
274
|
-
About cloud-init documentation please check
|
|
274
|
+
About cloud-init documentation please check [the official documentation](https://cloudinit.readthedocs.io/en/latest/).
|
|
275
275
|
|
|
276
276
|
## Example Usage
|
|
277
277
|
|
|
@@ -35,6 +35,8 @@ class VolumeArgs:
|
|
|
35
35
|
:param pulumi.Input[_builtins.str] name: The name of the volume. If not provided it will be randomly generated.
|
|
36
36
|
:param pulumi.Input[_builtins.str] project_id: `project_id`) The ID of the project the volume is associated with.
|
|
37
37
|
:param pulumi.Input[_builtins.int] size_in_gb: The size of the volume. Only one of `size_in_gb` and `from_snapshot_id` should be specified.
|
|
38
|
+
|
|
39
|
+
> **Important:** It is not possible to resize local and scratch volumes. Updates to this field will recreate the resource.
|
|
38
40
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tags to apply to the volume.
|
|
39
41
|
:param pulumi.Input[_builtins.str] zone: `zone`) The zone in which the volume should be created.
|
|
40
42
|
"""
|
|
@@ -119,6 +121,8 @@ class VolumeArgs:
|
|
|
119
121
|
def size_in_gb(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
120
122
|
"""
|
|
121
123
|
The size of the volume. Only one of `size_in_gb` and `from_snapshot_id` should be specified.
|
|
124
|
+
|
|
125
|
+
> **Important:** It is not possible to resize local and scratch volumes. Updates to this field will recreate the resource.
|
|
122
126
|
"""
|
|
123
127
|
return pulumi.get(self, "size_in_gb")
|
|
124
128
|
|
|
@@ -173,6 +177,8 @@ class _VolumeState:
|
|
|
173
177
|
:param pulumi.Input[_builtins.str] project_id: `project_id`) The ID of the project the volume is associated with.
|
|
174
178
|
:param pulumi.Input[_builtins.str] server_id: The id of the associated server.
|
|
175
179
|
:param pulumi.Input[_builtins.int] size_in_gb: The size of the volume. Only one of `size_in_gb` and `from_snapshot_id` should be specified.
|
|
180
|
+
|
|
181
|
+
> **Important:** It is not possible to resize local and scratch volumes. Updates to this field will recreate the resource.
|
|
176
182
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tags to apply to the volume.
|
|
177
183
|
:param pulumi.Input[_builtins.str] type: The type of the volume. The possible values are: `l_ssd` (Local SSD), `scratch` (Local Scratch SSD).
|
|
178
184
|
:param pulumi.Input[_builtins.str] zone: `zone`) The zone in which the volume should be created.
|
|
@@ -275,6 +281,8 @@ class _VolumeState:
|
|
|
275
281
|
def size_in_gb(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
276
282
|
"""
|
|
277
283
|
The size of the volume. Only one of `size_in_gb` and `from_snapshot_id` should be specified.
|
|
284
|
+
|
|
285
|
+
> **Important:** It is not possible to resize local and scratch volumes. Updates to this field will recreate the resource.
|
|
278
286
|
"""
|
|
279
287
|
return pulumi.get(self, "size_in_gb")
|
|
280
288
|
|
|
@@ -367,6 +375,8 @@ class Volume(pulumi.CustomResource):
|
|
|
367
375
|
:param pulumi.Input[_builtins.str] name: The name of the volume. If not provided it will be randomly generated.
|
|
368
376
|
:param pulumi.Input[_builtins.str] project_id: `project_id`) The ID of the project the volume is associated with.
|
|
369
377
|
:param pulumi.Input[_builtins.int] size_in_gb: The size of the volume. Only one of `size_in_gb` and `from_snapshot_id` should be specified.
|
|
378
|
+
|
|
379
|
+
> **Important:** It is not possible to resize local and scratch volumes. Updates to this field will recreate the resource.
|
|
370
380
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tags to apply to the volume.
|
|
371
381
|
:param pulumi.Input[_builtins.str] type: The type of the volume. The possible values are: `l_ssd` (Local SSD), `scratch` (Local Scratch SSD).
|
|
372
382
|
:param pulumi.Input[_builtins.str] zone: `zone`) The zone in which the volume should be created.
|
|
@@ -483,6 +493,8 @@ class Volume(pulumi.CustomResource):
|
|
|
483
493
|
:param pulumi.Input[_builtins.str] project_id: `project_id`) The ID of the project the volume is associated with.
|
|
484
494
|
:param pulumi.Input[_builtins.str] server_id: The id of the associated server.
|
|
485
495
|
:param pulumi.Input[_builtins.int] size_in_gb: The size of the volume. Only one of `size_in_gb` and `from_snapshot_id` should be specified.
|
|
496
|
+
|
|
497
|
+
> **Important:** It is not possible to resize local and scratch volumes. Updates to this field will recreate the resource.
|
|
486
498
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tags to apply to the volume.
|
|
487
499
|
:param pulumi.Input[_builtins.str] type: The type of the volume. The possible values are: `l_ssd` (Local SSD), `scratch` (Local Scratch SSD).
|
|
488
500
|
:param pulumi.Input[_builtins.str] zone: `zone`) The zone in which the volume should be created.
|
|
@@ -556,6 +568,8 @@ class Volume(pulumi.CustomResource):
|
|
|
556
568
|
def size_in_gb(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
557
569
|
"""
|
|
558
570
|
The size of the volume. Only one of `size_in_gb` and `from_snapshot_id` should be specified.
|
|
571
|
+
|
|
572
|
+
> **Important:** It is not possible to resize local and scratch volumes. Updates to this field will recreate the resource.
|
|
559
573
|
"""
|
|
560
574
|
return pulumi.get(self, "size_in_gb")
|
|
561
575
|
|
|
@@ -22,7 +22,7 @@ __all__ = ['InstanceImageArgs', 'InstanceImage']
|
|
|
22
22
|
class InstanceImageArgs:
|
|
23
23
|
def __init__(__self__, *,
|
|
24
24
|
root_volume_id: pulumi.Input[_builtins.str],
|
|
25
|
-
additional_volume_ids: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
|
+
additional_volume_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
26
26
|
architecture: Optional[pulumi.Input[_builtins.str]] = None,
|
|
27
27
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
28
28
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -32,9 +32,7 @@ class InstanceImageArgs:
|
|
|
32
32
|
"""
|
|
33
33
|
The set of arguments for constructing a InstanceImage resource.
|
|
34
34
|
:param pulumi.Input[_builtins.str] root_volume_id: The ID of the snapshot of the volume to be used as root in the image.
|
|
35
|
-
:param pulumi.Input[_builtins.str] additional_volume_ids: List of IDs of the snapshots of the additional volumes to be attached to the image.
|
|
36
|
-
|
|
37
|
-
> **Important:** For now it is only possible to have 1 additional_volume.
|
|
35
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] additional_volume_ids: List of IDs of the snapshots of the additional volumes to be attached to the image.
|
|
38
36
|
:param pulumi.Input[_builtins.str] architecture: The architecture the image is compatible with. Possible values are: `x86_64` or `arm`.
|
|
39
37
|
:param pulumi.Input[_builtins.str] name: The name of the image. If not provided it will be randomly generated.
|
|
40
38
|
:param pulumi.Input[_builtins.str] project_id: The ID of the project the image is associated with.
|
|
@@ -72,16 +70,14 @@ class InstanceImageArgs:
|
|
|
72
70
|
|
|
73
71
|
@_builtins.property
|
|
74
72
|
@pulumi.getter(name="additionalVolumeIds")
|
|
75
|
-
def additional_volume_ids(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
73
|
+
def additional_volume_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
76
74
|
"""
|
|
77
75
|
List of IDs of the snapshots of the additional volumes to be attached to the image.
|
|
78
|
-
|
|
79
|
-
> **Important:** For now it is only possible to have 1 additional_volume.
|
|
80
76
|
"""
|
|
81
77
|
return pulumi.get(self, "additional_volume_ids")
|
|
82
78
|
|
|
83
79
|
@additional_volume_ids.setter
|
|
84
|
-
def additional_volume_ids(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
80
|
+
def additional_volume_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
85
81
|
pulumi.set(self, "additional_volume_ids", value)
|
|
86
82
|
|
|
87
83
|
@_builtins.property
|
|
@@ -160,7 +156,7 @@ class InstanceImageArgs:
|
|
|
160
156
|
@pulumi.input_type
|
|
161
157
|
class _InstanceImageState:
|
|
162
158
|
def __init__(__self__, *,
|
|
163
|
-
additional_volume_ids: Optional[pulumi.Input[_builtins.str]] = None,
|
|
159
|
+
additional_volume_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
164
160
|
additional_volumes: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceImageAdditionalVolumeArgs']]]] = None,
|
|
165
161
|
architecture: Optional[pulumi.Input[_builtins.str]] = None,
|
|
166
162
|
creation_date: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -171,25 +167,25 @@ class _InstanceImageState:
|
|
|
171
167
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
172
168
|
public: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
173
169
|
root_volume_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
170
|
+
root_volumes: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceImageRootVolumeArgs']]]] = None,
|
|
174
171
|
state: Optional[pulumi.Input[_builtins.str]] = None,
|
|
175
172
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
176
173
|
zone: Optional[pulumi.Input[_builtins.str]] = None):
|
|
177
174
|
"""
|
|
178
175
|
Input properties used for looking up and filtering InstanceImage resources.
|
|
179
|
-
:param pulumi.Input[_builtins.str] additional_volume_ids: List of IDs of the snapshots of the additional volumes to be attached to the image.
|
|
180
|
-
|
|
181
|
-
> **Important:** For now it is only possible to have 1 additional_volume.
|
|
176
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] additional_volume_ids: List of IDs of the snapshots of the additional volumes to be attached to the image.
|
|
182
177
|
:param pulumi.Input[Sequence[pulumi.Input['InstanceImageAdditionalVolumeArgs']]] additional_volumes: The description of the extra volumes attached to the image.
|
|
183
178
|
:param pulumi.Input[_builtins.str] architecture: The architecture the image is compatible with. Possible values are: `x86_64` or `arm`.
|
|
184
|
-
:param pulumi.Input[_builtins.str] creation_date: Date of the
|
|
179
|
+
:param pulumi.Input[_builtins.str] creation_date: Date of the image creation.
|
|
185
180
|
:param pulumi.Input[_builtins.str] from_server_id: ID of the server the image is based on (in case it is a backup).
|
|
186
|
-
:param pulumi.Input[_builtins.str] modification_date: Date of
|
|
181
|
+
:param pulumi.Input[_builtins.str] modification_date: Date of image latest update.
|
|
187
182
|
:param pulumi.Input[_builtins.str] name: The name of the image. If not provided it will be randomly generated.
|
|
188
183
|
:param pulumi.Input[_builtins.str] organization_id: The organization ID the image is associated with.
|
|
189
184
|
:param pulumi.Input[_builtins.str] project_id: The ID of the project the image is associated with.
|
|
190
185
|
:param pulumi.Input[_builtins.bool] public: Set to `true` if the image is public.
|
|
191
186
|
:param pulumi.Input[_builtins.str] root_volume_id: The ID of the snapshot of the volume to be used as root in the image.
|
|
192
|
-
:param pulumi.Input[
|
|
187
|
+
:param pulumi.Input[Sequence[pulumi.Input['InstanceImageRootVolumeArgs']]] root_volumes: The description of the root volume attached to the image.
|
|
188
|
+
:param pulumi.Input[_builtins.str] state: State of the image. Possible values are: `available`, `creating` or `error`.
|
|
193
189
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tags to apply to the image.
|
|
194
190
|
:param pulumi.Input[_builtins.str] zone: The zone in which the image should be created.
|
|
195
191
|
"""
|
|
@@ -215,6 +211,8 @@ class _InstanceImageState:
|
|
|
215
211
|
pulumi.set(__self__, "public", public)
|
|
216
212
|
if root_volume_id is not None:
|
|
217
213
|
pulumi.set(__self__, "root_volume_id", root_volume_id)
|
|
214
|
+
if root_volumes is not None:
|
|
215
|
+
pulumi.set(__self__, "root_volumes", root_volumes)
|
|
218
216
|
if state is not None:
|
|
219
217
|
pulumi.set(__self__, "state", state)
|
|
220
218
|
if tags is not None:
|
|
@@ -224,16 +222,14 @@ class _InstanceImageState:
|
|
|
224
222
|
|
|
225
223
|
@_builtins.property
|
|
226
224
|
@pulumi.getter(name="additionalVolumeIds")
|
|
227
|
-
def additional_volume_ids(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
225
|
+
def additional_volume_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
228
226
|
"""
|
|
229
227
|
List of IDs of the snapshots of the additional volumes to be attached to the image.
|
|
230
|
-
|
|
231
|
-
> **Important:** For now it is only possible to have 1 additional_volume.
|
|
232
228
|
"""
|
|
233
229
|
return pulumi.get(self, "additional_volume_ids")
|
|
234
230
|
|
|
235
231
|
@additional_volume_ids.setter
|
|
236
|
-
def additional_volume_ids(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
232
|
+
def additional_volume_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
237
233
|
pulumi.set(self, "additional_volume_ids", value)
|
|
238
234
|
|
|
239
235
|
@_builtins.property
|
|
@@ -264,7 +260,7 @@ class _InstanceImageState:
|
|
|
264
260
|
@pulumi.getter(name="creationDate")
|
|
265
261
|
def creation_date(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
266
262
|
"""
|
|
267
|
-
Date of the
|
|
263
|
+
Date of the image creation.
|
|
268
264
|
"""
|
|
269
265
|
return pulumi.get(self, "creation_date")
|
|
270
266
|
|
|
@@ -288,7 +284,7 @@ class _InstanceImageState:
|
|
|
288
284
|
@pulumi.getter(name="modificationDate")
|
|
289
285
|
def modification_date(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
290
286
|
"""
|
|
291
|
-
Date of
|
|
287
|
+
Date of image latest update.
|
|
292
288
|
"""
|
|
293
289
|
return pulumi.get(self, "modification_date")
|
|
294
290
|
|
|
@@ -356,11 +352,23 @@ class _InstanceImageState:
|
|
|
356
352
|
def root_volume_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
357
353
|
pulumi.set(self, "root_volume_id", value)
|
|
358
354
|
|
|
355
|
+
@_builtins.property
|
|
356
|
+
@pulumi.getter(name="rootVolumes")
|
|
357
|
+
def root_volumes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['InstanceImageRootVolumeArgs']]]]:
|
|
358
|
+
"""
|
|
359
|
+
The description of the root volume attached to the image.
|
|
360
|
+
"""
|
|
361
|
+
return pulumi.get(self, "root_volumes")
|
|
362
|
+
|
|
363
|
+
@root_volumes.setter
|
|
364
|
+
def root_volumes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceImageRootVolumeArgs']]]]):
|
|
365
|
+
pulumi.set(self, "root_volumes", value)
|
|
366
|
+
|
|
359
367
|
@_builtins.property
|
|
360
368
|
@pulumi.getter
|
|
361
369
|
def state(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
362
370
|
"""
|
|
363
|
-
State of the
|
|
371
|
+
State of the image. Possible values are: `available`, `creating` or `error`.
|
|
364
372
|
"""
|
|
365
373
|
return pulumi.get(self, "state")
|
|
366
374
|
|
|
@@ -404,7 +412,7 @@ class InstanceImage(pulumi.CustomResource):
|
|
|
404
412
|
def __init__(__self__,
|
|
405
413
|
resource_name: str,
|
|
406
414
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
407
|
-
additional_volume_ids: Optional[pulumi.Input[_builtins.str]] = None,
|
|
415
|
+
additional_volume_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
408
416
|
architecture: Optional[pulumi.Input[_builtins.str]] = None,
|
|
409
417
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
410
418
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -449,6 +457,26 @@ class InstanceImage(pulumi.CustomResource):
|
|
|
449
457
|
root_volume_id=server_snapshot.id)
|
|
450
458
|
```
|
|
451
459
|
|
|
460
|
+
### With additional volumes
|
|
461
|
+
|
|
462
|
+
```python
|
|
463
|
+
import pulumi
|
|
464
|
+
import pulumiverse_scaleway as scaleway
|
|
465
|
+
|
|
466
|
+
server = scaleway.instance.Server("server",
|
|
467
|
+
image="ubuntu_jammy",
|
|
468
|
+
type="DEV1-S")
|
|
469
|
+
volume = scaleway.instance.Volume("volume",
|
|
470
|
+
type="b_ssd",
|
|
471
|
+
size_in_gb=20)
|
|
472
|
+
volume_snapshot = scaleway.instance.Snapshot("volume_snapshot", volume_id=volume.id)
|
|
473
|
+
server_snapshot = scaleway.instance.Snapshot("server_snapshot", volume_id=main["rootVolume"][0]["volumeId"])
|
|
474
|
+
image = scaleway.instance.Image("image",
|
|
475
|
+
name="image_with_extra_volumes",
|
|
476
|
+
root_volume_id=server_snapshot.id,
|
|
477
|
+
additional_volume_ids=[volume_snapshot.id])
|
|
478
|
+
```
|
|
479
|
+
|
|
452
480
|
## Import
|
|
453
481
|
|
|
454
482
|
Images can be imported using the `{zone}/{id}`, e.g.
|
|
@@ -461,9 +489,7 @@ class InstanceImage(pulumi.CustomResource):
|
|
|
461
489
|
|
|
462
490
|
:param str resource_name: The name of the resource.
|
|
463
491
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
464
|
-
:param pulumi.Input[_builtins.str] additional_volume_ids: List of IDs of the snapshots of the additional volumes to be attached to the image.
|
|
465
|
-
|
|
466
|
-
> **Important:** For now it is only possible to have 1 additional_volume.
|
|
492
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] additional_volume_ids: List of IDs of the snapshots of the additional volumes to be attached to the image.
|
|
467
493
|
:param pulumi.Input[_builtins.str] architecture: The architecture the image is compatible with. Possible values are: `x86_64` or `arm`.
|
|
468
494
|
:param pulumi.Input[_builtins.str] name: The name of the image. If not provided it will be randomly generated.
|
|
469
495
|
:param pulumi.Input[_builtins.str] project_id: The ID of the project the image is associated with.
|
|
@@ -514,6 +540,26 @@ class InstanceImage(pulumi.CustomResource):
|
|
|
514
540
|
root_volume_id=server_snapshot.id)
|
|
515
541
|
```
|
|
516
542
|
|
|
543
|
+
### With additional volumes
|
|
544
|
+
|
|
545
|
+
```python
|
|
546
|
+
import pulumi
|
|
547
|
+
import pulumiverse_scaleway as scaleway
|
|
548
|
+
|
|
549
|
+
server = scaleway.instance.Server("server",
|
|
550
|
+
image="ubuntu_jammy",
|
|
551
|
+
type="DEV1-S")
|
|
552
|
+
volume = scaleway.instance.Volume("volume",
|
|
553
|
+
type="b_ssd",
|
|
554
|
+
size_in_gb=20)
|
|
555
|
+
volume_snapshot = scaleway.instance.Snapshot("volume_snapshot", volume_id=volume.id)
|
|
556
|
+
server_snapshot = scaleway.instance.Snapshot("server_snapshot", volume_id=main["rootVolume"][0]["volumeId"])
|
|
557
|
+
image = scaleway.instance.Image("image",
|
|
558
|
+
name="image_with_extra_volumes",
|
|
559
|
+
root_volume_id=server_snapshot.id,
|
|
560
|
+
additional_volume_ids=[volume_snapshot.id])
|
|
561
|
+
```
|
|
562
|
+
|
|
517
563
|
## Import
|
|
518
564
|
|
|
519
565
|
Images can be imported using the `{zone}/{id}`, e.g.
|
|
@@ -539,7 +585,7 @@ class InstanceImage(pulumi.CustomResource):
|
|
|
539
585
|
def _internal_init(__self__,
|
|
540
586
|
resource_name: str,
|
|
541
587
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
542
|
-
additional_volume_ids: Optional[pulumi.Input[_builtins.str]] = None,
|
|
588
|
+
additional_volume_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
543
589
|
architecture: Optional[pulumi.Input[_builtins.str]] = None,
|
|
544
590
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
545
591
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -572,6 +618,7 @@ class InstanceImage(pulumi.CustomResource):
|
|
|
572
618
|
__props__.__dict__["from_server_id"] = None
|
|
573
619
|
__props__.__dict__["modification_date"] = None
|
|
574
620
|
__props__.__dict__["organization_id"] = None
|
|
621
|
+
__props__.__dict__["root_volumes"] = None
|
|
575
622
|
__props__.__dict__["state"] = None
|
|
576
623
|
super(InstanceImage, __self__).__init__(
|
|
577
624
|
'scaleway:index/instanceImage:InstanceImage',
|
|
@@ -583,7 +630,7 @@ class InstanceImage(pulumi.CustomResource):
|
|
|
583
630
|
def get(resource_name: str,
|
|
584
631
|
id: pulumi.Input[str],
|
|
585
632
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
586
|
-
additional_volume_ids: Optional[pulumi.Input[_builtins.str]] = None,
|
|
633
|
+
additional_volume_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
587
634
|
additional_volumes: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceImageAdditionalVolumeArgs', 'InstanceImageAdditionalVolumeArgsDict']]]]] = None,
|
|
588
635
|
architecture: Optional[pulumi.Input[_builtins.str]] = None,
|
|
589
636
|
creation_date: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -594,6 +641,7 @@ class InstanceImage(pulumi.CustomResource):
|
|
|
594
641
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
595
642
|
public: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
596
643
|
root_volume_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
644
|
+
root_volumes: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceImageRootVolumeArgs', 'InstanceImageRootVolumeArgsDict']]]]] = None,
|
|
597
645
|
state: Optional[pulumi.Input[_builtins.str]] = None,
|
|
598
646
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
599
647
|
zone: Optional[pulumi.Input[_builtins.str]] = None) -> 'InstanceImage':
|
|
@@ -604,20 +652,19 @@ class InstanceImage(pulumi.CustomResource):
|
|
|
604
652
|
:param str resource_name: The unique name of the resulting resource.
|
|
605
653
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
606
654
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
607
|
-
:param pulumi.Input[_builtins.str] additional_volume_ids: List of IDs of the snapshots of the additional volumes to be attached to the image.
|
|
608
|
-
|
|
609
|
-
> **Important:** For now it is only possible to have 1 additional_volume.
|
|
655
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] additional_volume_ids: List of IDs of the snapshots of the additional volumes to be attached to the image.
|
|
610
656
|
:param pulumi.Input[Sequence[pulumi.Input[Union['InstanceImageAdditionalVolumeArgs', 'InstanceImageAdditionalVolumeArgsDict']]]] additional_volumes: The description of the extra volumes attached to the image.
|
|
611
657
|
:param pulumi.Input[_builtins.str] architecture: The architecture the image is compatible with. Possible values are: `x86_64` or `arm`.
|
|
612
|
-
:param pulumi.Input[_builtins.str] creation_date: Date of the
|
|
658
|
+
:param pulumi.Input[_builtins.str] creation_date: Date of the image creation.
|
|
613
659
|
:param pulumi.Input[_builtins.str] from_server_id: ID of the server the image is based on (in case it is a backup).
|
|
614
|
-
:param pulumi.Input[_builtins.str] modification_date: Date of
|
|
660
|
+
:param pulumi.Input[_builtins.str] modification_date: Date of image latest update.
|
|
615
661
|
:param pulumi.Input[_builtins.str] name: The name of the image. If not provided it will be randomly generated.
|
|
616
662
|
:param pulumi.Input[_builtins.str] organization_id: The organization ID the image is associated with.
|
|
617
663
|
:param pulumi.Input[_builtins.str] project_id: The ID of the project the image is associated with.
|
|
618
664
|
:param pulumi.Input[_builtins.bool] public: Set to `true` if the image is public.
|
|
619
665
|
:param pulumi.Input[_builtins.str] root_volume_id: The ID of the snapshot of the volume to be used as root in the image.
|
|
620
|
-
:param pulumi.Input[
|
|
666
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['InstanceImageRootVolumeArgs', 'InstanceImageRootVolumeArgsDict']]]] root_volumes: The description of the root volume attached to the image.
|
|
667
|
+
:param pulumi.Input[_builtins.str] state: State of the image. Possible values are: `available`, `creating` or `error`.
|
|
621
668
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tags to apply to the image.
|
|
622
669
|
:param pulumi.Input[_builtins.str] zone: The zone in which the image should be created.
|
|
623
670
|
"""
|
|
@@ -636,6 +683,7 @@ class InstanceImage(pulumi.CustomResource):
|
|
|
636
683
|
__props__.__dict__["project_id"] = project_id
|
|
637
684
|
__props__.__dict__["public"] = public
|
|
638
685
|
__props__.__dict__["root_volume_id"] = root_volume_id
|
|
686
|
+
__props__.__dict__["root_volumes"] = root_volumes
|
|
639
687
|
__props__.__dict__["state"] = state
|
|
640
688
|
__props__.__dict__["tags"] = tags
|
|
641
689
|
__props__.__dict__["zone"] = zone
|
|
@@ -643,11 +691,9 @@ class InstanceImage(pulumi.CustomResource):
|
|
|
643
691
|
|
|
644
692
|
@_builtins.property
|
|
645
693
|
@pulumi.getter(name="additionalVolumeIds")
|
|
646
|
-
def additional_volume_ids(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
694
|
+
def additional_volume_ids(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
647
695
|
"""
|
|
648
696
|
List of IDs of the snapshots of the additional volumes to be attached to the image.
|
|
649
|
-
|
|
650
|
-
> **Important:** For now it is only possible to have 1 additional_volume.
|
|
651
697
|
"""
|
|
652
698
|
return pulumi.get(self, "additional_volume_ids")
|
|
653
699
|
|
|
@@ -671,7 +717,7 @@ class InstanceImage(pulumi.CustomResource):
|
|
|
671
717
|
@pulumi.getter(name="creationDate")
|
|
672
718
|
def creation_date(self) -> pulumi.Output[_builtins.str]:
|
|
673
719
|
"""
|
|
674
|
-
Date of the
|
|
720
|
+
Date of the image creation.
|
|
675
721
|
"""
|
|
676
722
|
return pulumi.get(self, "creation_date")
|
|
677
723
|
|
|
@@ -687,7 +733,7 @@ class InstanceImage(pulumi.CustomResource):
|
|
|
687
733
|
@pulumi.getter(name="modificationDate")
|
|
688
734
|
def modification_date(self) -> pulumi.Output[_builtins.str]:
|
|
689
735
|
"""
|
|
690
|
-
Date of
|
|
736
|
+
Date of image latest update.
|
|
691
737
|
"""
|
|
692
738
|
return pulumi.get(self, "modification_date")
|
|
693
739
|
|
|
@@ -731,11 +777,19 @@ class InstanceImage(pulumi.CustomResource):
|
|
|
731
777
|
"""
|
|
732
778
|
return pulumi.get(self, "root_volume_id")
|
|
733
779
|
|
|
780
|
+
@_builtins.property
|
|
781
|
+
@pulumi.getter(name="rootVolumes")
|
|
782
|
+
def root_volumes(self) -> pulumi.Output[Sequence['outputs.InstanceImageRootVolume']]:
|
|
783
|
+
"""
|
|
784
|
+
The description of the root volume attached to the image.
|
|
785
|
+
"""
|
|
786
|
+
return pulumi.get(self, "root_volumes")
|
|
787
|
+
|
|
734
788
|
@_builtins.property
|
|
735
789
|
@pulumi.getter
|
|
736
790
|
def state(self) -> pulumi.Output[_builtins.str]:
|
|
737
791
|
"""
|
|
738
|
-
State of the
|
|
792
|
+
State of the image. Possible values are: `available`, `creating` or `error`.
|
|
739
793
|
"""
|
|
740
794
|
return pulumi.get(self, "state")
|
|
741
795
|
|