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
|
@@ -125,6 +125,7 @@ class _EdgeServicesDnsStageState:
|
|
|
125
125
|
backend_stage_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
126
126
|
cache_stage_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
127
127
|
created_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
128
|
+
default_fqdn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
128
129
|
fqdns: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
129
130
|
pipeline_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
130
131
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -136,6 +137,7 @@ class _EdgeServicesDnsStageState:
|
|
|
136
137
|
:param pulumi.Input[_builtins.str] backend_stage_id: The backend stage ID the DNS stage will be linked to. Only one of `backend_stage_id`, `cache_stage_id` and `tls_stage_id` should be specified.
|
|
137
138
|
:param pulumi.Input[_builtins.str] cache_stage_id: The cache stage ID the DNS stage will be linked to. Only one of `backend_stage_id`, `cache_stage_id` and `tls_stage_id` should be specified.
|
|
138
139
|
:param pulumi.Input[_builtins.str] created_at: The date and time of the creation of the DNS stage.
|
|
140
|
+
:param pulumi.Input[_builtins.str] default_fqdn: The Default Fully Qualified Domain Name attached to the stage.
|
|
139
141
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] fqdns: Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
|
|
140
142
|
:param pulumi.Input[_builtins.str] pipeline_id: The ID of the pipeline.
|
|
141
143
|
:param pulumi.Input[_builtins.str] project_id: `project_id`) The ID of the project the DNS stage is associated with.
|
|
@@ -149,6 +151,8 @@ class _EdgeServicesDnsStageState:
|
|
|
149
151
|
pulumi.set(__self__, "cache_stage_id", cache_stage_id)
|
|
150
152
|
if created_at is not None:
|
|
151
153
|
pulumi.set(__self__, "created_at", created_at)
|
|
154
|
+
if default_fqdn is not None:
|
|
155
|
+
pulumi.set(__self__, "default_fqdn", default_fqdn)
|
|
152
156
|
if fqdns is not None:
|
|
153
157
|
pulumi.set(__self__, "fqdns", fqdns)
|
|
154
158
|
if pipeline_id is not None:
|
|
@@ -198,6 +202,18 @@ class _EdgeServicesDnsStageState:
|
|
|
198
202
|
def created_at(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
199
203
|
pulumi.set(self, "created_at", value)
|
|
200
204
|
|
|
205
|
+
@_builtins.property
|
|
206
|
+
@pulumi.getter(name="defaultFqdn")
|
|
207
|
+
def default_fqdn(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
208
|
+
"""
|
|
209
|
+
The Default Fully Qualified Domain Name attached to the stage.
|
|
210
|
+
"""
|
|
211
|
+
return pulumi.get(self, "default_fqdn")
|
|
212
|
+
|
|
213
|
+
@default_fqdn.setter
|
|
214
|
+
def default_fqdn(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
215
|
+
pulumi.set(self, "default_fqdn", value)
|
|
216
|
+
|
|
201
217
|
@_builtins.property
|
|
202
218
|
@pulumi.getter
|
|
203
219
|
def fqdns(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
@@ -390,6 +406,7 @@ class EdgeServicesDnsStage(pulumi.CustomResource):
|
|
|
390
406
|
__props__.__dict__["project_id"] = project_id
|
|
391
407
|
__props__.__dict__["tls_stage_id"] = tls_stage_id
|
|
392
408
|
__props__.__dict__["created_at"] = None
|
|
409
|
+
__props__.__dict__["default_fqdn"] = None
|
|
393
410
|
__props__.__dict__["type"] = None
|
|
394
411
|
__props__.__dict__["updated_at"] = None
|
|
395
412
|
super(EdgeServicesDnsStage, __self__).__init__(
|
|
@@ -405,6 +422,7 @@ class EdgeServicesDnsStage(pulumi.CustomResource):
|
|
|
405
422
|
backend_stage_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
406
423
|
cache_stage_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
407
424
|
created_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
425
|
+
default_fqdn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
408
426
|
fqdns: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
409
427
|
pipeline_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
410
428
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -421,6 +439,7 @@ class EdgeServicesDnsStage(pulumi.CustomResource):
|
|
|
421
439
|
:param pulumi.Input[_builtins.str] backend_stage_id: The backend stage ID the DNS stage will be linked to. Only one of `backend_stage_id`, `cache_stage_id` and `tls_stage_id` should be specified.
|
|
422
440
|
:param pulumi.Input[_builtins.str] cache_stage_id: The cache stage ID the DNS stage will be linked to. Only one of `backend_stage_id`, `cache_stage_id` and `tls_stage_id` should be specified.
|
|
423
441
|
:param pulumi.Input[_builtins.str] created_at: The date and time of the creation of the DNS stage.
|
|
442
|
+
:param pulumi.Input[_builtins.str] default_fqdn: The Default Fully Qualified Domain Name attached to the stage.
|
|
424
443
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] fqdns: Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
|
|
425
444
|
:param pulumi.Input[_builtins.str] pipeline_id: The ID of the pipeline.
|
|
426
445
|
:param pulumi.Input[_builtins.str] project_id: `project_id`) The ID of the project the DNS stage is associated with.
|
|
@@ -435,6 +454,7 @@ class EdgeServicesDnsStage(pulumi.CustomResource):
|
|
|
435
454
|
__props__.__dict__["backend_stage_id"] = backend_stage_id
|
|
436
455
|
__props__.__dict__["cache_stage_id"] = cache_stage_id
|
|
437
456
|
__props__.__dict__["created_at"] = created_at
|
|
457
|
+
__props__.__dict__["default_fqdn"] = default_fqdn
|
|
438
458
|
__props__.__dict__["fqdns"] = fqdns
|
|
439
459
|
__props__.__dict__["pipeline_id"] = pipeline_id
|
|
440
460
|
__props__.__dict__["project_id"] = project_id
|
|
@@ -467,6 +487,14 @@ class EdgeServicesDnsStage(pulumi.CustomResource):
|
|
|
467
487
|
"""
|
|
468
488
|
return pulumi.get(self, "created_at")
|
|
469
489
|
|
|
490
|
+
@_builtins.property
|
|
491
|
+
@pulumi.getter(name="defaultFqdn")
|
|
492
|
+
def default_fqdn(self) -> pulumi.Output[_builtins.str]:
|
|
493
|
+
"""
|
|
494
|
+
The Default Fully Qualified Domain Name attached to the stage.
|
|
495
|
+
"""
|
|
496
|
+
return pulumi.get(self, "default_fqdn")
|
|
497
|
+
|
|
470
498
|
@_builtins.property
|
|
471
499
|
@pulumi.getter
|
|
472
500
|
def fqdns(self) -> pulumi.Output[Sequence[_builtins.str]]:
|
|
@@ -180,6 +180,7 @@ def get_offer(include_disabled: Optional[_builtins.bool] = None,
|
|
|
180
180
|
Gets information about a baremetal offer. For more information, see the [API documentation](https://developers.scaleway.com/en/products/baremetal/api).
|
|
181
181
|
|
|
182
182
|
|
|
183
|
+
:param _builtins.bool include_disabled: Include disabled offers.
|
|
183
184
|
:param _builtins.str name: The offer name. Only one of `name` and `offer_id` should be specified.
|
|
184
185
|
:param _builtins.str offer_id: The offer id. Only one of `name` and `offer_id` should be specified.
|
|
185
186
|
:param _builtins.str subscription_period: Period of subscription the desired offer. Should be `hourly` or `monthly`.
|
|
@@ -217,6 +218,7 @@ def get_offer_output(include_disabled: Optional[pulumi.Input[Optional[_builtins.
|
|
|
217
218
|
Gets information about a baremetal offer. For more information, see the [API documentation](https://developers.scaleway.com/en/products/baremetal/api).
|
|
218
219
|
|
|
219
220
|
|
|
221
|
+
:param _builtins.bool include_disabled: Include disabled offers.
|
|
220
222
|
:param _builtins.str name: The offer name. Only one of `name` and `offer_id` should be specified.
|
|
221
223
|
:param _builtins.str offer_id: The offer id. Only one of `name` and `offer_id` should be specified.
|
|
222
224
|
:param _builtins.str subscription_period: Period of subscription the desired offer. Should be `hourly` or `monthly`.
|
|
@@ -27,7 +27,10 @@ class GetServerResult:
|
|
|
27
27
|
"""
|
|
28
28
|
A collection of values returned by getServer.
|
|
29
29
|
"""
|
|
30
|
-
def __init__(__self__, description=None, domain=None, hostname=None, id=None, install_config_afterward=None, ips=None, ipv4s=None, ipv6s=None, name=None, offer=None, offer_id=None, offer_name=None, options=None, organization_id=None, os=None, os_name=None, partitioning=None, password=None, private_ips=None, private_networks=None, project_id=None, protected=None, reinstall_on_config_changes=None, server_id=None, service_password=None, service_user=None, ssh_key_ids=None, tags=None, user=None, zone=None):
|
|
30
|
+
def __init__(__self__, cloud_init=None, description=None, domain=None, hostname=None, id=None, install_config_afterward=None, ips=None, ipv4s=None, ipv6s=None, name=None, offer=None, offer_id=None, offer_name=None, options=None, organization_id=None, os=None, os_name=None, partitioning=None, password=None, private_ips=None, private_networks=None, project_id=None, protected=None, reinstall_on_config_changes=None, server_id=None, service_password=None, service_user=None, ssh_key_ids=None, tags=None, user=None, zone=None):
|
|
31
|
+
if cloud_init and not isinstance(cloud_init, str):
|
|
32
|
+
raise TypeError("Expected argument 'cloud_init' to be a str")
|
|
33
|
+
pulumi.set(__self__, "cloud_init", cloud_init)
|
|
31
34
|
if description and not isinstance(description, str):
|
|
32
35
|
raise TypeError("Expected argument 'description' to be a str")
|
|
33
36
|
pulumi.set(__self__, "description", description)
|
|
@@ -119,6 +122,11 @@ class GetServerResult:
|
|
|
119
122
|
raise TypeError("Expected argument 'zone' to be a str")
|
|
120
123
|
pulumi.set(__self__, "zone", zone)
|
|
121
124
|
|
|
125
|
+
@_builtins.property
|
|
126
|
+
@pulumi.getter(name="cloudInit")
|
|
127
|
+
def cloud_init(self) -> _builtins.str:
|
|
128
|
+
return pulumi.get(self, "cloud_init")
|
|
129
|
+
|
|
122
130
|
@_builtins.property
|
|
123
131
|
@pulumi.getter
|
|
124
132
|
def description(self) -> _builtins.str:
|
|
@@ -279,6 +287,7 @@ class AwaitableGetServerResult(GetServerResult):
|
|
|
279
287
|
if False:
|
|
280
288
|
yield self
|
|
281
289
|
return GetServerResult(
|
|
290
|
+
cloud_init=self.cloud_init,
|
|
282
291
|
description=self.description,
|
|
283
292
|
domain=self.domain,
|
|
284
293
|
hostname=self.hostname,
|
|
@@ -347,6 +356,7 @@ def get_server(name: Optional[_builtins.str] = None,
|
|
|
347
356
|
__ret__ = pulumi.runtime.invoke('scaleway:elasticmetal/getServer:getServer', __args__, opts=opts, typ=GetServerResult).value
|
|
348
357
|
|
|
349
358
|
return AwaitableGetServerResult(
|
|
359
|
+
cloud_init=pulumi.get(__ret__, 'cloud_init'),
|
|
350
360
|
description=pulumi.get(__ret__, 'description'),
|
|
351
361
|
domain=pulumi.get(__ret__, 'domain'),
|
|
352
362
|
hostname=pulumi.get(__ret__, 'hostname'),
|
|
@@ -412,6 +422,7 @@ def get_server_output(name: Optional[pulumi.Input[Optional[_builtins.str]]] = No
|
|
|
412
422
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
413
423
|
__ret__ = pulumi.runtime.invoke_output('scaleway:elasticmetal/getServer:getServer', __args__, opts=opts, typ=GetServerResult)
|
|
414
424
|
return __ret__.apply(lambda __response__: GetServerResult(
|
|
425
|
+
cloud_init=pulumi.get(__response__, 'cloud_init'),
|
|
415
426
|
description=pulumi.get(__response__, 'description'),
|
|
416
427
|
domain=pulumi.get(__response__, 'domain'),
|
|
417
428
|
hostname=pulumi.get(__response__, 'hostname'),
|
|
@@ -22,6 +22,7 @@ __all__ = ['ServerArgs', 'Server']
|
|
|
22
22
|
class ServerArgs:
|
|
23
23
|
def __init__(__self__, *,
|
|
24
24
|
offer: pulumi.Input[_builtins.str],
|
|
25
|
+
cloud_init: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
26
|
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
27
|
hostname: Optional[pulumi.Input[_builtins.str]] = None,
|
|
27
28
|
install_config_afterward: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
@@ -47,6 +48,7 @@ class ServerArgs:
|
|
|
47
48
|
Use [this endpoint](https://www.scaleway.com/en/developers/api/elastic-metal/#path-servers-get-a-specific-elastic-metal-server) to find the right offer.
|
|
48
49
|
|
|
49
50
|
> **Important:** Updates to `offer` will recreate the server.
|
|
51
|
+
:param pulumi.Input[_builtins.str] cloud_init: Configuration data to pass to cloud-init such as a YAML cloud config or a user-data script. Accepts either a string containing the content or a path to a file (for example `file("cloud-init.yml")`). Max length: 127998 characters. Updates to `cloud_init` will update the server user-data via the API and do not trigger a reinstall; however, a reboot of the server is required for the OS to re-run cloud-init and apply the changes. Only supported for Offers that have cloud-init enabled. You can check available offers with `scw baremetal list offers` command.
|
|
50
52
|
:param pulumi.Input[_builtins.str] description: A description for the server.
|
|
51
53
|
:param pulumi.Input[_builtins.str] hostname: The hostname of the server.
|
|
52
54
|
:param pulumi.Input[_builtins.bool] install_config_afterward: If True, this boolean allows to create a server without the install config if you want to provide it later.
|
|
@@ -72,6 +74,8 @@ class ServerArgs:
|
|
|
72
74
|
:param pulumi.Input[_builtins.str] zone: `zone`) The zone in which the server should be created.
|
|
73
75
|
"""
|
|
74
76
|
pulumi.set(__self__, "offer", offer)
|
|
77
|
+
if cloud_init is not None:
|
|
78
|
+
pulumi.set(__self__, "cloud_init", cloud_init)
|
|
75
79
|
if description is not None:
|
|
76
80
|
pulumi.set(__self__, "description", description)
|
|
77
81
|
if hostname is not None:
|
|
@@ -126,6 +130,18 @@ class ServerArgs:
|
|
|
126
130
|
def offer(self, value: pulumi.Input[_builtins.str]):
|
|
127
131
|
pulumi.set(self, "offer", value)
|
|
128
132
|
|
|
133
|
+
@_builtins.property
|
|
134
|
+
@pulumi.getter(name="cloudInit")
|
|
135
|
+
def cloud_init(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
136
|
+
"""
|
|
137
|
+
Configuration data to pass to cloud-init such as a YAML cloud config or a user-data script. Accepts either a string containing the content or a path to a file (for example `file("cloud-init.yml")`). Max length: 127998 characters. Updates to `cloud_init` will update the server user-data via the API and do not trigger a reinstall; however, a reboot of the server is required for the OS to re-run cloud-init and apply the changes. Only supported for Offers that have cloud-init enabled. You can check available offers with `scw baremetal list offers` command.
|
|
138
|
+
"""
|
|
139
|
+
return pulumi.get(self, "cloud_init")
|
|
140
|
+
|
|
141
|
+
@cloud_init.setter
|
|
142
|
+
def cloud_init(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
143
|
+
pulumi.set(self, "cloud_init", value)
|
|
144
|
+
|
|
129
145
|
@_builtins.property
|
|
130
146
|
@pulumi.getter
|
|
131
147
|
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
@@ -362,6 +378,7 @@ class ServerArgs:
|
|
|
362
378
|
@pulumi.input_type
|
|
363
379
|
class _ServerState:
|
|
364
380
|
def __init__(__self__, *,
|
|
381
|
+
cloud_init: Optional[pulumi.Input[_builtins.str]] = None,
|
|
365
382
|
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
366
383
|
domain: Optional[pulumi.Input[_builtins.str]] = None,
|
|
367
384
|
hostname: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -392,6 +409,7 @@ class _ServerState:
|
|
|
392
409
|
zone: Optional[pulumi.Input[_builtins.str]] = None):
|
|
393
410
|
"""
|
|
394
411
|
Input properties used for looking up and filtering Server resources.
|
|
412
|
+
:param pulumi.Input[_builtins.str] cloud_init: Configuration data to pass to cloud-init such as a YAML cloud config or a user-data script. Accepts either a string containing the content or a path to a file (for example `file("cloud-init.yml")`). Max length: 127998 characters. Updates to `cloud_init` will update the server user-data via the API and do not trigger a reinstall; however, a reboot of the server is required for the OS to re-run cloud-init and apply the changes. Only supported for Offers that have cloud-init enabled. You can check available offers with `scw baremetal list offers` command.
|
|
395
413
|
:param pulumi.Input[_builtins.str] description: A description for the server.
|
|
396
414
|
:param pulumi.Input[_builtins.str] domain: The domain of the server.
|
|
397
415
|
:param pulumi.Input[_builtins.str] hostname: The hostname of the server.
|
|
@@ -428,6 +446,8 @@ class _ServerState:
|
|
|
428
446
|
:param pulumi.Input[_builtins.str] user: User used for the installation.
|
|
429
447
|
:param pulumi.Input[_builtins.str] zone: `zone`) The zone in which the server should be created.
|
|
430
448
|
"""
|
|
449
|
+
if cloud_init is not None:
|
|
450
|
+
pulumi.set(__self__, "cloud_init", cloud_init)
|
|
431
451
|
if description is not None:
|
|
432
452
|
pulumi.set(__self__, "description", description)
|
|
433
453
|
if domain is not None:
|
|
@@ -485,6 +505,18 @@ class _ServerState:
|
|
|
485
505
|
if zone is not None:
|
|
486
506
|
pulumi.set(__self__, "zone", zone)
|
|
487
507
|
|
|
508
|
+
@_builtins.property
|
|
509
|
+
@pulumi.getter(name="cloudInit")
|
|
510
|
+
def cloud_init(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
511
|
+
"""
|
|
512
|
+
Configuration data to pass to cloud-init such as a YAML cloud config or a user-data script. Accepts either a string containing the content or a path to a file (for example `file("cloud-init.yml")`). Max length: 127998 characters. Updates to `cloud_init` will update the server user-data via the API and do not trigger a reinstall; however, a reboot of the server is required for the OS to re-run cloud-init and apply the changes. Only supported for Offers that have cloud-init enabled. You can check available offers with `scw baremetal list offers` command.
|
|
513
|
+
"""
|
|
514
|
+
return pulumi.get(self, "cloud_init")
|
|
515
|
+
|
|
516
|
+
@cloud_init.setter
|
|
517
|
+
def cloud_init(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
518
|
+
pulumi.set(self, "cloud_init", value)
|
|
519
|
+
|
|
488
520
|
@_builtins.property
|
|
489
521
|
@pulumi.getter
|
|
490
522
|
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
@@ -835,6 +867,7 @@ class Server(pulumi.CustomResource):
|
|
|
835
867
|
def __init__(__self__,
|
|
836
868
|
resource_name: str,
|
|
837
869
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
870
|
+
cloud_init: Optional[pulumi.Input[_builtins.str]] = None,
|
|
838
871
|
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
839
872
|
hostname: Optional[pulumi.Input[_builtins.str]] = None,
|
|
840
873
|
install_config_afterward: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
@@ -861,6 +894,62 @@ class Server(pulumi.CustomResource):
|
|
|
861
894
|
|
|
862
895
|
## Example Usage
|
|
863
896
|
|
|
897
|
+
### Basic
|
|
898
|
+
|
|
899
|
+
### With option
|
|
900
|
+
|
|
901
|
+
### With cloud-init
|
|
902
|
+
|
|
903
|
+
```python
|
|
904
|
+
import pulumi
|
|
905
|
+
import pulumi_scaleway as scaleway
|
|
906
|
+
import pulumi_std as std
|
|
907
|
+
import pulumiverse_scaleway as scaleway
|
|
908
|
+
|
|
909
|
+
my_ssh_key = scaleway.iam.get_ssh_key(name="main")
|
|
910
|
+
my_os = scaleway.elasticmetal.get_os(zone="fr-par-1",
|
|
911
|
+
name="Ubuntu",
|
|
912
|
+
version="22.04 LTS (Jammy Jellyfish)")
|
|
913
|
+
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-2",
|
|
914
|
+
name="EM-I220E-NVME")
|
|
915
|
+
my_server_ci = scaleway.elasticmetal.Server("my_server_ci",
|
|
916
|
+
zone="fr-par-2",
|
|
917
|
+
offer=my_offer.offer_id,
|
|
918
|
+
os=my_os.os_id,
|
|
919
|
+
ssh_key_ids=[my_ssh_key.id],
|
|
920
|
+
cloud_init=std.index.file(input="userdata.yaml")["result"])
|
|
921
|
+
```
|
|
922
|
+
|
|
923
|
+
```python
|
|
924
|
+
import pulumi
|
|
925
|
+
import pulumi_scaleway as scaleway
|
|
926
|
+
import pulumiverse_scaleway as scaleway
|
|
927
|
+
|
|
928
|
+
my_ssh_key = scaleway.iam.get_ssh_key(name="main")
|
|
929
|
+
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-2",
|
|
930
|
+
name="EM-I220E-NVME")
|
|
931
|
+
my_os = scaleway.elasticmetal.get_os(zone="fr-par-1",
|
|
932
|
+
name="Ubuntu",
|
|
933
|
+
version="22.04 LTS (Jammy Jellyfish)")
|
|
934
|
+
my_server_ci = scaleway.elasticmetal.Server("my_server_ci",
|
|
935
|
+
zone="fr-par-2",
|
|
936
|
+
offer=my_offer.offer_id,
|
|
937
|
+
os=my_os.os_id,
|
|
938
|
+
ssh_key_ids=[my_ssh_key.id],
|
|
939
|
+
cloud_init=\"\"\"#cloud-config
|
|
940
|
+
packages:
|
|
941
|
+
- htop
|
|
942
|
+
- curl
|
|
943
|
+
|
|
944
|
+
runcmd:
|
|
945
|
+
- echo \\"Hello from raw cloud-init!\\" > /home/ubuntu/message.txt
|
|
946
|
+
\"\"\")
|
|
947
|
+
```
|
|
948
|
+
|
|
949
|
+
### With private network
|
|
950
|
+
|
|
951
|
+
### With IPAM IP IDs
|
|
952
|
+
|
|
864
953
|
### Without install config
|
|
865
954
|
|
|
866
955
|
```python
|
|
@@ -964,6 +1053,7 @@ class Server(pulumi.CustomResource):
|
|
|
964
1053
|
|
|
965
1054
|
:param str resource_name: The name of the resource.
|
|
966
1055
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1056
|
+
:param pulumi.Input[_builtins.str] cloud_init: Configuration data to pass to cloud-init such as a YAML cloud config or a user-data script. Accepts either a string containing the content or a path to a file (for example `file("cloud-init.yml")`). Max length: 127998 characters. Updates to `cloud_init` will update the server user-data via the API and do not trigger a reinstall; however, a reboot of the server is required for the OS to re-run cloud-init and apply the changes. Only supported for Offers that have cloud-init enabled. You can check available offers with `scw baremetal list offers` command.
|
|
967
1057
|
:param pulumi.Input[_builtins.str] description: A description for the server.
|
|
968
1058
|
:param pulumi.Input[_builtins.str] hostname: The hostname of the server.
|
|
969
1059
|
:param pulumi.Input[_builtins.bool] install_config_afterward: If True, this boolean allows to create a server without the install config if you want to provide it later.
|
|
@@ -1003,6 +1093,62 @@ class Server(pulumi.CustomResource):
|
|
|
1003
1093
|
|
|
1004
1094
|
## Example Usage
|
|
1005
1095
|
|
|
1096
|
+
### Basic
|
|
1097
|
+
|
|
1098
|
+
### With option
|
|
1099
|
+
|
|
1100
|
+
### With cloud-init
|
|
1101
|
+
|
|
1102
|
+
```python
|
|
1103
|
+
import pulumi
|
|
1104
|
+
import pulumi_scaleway as scaleway
|
|
1105
|
+
import pulumi_std as std
|
|
1106
|
+
import pulumiverse_scaleway as scaleway
|
|
1107
|
+
|
|
1108
|
+
my_ssh_key = scaleway.iam.get_ssh_key(name="main")
|
|
1109
|
+
my_os = scaleway.elasticmetal.get_os(zone="fr-par-1",
|
|
1110
|
+
name="Ubuntu",
|
|
1111
|
+
version="22.04 LTS (Jammy Jellyfish)")
|
|
1112
|
+
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-2",
|
|
1113
|
+
name="EM-I220E-NVME")
|
|
1114
|
+
my_server_ci = scaleway.elasticmetal.Server("my_server_ci",
|
|
1115
|
+
zone="fr-par-2",
|
|
1116
|
+
offer=my_offer.offer_id,
|
|
1117
|
+
os=my_os.os_id,
|
|
1118
|
+
ssh_key_ids=[my_ssh_key.id],
|
|
1119
|
+
cloud_init=std.index.file(input="userdata.yaml")["result"])
|
|
1120
|
+
```
|
|
1121
|
+
|
|
1122
|
+
```python
|
|
1123
|
+
import pulumi
|
|
1124
|
+
import pulumi_scaleway as scaleway
|
|
1125
|
+
import pulumiverse_scaleway as scaleway
|
|
1126
|
+
|
|
1127
|
+
my_ssh_key = scaleway.iam.get_ssh_key(name="main")
|
|
1128
|
+
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-2",
|
|
1129
|
+
name="EM-I220E-NVME")
|
|
1130
|
+
my_os = scaleway.elasticmetal.get_os(zone="fr-par-1",
|
|
1131
|
+
name="Ubuntu",
|
|
1132
|
+
version="22.04 LTS (Jammy Jellyfish)")
|
|
1133
|
+
my_server_ci = scaleway.elasticmetal.Server("my_server_ci",
|
|
1134
|
+
zone="fr-par-2",
|
|
1135
|
+
offer=my_offer.offer_id,
|
|
1136
|
+
os=my_os.os_id,
|
|
1137
|
+
ssh_key_ids=[my_ssh_key.id],
|
|
1138
|
+
cloud_init=\"\"\"#cloud-config
|
|
1139
|
+
packages:
|
|
1140
|
+
- htop
|
|
1141
|
+
- curl
|
|
1142
|
+
|
|
1143
|
+
runcmd:
|
|
1144
|
+
- echo \\"Hello from raw cloud-init!\\" > /home/ubuntu/message.txt
|
|
1145
|
+
\"\"\")
|
|
1146
|
+
```
|
|
1147
|
+
|
|
1148
|
+
### With private network
|
|
1149
|
+
|
|
1150
|
+
### With IPAM IP IDs
|
|
1151
|
+
|
|
1006
1152
|
### Without install config
|
|
1007
1153
|
|
|
1008
1154
|
```python
|
|
@@ -1119,6 +1265,7 @@ class Server(pulumi.CustomResource):
|
|
|
1119
1265
|
def _internal_init(__self__,
|
|
1120
1266
|
resource_name: str,
|
|
1121
1267
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1268
|
+
cloud_init: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1122
1269
|
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1123
1270
|
hostname: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1124
1271
|
install_config_afterward: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
@@ -1148,6 +1295,7 @@ class Server(pulumi.CustomResource):
|
|
|
1148
1295
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
1149
1296
|
__props__ = ServerArgs.__new__(ServerArgs)
|
|
1150
1297
|
|
|
1298
|
+
__props__.__dict__["cloud_init"] = cloud_init
|
|
1151
1299
|
__props__.__dict__["description"] = description
|
|
1152
1300
|
__props__.__dict__["hostname"] = hostname
|
|
1153
1301
|
__props__.__dict__["install_config_afterward"] = install_config_afterward
|
|
@@ -1192,6 +1340,7 @@ class Server(pulumi.CustomResource):
|
|
|
1192
1340
|
def get(resource_name: str,
|
|
1193
1341
|
id: pulumi.Input[str],
|
|
1194
1342
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1343
|
+
cloud_init: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1195
1344
|
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1196
1345
|
domain: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1197
1346
|
hostname: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -1227,6 +1376,7 @@ class Server(pulumi.CustomResource):
|
|
|
1227
1376
|
:param str resource_name: The unique name of the resulting resource.
|
|
1228
1377
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1229
1378
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1379
|
+
:param pulumi.Input[_builtins.str] cloud_init: Configuration data to pass to cloud-init such as a YAML cloud config or a user-data script. Accepts either a string containing the content or a path to a file (for example `file("cloud-init.yml")`). Max length: 127998 characters. Updates to `cloud_init` will update the server user-data via the API and do not trigger a reinstall; however, a reboot of the server is required for the OS to re-run cloud-init and apply the changes. Only supported for Offers that have cloud-init enabled. You can check available offers with `scw baremetal list offers` command.
|
|
1230
1380
|
:param pulumi.Input[_builtins.str] description: A description for the server.
|
|
1231
1381
|
:param pulumi.Input[_builtins.str] domain: The domain of the server.
|
|
1232
1382
|
:param pulumi.Input[_builtins.str] hostname: The hostname of the server.
|
|
@@ -1267,6 +1417,7 @@ class Server(pulumi.CustomResource):
|
|
|
1267
1417
|
|
|
1268
1418
|
__props__ = _ServerState.__new__(_ServerState)
|
|
1269
1419
|
|
|
1420
|
+
__props__.__dict__["cloud_init"] = cloud_init
|
|
1270
1421
|
__props__.__dict__["description"] = description
|
|
1271
1422
|
__props__.__dict__["domain"] = domain
|
|
1272
1423
|
__props__.__dict__["hostname"] = hostname
|
|
@@ -1297,6 +1448,14 @@ class Server(pulumi.CustomResource):
|
|
|
1297
1448
|
__props__.__dict__["zone"] = zone
|
|
1298
1449
|
return Server(resource_name, opts=opts, __props__=__props__)
|
|
1299
1450
|
|
|
1451
|
+
@_builtins.property
|
|
1452
|
+
@pulumi.getter(name="cloudInit")
|
|
1453
|
+
def cloud_init(self) -> pulumi.Output[_builtins.str]:
|
|
1454
|
+
"""
|
|
1455
|
+
Configuration data to pass to cloud-init such as a YAML cloud config or a user-data script. Accepts either a string containing the content or a path to a file (for example `file("cloud-init.yml")`). Max length: 127998 characters. Updates to `cloud_init` will update the server user-data via the API and do not trigger a reinstall; however, a reboot of the server is required for the OS to re-run cloud-init and apply the changes. Only supported for Offers that have cloud-init enabled. You can check available offers with `scw baremetal list offers` command.
|
|
1456
|
+
"""
|
|
1457
|
+
return pulumi.get(self, "cloud_init")
|
|
1458
|
+
|
|
1300
1459
|
@_builtins.property
|
|
1301
1460
|
@pulumi.getter
|
|
1302
1461
|
def description(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
@@ -19,14 +19,14 @@ __all__ = ['FileFilesystemArgs', 'FileFilesystem']
|
|
|
19
19
|
@pulumi.input_type
|
|
20
20
|
class FileFilesystemArgs:
|
|
21
21
|
def __init__(__self__, *,
|
|
22
|
-
|
|
22
|
+
size_in_gb: pulumi.Input[_builtins.int],
|
|
23
23
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
24
24
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
25
|
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
26
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
|
|
27
27
|
"""
|
|
28
28
|
The set of arguments for constructing a FileFilesystem resource.
|
|
29
|
-
:param pulumi.Input[_builtins.int]
|
|
29
|
+
:param pulumi.Input[_builtins.int] size_in_gb: The size of the filesystem in bytes, with a granularity of 100 GB (10¹¹ bytes).
|
|
30
30
|
- Minimum: 100 GB (100000000000 bytes)
|
|
31
31
|
- Maximum: 10 TB (10000000000000 bytes)
|
|
32
32
|
:param pulumi.Input[_builtins.str] name: The name of the filesystem. If not provided, a random name will be generated.
|
|
@@ -35,7 +35,7 @@ class FileFilesystemArgs:
|
|
|
35
35
|
:param pulumi.Input[_builtins.str] region: `region`) The region where the filesystem will be created (e.g., fr-par, nl-ams).
|
|
36
36
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tags associated with the filesystem.
|
|
37
37
|
"""
|
|
38
|
-
pulumi.set(__self__, "
|
|
38
|
+
pulumi.set(__self__, "size_in_gb", size_in_gb)
|
|
39
39
|
if name is not None:
|
|
40
40
|
pulumi.set(__self__, "name", name)
|
|
41
41
|
if project_id is not None:
|
|
@@ -46,18 +46,18 @@ class FileFilesystemArgs:
|
|
|
46
46
|
pulumi.set(__self__, "tags", tags)
|
|
47
47
|
|
|
48
48
|
@_builtins.property
|
|
49
|
-
@pulumi.getter
|
|
50
|
-
def
|
|
49
|
+
@pulumi.getter(name="sizeInGb")
|
|
50
|
+
def size_in_gb(self) -> pulumi.Input[_builtins.int]:
|
|
51
51
|
"""
|
|
52
52
|
The size of the filesystem in bytes, with a granularity of 100 GB (10¹¹ bytes).
|
|
53
53
|
- Minimum: 100 GB (100000000000 bytes)
|
|
54
54
|
- Maximum: 10 TB (10000000000000 bytes)
|
|
55
55
|
"""
|
|
56
|
-
return pulumi.get(self, "
|
|
56
|
+
return pulumi.get(self, "size_in_gb")
|
|
57
57
|
|
|
58
|
-
@
|
|
59
|
-
def
|
|
60
|
-
pulumi.set(self, "
|
|
58
|
+
@size_in_gb.setter
|
|
59
|
+
def size_in_gb(self, value: pulumi.Input[_builtins.int]):
|
|
60
|
+
pulumi.set(self, "size_in_gb", value)
|
|
61
61
|
|
|
62
62
|
@_builtins.property
|
|
63
63
|
@pulumi.getter
|
|
@@ -118,7 +118,7 @@ class _FileFilesystemState:
|
|
|
118
118
|
organization_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
119
119
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
120
120
|
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
121
|
-
|
|
121
|
+
size_in_gb: Optional[pulumi.Input[_builtins.int]] = None,
|
|
122
122
|
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
123
123
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
124
124
|
updated_at: Optional[pulumi.Input[_builtins.str]] = None):
|
|
@@ -131,7 +131,7 @@ class _FileFilesystemState:
|
|
|
131
131
|
:param pulumi.Input[_builtins.str] project_id: `project_id`) The ID of the project the server is
|
|
132
132
|
associated with.
|
|
133
133
|
:param pulumi.Input[_builtins.str] region: `region`) The region where the filesystem will be created (e.g., fr-par, nl-ams).
|
|
134
|
-
:param pulumi.Input[_builtins.int]
|
|
134
|
+
:param pulumi.Input[_builtins.int] size_in_gb: The size of the filesystem in bytes, with a granularity of 100 GB (10¹¹ bytes).
|
|
135
135
|
- Minimum: 100 GB (100000000000 bytes)
|
|
136
136
|
- Maximum: 10 TB (10000000000000 bytes)
|
|
137
137
|
:param pulumi.Input[_builtins.str] status: The current status of the filesystem. Possible values include creating, available, etc.
|
|
@@ -150,8 +150,8 @@ class _FileFilesystemState:
|
|
|
150
150
|
pulumi.set(__self__, "project_id", project_id)
|
|
151
151
|
if region is not None:
|
|
152
152
|
pulumi.set(__self__, "region", region)
|
|
153
|
-
if
|
|
154
|
-
pulumi.set(__self__, "
|
|
153
|
+
if size_in_gb is not None:
|
|
154
|
+
pulumi.set(__self__, "size_in_gb", size_in_gb)
|
|
155
155
|
if status is not None:
|
|
156
156
|
pulumi.set(__self__, "status", status)
|
|
157
157
|
if tags is not None:
|
|
@@ -233,18 +233,18 @@ class _FileFilesystemState:
|
|
|
233
233
|
pulumi.set(self, "region", value)
|
|
234
234
|
|
|
235
235
|
@_builtins.property
|
|
236
|
-
@pulumi.getter
|
|
237
|
-
def
|
|
236
|
+
@pulumi.getter(name="sizeInGb")
|
|
237
|
+
def size_in_gb(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
238
238
|
"""
|
|
239
239
|
The size of the filesystem in bytes, with a granularity of 100 GB (10¹¹ bytes).
|
|
240
240
|
- Minimum: 100 GB (100000000000 bytes)
|
|
241
241
|
- Maximum: 10 TB (10000000000000 bytes)
|
|
242
242
|
"""
|
|
243
|
-
return pulumi.get(self, "
|
|
243
|
+
return pulumi.get(self, "size_in_gb")
|
|
244
244
|
|
|
245
|
-
@
|
|
246
|
-
def
|
|
247
|
-
pulumi.set(self, "
|
|
245
|
+
@size_in_gb.setter
|
|
246
|
+
def size_in_gb(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
247
|
+
pulumi.set(self, "size_in_gb", value)
|
|
248
248
|
|
|
249
249
|
@_builtins.property
|
|
250
250
|
@pulumi.getter
|
|
@@ -292,11 +292,13 @@ class FileFilesystem(pulumi.CustomResource):
|
|
|
292
292
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
293
293
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
294
294
|
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
295
|
-
|
|
295
|
+
size_in_gb: Optional[pulumi.Input[_builtins.int]] = None,
|
|
296
296
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
297
297
|
__props__=None):
|
|
298
298
|
"""
|
|
299
|
-
|
|
299
|
+
> **This product is currently in private beta. To request access, please contact your Technical Account Manager.**
|
|
300
|
+
|
|
301
|
+
Creates and manages a Scaleway File Storage filesystem in a specific region. A filesystem is a scalable storage resource that can be mounted on Compute instances and is typically used for share persistent storage between multiple instances (RWX).
|
|
300
302
|
|
|
301
303
|
This resource allows you to define and manage the size, tags, and region of a filesystem, and track its creation and update timestamps, current status, and number of active attachments.
|
|
302
304
|
|
|
@@ -310,7 +312,7 @@ class FileFilesystem(pulumi.CustomResource):
|
|
|
310
312
|
|
|
311
313
|
file = scaleway.FileFilesystem("file",
|
|
312
314
|
name="my-nfs-filesystem",
|
|
313
|
-
|
|
315
|
+
size_in_gb=100)
|
|
314
316
|
```
|
|
315
317
|
|
|
316
318
|
## Import
|
|
@@ -329,7 +331,7 @@ class FileFilesystem(pulumi.CustomResource):
|
|
|
329
331
|
:param pulumi.Input[_builtins.str] project_id: `project_id`) The ID of the project the server is
|
|
330
332
|
associated with.
|
|
331
333
|
:param pulumi.Input[_builtins.str] region: `region`) The region where the filesystem will be created (e.g., fr-par, nl-ams).
|
|
332
|
-
:param pulumi.Input[_builtins.int]
|
|
334
|
+
:param pulumi.Input[_builtins.int] size_in_gb: The size of the filesystem in bytes, with a granularity of 100 GB (10¹¹ bytes).
|
|
333
335
|
- Minimum: 100 GB (100000000000 bytes)
|
|
334
336
|
- Maximum: 10 TB (10000000000000 bytes)
|
|
335
337
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of tags associated with the filesystem.
|
|
@@ -341,7 +343,9 @@ class FileFilesystem(pulumi.CustomResource):
|
|
|
341
343
|
args: FileFilesystemArgs,
|
|
342
344
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
343
345
|
"""
|
|
344
|
-
|
|
346
|
+
> **This product is currently in private beta. To request access, please contact your Technical Account Manager.**
|
|
347
|
+
|
|
348
|
+
Creates and manages a Scaleway File Storage filesystem in a specific region. A filesystem is a scalable storage resource that can be mounted on Compute instances and is typically used for share persistent storage between multiple instances (RWX).
|
|
345
349
|
|
|
346
350
|
This resource allows you to define and manage the size, tags, and region of a filesystem, and track its creation and update timestamps, current status, and number of active attachments.
|
|
347
351
|
|
|
@@ -355,7 +359,7 @@ class FileFilesystem(pulumi.CustomResource):
|
|
|
355
359
|
|
|
356
360
|
file = scaleway.FileFilesystem("file",
|
|
357
361
|
name="my-nfs-filesystem",
|
|
358
|
-
|
|
362
|
+
size_in_gb=100)
|
|
359
363
|
```
|
|
360
364
|
|
|
361
365
|
## Import
|
|
@@ -386,7 +390,7 @@ class FileFilesystem(pulumi.CustomResource):
|
|
|
386
390
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
387
391
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
388
392
|
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
389
|
-
|
|
393
|
+
size_in_gb: Optional[pulumi.Input[_builtins.int]] = None,
|
|
390
394
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
391
395
|
__props__=None):
|
|
392
396
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
@@ -400,9 +404,9 @@ class FileFilesystem(pulumi.CustomResource):
|
|
|
400
404
|
__props__.__dict__["name"] = name
|
|
401
405
|
__props__.__dict__["project_id"] = project_id
|
|
402
406
|
__props__.__dict__["region"] = region
|
|
403
|
-
if
|
|
404
|
-
raise TypeError("Missing required property '
|
|
405
|
-
__props__.__dict__["
|
|
407
|
+
if size_in_gb is None and not opts.urn:
|
|
408
|
+
raise TypeError("Missing required property 'size_in_gb'")
|
|
409
|
+
__props__.__dict__["size_in_gb"] = size_in_gb
|
|
406
410
|
__props__.__dict__["tags"] = tags
|
|
407
411
|
__props__.__dict__["created_at"] = None
|
|
408
412
|
__props__.__dict__["number_of_attachments"] = None
|
|
@@ -425,7 +429,7 @@ class FileFilesystem(pulumi.CustomResource):
|
|
|
425
429
|
organization_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
426
430
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
427
431
|
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
428
|
-
|
|
432
|
+
size_in_gb: Optional[pulumi.Input[_builtins.int]] = None,
|
|
429
433
|
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
430
434
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
431
435
|
updated_at: Optional[pulumi.Input[_builtins.str]] = None) -> 'FileFilesystem':
|
|
@@ -443,7 +447,7 @@ class FileFilesystem(pulumi.CustomResource):
|
|
|
443
447
|
:param pulumi.Input[_builtins.str] project_id: `project_id`) The ID of the project the server is
|
|
444
448
|
associated with.
|
|
445
449
|
:param pulumi.Input[_builtins.str] region: `region`) The region where the filesystem will be created (e.g., fr-par, nl-ams).
|
|
446
|
-
:param pulumi.Input[_builtins.int]
|
|
450
|
+
:param pulumi.Input[_builtins.int] size_in_gb: The size of the filesystem in bytes, with a granularity of 100 GB (10¹¹ bytes).
|
|
447
451
|
- Minimum: 100 GB (100000000000 bytes)
|
|
448
452
|
- Maximum: 10 TB (10000000000000 bytes)
|
|
449
453
|
:param pulumi.Input[_builtins.str] status: The current status of the filesystem. Possible values include creating, available, etc.
|
|
@@ -460,7 +464,7 @@ class FileFilesystem(pulumi.CustomResource):
|
|
|
460
464
|
__props__.__dict__["organization_id"] = organization_id
|
|
461
465
|
__props__.__dict__["project_id"] = project_id
|
|
462
466
|
__props__.__dict__["region"] = region
|
|
463
|
-
__props__.__dict__["
|
|
467
|
+
__props__.__dict__["size_in_gb"] = size_in_gb
|
|
464
468
|
__props__.__dict__["status"] = status
|
|
465
469
|
__props__.__dict__["tags"] = tags
|
|
466
470
|
__props__.__dict__["updated_at"] = updated_at
|
|
@@ -516,14 +520,14 @@ class FileFilesystem(pulumi.CustomResource):
|
|
|
516
520
|
return pulumi.get(self, "region")
|
|
517
521
|
|
|
518
522
|
@_builtins.property
|
|
519
|
-
@pulumi.getter
|
|
520
|
-
def
|
|
523
|
+
@pulumi.getter(name="sizeInGb")
|
|
524
|
+
def size_in_gb(self) -> pulumi.Output[_builtins.int]:
|
|
521
525
|
"""
|
|
522
526
|
The size of the filesystem in bytes, with a granularity of 100 GB (10¹¹ bytes).
|
|
523
527
|
- Minimum: 100 GB (100000000000 bytes)
|
|
524
528
|
- Maximum: 10 TB (10000000000000 bytes)
|
|
525
529
|
"""
|
|
526
|
-
return pulumi.get(self, "
|
|
530
|
+
return pulumi.get(self, "size_in_gb")
|
|
527
531
|
|
|
528
532
|
@_builtins.property
|
|
529
533
|
@pulumi.getter
|