pulumiverse-scaleway 1.28.0a1747119212__py3-none-any.whl → 1.29.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumiverse_scaleway/__init__.py +16 -1
- pulumiverse_scaleway/_inputs.py +604 -6
- pulumiverse_scaleway/account/__init__.py +2 -0
- pulumiverse_scaleway/account/get_projects.py +235 -0
- pulumiverse_scaleway/account/outputs.py +95 -0
- pulumiverse_scaleway/baremetal_server.py +67 -258
- pulumiverse_scaleway/block/__init__.py +2 -0
- pulumiverse_scaleway/block/_inputs.py +73 -0
- pulumiverse_scaleway/block/get_snapshot.py +13 -1
- pulumiverse_scaleway/block/outputs.py +79 -0
- pulumiverse_scaleway/block/snapshot.py +62 -14
- pulumiverse_scaleway/block_snapshot.py +62 -14
- pulumiverse_scaleway/container.py +2 -2
- pulumiverse_scaleway/containers/container.py +2 -2
- pulumiverse_scaleway/database_instance.py +61 -21
- pulumiverse_scaleway/databases/_inputs.py +54 -0
- pulumiverse_scaleway/databases/get_instance.py +12 -1
- pulumiverse_scaleway/databases/instance.py +61 -21
- pulumiverse_scaleway/databases/outputs.py +62 -0
- pulumiverse_scaleway/databases/snapshot.py +2 -2
- pulumiverse_scaleway/domain/get_zone.py +7 -1
- pulumiverse_scaleway/elasticmetal/__init__.py +1 -1
- pulumiverse_scaleway/elasticmetal/_inputs.py +74 -0
- pulumiverse_scaleway/elasticmetal/get_partition_schema.py +215 -0
- pulumiverse_scaleway/elasticmetal/get_server.py +12 -1
- pulumiverse_scaleway/elasticmetal/outputs.py +87 -0
- pulumiverse_scaleway/elasticmetal/server.py +67 -258
- pulumiverse_scaleway/get_baremetal_server.py +12 -1
- pulumiverse_scaleway/get_block_snapshot.py +13 -1
- pulumiverse_scaleway/get_cockpit_plan.py +2 -38
- pulumiverse_scaleway/get_database_instance.py +12 -1
- pulumiverse_scaleway/get_domain_zone.py +7 -1
- pulumiverse_scaleway/get_instance_private_nic.py +13 -1
- pulumiverse_scaleway/get_instance_server.py +12 -1
- pulumiverse_scaleway/get_lb_route.py +12 -1
- pulumiverse_scaleway/get_loadbalancer.py +12 -1
- pulumiverse_scaleway/get_mongo_db_instance.py +12 -1
- pulumiverse_scaleway/get_redis_cluster.py +12 -1
- pulumiverse_scaleway/get_vpc_gateway_network.py +12 -1
- pulumiverse_scaleway/iam/user.py +468 -14
- pulumiverse_scaleway/iam_user.py +468 -14
- pulumiverse_scaleway/inference/__init__.py +2 -0
- pulumiverse_scaleway/inference/_inputs.py +128 -0
- pulumiverse_scaleway/inference/deployment.py +70 -55
- pulumiverse_scaleway/inference/get_model.py +299 -0
- pulumiverse_scaleway/inference/model.py +683 -0
- pulumiverse_scaleway/inference/outputs.py +184 -0
- pulumiverse_scaleway/inference_deployment.py +70 -55
- pulumiverse_scaleway/instance/_inputs.py +108 -0
- pulumiverse_scaleway/instance/get_private_nic.py +13 -1
- pulumiverse_scaleway/instance/get_server.py +12 -1
- pulumiverse_scaleway/instance/outputs.py +124 -0
- pulumiverse_scaleway/instance/private_nic.py +49 -0
- pulumiverse_scaleway/instance/server.py +47 -0
- pulumiverse_scaleway/instance/snapshot.py +28 -7
- pulumiverse_scaleway/instance/volume.py +28 -7
- pulumiverse_scaleway/instance_private_nic.py +49 -0
- pulumiverse_scaleway/instance_server.py +47 -0
- pulumiverse_scaleway/instance_snapshot.py +28 -7
- pulumiverse_scaleway/instance_volume.py +28 -7
- pulumiverse_scaleway/kubernetes/__init__.py +1 -0
- pulumiverse_scaleway/kubernetes/_inputs.py +203 -0
- pulumiverse_scaleway/kubernetes/acl.py +446 -0
- pulumiverse_scaleway/kubernetes/outputs.py +195 -1
- pulumiverse_scaleway/loadbalancer.py +28 -0
- pulumiverse_scaleway/loadbalancer_route.py +138 -14
- pulumiverse_scaleway/loadbalancers/_inputs.py +54 -0
- pulumiverse_scaleway/loadbalancers/get_load_balancer.py +12 -1
- pulumiverse_scaleway/loadbalancers/get_route.py +12 -1
- pulumiverse_scaleway/loadbalancers/load_balancer.py +28 -0
- pulumiverse_scaleway/loadbalancers/outputs.py +62 -0
- pulumiverse_scaleway/loadbalancers/route.py +138 -14
- pulumiverse_scaleway/mnq/sns_credentials.py +7 -7
- pulumiverse_scaleway/mnq/sqs_credentials.py +7 -7
- pulumiverse_scaleway/mnq_sns_credentials.py +7 -7
- pulumiverse_scaleway/mnq_sqs_credentials.py +7 -7
- pulumiverse_scaleway/mongo_db_instance.py +107 -7
- pulumiverse_scaleway/mongodb/_inputs.py +54 -0
- pulumiverse_scaleway/mongodb/get_instance.py +12 -1
- pulumiverse_scaleway/mongodb/instance.py +107 -7
- pulumiverse_scaleway/mongodb/outputs.py +62 -0
- pulumiverse_scaleway/network/_inputs.py +54 -0
- pulumiverse_scaleway/network/gateway_network.py +47 -0
- pulumiverse_scaleway/network/get_gateway_network.py +12 -1
- pulumiverse_scaleway/network/outputs.py +62 -0
- pulumiverse_scaleway/network/route.py +90 -2
- pulumiverse_scaleway/observability/__init__.py +0 -1
- pulumiverse_scaleway/observability/get_plan.py +2 -38
- pulumiverse_scaleway/outputs.py +718 -27
- pulumiverse_scaleway/pulumi-plugin.json +1 -1
- pulumiverse_scaleway/rdb_snapshot.py +2 -2
- pulumiverse_scaleway/redis/_inputs.py +60 -6
- pulumiverse_scaleway/redis/cluster.py +47 -0
- pulumiverse_scaleway/redis/get_cluster.py +12 -1
- pulumiverse_scaleway/redis/outputs.py +66 -4
- pulumiverse_scaleway/redis_cluster.py +47 -0
- pulumiverse_scaleway/vpc_gateway_network.py +47 -0
- pulumiverse_scaleway/vpc_route.py +90 -2
- {pulumiverse_scaleway-1.28.0a1747119212.dist-info → pulumiverse_scaleway-1.29.0.dist-info}/METADATA +1 -1
- {pulumiverse_scaleway-1.28.0a1747119212.dist-info → pulumiverse_scaleway-1.29.0.dist-info}/RECORD +102 -94
- {pulumiverse_scaleway-1.28.0a1747119212.dist-info → pulumiverse_scaleway-1.29.0.dist-info}/WHEEL +1 -1
- {pulumiverse_scaleway-1.28.0a1747119212.dist-info → pulumiverse_scaleway-1.29.0.dist-info}/top_level.txt +0 -0
@@ -30,6 +30,7 @@ class ServerArgs:
|
|
30
30
|
os: Optional[pulumi.Input[str]] = None,
|
31
31
|
partitioning: Optional[pulumi.Input[str]] = None,
|
32
32
|
password: Optional[pulumi.Input[str]] = None,
|
33
|
+
private_ips: Optional[pulumi.Input[Sequence[pulumi.Input['ServerPrivateIpArgs']]]] = None,
|
33
34
|
private_networks: Optional[pulumi.Input[Sequence[pulumi.Input['ServerPrivateNetworkArgs']]]] = None,
|
34
35
|
project_id: Optional[pulumi.Input[str]] = None,
|
35
36
|
reinstall_on_config_changes: Optional[pulumi.Input[bool]] = None,
|
@@ -56,6 +57,7 @@ class ServerArgs:
|
|
56
57
|
> **Important:** Updates to `os` will reinstall the server.
|
57
58
|
:param pulumi.Input[str] partitioning: The partitioning schema in JSON format
|
58
59
|
:param pulumi.Input[str] password: Password used for the installation. May be required depending on used os.
|
60
|
+
:param pulumi.Input[Sequence[pulumi.Input['ServerPrivateIpArgs']]] private_ips: The list of private IPv4 and IPv6 addresses associated with the resource.
|
59
61
|
:param pulumi.Input[Sequence[pulumi.Input['ServerPrivateNetworkArgs']]] private_networks: The private networks to attach to the server. For more information, see [the documentation](https://www.scaleway.com/en/docs/compute/elastic-metal/how-to/use-private-networks/)
|
60
62
|
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the server is associated with.
|
61
63
|
:param pulumi.Input[bool] reinstall_on_config_changes: If True, this boolean allows to reinstall the server on install config changes.
|
@@ -84,6 +86,8 @@ class ServerArgs:
|
|
84
86
|
pulumi.set(__self__, "partitioning", partitioning)
|
85
87
|
if password is not None:
|
86
88
|
pulumi.set(__self__, "password", password)
|
89
|
+
if private_ips is not None:
|
90
|
+
pulumi.set(__self__, "private_ips", private_ips)
|
87
91
|
if private_networks is not None:
|
88
92
|
pulumi.set(__self__, "private_networks", private_networks)
|
89
93
|
if project_id is not None:
|
@@ -217,6 +221,18 @@ class ServerArgs:
|
|
217
221
|
def password(self, value: Optional[pulumi.Input[str]]):
|
218
222
|
pulumi.set(self, "password", value)
|
219
223
|
|
224
|
+
@property
|
225
|
+
@pulumi.getter(name="privateIps")
|
226
|
+
def private_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServerPrivateIpArgs']]]]:
|
227
|
+
"""
|
228
|
+
The list of private IPv4 and IPv6 addresses associated with the resource.
|
229
|
+
"""
|
230
|
+
return pulumi.get(self, "private_ips")
|
231
|
+
|
232
|
+
@private_ips.setter
|
233
|
+
def private_ips(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ServerPrivateIpArgs']]]]):
|
234
|
+
pulumi.set(self, "private_ips", value)
|
235
|
+
|
220
236
|
@property
|
221
237
|
@pulumi.getter(name="privateNetworks")
|
222
238
|
def private_networks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServerPrivateNetworkArgs']]]]:
|
@@ -347,6 +363,7 @@ class _ServerState:
|
|
347
363
|
os_name: Optional[pulumi.Input[str]] = None,
|
348
364
|
partitioning: Optional[pulumi.Input[str]] = None,
|
349
365
|
password: Optional[pulumi.Input[str]] = None,
|
366
|
+
private_ips: Optional[pulumi.Input[Sequence[pulumi.Input['ServerPrivateIpArgs']]]] = None,
|
350
367
|
private_networks: Optional[pulumi.Input[Sequence[pulumi.Input['ServerPrivateNetworkArgs']]]] = None,
|
351
368
|
project_id: Optional[pulumi.Input[str]] = None,
|
352
369
|
reinstall_on_config_changes: Optional[pulumi.Input[bool]] = None,
|
@@ -381,6 +398,7 @@ class _ServerState:
|
|
381
398
|
:param pulumi.Input[str] os_name: The name of the os.
|
382
399
|
:param pulumi.Input[str] partitioning: The partitioning schema in JSON format
|
383
400
|
:param pulumi.Input[str] password: Password used for the installation. May be required depending on used os.
|
401
|
+
:param pulumi.Input[Sequence[pulumi.Input['ServerPrivateIpArgs']]] private_ips: The list of private IPv4 and IPv6 addresses associated with the resource.
|
384
402
|
:param pulumi.Input[Sequence[pulumi.Input['ServerPrivateNetworkArgs']]] private_networks: The private networks to attach to the server. For more information, see [the documentation](https://www.scaleway.com/en/docs/compute/elastic-metal/how-to/use-private-networks/)
|
385
403
|
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the server is associated with.
|
386
404
|
:param pulumi.Input[bool] reinstall_on_config_changes: If True, this boolean allows to reinstall the server on install config changes.
|
@@ -426,6 +444,8 @@ class _ServerState:
|
|
426
444
|
pulumi.set(__self__, "partitioning", partitioning)
|
427
445
|
if password is not None:
|
428
446
|
pulumi.set(__self__, "password", password)
|
447
|
+
if private_ips is not None:
|
448
|
+
pulumi.set(__self__, "private_ips", private_ips)
|
429
449
|
if private_networks is not None:
|
430
450
|
pulumi.set(__self__, "private_networks", private_networks)
|
431
451
|
if project_id is not None:
|
@@ -655,6 +675,18 @@ class _ServerState:
|
|
655
675
|
def password(self, value: Optional[pulumi.Input[str]]):
|
656
676
|
pulumi.set(self, "password", value)
|
657
677
|
|
678
|
+
@property
|
679
|
+
@pulumi.getter(name="privateIps")
|
680
|
+
def private_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServerPrivateIpArgs']]]]:
|
681
|
+
"""
|
682
|
+
The list of private IPv4 and IPv6 addresses associated with the resource.
|
683
|
+
"""
|
684
|
+
return pulumi.get(self, "private_ips")
|
685
|
+
|
686
|
+
@private_ips.setter
|
687
|
+
def private_ips(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ServerPrivateIpArgs']]]]):
|
688
|
+
pulumi.set(self, "private_ips", value)
|
689
|
+
|
658
690
|
@property
|
659
691
|
@pulumi.getter(name="privateNetworks")
|
660
692
|
def private_networks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServerPrivateNetworkArgs']]]]:
|
@@ -779,6 +811,7 @@ class Server(pulumi.CustomResource):
|
|
779
811
|
os: Optional[pulumi.Input[str]] = None,
|
780
812
|
partitioning: Optional[pulumi.Input[str]] = None,
|
781
813
|
password: Optional[pulumi.Input[str]] = None,
|
814
|
+
private_ips: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServerPrivateIpArgs', 'ServerPrivateIpArgsDict']]]]] = None,
|
782
815
|
private_networks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServerPrivateNetworkArgs', 'ServerPrivateNetworkArgsDict']]]]] = None,
|
783
816
|
project_id: Optional[pulumi.Input[str]] = None,
|
784
817
|
reinstall_on_config_changes: Optional[pulumi.Input[bool]] = None,
|
@@ -794,127 +827,6 @@ class Server(pulumi.CustomResource):
|
|
794
827
|
|
795
828
|
## Example Usage
|
796
829
|
|
797
|
-
### Basic
|
798
|
-
|
799
|
-
```python
|
800
|
-
import pulumi
|
801
|
-
import pulumi_scaleway as scaleway
|
802
|
-
import pulumiverse_scaleway as scaleway
|
803
|
-
|
804
|
-
main = scaleway.iam.get_ssh_key(name="main")
|
805
|
-
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-2",
|
806
|
-
name="EM-I220E-NVME")
|
807
|
-
base = scaleway.elasticmetal.Server("base",
|
808
|
-
zone="fr-par-2",
|
809
|
-
offer=my_offer.offer_id,
|
810
|
-
os="d17d6872-0412-45d9-a198-af82c34d3c5c",
|
811
|
-
ssh_key_ids=[main_scaleway_account_ssh_key["id"]])
|
812
|
-
```
|
813
|
-
|
814
|
-
### With option
|
815
|
-
|
816
|
-
```python
|
817
|
-
import pulumi
|
818
|
-
import pulumi_scaleway as scaleway
|
819
|
-
import pulumiverse_scaleway as scaleway
|
820
|
-
|
821
|
-
main = scaleway.iam.get_ssh_key(name="main")
|
822
|
-
my_os = scaleway.elasticmetal.get_os(zone="fr-par-2",
|
823
|
-
name="Ubuntu",
|
824
|
-
version="22.04 LTS (Jammy Jellyfish)")
|
825
|
-
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-2",
|
826
|
-
name="EM-B112X-SSD")
|
827
|
-
private_network = scaleway.elasticmetal.get_option(zone="fr-par-2",
|
828
|
-
name="Private Network")
|
829
|
-
remote_access = scaleway.elasticmetal.get_option(zone="fr-par-2",
|
830
|
-
name="Remote Access")
|
831
|
-
base = scaleway.elasticmetal.Server("base",
|
832
|
-
zone="fr-par-2",
|
833
|
-
offer=my_offer.offer_id,
|
834
|
-
os=my_os.os_id,
|
835
|
-
ssh_key_ids=[main_scaleway_account_ssh_key["id"]],
|
836
|
-
options=[
|
837
|
-
{
|
838
|
-
"id": private_network.option_id,
|
839
|
-
},
|
840
|
-
{
|
841
|
-
"id": remote_access.option_id,
|
842
|
-
},
|
843
|
-
])
|
844
|
-
```
|
845
|
-
|
846
|
-
### With private network
|
847
|
-
|
848
|
-
```python
|
849
|
-
import pulumi
|
850
|
-
import pulumi_scaleway as scaleway
|
851
|
-
import pulumiverse_scaleway as scaleway
|
852
|
-
|
853
|
-
main = scaleway.iam.get_ssh_key(name="main")
|
854
|
-
my_os = scaleway.elasticmetal.get_os(zone="fr-par-2",
|
855
|
-
name="Ubuntu",
|
856
|
-
version="22.04 LTS (Jammy Jellyfish)")
|
857
|
-
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-2",
|
858
|
-
name="EM-B112X-SSD")
|
859
|
-
private_network = scaleway.elasticmetal.get_option(zone="fr-par-2",
|
860
|
-
name="Private Network")
|
861
|
-
pn = scaleway.network.PrivateNetwork("pn",
|
862
|
-
region="fr-par",
|
863
|
-
name="baremetal_private_network")
|
864
|
-
base = scaleway.elasticmetal.Server("base",
|
865
|
-
zone="fr-par-2",
|
866
|
-
offer=my_offer.offer_id,
|
867
|
-
os=my_os.os_id,
|
868
|
-
ssh_key_ids=[main_scaleway_account_ssh_key["id"]],
|
869
|
-
options=[{
|
870
|
-
"id": private_network.option_id,
|
871
|
-
}],
|
872
|
-
private_networks=[{
|
873
|
-
"id": pn.id,
|
874
|
-
}])
|
875
|
-
```
|
876
|
-
|
877
|
-
### With IPAM IP IDs
|
878
|
-
|
879
|
-
```python
|
880
|
-
import pulumi
|
881
|
-
import pulumi_scaleway as scaleway
|
882
|
-
import pulumiverse_scaleway as scaleway
|
883
|
-
|
884
|
-
vpc01 = scaleway.network.Vpc("vpc01", name="vpc_baremetal")
|
885
|
-
pn01 = scaleway.network.PrivateNetwork("pn01",
|
886
|
-
name="private_network_baremetal",
|
887
|
-
ipv4_subnet={
|
888
|
-
"subnet": "172.16.64.0/22",
|
889
|
-
},
|
890
|
-
vpc_id=vpc01.id)
|
891
|
-
ip01 = scaleway.ipam.Ip("ip01",
|
892
|
-
address="172.16.64.7",
|
893
|
-
sources=[{
|
894
|
-
"private_network_id": pn01.id,
|
895
|
-
}])
|
896
|
-
my_key = scaleway.iam.get_ssh_key(name="main")
|
897
|
-
my_os = scaleway.elasticmetal.get_os(zone="fr-par-1",
|
898
|
-
name="Ubuntu",
|
899
|
-
version="22.04 LTS (Jammy Jellyfish)")
|
900
|
-
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-1",
|
901
|
-
name="EM-A115X-SSD")
|
902
|
-
private_network = scaleway.elasticmetal.get_option(zone="fr-par-1",
|
903
|
-
name="Private Network")
|
904
|
-
base = scaleway.elasticmetal.Server("base",
|
905
|
-
zone="fr-par-2",
|
906
|
-
offer=my_offer.offer_id,
|
907
|
-
os=my_os.os_id,
|
908
|
-
ssh_key_ids=[my_key_scaleway_account_ssh_key["id"]],
|
909
|
-
options=[{
|
910
|
-
"id": private_network.option_id,
|
911
|
-
}],
|
912
|
-
private_networks=[{
|
913
|
-
"id": pn01.id,
|
914
|
-
"ipam_ip_ids": [ip01.id],
|
915
|
-
}])
|
916
|
-
```
|
917
|
-
|
918
830
|
### Without install config
|
919
831
|
|
920
832
|
```python
|
@@ -924,7 +836,7 @@ class Server(pulumi.CustomResource):
|
|
924
836
|
|
925
837
|
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-2",
|
926
838
|
name="EM-B112X-SSD")
|
927
|
-
|
839
|
+
my_server = scaleway.elasticmetal.Server("my_server",
|
928
840
|
zone="fr-par-2",
|
929
841
|
offer=my_offer.offer_id,
|
930
842
|
install_config_afterward=True)
|
@@ -940,16 +852,18 @@ class Server(pulumi.CustomResource):
|
|
940
852
|
config = pulumi.Config()
|
941
853
|
config_custom_partitioning = config.get("configCustomPartitioning")
|
942
854
|
if config_custom_partitioning is None:
|
943
|
-
config_custom_partitioning = "{\\"disks\\":[{\\"device\\":\\"/dev/nvme0n1\\",\\"partitions\\":[{\\"label\\":\\"uefi\\",\\"number\\":1,\\"size\\":536870912},{\\"label\\":\\"
|
855
|
+
config_custom_partitioning = "{\\"disks\\":[{\\"device\\":\\"/dev/nvme0n1\\",\\"partitions\\":[{\\"label\\":\\"uefi\\",\\"number\\":1,\\"size\\":536870912,\\"useAllAvailableSpace\\":false},{\\"label\\":\\"boot\\",\\"number\\":2,\\"size\\":536870912,\\"useAllAvailableSpace\\":false},{\\"label\\":\\"root\\",\\"number\\":3,\\"size\\":1018839433216,\\"useAllAvailableSpace\\":false}]},{\\"device\\":\\"/dev/nvme1n1\\",\\"partitions\\":[{\\"label\\":\\"boot\\",\\"number\\":1,\\"size\\":536870912,\\"useAllAvailableSpace\\":false},{\\"label\\":\\"data\\",\\"number\\":2,\\"size\\":1018839433216,\\"useAllAvailableSpace\\":false}]}],\\"filesystems\\":[{\\"device\\":\\"/dev/nvme0n1p1\\",\\"format\\":\\"fat32\\",\\"mountpoint\\":\\"/boot/efi\\"},{\\"device\\":\\"/dev/nvme0n1p2\\",\\"format\\":\\"ext4\\",\\"mountpoint\\":\\"/boot\\"},{\\"device\\":\\"/dev/nvme0n1p3\\",\\"format\\":\\"ext4\\",\\"mountpoint\\":\\"/\\"},{\\"device\\":\\"/dev/nvme1n1p2\\",\\"format\\":\\"ext4\\",\\"mountpoint\\":\\"/data\\"}],\\"raids\\":[]}"
|
944
856
|
my_os = scaleway.elasticmetal.get_os(zone="fr-par-1",
|
945
857
|
name="Ubuntu",
|
946
858
|
version="22.04 LTS (Jammy Jellyfish)")
|
947
|
-
|
859
|
+
my_ssh_key = scaleway.iam.SshKey("my_ssh_key",
|
860
|
+
name="my_ssh_key",
|
861
|
+
public_key="ssh XXXXXXXXXXX")
|
948
862
|
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-1",
|
949
863
|
name="EM-B220E-NVME",
|
950
864
|
subscription_period="hourly")
|
951
|
-
|
952
|
-
name="
|
865
|
+
my_server = scaleway.elasticmetal.Server("my_server",
|
866
|
+
name="my_super_server",
|
953
867
|
zone="fr-par-1",
|
954
868
|
description="test a description",
|
955
869
|
offer=my_offer.offer_id,
|
@@ -960,7 +874,7 @@ class Server(pulumi.CustomResource):
|
|
960
874
|
"scaleway_baremetal_server",
|
961
875
|
"minimal",
|
962
876
|
],
|
963
|
-
ssh_key_ids=[
|
877
|
+
ssh_key_ids=[my_ssh_key.id])
|
964
878
|
```
|
965
879
|
|
966
880
|
### Migrate from hourly to monthly plan
|
@@ -978,7 +892,7 @@ class Server(pulumi.CustomResource):
|
|
978
892
|
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-1",
|
979
893
|
name="EM-B220E-NVME",
|
980
894
|
subscription_period="hourly")
|
981
|
-
|
895
|
+
my_server = scaleway.elasticmetal.Server("my_server",
|
982
896
|
name="UpdateSubscriptionPeriod",
|
983
897
|
offer=my_offer.offer_id,
|
984
898
|
zone="%s",
|
@@ -995,7 +909,7 @@ class Server(pulumi.CustomResource):
|
|
995
909
|
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-1",
|
996
910
|
name="EM-B220E-NVME",
|
997
911
|
subscription_period="monthly")
|
998
|
-
|
912
|
+
my_server = scaleway.elasticmetal.Server("my_server",
|
999
913
|
name="UpdateSubscriptionPeriod",
|
1000
914
|
offer=my_offer.offer_id,
|
1001
915
|
zone="fr-par-1",
|
@@ -1031,6 +945,7 @@ class Server(pulumi.CustomResource):
|
|
1031
945
|
> **Important:** Updates to `os` will reinstall the server.
|
1032
946
|
:param pulumi.Input[str] partitioning: The partitioning schema in JSON format
|
1033
947
|
:param pulumi.Input[str] password: Password used for the installation. May be required depending on used os.
|
948
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ServerPrivateIpArgs', 'ServerPrivateIpArgsDict']]]] private_ips: The list of private IPv4 and IPv6 addresses associated with the resource.
|
1034
949
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ServerPrivateNetworkArgs', 'ServerPrivateNetworkArgsDict']]]] private_networks: The private networks to attach to the server. For more information, see [the documentation](https://www.scaleway.com/en/docs/compute/elastic-metal/how-to/use-private-networks/)
|
1035
950
|
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the server is associated with.
|
1036
951
|
:param pulumi.Input[bool] reinstall_on_config_changes: If True, this boolean allows to reinstall the server on install config changes.
|
@@ -1053,127 +968,6 @@ class Server(pulumi.CustomResource):
|
|
1053
968
|
|
1054
969
|
## Example Usage
|
1055
970
|
|
1056
|
-
### Basic
|
1057
|
-
|
1058
|
-
```python
|
1059
|
-
import pulumi
|
1060
|
-
import pulumi_scaleway as scaleway
|
1061
|
-
import pulumiverse_scaleway as scaleway
|
1062
|
-
|
1063
|
-
main = scaleway.iam.get_ssh_key(name="main")
|
1064
|
-
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-2",
|
1065
|
-
name="EM-I220E-NVME")
|
1066
|
-
base = scaleway.elasticmetal.Server("base",
|
1067
|
-
zone="fr-par-2",
|
1068
|
-
offer=my_offer.offer_id,
|
1069
|
-
os="d17d6872-0412-45d9-a198-af82c34d3c5c",
|
1070
|
-
ssh_key_ids=[main_scaleway_account_ssh_key["id"]])
|
1071
|
-
```
|
1072
|
-
|
1073
|
-
### With option
|
1074
|
-
|
1075
|
-
```python
|
1076
|
-
import pulumi
|
1077
|
-
import pulumi_scaleway as scaleway
|
1078
|
-
import pulumiverse_scaleway as scaleway
|
1079
|
-
|
1080
|
-
main = scaleway.iam.get_ssh_key(name="main")
|
1081
|
-
my_os = scaleway.elasticmetal.get_os(zone="fr-par-2",
|
1082
|
-
name="Ubuntu",
|
1083
|
-
version="22.04 LTS (Jammy Jellyfish)")
|
1084
|
-
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-2",
|
1085
|
-
name="EM-B112X-SSD")
|
1086
|
-
private_network = scaleway.elasticmetal.get_option(zone="fr-par-2",
|
1087
|
-
name="Private Network")
|
1088
|
-
remote_access = scaleway.elasticmetal.get_option(zone="fr-par-2",
|
1089
|
-
name="Remote Access")
|
1090
|
-
base = scaleway.elasticmetal.Server("base",
|
1091
|
-
zone="fr-par-2",
|
1092
|
-
offer=my_offer.offer_id,
|
1093
|
-
os=my_os.os_id,
|
1094
|
-
ssh_key_ids=[main_scaleway_account_ssh_key["id"]],
|
1095
|
-
options=[
|
1096
|
-
{
|
1097
|
-
"id": private_network.option_id,
|
1098
|
-
},
|
1099
|
-
{
|
1100
|
-
"id": remote_access.option_id,
|
1101
|
-
},
|
1102
|
-
])
|
1103
|
-
```
|
1104
|
-
|
1105
|
-
### With private network
|
1106
|
-
|
1107
|
-
```python
|
1108
|
-
import pulumi
|
1109
|
-
import pulumi_scaleway as scaleway
|
1110
|
-
import pulumiverse_scaleway as scaleway
|
1111
|
-
|
1112
|
-
main = scaleway.iam.get_ssh_key(name="main")
|
1113
|
-
my_os = scaleway.elasticmetal.get_os(zone="fr-par-2",
|
1114
|
-
name="Ubuntu",
|
1115
|
-
version="22.04 LTS (Jammy Jellyfish)")
|
1116
|
-
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-2",
|
1117
|
-
name="EM-B112X-SSD")
|
1118
|
-
private_network = scaleway.elasticmetal.get_option(zone="fr-par-2",
|
1119
|
-
name="Private Network")
|
1120
|
-
pn = scaleway.network.PrivateNetwork("pn",
|
1121
|
-
region="fr-par",
|
1122
|
-
name="baremetal_private_network")
|
1123
|
-
base = scaleway.elasticmetal.Server("base",
|
1124
|
-
zone="fr-par-2",
|
1125
|
-
offer=my_offer.offer_id,
|
1126
|
-
os=my_os.os_id,
|
1127
|
-
ssh_key_ids=[main_scaleway_account_ssh_key["id"]],
|
1128
|
-
options=[{
|
1129
|
-
"id": private_network.option_id,
|
1130
|
-
}],
|
1131
|
-
private_networks=[{
|
1132
|
-
"id": pn.id,
|
1133
|
-
}])
|
1134
|
-
```
|
1135
|
-
|
1136
|
-
### With IPAM IP IDs
|
1137
|
-
|
1138
|
-
```python
|
1139
|
-
import pulumi
|
1140
|
-
import pulumi_scaleway as scaleway
|
1141
|
-
import pulumiverse_scaleway as scaleway
|
1142
|
-
|
1143
|
-
vpc01 = scaleway.network.Vpc("vpc01", name="vpc_baremetal")
|
1144
|
-
pn01 = scaleway.network.PrivateNetwork("pn01",
|
1145
|
-
name="private_network_baremetal",
|
1146
|
-
ipv4_subnet={
|
1147
|
-
"subnet": "172.16.64.0/22",
|
1148
|
-
},
|
1149
|
-
vpc_id=vpc01.id)
|
1150
|
-
ip01 = scaleway.ipam.Ip("ip01",
|
1151
|
-
address="172.16.64.7",
|
1152
|
-
sources=[{
|
1153
|
-
"private_network_id": pn01.id,
|
1154
|
-
}])
|
1155
|
-
my_key = scaleway.iam.get_ssh_key(name="main")
|
1156
|
-
my_os = scaleway.elasticmetal.get_os(zone="fr-par-1",
|
1157
|
-
name="Ubuntu",
|
1158
|
-
version="22.04 LTS (Jammy Jellyfish)")
|
1159
|
-
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-1",
|
1160
|
-
name="EM-A115X-SSD")
|
1161
|
-
private_network = scaleway.elasticmetal.get_option(zone="fr-par-1",
|
1162
|
-
name="Private Network")
|
1163
|
-
base = scaleway.elasticmetal.Server("base",
|
1164
|
-
zone="fr-par-2",
|
1165
|
-
offer=my_offer.offer_id,
|
1166
|
-
os=my_os.os_id,
|
1167
|
-
ssh_key_ids=[my_key_scaleway_account_ssh_key["id"]],
|
1168
|
-
options=[{
|
1169
|
-
"id": private_network.option_id,
|
1170
|
-
}],
|
1171
|
-
private_networks=[{
|
1172
|
-
"id": pn01.id,
|
1173
|
-
"ipam_ip_ids": [ip01.id],
|
1174
|
-
}])
|
1175
|
-
```
|
1176
|
-
|
1177
971
|
### Without install config
|
1178
972
|
|
1179
973
|
```python
|
@@ -1183,7 +977,7 @@ class Server(pulumi.CustomResource):
|
|
1183
977
|
|
1184
978
|
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-2",
|
1185
979
|
name="EM-B112X-SSD")
|
1186
|
-
|
980
|
+
my_server = scaleway.elasticmetal.Server("my_server",
|
1187
981
|
zone="fr-par-2",
|
1188
982
|
offer=my_offer.offer_id,
|
1189
983
|
install_config_afterward=True)
|
@@ -1199,16 +993,18 @@ class Server(pulumi.CustomResource):
|
|
1199
993
|
config = pulumi.Config()
|
1200
994
|
config_custom_partitioning = config.get("configCustomPartitioning")
|
1201
995
|
if config_custom_partitioning is None:
|
1202
|
-
config_custom_partitioning = "{\\"disks\\":[{\\"device\\":\\"/dev/nvme0n1\\",\\"partitions\\":[{\\"label\\":\\"uefi\\",\\"number\\":1,\\"size\\":536870912},{\\"label\\":\\"
|
996
|
+
config_custom_partitioning = "{\\"disks\\":[{\\"device\\":\\"/dev/nvme0n1\\",\\"partitions\\":[{\\"label\\":\\"uefi\\",\\"number\\":1,\\"size\\":536870912,\\"useAllAvailableSpace\\":false},{\\"label\\":\\"boot\\",\\"number\\":2,\\"size\\":536870912,\\"useAllAvailableSpace\\":false},{\\"label\\":\\"root\\",\\"number\\":3,\\"size\\":1018839433216,\\"useAllAvailableSpace\\":false}]},{\\"device\\":\\"/dev/nvme1n1\\",\\"partitions\\":[{\\"label\\":\\"boot\\",\\"number\\":1,\\"size\\":536870912,\\"useAllAvailableSpace\\":false},{\\"label\\":\\"data\\",\\"number\\":2,\\"size\\":1018839433216,\\"useAllAvailableSpace\\":false}]}],\\"filesystems\\":[{\\"device\\":\\"/dev/nvme0n1p1\\",\\"format\\":\\"fat32\\",\\"mountpoint\\":\\"/boot/efi\\"},{\\"device\\":\\"/dev/nvme0n1p2\\",\\"format\\":\\"ext4\\",\\"mountpoint\\":\\"/boot\\"},{\\"device\\":\\"/dev/nvme0n1p3\\",\\"format\\":\\"ext4\\",\\"mountpoint\\":\\"/\\"},{\\"device\\":\\"/dev/nvme1n1p2\\",\\"format\\":\\"ext4\\",\\"mountpoint\\":\\"/data\\"}],\\"raids\\":[]}"
|
1203
997
|
my_os = scaleway.elasticmetal.get_os(zone="fr-par-1",
|
1204
998
|
name="Ubuntu",
|
1205
999
|
version="22.04 LTS (Jammy Jellyfish)")
|
1206
|
-
|
1000
|
+
my_ssh_key = scaleway.iam.SshKey("my_ssh_key",
|
1001
|
+
name="my_ssh_key",
|
1002
|
+
public_key="ssh XXXXXXXXXXX")
|
1207
1003
|
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-1",
|
1208
1004
|
name="EM-B220E-NVME",
|
1209
1005
|
subscription_period="hourly")
|
1210
|
-
|
1211
|
-
name="
|
1006
|
+
my_server = scaleway.elasticmetal.Server("my_server",
|
1007
|
+
name="my_super_server",
|
1212
1008
|
zone="fr-par-1",
|
1213
1009
|
description="test a description",
|
1214
1010
|
offer=my_offer.offer_id,
|
@@ -1219,7 +1015,7 @@ class Server(pulumi.CustomResource):
|
|
1219
1015
|
"scaleway_baremetal_server",
|
1220
1016
|
"minimal",
|
1221
1017
|
],
|
1222
|
-
ssh_key_ids=[
|
1018
|
+
ssh_key_ids=[my_ssh_key.id])
|
1223
1019
|
```
|
1224
1020
|
|
1225
1021
|
### Migrate from hourly to monthly plan
|
@@ -1237,7 +1033,7 @@ class Server(pulumi.CustomResource):
|
|
1237
1033
|
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-1",
|
1238
1034
|
name="EM-B220E-NVME",
|
1239
1035
|
subscription_period="hourly")
|
1240
|
-
|
1036
|
+
my_server = scaleway.elasticmetal.Server("my_server",
|
1241
1037
|
name="UpdateSubscriptionPeriod",
|
1242
1038
|
offer=my_offer.offer_id,
|
1243
1039
|
zone="%s",
|
@@ -1254,7 +1050,7 @@ class Server(pulumi.CustomResource):
|
|
1254
1050
|
my_offer = scaleway.elasticmetal.get_offer(zone="fr-par-1",
|
1255
1051
|
name="EM-B220E-NVME",
|
1256
1052
|
subscription_period="monthly")
|
1257
|
-
|
1053
|
+
my_server = scaleway.elasticmetal.Server("my_server",
|
1258
1054
|
name="UpdateSubscriptionPeriod",
|
1259
1055
|
offer=my_offer.offer_id,
|
1260
1056
|
zone="fr-par-1",
|
@@ -1297,6 +1093,7 @@ class Server(pulumi.CustomResource):
|
|
1297
1093
|
os: Optional[pulumi.Input[str]] = None,
|
1298
1094
|
partitioning: Optional[pulumi.Input[str]] = None,
|
1299
1095
|
password: Optional[pulumi.Input[str]] = None,
|
1096
|
+
private_ips: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServerPrivateIpArgs', 'ServerPrivateIpArgsDict']]]]] = None,
|
1300
1097
|
private_networks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServerPrivateNetworkArgs', 'ServerPrivateNetworkArgsDict']]]]] = None,
|
1301
1098
|
project_id: Optional[pulumi.Input[str]] = None,
|
1302
1099
|
reinstall_on_config_changes: Optional[pulumi.Input[bool]] = None,
|
@@ -1326,6 +1123,7 @@ class Server(pulumi.CustomResource):
|
|
1326
1123
|
__props__.__dict__["os"] = os
|
1327
1124
|
__props__.__dict__["partitioning"] = partitioning
|
1328
1125
|
__props__.__dict__["password"] = None if password is None else pulumi.Output.secret(password)
|
1126
|
+
__props__.__dict__["private_ips"] = private_ips
|
1329
1127
|
__props__.__dict__["private_networks"] = private_networks
|
1330
1128
|
__props__.__dict__["project_id"] = project_id
|
1331
1129
|
__props__.__dict__["reinstall_on_config_changes"] = reinstall_on_config_changes
|
@@ -1374,6 +1172,7 @@ class Server(pulumi.CustomResource):
|
|
1374
1172
|
os_name: Optional[pulumi.Input[str]] = None,
|
1375
1173
|
partitioning: Optional[pulumi.Input[str]] = None,
|
1376
1174
|
password: Optional[pulumi.Input[str]] = None,
|
1175
|
+
private_ips: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServerPrivateIpArgs', 'ServerPrivateIpArgsDict']]]]] = None,
|
1377
1176
|
private_networks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServerPrivateNetworkArgs', 'ServerPrivateNetworkArgsDict']]]]] = None,
|
1378
1177
|
project_id: Optional[pulumi.Input[str]] = None,
|
1379
1178
|
reinstall_on_config_changes: Optional[pulumi.Input[bool]] = None,
|
@@ -1413,6 +1212,7 @@ class Server(pulumi.CustomResource):
|
|
1413
1212
|
:param pulumi.Input[str] os_name: The name of the os.
|
1414
1213
|
:param pulumi.Input[str] partitioning: The partitioning schema in JSON format
|
1415
1214
|
:param pulumi.Input[str] password: Password used for the installation. May be required depending on used os.
|
1215
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ServerPrivateIpArgs', 'ServerPrivateIpArgsDict']]]] private_ips: The list of private IPv4 and IPv6 addresses associated with the resource.
|
1416
1216
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ServerPrivateNetworkArgs', 'ServerPrivateNetworkArgsDict']]]] private_networks: The private networks to attach to the server. For more information, see [the documentation](https://www.scaleway.com/en/docs/compute/elastic-metal/how-to/use-private-networks/)
|
1417
1217
|
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the server is associated with.
|
1418
1218
|
:param pulumi.Input[bool] reinstall_on_config_changes: If True, this boolean allows to reinstall the server on install config changes.
|
@@ -1445,6 +1245,7 @@ class Server(pulumi.CustomResource):
|
|
1445
1245
|
__props__.__dict__["os_name"] = os_name
|
1446
1246
|
__props__.__dict__["partitioning"] = partitioning
|
1447
1247
|
__props__.__dict__["password"] = password
|
1248
|
+
__props__.__dict__["private_ips"] = private_ips
|
1448
1249
|
__props__.__dict__["private_networks"] = private_networks
|
1449
1250
|
__props__.__dict__["project_id"] = project_id
|
1450
1251
|
__props__.__dict__["reinstall_on_config_changes"] = reinstall_on_config_changes
|
@@ -1598,6 +1399,14 @@ class Server(pulumi.CustomResource):
|
|
1598
1399
|
"""
|
1599
1400
|
return pulumi.get(self, "password")
|
1600
1401
|
|
1402
|
+
@property
|
1403
|
+
@pulumi.getter(name="privateIps")
|
1404
|
+
def private_ips(self) -> pulumi.Output[Sequence['outputs.ServerPrivateIp']]:
|
1405
|
+
"""
|
1406
|
+
The list of private IPv4 and IPv6 addresses associated with the resource.
|
1407
|
+
"""
|
1408
|
+
return pulumi.get(self, "private_ips")
|
1409
|
+
|
1601
1410
|
@property
|
1602
1411
|
@pulumi.getter(name="privateNetworks")
|
1603
1412
|
def private_networks(self) -> pulumi.Output[Optional[Sequence['outputs.ServerPrivateNetwork']]]:
|
@@ -29,7 +29,7 @@ class GetBaremetalServerResult:
|
|
29
29
|
"""
|
30
30
|
A collection of values returned by getBaremetalServer.
|
31
31
|
"""
|
32
|
-
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_networks=None, project_id=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):
|
32
|
+
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, reinstall_on_config_changes=None, server_id=None, service_password=None, service_user=None, ssh_key_ids=None, tags=None, user=None, zone=None):
|
33
33
|
if description and not isinstance(description, str):
|
34
34
|
raise TypeError("Expected argument 'description' to be a str")
|
35
35
|
pulumi.set(__self__, "description", description)
|
@@ -84,6 +84,9 @@ class GetBaremetalServerResult:
|
|
84
84
|
if password and not isinstance(password, str):
|
85
85
|
raise TypeError("Expected argument 'password' to be a str")
|
86
86
|
pulumi.set(__self__, "password", password)
|
87
|
+
if private_ips and not isinstance(private_ips, list):
|
88
|
+
raise TypeError("Expected argument 'private_ips' to be a list")
|
89
|
+
pulumi.set(__self__, "private_ips", private_ips)
|
87
90
|
if private_networks and not isinstance(private_networks, list):
|
88
91
|
raise TypeError("Expected argument 'private_networks' to be a list")
|
89
92
|
pulumi.set(__self__, "private_networks", private_networks)
|
@@ -208,6 +211,11 @@ class GetBaremetalServerResult:
|
|
208
211
|
def password(self) -> str:
|
209
212
|
return pulumi.get(self, "password")
|
210
213
|
|
214
|
+
@property
|
215
|
+
@pulumi.getter(name="privateIps")
|
216
|
+
def private_ips(self) -> Sequence['outputs.GetBaremetalServerPrivateIpResult']:
|
217
|
+
return pulumi.get(self, "private_ips")
|
218
|
+
|
211
219
|
@property
|
212
220
|
@pulumi.getter(name="privateNetworks")
|
213
221
|
def private_networks(self) -> Sequence['outputs.GetBaremetalServerPrivateNetworkResult']:
|
@@ -283,6 +291,7 @@ class AwaitableGetBaremetalServerResult(GetBaremetalServerResult):
|
|
283
291
|
os_name=self.os_name,
|
284
292
|
partitioning=self.partitioning,
|
285
293
|
password=self.password,
|
294
|
+
private_ips=self.private_ips,
|
286
295
|
private_networks=self.private_networks,
|
287
296
|
project_id=self.project_id,
|
288
297
|
reinstall_on_config_changes=self.reinstall_on_config_changes,
|
@@ -350,6 +359,7 @@ def get_baremetal_server(name: Optional[str] = None,
|
|
350
359
|
os_name=pulumi.get(__ret__, 'os_name'),
|
351
360
|
partitioning=pulumi.get(__ret__, 'partitioning'),
|
352
361
|
password=pulumi.get(__ret__, 'password'),
|
362
|
+
private_ips=pulumi.get(__ret__, 'private_ips'),
|
353
363
|
private_networks=pulumi.get(__ret__, 'private_networks'),
|
354
364
|
project_id=pulumi.get(__ret__, 'project_id'),
|
355
365
|
reinstall_on_config_changes=pulumi.get(__ret__, 'reinstall_on_config_changes'),
|
@@ -414,6 +424,7 @@ def get_baremetal_server_output(name: Optional[pulumi.Input[Optional[str]]] = No
|
|
414
424
|
os_name=pulumi.get(__response__, 'os_name'),
|
415
425
|
partitioning=pulumi.get(__response__, 'partitioning'),
|
416
426
|
password=pulumi.get(__response__, 'password'),
|
427
|
+
private_ips=pulumi.get(__response__, 'private_ips'),
|
417
428
|
private_networks=pulumi.get(__response__, 'private_networks'),
|
418
429
|
project_id=pulumi.get(__response__, 'project_id'),
|
419
430
|
reinstall_on_config_changes=pulumi.get(__response__, 'reinstall_on_config_changes'),
|
@@ -13,6 +13,7 @@ if sys.version_info >= (3, 11):
|
|
13
13
|
else:
|
14
14
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
15
|
from . import _utilities
|
16
|
+
from . import outputs
|
16
17
|
|
17
18
|
__all__ = [
|
18
19
|
'GetBlockSnapshotResult',
|
@@ -28,10 +29,13 @@ class GetBlockSnapshotResult:
|
|
28
29
|
"""
|
29
30
|
A collection of values returned by getBlockSnapshot.
|
30
31
|
"""
|
31
|
-
def __init__(__self__, id=None, name=None, project_id=None, snapshot_id=None, tags=None, volume_id=None, zone=None):
|
32
|
+
def __init__(__self__, id=None, imports=None, name=None, project_id=None, snapshot_id=None, tags=None, volume_id=None, zone=None):
|
32
33
|
if id and not isinstance(id, str):
|
33
34
|
raise TypeError("Expected argument 'id' to be a str")
|
34
35
|
pulumi.set(__self__, "id", id)
|
36
|
+
if imports and not isinstance(imports, list):
|
37
|
+
raise TypeError("Expected argument 'imports' to be a list")
|
38
|
+
pulumi.set(__self__, "imports", imports)
|
35
39
|
if name and not isinstance(name, str):
|
36
40
|
raise TypeError("Expected argument 'name' to be a str")
|
37
41
|
pulumi.set(__self__, "name", name)
|
@@ -59,6 +63,11 @@ class GetBlockSnapshotResult:
|
|
59
63
|
"""
|
60
64
|
return pulumi.get(self, "id")
|
61
65
|
|
66
|
+
@property
|
67
|
+
@pulumi.getter
|
68
|
+
def imports(self) -> Sequence['outputs.GetBlockSnapshotImportResult']:
|
69
|
+
return pulumi.get(self, "imports")
|
70
|
+
|
62
71
|
@property
|
63
72
|
@pulumi.getter
|
64
73
|
def name(self) -> Optional[str]:
|
@@ -97,6 +106,7 @@ class AwaitableGetBlockSnapshotResult(GetBlockSnapshotResult):
|
|
97
106
|
yield self
|
98
107
|
return GetBlockSnapshotResult(
|
99
108
|
id=self.id,
|
109
|
+
imports=self.imports,
|
100
110
|
name=self.name,
|
101
111
|
project_id=self.project_id,
|
102
112
|
snapshot_id=self.snapshot_id,
|
@@ -135,6 +145,7 @@ def get_block_snapshot(name: Optional[str] = None,
|
|
135
145
|
|
136
146
|
return AwaitableGetBlockSnapshotResult(
|
137
147
|
id=pulumi.get(__ret__, 'id'),
|
148
|
+
imports=pulumi.get(__ret__, 'imports'),
|
138
149
|
name=pulumi.get(__ret__, 'name'),
|
139
150
|
project_id=pulumi.get(__ret__, 'project_id'),
|
140
151
|
snapshot_id=pulumi.get(__ret__, 'snapshot_id'),
|
@@ -170,6 +181,7 @@ def get_block_snapshot_output(name: Optional[pulumi.Input[Optional[str]]] = None
|
|
170
181
|
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getBlockSnapshot:getBlockSnapshot', __args__, opts=opts, typ=GetBlockSnapshotResult)
|
171
182
|
return __ret__.apply(lambda __response__: GetBlockSnapshotResult(
|
172
183
|
id=pulumi.get(__response__, 'id'),
|
184
|
+
imports=pulumi.get(__response__, 'imports'),
|
173
185
|
name=pulumi.get(__response__, 'name'),
|
174
186
|
project_id=pulumi.get(__response__, 'project_id'),
|
175
187
|
snapshot_id=pulumi.get(__response__, 'snapshot_id'),
|