pulumiverse-scaleway 1.22.0__py3-none-any.whl → 1.22.0a1734426838__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.
Potentially problematic release.
This version of pulumiverse-scaleway might be problematic. Click here for more details.
- pulumiverse_scaleway/__init__.py +0 -1
- pulumiverse_scaleway/_inputs.py +3 -3
- pulumiverse_scaleway/baremetal_server.py +7 -67
- pulumiverse_scaleway/cockpit_grafana_user.py +0 -28
- pulumiverse_scaleway/cockpit_source.py +3 -53
- pulumiverse_scaleway/get_account_project.py +2 -2
- pulumiverse_scaleway/get_account_ssh_key.py +2 -2
- pulumiverse_scaleway/get_availability_zones.py +2 -2
- pulumiverse_scaleway/get_baremetal_offer.py +2 -2
- pulumiverse_scaleway/get_baremetal_option.py +2 -2
- pulumiverse_scaleway/get_baremetal_os.py +2 -2
- pulumiverse_scaleway/get_baremetal_server.py +2 -2
- pulumiverse_scaleway/get_billing_consumptions.py +2 -2
- pulumiverse_scaleway/get_billing_invoices.py +2 -2
- pulumiverse_scaleway/get_block_snapshot.py +2 -2
- pulumiverse_scaleway/get_block_volume.py +2 -2
- pulumiverse_scaleway/get_cockpit.py +2 -2
- pulumiverse_scaleway/get_cockpit_plan.py +2 -2
- pulumiverse_scaleway/get_config.py +2 -2
- pulumiverse_scaleway/get_container.py +2 -2
- pulumiverse_scaleway/get_container_namespace.py +2 -2
- pulumiverse_scaleway/get_database.py +2 -2
- pulumiverse_scaleway/get_database_acl.py +2 -2
- pulumiverse_scaleway/get_database_backup.py +2 -2
- pulumiverse_scaleway/get_database_instance.py +2 -2
- pulumiverse_scaleway/get_database_privilege.py +2 -2
- pulumiverse_scaleway/get_domain_record.py +2 -2
- pulumiverse_scaleway/get_domain_zone.py +2 -2
- pulumiverse_scaleway/get_flexible_ip.py +2 -2
- pulumiverse_scaleway/get_flexible_ips.py +2 -2
- pulumiverse_scaleway/get_function.py +2 -2
- pulumiverse_scaleway/get_function_namespace.py +2 -2
- pulumiverse_scaleway/get_iam_api_key.py +2 -2
- pulumiverse_scaleway/get_iam_application.py +2 -2
- pulumiverse_scaleway/get_iam_group.py +2 -2
- pulumiverse_scaleway/get_iam_ssh_key.py +2 -2
- pulumiverse_scaleway/get_iam_user.py +2 -2
- pulumiverse_scaleway/get_instance_image.py +2 -2
- pulumiverse_scaleway/get_instance_ip.py +2 -2
- pulumiverse_scaleway/get_instance_placement_group.py +2 -2
- pulumiverse_scaleway/get_instance_private_nic.py +2 -2
- pulumiverse_scaleway/get_instance_security_group.py +2 -2
- pulumiverse_scaleway/get_instance_server.py +2 -2
- pulumiverse_scaleway/get_instance_servers.py +2 -2
- pulumiverse_scaleway/get_instance_snapshot.py +2 -2
- pulumiverse_scaleway/get_instance_volume.py +2 -2
- pulumiverse_scaleway/get_iot_device.py +2 -2
- pulumiverse_scaleway/get_iot_hub.py +2 -2
- pulumiverse_scaleway/get_ipam_ip.py +2 -2
- pulumiverse_scaleway/get_ipam_ips.py +2 -2
- pulumiverse_scaleway/get_k8s_version.py +2 -2
- pulumiverse_scaleway/get_kubernetes_cluster.py +2 -2
- pulumiverse_scaleway/get_kubernetes_node_pool.py +2 -2
- pulumiverse_scaleway/get_lb_acls.py +2 -2
- pulumiverse_scaleway/get_lb_backend.py +2 -2
- pulumiverse_scaleway/get_lb_backends.py +2 -2
- pulumiverse_scaleway/get_lb_frontend.py +2 -2
- pulumiverse_scaleway/get_lb_frontends.py +2 -2
- pulumiverse_scaleway/get_lb_ips.py +2 -2
- pulumiverse_scaleway/get_lb_route.py +2 -2
- pulumiverse_scaleway/get_lb_routes.py +2 -2
- pulumiverse_scaleway/get_lbs.py +2 -2
- pulumiverse_scaleway/get_loadbalancer.py +2 -2
- pulumiverse_scaleway/get_loadbalancer_certificate.py +2 -2
- pulumiverse_scaleway/get_loadbalancer_ip.py +2 -2
- pulumiverse_scaleway/get_marketplace_image.py +2 -2
- pulumiverse_scaleway/get_mnq_sns.py +2 -2
- pulumiverse_scaleway/get_mnq_sqs.py +2 -2
- pulumiverse_scaleway/get_mongo_db_instance.py +2 -2
- pulumiverse_scaleway/get_object_bucket.py +2 -2
- pulumiverse_scaleway/get_object_bucket_policy.py +2 -2
- pulumiverse_scaleway/get_redis_cluster.py +2 -2
- pulumiverse_scaleway/get_registry_image.py +2 -2
- pulumiverse_scaleway/get_registry_image_tag.py +2 -2
- pulumiverse_scaleway/get_registry_namespace.py +2 -2
- pulumiverse_scaleway/get_secret.py +2 -2
- pulumiverse_scaleway/get_secret_version.py +2 -2
- pulumiverse_scaleway/get_tem_domain.py +2 -2
- pulumiverse_scaleway/get_vpc.py +2 -2
- pulumiverse_scaleway/get_vpc_gateway_network.py +2 -2
- pulumiverse_scaleway/get_vpc_private_network.py +2 -2
- pulumiverse_scaleway/get_vpc_public_gateway.py +2 -2
- pulumiverse_scaleway/get_vpc_public_gateway_dhcp.py +2 -2
- pulumiverse_scaleway/get_vpc_public_gateway_dhcp_reservation.py +2 -2
- pulumiverse_scaleway/get_vpc_public_gateway_ip.py +2 -2
- pulumiverse_scaleway/get_vpc_public_pat_rule.py +2 -2
- pulumiverse_scaleway/get_vpc_routes.py +2 -2
- pulumiverse_scaleway/get_vpcs.py +2 -2
- pulumiverse_scaleway/get_web_host_offer.py +2 -2
- pulumiverse_scaleway/get_webhosting.py +2 -2
- pulumiverse_scaleway/instance_server.py +4 -9
- pulumiverse_scaleway/object_bucket.py +1 -1
- pulumiverse_scaleway/object_item.py +0 -49
- pulumiverse_scaleway/outputs.py +2 -2
- pulumiverse_scaleway/pulumi-plugin.json +1 -1
- pulumiverse_scaleway/redis_cluster.py +14 -49
- pulumiverse_scaleway/vpc_gateway_network.py +7 -7
- {pulumiverse_scaleway-1.22.0.dist-info → pulumiverse_scaleway-1.22.0a1734426838.dist-info}/METADATA +2 -2
- {pulumiverse_scaleway-1.22.0.dist-info → pulumiverse_scaleway-1.22.0a1734426838.dist-info}/RECORD +101 -102
- {pulumiverse_scaleway-1.22.0.dist-info → pulumiverse_scaleway-1.22.0a1734426838.dist-info}/WHEEL +1 -1
- pulumiverse_scaleway/get_cockpit_source.py +0 -262
- {pulumiverse_scaleway-1.22.0.dist-info → pulumiverse_scaleway-1.22.0a1734426838.dist-info}/top_level.txt +0 -0
pulumiverse_scaleway/__init__.py
CHANGED
|
@@ -52,7 +52,6 @@ from .get_block_snapshot import *
|
|
|
52
52
|
from .get_block_volume import *
|
|
53
53
|
from .get_cockpit import *
|
|
54
54
|
from .get_cockpit_plan import *
|
|
55
|
-
from .get_cockpit_source import *
|
|
56
55
|
from .get_config import *
|
|
57
56
|
from .get_container import *
|
|
58
57
|
from .get_container_namespace import *
|
pulumiverse_scaleway/_inputs.py
CHANGED
|
@@ -3845,7 +3845,7 @@ if not MYPY:
|
|
|
3845
3845
|
Size of the root volume in gigabytes.
|
|
3846
3846
|
To find the right size use [this endpoint](https://www.scaleway.com/en/developers/api/instance/#path-instances-list-all-instances) and
|
|
3847
3847
|
check the `volumes_constraint.{min|max}_size` (in bytes) for your `commercial_type`.
|
|
3848
|
-
|
|
3848
|
+
Updates to this field will recreate a new resource.
|
|
3849
3849
|
"""
|
|
3850
3850
|
volume_id: NotRequired[pulumi.Input[str]]
|
|
3851
3851
|
"""
|
|
@@ -3878,7 +3878,7 @@ class InstanceServerRootVolumeArgs:
|
|
|
3878
3878
|
:param pulumi.Input[int] size_in_gb: Size of the root volume in gigabytes.
|
|
3879
3879
|
To find the right size use [this endpoint](https://www.scaleway.com/en/developers/api/instance/#path-instances-list-all-instances) and
|
|
3880
3880
|
check the `volumes_constraint.{min|max}_size` (in bytes) for your `commercial_type`.
|
|
3881
|
-
|
|
3881
|
+
Updates to this field will recreate a new resource.
|
|
3882
3882
|
:param pulumi.Input[str] volume_id: The volume ID of the root volume of the server, allows you to create server with an existing volume. If empty, will be computed to a created volume ID.
|
|
3883
3883
|
:param pulumi.Input[str] volume_type: Volume type of root volume, can be `b_ssd`, `l_ssd` or `sbs_volume`, default value depends on server type
|
|
3884
3884
|
"""
|
|
@@ -3954,7 +3954,7 @@ class InstanceServerRootVolumeArgs:
|
|
|
3954
3954
|
Size of the root volume in gigabytes.
|
|
3955
3955
|
To find the right size use [this endpoint](https://www.scaleway.com/en/developers/api/instance/#path-instances-list-all-instances) and
|
|
3956
3956
|
check the `volumes_constraint.{min|max}_size` (in bytes) for your `commercial_type`.
|
|
3957
|
-
|
|
3957
|
+
Updates to this field will recreate a new resource.
|
|
3958
3958
|
"""
|
|
3959
3959
|
return pulumi.get(self, "size_in_gb")
|
|
3960
3960
|
|
|
@@ -54,7 +54,7 @@ class BaremetalServerArgs:
|
|
|
54
54
|
:param pulumi.Input[str] os: The UUID of the os to install on the server.
|
|
55
55
|
Use [this endpoint](https://www.scaleway.com/en/developers/api/elastic-metal/#path-os-list-available-oses) to find the right OS ID.
|
|
56
56
|
> **Important:** Updates to `os` will reinstall the server.
|
|
57
|
-
:param pulumi.Input[str] partitioning: The partitioning schema in
|
|
57
|
+
:param pulumi.Input[str] partitioning: The partitioning schema in json format
|
|
58
58
|
:param pulumi.Input[str] password: Password used for the installation. May be required depending on used os.
|
|
59
59
|
:param pulumi.Input[Sequence[pulumi.Input['BaremetalServerPrivateNetworkArgs']]] 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
60
|
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the server is associated with.
|
|
@@ -197,7 +197,7 @@ class BaremetalServerArgs:
|
|
|
197
197
|
@pulumi.getter
|
|
198
198
|
def partitioning(self) -> Optional[pulumi.Input[str]]:
|
|
199
199
|
"""
|
|
200
|
-
The partitioning schema in
|
|
200
|
+
The partitioning schema in json format
|
|
201
201
|
"""
|
|
202
202
|
return pulumi.get(self, "partitioning")
|
|
203
203
|
|
|
@@ -379,7 +379,7 @@ class _BaremetalServerState:
|
|
|
379
379
|
Use [this endpoint](https://www.scaleway.com/en/developers/api/elastic-metal/#path-os-list-available-oses) to find the right OS ID.
|
|
380
380
|
> **Important:** Updates to `os` will reinstall the server.
|
|
381
381
|
:param pulumi.Input[str] os_name: The name of the os.
|
|
382
|
-
:param pulumi.Input[str] partitioning: The partitioning schema in
|
|
382
|
+
:param pulumi.Input[str] partitioning: The partitioning schema in json format
|
|
383
383
|
:param pulumi.Input[str] password: Password used for the installation. May be required depending on used os.
|
|
384
384
|
:param pulumi.Input[Sequence[pulumi.Input['BaremetalServerPrivateNetworkArgs']]] 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
385
|
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the server is associated with.
|
|
@@ -635,7 +635,7 @@ class _BaremetalServerState:
|
|
|
635
635
|
@pulumi.getter
|
|
636
636
|
def partitioning(self) -> Optional[pulumi.Input[str]]:
|
|
637
637
|
"""
|
|
638
|
-
The partitioning schema in
|
|
638
|
+
The partitioning schema in json format
|
|
639
639
|
"""
|
|
640
640
|
return pulumi.get(self, "partitioning")
|
|
641
641
|
|
|
@@ -928,36 +928,6 @@ class BaremetalServer(pulumi.CustomResource):
|
|
|
928
928
|
install_config_afterward=True)
|
|
929
929
|
```
|
|
930
930
|
|
|
931
|
-
### With custom partitioning
|
|
932
|
-
|
|
933
|
-
```python
|
|
934
|
-
import pulumi
|
|
935
|
-
import pulumi_scaleway as scaleway
|
|
936
|
-
import pulumiverse_scaleway as scaleway
|
|
937
|
-
|
|
938
|
-
config = pulumi.Config()
|
|
939
|
-
config_custom_partitioning = config.get("configCustomPartitioning")
|
|
940
|
-
if config_custom_partitioning is None:
|
|
941
|
-
config_custom_partitioning = "{\\"disks\\":[{\\"device\\":\\"/dev/nvme0n1\\",\\"partitions\\":[{\\"label\\":\\"uefi\\",\\"number\\":1,\\"size\\":536870912},{\\"label\\":\\"swap\\",\\"number\\":2,\\"size\\":4294967296},{\\"label\\":\\"boot\\",\\"number\\":3,\\"size\\":1073741824},{\\"label\\":\\"root\\",\\"number\\":4,\\"size\\":1017827045376}]},{\\"device\\":\\"/dev/nvme1n1\\",\\"partitions\\":[{\\"label\\":\\"swap\\",\\"number\\":1,\\"size\\":4294967296},{\\"label\\":\\"boot\\",\\"number\\":2,\\"size\\":1073741824},{\\"label\\":\\"root\\",\\"number\\":3,\\"size\\":1017827045376}]}],\\"filesystems\\":[{\\"device\\":\\"/dev/nvme0n1p1\\",\\"format\\":\\"fat32\\",\\"mountpoint\\":\\"/boot/efi\\"},{\\"device\\":\\"/dev/md0\\",\\"format\\":\\"ext4\\",\\"mountpoint\\":\\"/boot\\"},{\\"device\\":\\"/dev/md1\\",\\"format\\":\\"ext4\\",\\"mountpoint\\":\\"/\\"}],\\"raids\\":[{\\"devices\\":[\\"/dev/nvme0n1p3\\",\\"/dev/nvme1n1p2\\"],\\"level\\":\\"raid_level_1\\",\\"name\\":\\"/dev/md0\\"},{\\"devices\\":[\\"/dev/nvme0n1p4\\",\\"/dev/nvme1n1p3\\"],\\"level\\":\\"raid_level_1\\",\\"name\\":\\"/dev/md1\\"}],\\"zfs\\":{\\"pools\\":[]}}"
|
|
942
|
-
my_os = scaleway.get_baremetal_os(zone="fr-par-1",
|
|
943
|
-
name="Ubuntu",
|
|
944
|
-
version="22.04 LTS (Jammy Jellyfish)")
|
|
945
|
-
main = scaleway.IamSshKey("main", name="main")
|
|
946
|
-
base = scaleway.BaremetalServer("base",
|
|
947
|
-
name="%s",
|
|
948
|
-
zone="fr-par-1",
|
|
949
|
-
description="test a description",
|
|
950
|
-
offer="EM-B220E-NVME",
|
|
951
|
-
os=my_os.os_id,
|
|
952
|
-
partitioning=config_custom_partitioning,
|
|
953
|
-
tags=[
|
|
954
|
-
"terraform-test",
|
|
955
|
-
"scaleway_baremetal_server",
|
|
956
|
-
"minimal",
|
|
957
|
-
],
|
|
958
|
-
ssh_key_ids=[main.id])
|
|
959
|
-
```
|
|
960
|
-
|
|
961
931
|
## Import
|
|
962
932
|
|
|
963
933
|
Baremetal servers can be imported using the `{zone}/{id}`, e.g.
|
|
@@ -983,7 +953,7 @@ class BaremetalServer(pulumi.CustomResource):
|
|
|
983
953
|
:param pulumi.Input[str] os: The UUID of the os to install on the server.
|
|
984
954
|
Use [this endpoint](https://www.scaleway.com/en/developers/api/elastic-metal/#path-os-list-available-oses) to find the right OS ID.
|
|
985
955
|
> **Important:** Updates to `os` will reinstall the server.
|
|
986
|
-
:param pulumi.Input[str] partitioning: The partitioning schema in
|
|
956
|
+
:param pulumi.Input[str] partitioning: The partitioning schema in json format
|
|
987
957
|
:param pulumi.Input[str] password: Password used for the installation. May be required depending on used os.
|
|
988
958
|
:param pulumi.Input[Sequence[pulumi.Input[Union['BaremetalServerPrivateNetworkArgs', 'BaremetalServerPrivateNetworkArgsDict']]]] 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/)
|
|
989
959
|
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the server is associated with.
|
|
@@ -1141,36 +1111,6 @@ class BaremetalServer(pulumi.CustomResource):
|
|
|
1141
1111
|
install_config_afterward=True)
|
|
1142
1112
|
```
|
|
1143
1113
|
|
|
1144
|
-
### With custom partitioning
|
|
1145
|
-
|
|
1146
|
-
```python
|
|
1147
|
-
import pulumi
|
|
1148
|
-
import pulumi_scaleway as scaleway
|
|
1149
|
-
import pulumiverse_scaleway as scaleway
|
|
1150
|
-
|
|
1151
|
-
config = pulumi.Config()
|
|
1152
|
-
config_custom_partitioning = config.get("configCustomPartitioning")
|
|
1153
|
-
if config_custom_partitioning is None:
|
|
1154
|
-
config_custom_partitioning = "{\\"disks\\":[{\\"device\\":\\"/dev/nvme0n1\\",\\"partitions\\":[{\\"label\\":\\"uefi\\",\\"number\\":1,\\"size\\":536870912},{\\"label\\":\\"swap\\",\\"number\\":2,\\"size\\":4294967296},{\\"label\\":\\"boot\\",\\"number\\":3,\\"size\\":1073741824},{\\"label\\":\\"root\\",\\"number\\":4,\\"size\\":1017827045376}]},{\\"device\\":\\"/dev/nvme1n1\\",\\"partitions\\":[{\\"label\\":\\"swap\\",\\"number\\":1,\\"size\\":4294967296},{\\"label\\":\\"boot\\",\\"number\\":2,\\"size\\":1073741824},{\\"label\\":\\"root\\",\\"number\\":3,\\"size\\":1017827045376}]}],\\"filesystems\\":[{\\"device\\":\\"/dev/nvme0n1p1\\",\\"format\\":\\"fat32\\",\\"mountpoint\\":\\"/boot/efi\\"},{\\"device\\":\\"/dev/md0\\",\\"format\\":\\"ext4\\",\\"mountpoint\\":\\"/boot\\"},{\\"device\\":\\"/dev/md1\\",\\"format\\":\\"ext4\\",\\"mountpoint\\":\\"/\\"}],\\"raids\\":[{\\"devices\\":[\\"/dev/nvme0n1p3\\",\\"/dev/nvme1n1p2\\"],\\"level\\":\\"raid_level_1\\",\\"name\\":\\"/dev/md0\\"},{\\"devices\\":[\\"/dev/nvme0n1p4\\",\\"/dev/nvme1n1p3\\"],\\"level\\":\\"raid_level_1\\",\\"name\\":\\"/dev/md1\\"}],\\"zfs\\":{\\"pools\\":[]}}"
|
|
1155
|
-
my_os = scaleway.get_baremetal_os(zone="fr-par-1",
|
|
1156
|
-
name="Ubuntu",
|
|
1157
|
-
version="22.04 LTS (Jammy Jellyfish)")
|
|
1158
|
-
main = scaleway.IamSshKey("main", name="main")
|
|
1159
|
-
base = scaleway.BaremetalServer("base",
|
|
1160
|
-
name="%s",
|
|
1161
|
-
zone="fr-par-1",
|
|
1162
|
-
description="test a description",
|
|
1163
|
-
offer="EM-B220E-NVME",
|
|
1164
|
-
os=my_os.os_id,
|
|
1165
|
-
partitioning=config_custom_partitioning,
|
|
1166
|
-
tags=[
|
|
1167
|
-
"terraform-test",
|
|
1168
|
-
"scaleway_baremetal_server",
|
|
1169
|
-
"minimal",
|
|
1170
|
-
],
|
|
1171
|
-
ssh_key_ids=[main.id])
|
|
1172
|
-
```
|
|
1173
|
-
|
|
1174
1114
|
## Import
|
|
1175
1115
|
|
|
1176
1116
|
Baremetal servers can be imported using the `{zone}/{id}`, e.g.
|
|
@@ -1317,7 +1257,7 @@ class BaremetalServer(pulumi.CustomResource):
|
|
|
1317
1257
|
Use [this endpoint](https://www.scaleway.com/en/developers/api/elastic-metal/#path-os-list-available-oses) to find the right OS ID.
|
|
1318
1258
|
> **Important:** Updates to `os` will reinstall the server.
|
|
1319
1259
|
:param pulumi.Input[str] os_name: The name of the os.
|
|
1320
|
-
:param pulumi.Input[str] partitioning: The partitioning schema in
|
|
1260
|
+
:param pulumi.Input[str] partitioning: The partitioning schema in json format
|
|
1321
1261
|
:param pulumi.Input[str] password: Password used for the installation. May be required depending on used os.
|
|
1322
1262
|
:param pulumi.Input[Sequence[pulumi.Input[Union['BaremetalServerPrivateNetworkArgs', 'BaremetalServerPrivateNetworkArgsDict']]]] 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/)
|
|
1323
1263
|
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the server is associated with.
|
|
@@ -1492,7 +1432,7 @@ class BaremetalServer(pulumi.CustomResource):
|
|
|
1492
1432
|
@pulumi.getter
|
|
1493
1433
|
def partitioning(self) -> pulumi.Output[Optional[str]]:
|
|
1494
1434
|
"""
|
|
1495
|
-
The partitioning schema in
|
|
1435
|
+
The partitioning schema in json format
|
|
1496
1436
|
"""
|
|
1497
1437
|
return pulumi.get(self, "partitioning")
|
|
1498
1438
|
|
|
@@ -73,21 +73,17 @@ class CockpitGrafanaUserArgs:
|
|
|
73
73
|
@pulumi.input_type
|
|
74
74
|
class _CockpitGrafanaUserState:
|
|
75
75
|
def __init__(__self__, *,
|
|
76
|
-
grafana_url: Optional[pulumi.Input[str]] = None,
|
|
77
76
|
login: Optional[pulumi.Input[str]] = None,
|
|
78
77
|
password: Optional[pulumi.Input[str]] = None,
|
|
79
78
|
project_id: Optional[pulumi.Input[str]] = None,
|
|
80
79
|
role: Optional[pulumi.Input[str]] = None):
|
|
81
80
|
"""
|
|
82
81
|
Input properties used for looking up and filtering CockpitGrafanaUser resources.
|
|
83
|
-
:param pulumi.Input[str] grafana_url: URL for Grafana.
|
|
84
82
|
:param pulumi.Input[str] login: The username of the Grafana user. The `admin` user is not yet available for creation. You need your Grafana username to log in to Grafana and access your dashboards.
|
|
85
83
|
:param pulumi.Input[str] password: The password of the Grafana user.
|
|
86
84
|
:param pulumi.Input[str] project_id: ) The ID of the Project the Cockpit is associated with.
|
|
87
85
|
:param pulumi.Input[str] role: The role assigned to the Grafana user. Must be `editor` or `viewer`.
|
|
88
86
|
"""
|
|
89
|
-
if grafana_url is not None:
|
|
90
|
-
pulumi.set(__self__, "grafana_url", grafana_url)
|
|
91
87
|
if login is not None:
|
|
92
88
|
pulumi.set(__self__, "login", login)
|
|
93
89
|
if password is not None:
|
|
@@ -97,18 +93,6 @@ class _CockpitGrafanaUserState:
|
|
|
97
93
|
if role is not None:
|
|
98
94
|
pulumi.set(__self__, "role", role)
|
|
99
95
|
|
|
100
|
-
@property
|
|
101
|
-
@pulumi.getter(name="grafanaUrl")
|
|
102
|
-
def grafana_url(self) -> Optional[pulumi.Input[str]]:
|
|
103
|
-
"""
|
|
104
|
-
URL for Grafana.
|
|
105
|
-
"""
|
|
106
|
-
return pulumi.get(self, "grafana_url")
|
|
107
|
-
|
|
108
|
-
@grafana_url.setter
|
|
109
|
-
def grafana_url(self, value: Optional[pulumi.Input[str]]):
|
|
110
|
-
pulumi.set(self, "grafana_url", value)
|
|
111
|
-
|
|
112
96
|
@property
|
|
113
97
|
@pulumi.getter
|
|
114
98
|
def login(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -277,7 +261,6 @@ class CockpitGrafanaUser(pulumi.CustomResource):
|
|
|
277
261
|
if role is None and not opts.urn:
|
|
278
262
|
raise TypeError("Missing required property 'role'")
|
|
279
263
|
__props__.__dict__["role"] = role
|
|
280
|
-
__props__.__dict__["grafana_url"] = None
|
|
281
264
|
__props__.__dict__["password"] = None
|
|
282
265
|
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["password"])
|
|
283
266
|
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
|
@@ -291,7 +274,6 @@ class CockpitGrafanaUser(pulumi.CustomResource):
|
|
|
291
274
|
def get(resource_name: str,
|
|
292
275
|
id: pulumi.Input[str],
|
|
293
276
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
294
|
-
grafana_url: Optional[pulumi.Input[str]] = None,
|
|
295
277
|
login: Optional[pulumi.Input[str]] = None,
|
|
296
278
|
password: Optional[pulumi.Input[str]] = None,
|
|
297
279
|
project_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -303,7 +285,6 @@ class CockpitGrafanaUser(pulumi.CustomResource):
|
|
|
303
285
|
:param str resource_name: The unique name of the resulting resource.
|
|
304
286
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
305
287
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
306
|
-
:param pulumi.Input[str] grafana_url: URL for Grafana.
|
|
307
288
|
:param pulumi.Input[str] login: The username of the Grafana user. The `admin` user is not yet available for creation. You need your Grafana username to log in to Grafana and access your dashboards.
|
|
308
289
|
:param pulumi.Input[str] password: The password of the Grafana user.
|
|
309
290
|
:param pulumi.Input[str] project_id: ) The ID of the Project the Cockpit is associated with.
|
|
@@ -313,21 +294,12 @@ class CockpitGrafanaUser(pulumi.CustomResource):
|
|
|
313
294
|
|
|
314
295
|
__props__ = _CockpitGrafanaUserState.__new__(_CockpitGrafanaUserState)
|
|
315
296
|
|
|
316
|
-
__props__.__dict__["grafana_url"] = grafana_url
|
|
317
297
|
__props__.__dict__["login"] = login
|
|
318
298
|
__props__.__dict__["password"] = password
|
|
319
299
|
__props__.__dict__["project_id"] = project_id
|
|
320
300
|
__props__.__dict__["role"] = role
|
|
321
301
|
return CockpitGrafanaUser(resource_name, opts=opts, __props__=__props__)
|
|
322
302
|
|
|
323
|
-
@property
|
|
324
|
-
@pulumi.getter(name="grafanaUrl")
|
|
325
|
-
def grafana_url(self) -> pulumi.Output[str]:
|
|
326
|
-
"""
|
|
327
|
-
URL for Grafana.
|
|
328
|
-
"""
|
|
329
|
-
return pulumi.get(self, "grafana_url")
|
|
330
|
-
|
|
331
303
|
@property
|
|
332
304
|
@pulumi.getter
|
|
333
305
|
def login(self) -> pulumi.Output[str]:
|
|
@@ -19,20 +19,17 @@ __all__ = ['CockpitSourceArgs', 'CockpitSource']
|
|
|
19
19
|
@pulumi.input_type
|
|
20
20
|
class CockpitSourceArgs:
|
|
21
21
|
def __init__(__self__, *,
|
|
22
|
-
retention_days: pulumi.Input[int],
|
|
23
22
|
name: Optional[pulumi.Input[str]] = None,
|
|
24
23
|
project_id: Optional[pulumi.Input[str]] = None,
|
|
25
24
|
region: Optional[pulumi.Input[str]] = None,
|
|
26
25
|
type: Optional[pulumi.Input[str]] = None):
|
|
27
26
|
"""
|
|
28
27
|
The set of arguments for constructing a CockpitSource resource.
|
|
29
|
-
:param pulumi.Input[int] retention_days: The number of days to retain data in the data source. Must be a value between 1 and 365. Changes to this field will force the creation of a new resource.
|
|
30
28
|
:param pulumi.Input[str] name: The name of the data source.
|
|
31
29
|
:param pulumi.Input[str] project_id: ) The ID of the Project the data source is associated with.
|
|
32
30
|
:param pulumi.Input[str] region: ) The region where the data source is located.
|
|
33
31
|
:param pulumi.Input[str] type: The [type](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-types) of data source. Possible values are: `metrics`, `logs`, or `traces`.
|
|
34
32
|
"""
|
|
35
|
-
pulumi.set(__self__, "retention_days", retention_days)
|
|
36
33
|
if name is not None:
|
|
37
34
|
pulumi.set(__self__, "name", name)
|
|
38
35
|
if project_id is not None:
|
|
@@ -42,18 +39,6 @@ class CockpitSourceArgs:
|
|
|
42
39
|
if type is not None:
|
|
43
40
|
pulumi.set(__self__, "type", type)
|
|
44
41
|
|
|
45
|
-
@property
|
|
46
|
-
@pulumi.getter(name="retentionDays")
|
|
47
|
-
def retention_days(self) -> pulumi.Input[int]:
|
|
48
|
-
"""
|
|
49
|
-
The number of days to retain data in the data source. Must be a value between 1 and 365. Changes to this field will force the creation of a new resource.
|
|
50
|
-
"""
|
|
51
|
-
return pulumi.get(self, "retention_days")
|
|
52
|
-
|
|
53
|
-
@retention_days.setter
|
|
54
|
-
def retention_days(self, value: pulumi.Input[int]):
|
|
55
|
-
pulumi.set(self, "retention_days", value)
|
|
56
|
-
|
|
57
42
|
@property
|
|
58
43
|
@pulumi.getter
|
|
59
44
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -112,7 +97,6 @@ class _CockpitSourceState:
|
|
|
112
97
|
project_id: Optional[pulumi.Input[str]] = None,
|
|
113
98
|
push_url: Optional[pulumi.Input[str]] = None,
|
|
114
99
|
region: Optional[pulumi.Input[str]] = None,
|
|
115
|
-
retention_days: Optional[pulumi.Input[int]] = None,
|
|
116
100
|
synchronized_with_grafana: Optional[pulumi.Input[bool]] = None,
|
|
117
101
|
type: Optional[pulumi.Input[str]] = None,
|
|
118
102
|
updated_at: Optional[pulumi.Input[str]] = None,
|
|
@@ -125,7 +109,6 @@ class _CockpitSourceState:
|
|
|
125
109
|
:param pulumi.Input[str] project_id: ) The ID of the Project the data source is associated with.
|
|
126
110
|
:param pulumi.Input[str] push_url: The URL endpoint used for pushing data to the Cockpit data source.
|
|
127
111
|
:param pulumi.Input[str] region: ) The region where the data source is located.
|
|
128
|
-
:param pulumi.Input[int] retention_days: The number of days to retain data in the data source. Must be a value between 1 and 365. Changes to this field will force the creation of a new resource.
|
|
129
112
|
:param pulumi.Input[bool] synchronized_with_grafana: Indicates whether the data source is synchronized with Grafana.
|
|
130
113
|
:param pulumi.Input[str] type: The [type](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-types) of data source. Possible values are: `metrics`, `logs`, or `traces`.
|
|
131
114
|
:param pulumi.Input[str] updated_at: The date and time the data source was last updated (in RFC 3339 format).
|
|
@@ -143,8 +126,6 @@ class _CockpitSourceState:
|
|
|
143
126
|
pulumi.set(__self__, "push_url", push_url)
|
|
144
127
|
if region is not None:
|
|
145
128
|
pulumi.set(__self__, "region", region)
|
|
146
|
-
if retention_days is not None:
|
|
147
|
-
pulumi.set(__self__, "retention_days", retention_days)
|
|
148
129
|
if synchronized_with_grafana is not None:
|
|
149
130
|
pulumi.set(__self__, "synchronized_with_grafana", synchronized_with_grafana)
|
|
150
131
|
if type is not None:
|
|
@@ -226,18 +207,6 @@ class _CockpitSourceState:
|
|
|
226
207
|
def region(self, value: Optional[pulumi.Input[str]]):
|
|
227
208
|
pulumi.set(self, "region", value)
|
|
228
209
|
|
|
229
|
-
@property
|
|
230
|
-
@pulumi.getter(name="retentionDays")
|
|
231
|
-
def retention_days(self) -> Optional[pulumi.Input[int]]:
|
|
232
|
-
"""
|
|
233
|
-
The number of days to retain data in the data source. Must be a value between 1 and 365. Changes to this field will force the creation of a new resource.
|
|
234
|
-
"""
|
|
235
|
-
return pulumi.get(self, "retention_days")
|
|
236
|
-
|
|
237
|
-
@retention_days.setter
|
|
238
|
-
def retention_days(self, value: Optional[pulumi.Input[int]]):
|
|
239
|
-
pulumi.set(self, "retention_days", value)
|
|
240
|
-
|
|
241
210
|
@property
|
|
242
211
|
@pulumi.getter(name="synchronizedWithGrafana")
|
|
243
212
|
def synchronized_with_grafana(self) -> Optional[pulumi.Input[bool]]:
|
|
@@ -295,7 +264,6 @@ class CockpitSource(pulumi.CustomResource):
|
|
|
295
264
|
name: Optional[pulumi.Input[str]] = None,
|
|
296
265
|
project_id: Optional[pulumi.Input[str]] = None,
|
|
297
266
|
region: Optional[pulumi.Input[str]] = None,
|
|
298
|
-
retention_days: Optional[pulumi.Input[int]] = None,
|
|
299
267
|
type: Optional[pulumi.Input[str]] = None,
|
|
300
268
|
__props__=None):
|
|
301
269
|
"""
|
|
@@ -317,8 +285,7 @@ class CockpitSource(pulumi.CustomResource):
|
|
|
317
285
|
main = scaleway.CockpitSource("main",
|
|
318
286
|
project_id=project.id,
|
|
319
287
|
name="my-data-source",
|
|
320
|
-
type="metrics"
|
|
321
|
-
retention_days=6)
|
|
288
|
+
type="metrics")
|
|
322
289
|
```
|
|
323
290
|
|
|
324
291
|
## Import
|
|
@@ -336,14 +303,13 @@ class CockpitSource(pulumi.CustomResource):
|
|
|
336
303
|
:param pulumi.Input[str] name: The name of the data source.
|
|
337
304
|
:param pulumi.Input[str] project_id: ) The ID of the Project the data source is associated with.
|
|
338
305
|
:param pulumi.Input[str] region: ) The region where the data source is located.
|
|
339
|
-
:param pulumi.Input[int] retention_days: The number of days to retain data in the data source. Must be a value between 1 and 365. Changes to this field will force the creation of a new resource.
|
|
340
306
|
:param pulumi.Input[str] type: The [type](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-types) of data source. Possible values are: `metrics`, `logs`, or `traces`.
|
|
341
307
|
"""
|
|
342
308
|
...
|
|
343
309
|
@overload
|
|
344
310
|
def __init__(__self__,
|
|
345
311
|
resource_name: str,
|
|
346
|
-
args: CockpitSourceArgs,
|
|
312
|
+
args: Optional[CockpitSourceArgs] = None,
|
|
347
313
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
348
314
|
"""
|
|
349
315
|
The `CockpitSource` resource allows you to create and manage [data sources](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-sources) in Scaleway's Cockpit.
|
|
@@ -364,8 +330,7 @@ class CockpitSource(pulumi.CustomResource):
|
|
|
364
330
|
main = scaleway.CockpitSource("main",
|
|
365
331
|
project_id=project.id,
|
|
366
332
|
name="my-data-source",
|
|
367
|
-
type="metrics"
|
|
368
|
-
retention_days=6)
|
|
333
|
+
type="metrics")
|
|
369
334
|
```
|
|
370
335
|
|
|
371
336
|
## Import
|
|
@@ -396,7 +361,6 @@ class CockpitSource(pulumi.CustomResource):
|
|
|
396
361
|
name: Optional[pulumi.Input[str]] = None,
|
|
397
362
|
project_id: Optional[pulumi.Input[str]] = None,
|
|
398
363
|
region: Optional[pulumi.Input[str]] = None,
|
|
399
|
-
retention_days: Optional[pulumi.Input[int]] = None,
|
|
400
364
|
type: Optional[pulumi.Input[str]] = None,
|
|
401
365
|
__props__=None):
|
|
402
366
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
@@ -410,9 +374,6 @@ class CockpitSource(pulumi.CustomResource):
|
|
|
410
374
|
__props__.__dict__["name"] = name
|
|
411
375
|
__props__.__dict__["project_id"] = project_id
|
|
412
376
|
__props__.__dict__["region"] = region
|
|
413
|
-
if retention_days is None and not opts.urn:
|
|
414
|
-
raise TypeError("Missing required property 'retention_days'")
|
|
415
|
-
__props__.__dict__["retention_days"] = retention_days
|
|
416
377
|
__props__.__dict__["type"] = type
|
|
417
378
|
__props__.__dict__["created_at"] = None
|
|
418
379
|
__props__.__dict__["origin"] = None
|
|
@@ -436,7 +397,6 @@ class CockpitSource(pulumi.CustomResource):
|
|
|
436
397
|
project_id: Optional[pulumi.Input[str]] = None,
|
|
437
398
|
push_url: Optional[pulumi.Input[str]] = None,
|
|
438
399
|
region: Optional[pulumi.Input[str]] = None,
|
|
439
|
-
retention_days: Optional[pulumi.Input[int]] = None,
|
|
440
400
|
synchronized_with_grafana: Optional[pulumi.Input[bool]] = None,
|
|
441
401
|
type: Optional[pulumi.Input[str]] = None,
|
|
442
402
|
updated_at: Optional[pulumi.Input[str]] = None,
|
|
@@ -454,7 +414,6 @@ class CockpitSource(pulumi.CustomResource):
|
|
|
454
414
|
:param pulumi.Input[str] project_id: ) The ID of the Project the data source is associated with.
|
|
455
415
|
:param pulumi.Input[str] push_url: The URL endpoint used for pushing data to the Cockpit data source.
|
|
456
416
|
:param pulumi.Input[str] region: ) The region where the data source is located.
|
|
457
|
-
:param pulumi.Input[int] retention_days: The number of days to retain data in the data source. Must be a value between 1 and 365. Changes to this field will force the creation of a new resource.
|
|
458
417
|
:param pulumi.Input[bool] synchronized_with_grafana: Indicates whether the data source is synchronized with Grafana.
|
|
459
418
|
:param pulumi.Input[str] type: The [type](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-types) of data source. Possible values are: `metrics`, `logs`, or `traces`.
|
|
460
419
|
:param pulumi.Input[str] updated_at: The date and time the data source was last updated (in RFC 3339 format).
|
|
@@ -470,7 +429,6 @@ class CockpitSource(pulumi.CustomResource):
|
|
|
470
429
|
__props__.__dict__["project_id"] = project_id
|
|
471
430
|
__props__.__dict__["push_url"] = push_url
|
|
472
431
|
__props__.__dict__["region"] = region
|
|
473
|
-
__props__.__dict__["retention_days"] = retention_days
|
|
474
432
|
__props__.__dict__["synchronized_with_grafana"] = synchronized_with_grafana
|
|
475
433
|
__props__.__dict__["type"] = type
|
|
476
434
|
__props__.__dict__["updated_at"] = updated_at
|
|
@@ -525,14 +483,6 @@ class CockpitSource(pulumi.CustomResource):
|
|
|
525
483
|
"""
|
|
526
484
|
return pulumi.get(self, "region")
|
|
527
485
|
|
|
528
|
-
@property
|
|
529
|
-
@pulumi.getter(name="retentionDays")
|
|
530
|
-
def retention_days(self) -> pulumi.Output[int]:
|
|
531
|
-
"""
|
|
532
|
-
The number of days to retain data in the data source. Must be a value between 1 and 365. Changes to this field will force the creation of a new resource.
|
|
533
|
-
"""
|
|
534
|
-
return pulumi.get(self, "retention_days")
|
|
535
|
-
|
|
536
486
|
@property
|
|
537
487
|
@pulumi.getter(name="synchronizedWithGrafana")
|
|
538
488
|
def synchronized_with_grafana(self) -> pulumi.Output[bool]:
|
|
@@ -139,7 +139,7 @@ def get_account_project(name: Optional[str] = None,
|
|
|
139
139
|
def get_account_project_output(name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
140
140
|
organization_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
141
141
|
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
142
|
-
opts: Optional[
|
|
142
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAccountProjectResult]:
|
|
143
143
|
"""
|
|
144
144
|
The `AccountProject` data source is used to retrieve information about a Scaleway project.
|
|
145
145
|
|
|
@@ -158,7 +158,7 @@ def get_account_project_output(name: Optional[pulumi.Input[Optional[str]]] = Non
|
|
|
158
158
|
__args__['name'] = name
|
|
159
159
|
__args__['organizationId'] = organization_id
|
|
160
160
|
__args__['projectId'] = project_id
|
|
161
|
-
opts = pulumi.
|
|
161
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
162
162
|
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getAccountProject:getAccountProject', __args__, opts=opts, typ=GetAccountProjectResult)
|
|
163
163
|
return __ret__.apply(lambda __response__: GetAccountProjectResult(
|
|
164
164
|
created_at=pulumi.get(__response__, 'created_at'),
|
|
@@ -173,7 +173,7 @@ def get_account_ssh_key(name: Optional[str] = None,
|
|
|
173
173
|
def get_account_ssh_key_output(name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
174
174
|
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
175
175
|
ssh_key_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
176
|
-
opts: Optional[
|
|
176
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAccountSshKeyResult]:
|
|
177
177
|
"""
|
|
178
178
|
The `AccountSshKey` data source is used to retrieve information about a the SSH key of a Scaleway account.
|
|
179
179
|
|
|
@@ -190,7 +190,7 @@ def get_account_ssh_key_output(name: Optional[pulumi.Input[Optional[str]]] = Non
|
|
|
190
190
|
__args__['name'] = name
|
|
191
191
|
__args__['projectId'] = project_id
|
|
192
192
|
__args__['sshKeyId'] = ssh_key_id
|
|
193
|
-
opts = pulumi.
|
|
193
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
194
194
|
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getAccountSshKey:getAccountSshKey', __args__, opts=opts, typ=GetAccountSshKeyResult)
|
|
195
195
|
return __ret__.apply(lambda __response__: GetAccountSshKeyResult(
|
|
196
196
|
created_at=pulumi.get(__response__, 'created_at'),
|
|
@@ -105,7 +105,7 @@ def get_availability_zones(region: Optional[str] = None,
|
|
|
105
105
|
region=pulumi.get(__ret__, 'region'),
|
|
106
106
|
zones=pulumi.get(__ret__, 'zones'))
|
|
107
107
|
def get_availability_zones_output(region: Optional[pulumi.Input[Optional[str]]] = None,
|
|
108
|
-
opts: Optional[
|
|
108
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAvailabilityZonesResult]:
|
|
109
109
|
"""
|
|
110
110
|
The `get_availability_zones` data source is used to retrieve information about the available zones based on its Region.
|
|
111
111
|
|
|
@@ -131,7 +131,7 @@ def get_availability_zones_output(region: Optional[pulumi.Input[Optional[str]]]
|
|
|
131
131
|
"""
|
|
132
132
|
__args__ = dict()
|
|
133
133
|
__args__['region'] = region
|
|
134
|
-
opts = pulumi.
|
|
134
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
135
135
|
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getAvailabilityZones:getAvailabilityZones', __args__, opts=opts, typ=GetAvailabilityZonesResult)
|
|
136
136
|
return __ret__.apply(lambda __response__: GetAvailabilityZonesResult(
|
|
137
137
|
id=pulumi.get(__response__, 'id'),
|
|
@@ -212,7 +212,7 @@ def get_baremetal_offer_output(include_disabled: Optional[pulumi.Input[Optional[
|
|
|
212
212
|
offer_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
213
213
|
subscription_period: Optional[pulumi.Input[Optional[str]]] = None,
|
|
214
214
|
zone: Optional[pulumi.Input[Optional[str]]] = None,
|
|
215
|
-
opts: Optional[
|
|
215
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetBaremetalOfferResult]:
|
|
216
216
|
"""
|
|
217
217
|
Gets information about a baremetal offer. For more information, see [the documentation](https://developers.scaleway.com/en/products/baremetal/api).
|
|
218
218
|
|
|
@@ -228,7 +228,7 @@ def get_baremetal_offer_output(include_disabled: Optional[pulumi.Input[Optional[
|
|
|
228
228
|
__args__['offerId'] = offer_id
|
|
229
229
|
__args__['subscriptionPeriod'] = subscription_period
|
|
230
230
|
__args__['zone'] = zone
|
|
231
|
-
opts = pulumi.
|
|
231
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
232
232
|
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getBaremetalOffer:getBaremetalOffer', __args__, opts=opts, typ=GetBaremetalOfferResult)
|
|
233
233
|
return __ret__.apply(lambda __response__: GetBaremetalOfferResult(
|
|
234
234
|
bandwidth=pulumi.get(__response__, 'bandwidth'),
|
|
@@ -132,7 +132,7 @@ def get_baremetal_option(name: Optional[str] = None,
|
|
|
132
132
|
def get_baremetal_option_output(name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
133
133
|
option_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
134
134
|
zone: Optional[pulumi.Input[Optional[str]]] = None,
|
|
135
|
-
opts: Optional[
|
|
135
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetBaremetalOptionResult]:
|
|
136
136
|
"""
|
|
137
137
|
Gets information about a baremetal option.
|
|
138
138
|
For more information, see [the documentation](https://developers.scaleway.com/en/products/baremetal/api).
|
|
@@ -158,7 +158,7 @@ def get_baremetal_option_output(name: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
158
158
|
__args__['name'] = name
|
|
159
159
|
__args__['optionId'] = option_id
|
|
160
160
|
__args__['zone'] = zone
|
|
161
|
-
opts = pulumi.
|
|
161
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
162
162
|
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getBaremetalOption:getBaremetalOption', __args__, opts=opts, typ=GetBaremetalOptionResult)
|
|
163
163
|
return __ret__.apply(lambda __response__: GetBaremetalOptionResult(
|
|
164
164
|
id=pulumi.get(__response__, 'id'),
|
|
@@ -133,7 +133,7 @@ def get_baremetal_os_output(name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
133
133
|
os_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
134
134
|
version: Optional[pulumi.Input[Optional[str]]] = None,
|
|
135
135
|
zone: Optional[pulumi.Input[Optional[str]]] = None,
|
|
136
|
-
opts: Optional[
|
|
136
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetBaremetalOsResult]:
|
|
137
137
|
"""
|
|
138
138
|
Gets information about a baremetal operating system.
|
|
139
139
|
For more information, see [the documentation](https://www.scaleway.com/en/developers/api/elastic-metal/#path-os-list-available-oses).
|
|
@@ -164,7 +164,7 @@ def get_baremetal_os_output(name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
164
164
|
__args__['osId'] = os_id
|
|
165
165
|
__args__['version'] = version
|
|
166
166
|
__args__['zone'] = zone
|
|
167
|
-
opts = pulumi.
|
|
167
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
168
168
|
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getBaremetalOs:getBaremetalOs', __args__, opts=opts, typ=GetBaremetalOsResult)
|
|
169
169
|
return __ret__.apply(lambda __response__: GetBaremetalOsResult(
|
|
170
170
|
id=pulumi.get(__response__, 'id'),
|
|
@@ -361,7 +361,7 @@ def get_baremetal_server_output(name: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
361
361
|
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
362
362
|
server_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
363
363
|
zone: Optional[pulumi.Input[Optional[str]]] = None,
|
|
364
|
-
opts: Optional[
|
|
364
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetBaremetalServerResult]:
|
|
365
365
|
"""
|
|
366
366
|
Gets information about a baremetal server.
|
|
367
367
|
For more information, see [the documentation](https://developers.scaleway.com/en/products/baremetal/api).
|
|
@@ -389,7 +389,7 @@ def get_baremetal_server_output(name: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
389
389
|
__args__['projectId'] = project_id
|
|
390
390
|
__args__['serverId'] = server_id
|
|
391
391
|
__args__['zone'] = zone
|
|
392
|
-
opts = pulumi.
|
|
392
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
393
393
|
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getBaremetalServer:getBaremetalServer', __args__, opts=opts, typ=GetBaremetalServerResult)
|
|
394
394
|
return __ret__.apply(lambda __response__: GetBaremetalServerResult(
|
|
395
395
|
description=pulumi.get(__response__, 'description'),
|
|
@@ -115,7 +115,7 @@ def get_billing_consumptions(project_id: Optional[str] = None,
|
|
|
115
115
|
project_id=pulumi.get(__ret__, 'project_id'),
|
|
116
116
|
updated_at=pulumi.get(__ret__, 'updated_at'))
|
|
117
117
|
def get_billing_consumptions_output(project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
118
|
-
opts: Optional[
|
|
118
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetBillingConsumptionsResult]:
|
|
119
119
|
"""
|
|
120
120
|
Gets information about your Consumptions.
|
|
121
121
|
|
|
@@ -124,7 +124,7 @@ def get_billing_consumptions_output(project_id: Optional[pulumi.Input[Optional[s
|
|
|
124
124
|
"""
|
|
125
125
|
__args__ = dict()
|
|
126
126
|
__args__['projectId'] = project_id
|
|
127
|
-
opts = pulumi.
|
|
127
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
128
128
|
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getBillingConsumptions:getBillingConsumptions', __args__, opts=opts, typ=GetBillingConsumptionsResult)
|
|
129
129
|
return __ret__.apply(lambda __response__: GetBillingConsumptionsResult(
|
|
130
130
|
consumptions=pulumi.get(__response__, 'consumptions'),
|
|
@@ -130,7 +130,7 @@ def get_billing_invoices(invoice_type: Optional[str] = None,
|
|
|
130
130
|
def get_billing_invoices_output(invoice_type: Optional[pulumi.Input[Optional[str]]] = None,
|
|
131
131
|
started_after: Optional[pulumi.Input[Optional[str]]] = None,
|
|
132
132
|
started_before: Optional[pulumi.Input[Optional[str]]] = None,
|
|
133
|
-
opts: Optional[
|
|
133
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetBillingInvoicesResult]:
|
|
134
134
|
"""
|
|
135
135
|
Gets information about your Scaleway invoices.
|
|
136
136
|
|
|
@@ -143,7 +143,7 @@ def get_billing_invoices_output(invoice_type: Optional[pulumi.Input[Optional[str
|
|
|
143
143
|
__args__['invoiceType'] = invoice_type
|
|
144
144
|
__args__['startedAfter'] = started_after
|
|
145
145
|
__args__['startedBefore'] = started_before
|
|
146
|
-
opts = pulumi.
|
|
146
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
147
147
|
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getBillingInvoices:getBillingInvoices', __args__, opts=opts, typ=GetBillingInvoicesResult)
|
|
148
148
|
return __ret__.apply(lambda __response__: GetBillingInvoicesResult(
|
|
149
149
|
id=pulumi.get(__response__, 'id'),
|
|
@@ -143,7 +143,7 @@ def get_block_snapshot_output(name: Optional[pulumi.Input[Optional[str]]] = None
|
|
|
143
143
|
snapshot_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
144
144
|
volume_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
145
145
|
zone: Optional[pulumi.Input[Optional[str]]] = None,
|
|
146
|
-
opts: Optional[
|
|
146
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetBlockSnapshotResult]:
|
|
147
147
|
"""
|
|
148
148
|
The `BlockSnapshot` data source is used to retrieve information about a Block Storage volume snapshot.
|
|
149
149
|
|
|
@@ -162,7 +162,7 @@ def get_block_snapshot_output(name: Optional[pulumi.Input[Optional[str]]] = None
|
|
|
162
162
|
__args__['snapshotId'] = snapshot_id
|
|
163
163
|
__args__['volumeId'] = volume_id
|
|
164
164
|
__args__['zone'] = zone
|
|
165
|
-
opts = pulumi.
|
|
165
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
166
166
|
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getBlockSnapshot:getBlockSnapshot', __args__, opts=opts, typ=GetBlockSnapshotResult)
|
|
167
167
|
return __ret__.apply(lambda __response__: GetBlockSnapshotResult(
|
|
168
168
|
id=pulumi.get(__response__, 'id'),
|