pulumiverse-scaleway 1.16.0a1730122985__py3-none-any.whl → 1.17.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.
Potentially problematic release.
This version of pulumiverse-scaleway might be problematic. Click here for more details.
- pulumiverse_scaleway/__init__.py +10 -0
- pulumiverse_scaleway/_inputs.py +165 -60
- pulumiverse_scaleway/block_snapshot.py +37 -27
- pulumiverse_scaleway/block_volume.py +49 -43
- pulumiverse_scaleway/cockpit.py +39 -24
- pulumiverse_scaleway/cockpit_alert_manager.py +42 -38
- pulumiverse_scaleway/cockpit_grafana_user.py +39 -31
- pulumiverse_scaleway/cockpit_source.py +86 -50
- pulumiverse_scaleway/cockpit_token.py +45 -27
- pulumiverse_scaleway/database_instance.py +13 -8
- pulumiverse_scaleway/domain_record.py +88 -46
- pulumiverse_scaleway/domain_zone.py +47 -75
- pulumiverse_scaleway/get_block_snapshot.py +16 -12
- pulumiverse_scaleway/get_block_volume.py +10 -8
- pulumiverse_scaleway/get_cockpit.py +44 -19
- pulumiverse_scaleway/get_cockpit_plan.py +18 -6
- pulumiverse_scaleway/get_domain_record.py +40 -34
- pulumiverse_scaleway/get_domain_zone.py +12 -36
- pulumiverse_scaleway/get_mnq_sns.py +150 -0
- pulumiverse_scaleway/get_secret.py +77 -29
- pulumiverse_scaleway/get_secret_version.py +75 -38
- pulumiverse_scaleway/iam_policy.py +46 -0
- pulumiverse_scaleway/instance_server.py +56 -4
- pulumiverse_scaleway/loadbalancer_frontend.py +4 -4
- pulumiverse_scaleway/outputs.py +169 -55
- pulumiverse_scaleway/pulumi-plugin.json +1 -1
- pulumiverse_scaleway/secret.py +162 -59
- pulumiverse_scaleway/secret_version.py +59 -54
- pulumiverse_scaleway/tem_domain.py +9 -4
- pulumiverse_scaleway/tem_webhook.py +640 -0
- {pulumiverse_scaleway-1.16.0a1730122985.dist-info → pulumiverse_scaleway-1.17.0.dist-info}/METADATA +1 -1
- {pulumiverse_scaleway-1.16.0a1730122985.dist-info → pulumiverse_scaleway-1.17.0.dist-info}/RECORD +34 -32
- {pulumiverse_scaleway-1.16.0a1730122985.dist-info → pulumiverse_scaleway-1.17.0.dist-info}/WHEEL +0 -0
- {pulumiverse_scaleway-1.16.0a1730122985.dist-info → pulumiverse_scaleway-1.17.0.dist-info}/top_level.txt +0 -0
|
@@ -27,10 +27,10 @@ class CockpitAlertManagerArgs:
|
|
|
27
27
|
region: Optional[pulumi.Input[str]] = None):
|
|
28
28
|
"""
|
|
29
29
|
The set of arguments for constructing a CockpitAlertManager resource.
|
|
30
|
-
:param pulumi.Input[Sequence[pulumi.Input['CockpitAlertManagerContactPointArgs']]] contact_points: A list of contact points with email addresses
|
|
31
|
-
:param pulumi.Input[bool] enable_managed_alerts:
|
|
32
|
-
:param pulumi.Input[str] project_id:
|
|
33
|
-
:param pulumi.Input[str] region:
|
|
30
|
+
:param pulumi.Input[Sequence[pulumi.Input['CockpitAlertManagerContactPointArgs']]] contact_points: A list of contact points with email addresses that will receive alerts. Each map should contain a single key email.
|
|
31
|
+
:param pulumi.Input[bool] enable_managed_alerts: Specifies whether the alert manager should be enabled. Defaults to true.
|
|
32
|
+
:param pulumi.Input[str] project_id: ) The ID of the Project the Cockpit is associated with.
|
|
33
|
+
:param pulumi.Input[str] region: ) The region where the [alert manager](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#alert-manager) should be enabled.
|
|
34
34
|
"""
|
|
35
35
|
if contact_points is not None:
|
|
36
36
|
pulumi.set(__self__, "contact_points", contact_points)
|
|
@@ -45,7 +45,7 @@ class CockpitAlertManagerArgs:
|
|
|
45
45
|
@pulumi.getter(name="contactPoints")
|
|
46
46
|
def contact_points(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CockpitAlertManagerContactPointArgs']]]]:
|
|
47
47
|
"""
|
|
48
|
-
A list of contact points with email addresses
|
|
48
|
+
A list of contact points with email addresses that will receive alerts. Each map should contain a single key email.
|
|
49
49
|
"""
|
|
50
50
|
return pulumi.get(self, "contact_points")
|
|
51
51
|
|
|
@@ -57,7 +57,7 @@ class CockpitAlertManagerArgs:
|
|
|
57
57
|
@pulumi.getter(name="enableManagedAlerts")
|
|
58
58
|
def enable_managed_alerts(self) -> Optional[pulumi.Input[bool]]:
|
|
59
59
|
"""
|
|
60
|
-
|
|
60
|
+
Specifies whether the alert manager should be enabled. Defaults to true.
|
|
61
61
|
"""
|
|
62
62
|
return pulumi.get(self, "enable_managed_alerts")
|
|
63
63
|
|
|
@@ -69,7 +69,7 @@ class CockpitAlertManagerArgs:
|
|
|
69
69
|
@pulumi.getter(name="projectId")
|
|
70
70
|
def project_id(self) -> Optional[pulumi.Input[str]]:
|
|
71
71
|
"""
|
|
72
|
-
|
|
72
|
+
) The ID of the Project the Cockpit is associated with.
|
|
73
73
|
"""
|
|
74
74
|
return pulumi.get(self, "project_id")
|
|
75
75
|
|
|
@@ -81,7 +81,7 @@ class CockpitAlertManagerArgs:
|
|
|
81
81
|
@pulumi.getter
|
|
82
82
|
def region(self) -> Optional[pulumi.Input[str]]:
|
|
83
83
|
"""
|
|
84
|
-
|
|
84
|
+
) The region where the [alert manager](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#alert-manager) should be enabled.
|
|
85
85
|
"""
|
|
86
86
|
return pulumi.get(self, "region")
|
|
87
87
|
|
|
@@ -100,11 +100,11 @@ class _CockpitAlertManagerState:
|
|
|
100
100
|
region: Optional[pulumi.Input[str]] = None):
|
|
101
101
|
"""
|
|
102
102
|
Input properties used for looking up and filtering CockpitAlertManager resources.
|
|
103
|
-
:param pulumi.Input[str] alert_manager_url:
|
|
104
|
-
:param pulumi.Input[Sequence[pulumi.Input['CockpitAlertManagerContactPointArgs']]] contact_points: A list of contact points with email addresses
|
|
105
|
-
:param pulumi.Input[bool] enable_managed_alerts:
|
|
106
|
-
:param pulumi.Input[str] project_id:
|
|
107
|
-
:param pulumi.Input[str] region:
|
|
103
|
+
:param pulumi.Input[str] alert_manager_url: The URL of the alert manager.
|
|
104
|
+
:param pulumi.Input[Sequence[pulumi.Input['CockpitAlertManagerContactPointArgs']]] contact_points: A list of contact points with email addresses that will receive alerts. Each map should contain a single key email.
|
|
105
|
+
:param pulumi.Input[bool] enable_managed_alerts: Specifies whether the alert manager should be enabled. Defaults to true.
|
|
106
|
+
:param pulumi.Input[str] project_id: ) The ID of the Project the Cockpit is associated with.
|
|
107
|
+
:param pulumi.Input[str] region: ) The region where the [alert manager](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#alert-manager) should be enabled.
|
|
108
108
|
"""
|
|
109
109
|
if alert_manager_url is not None:
|
|
110
110
|
pulumi.set(__self__, "alert_manager_url", alert_manager_url)
|
|
@@ -121,7 +121,7 @@ class _CockpitAlertManagerState:
|
|
|
121
121
|
@pulumi.getter(name="alertManagerUrl")
|
|
122
122
|
def alert_manager_url(self) -> Optional[pulumi.Input[str]]:
|
|
123
123
|
"""
|
|
124
|
-
|
|
124
|
+
The URL of the alert manager.
|
|
125
125
|
"""
|
|
126
126
|
return pulumi.get(self, "alert_manager_url")
|
|
127
127
|
|
|
@@ -133,7 +133,7 @@ class _CockpitAlertManagerState:
|
|
|
133
133
|
@pulumi.getter(name="contactPoints")
|
|
134
134
|
def contact_points(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CockpitAlertManagerContactPointArgs']]]]:
|
|
135
135
|
"""
|
|
136
|
-
A list of contact points with email addresses
|
|
136
|
+
A list of contact points with email addresses that will receive alerts. Each map should contain a single key email.
|
|
137
137
|
"""
|
|
138
138
|
return pulumi.get(self, "contact_points")
|
|
139
139
|
|
|
@@ -145,7 +145,7 @@ class _CockpitAlertManagerState:
|
|
|
145
145
|
@pulumi.getter(name="enableManagedAlerts")
|
|
146
146
|
def enable_managed_alerts(self) -> Optional[pulumi.Input[bool]]:
|
|
147
147
|
"""
|
|
148
|
-
|
|
148
|
+
Specifies whether the alert manager should be enabled. Defaults to true.
|
|
149
149
|
"""
|
|
150
150
|
return pulumi.get(self, "enable_managed_alerts")
|
|
151
151
|
|
|
@@ -157,7 +157,7 @@ class _CockpitAlertManagerState:
|
|
|
157
157
|
@pulumi.getter(name="projectId")
|
|
158
158
|
def project_id(self) -> Optional[pulumi.Input[str]]:
|
|
159
159
|
"""
|
|
160
|
-
|
|
160
|
+
) The ID of the Project the Cockpit is associated with.
|
|
161
161
|
"""
|
|
162
162
|
return pulumi.get(self, "project_id")
|
|
163
163
|
|
|
@@ -169,7 +169,7 @@ class _CockpitAlertManagerState:
|
|
|
169
169
|
@pulumi.getter
|
|
170
170
|
def region(self) -> Optional[pulumi.Input[str]]:
|
|
171
171
|
"""
|
|
172
|
-
|
|
172
|
+
) The region where the [alert manager](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#alert-manager) should be enabled.
|
|
173
173
|
"""
|
|
174
174
|
return pulumi.get(self, "region")
|
|
175
175
|
|
|
@@ -189,13 +189,15 @@ class CockpitAlertManager(pulumi.CustomResource):
|
|
|
189
189
|
region: Optional[pulumi.Input[str]] = None,
|
|
190
190
|
__props__=None):
|
|
191
191
|
"""
|
|
192
|
-
|
|
192
|
+
The `CockpitAlertManager` resource allows you to enable and manage the Scaleway Cockpit [alert manager](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#alert-manager).
|
|
193
193
|
|
|
194
|
-
|
|
194
|
+
Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information.
|
|
195
|
+
|
|
196
|
+
## Example Usage
|
|
195
197
|
|
|
196
198
|
## Import
|
|
197
199
|
|
|
198
|
-
|
|
200
|
+
This section explains how to import alert managers using the ID of the Project associated with Cockpit.
|
|
199
201
|
|
|
200
202
|
bash
|
|
201
203
|
|
|
@@ -205,10 +207,10 @@ class CockpitAlertManager(pulumi.CustomResource):
|
|
|
205
207
|
|
|
206
208
|
:param str resource_name: The name of the resource.
|
|
207
209
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
208
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['CockpitAlertManagerContactPointArgs', 'CockpitAlertManagerContactPointArgsDict']]]] contact_points: A list of contact points with email addresses
|
|
209
|
-
:param pulumi.Input[bool] enable_managed_alerts:
|
|
210
|
-
:param pulumi.Input[str] project_id:
|
|
211
|
-
:param pulumi.Input[str] region:
|
|
210
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['CockpitAlertManagerContactPointArgs', 'CockpitAlertManagerContactPointArgsDict']]]] contact_points: A list of contact points with email addresses that will receive alerts. Each map should contain a single key email.
|
|
211
|
+
:param pulumi.Input[bool] enable_managed_alerts: Specifies whether the alert manager should be enabled. Defaults to true.
|
|
212
|
+
:param pulumi.Input[str] project_id: ) The ID of the Project the Cockpit is associated with.
|
|
213
|
+
:param pulumi.Input[str] region: ) The region where the [alert manager](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#alert-manager) should be enabled.
|
|
212
214
|
"""
|
|
213
215
|
...
|
|
214
216
|
@overload
|
|
@@ -217,13 +219,15 @@ class CockpitAlertManager(pulumi.CustomResource):
|
|
|
217
219
|
args: Optional[CockpitAlertManagerArgs] = None,
|
|
218
220
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
219
221
|
"""
|
|
220
|
-
|
|
222
|
+
The `CockpitAlertManager` resource allows you to enable and manage the Scaleway Cockpit [alert manager](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#alert-manager).
|
|
223
|
+
|
|
224
|
+
Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information.
|
|
221
225
|
|
|
222
|
-
|
|
226
|
+
## Example Usage
|
|
223
227
|
|
|
224
228
|
## Import
|
|
225
229
|
|
|
226
|
-
|
|
230
|
+
This section explains how to import alert managers using the ID of the Project associated with Cockpit.
|
|
227
231
|
|
|
228
232
|
bash
|
|
229
233
|
|
|
@@ -286,11 +290,11 @@ class CockpitAlertManager(pulumi.CustomResource):
|
|
|
286
290
|
:param str resource_name: The unique name of the resulting resource.
|
|
287
291
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
288
292
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
289
|
-
:param pulumi.Input[str] alert_manager_url:
|
|
290
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['CockpitAlertManagerContactPointArgs', 'CockpitAlertManagerContactPointArgsDict']]]] contact_points: A list of contact points with email addresses
|
|
291
|
-
:param pulumi.Input[bool] enable_managed_alerts:
|
|
292
|
-
:param pulumi.Input[str] project_id:
|
|
293
|
-
:param pulumi.Input[str] region:
|
|
293
|
+
:param pulumi.Input[str] alert_manager_url: The URL of the alert manager.
|
|
294
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['CockpitAlertManagerContactPointArgs', 'CockpitAlertManagerContactPointArgsDict']]]] contact_points: A list of contact points with email addresses that will receive alerts. Each map should contain a single key email.
|
|
295
|
+
:param pulumi.Input[bool] enable_managed_alerts: Specifies whether the alert manager should be enabled. Defaults to true.
|
|
296
|
+
:param pulumi.Input[str] project_id: ) The ID of the Project the Cockpit is associated with.
|
|
297
|
+
:param pulumi.Input[str] region: ) The region where the [alert manager](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#alert-manager) should be enabled.
|
|
294
298
|
"""
|
|
295
299
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
296
300
|
|
|
@@ -307,7 +311,7 @@ class CockpitAlertManager(pulumi.CustomResource):
|
|
|
307
311
|
@pulumi.getter(name="alertManagerUrl")
|
|
308
312
|
def alert_manager_url(self) -> pulumi.Output[str]:
|
|
309
313
|
"""
|
|
310
|
-
|
|
314
|
+
The URL of the alert manager.
|
|
311
315
|
"""
|
|
312
316
|
return pulumi.get(self, "alert_manager_url")
|
|
313
317
|
|
|
@@ -315,7 +319,7 @@ class CockpitAlertManager(pulumi.CustomResource):
|
|
|
315
319
|
@pulumi.getter(name="contactPoints")
|
|
316
320
|
def contact_points(self) -> pulumi.Output[Optional[Sequence['outputs.CockpitAlertManagerContactPoint']]]:
|
|
317
321
|
"""
|
|
318
|
-
A list of contact points with email addresses
|
|
322
|
+
A list of contact points with email addresses that will receive alerts. Each map should contain a single key email.
|
|
319
323
|
"""
|
|
320
324
|
return pulumi.get(self, "contact_points")
|
|
321
325
|
|
|
@@ -323,7 +327,7 @@ class CockpitAlertManager(pulumi.CustomResource):
|
|
|
323
327
|
@pulumi.getter(name="enableManagedAlerts")
|
|
324
328
|
def enable_managed_alerts(self) -> pulumi.Output[Optional[bool]]:
|
|
325
329
|
"""
|
|
326
|
-
|
|
330
|
+
Specifies whether the alert manager should be enabled. Defaults to true.
|
|
327
331
|
"""
|
|
328
332
|
return pulumi.get(self, "enable_managed_alerts")
|
|
329
333
|
|
|
@@ -331,7 +335,7 @@ class CockpitAlertManager(pulumi.CustomResource):
|
|
|
331
335
|
@pulumi.getter(name="projectId")
|
|
332
336
|
def project_id(self) -> pulumi.Output[str]:
|
|
333
337
|
"""
|
|
334
|
-
|
|
338
|
+
) The ID of the Project the Cockpit is associated with.
|
|
335
339
|
"""
|
|
336
340
|
return pulumi.get(self, "project_id")
|
|
337
341
|
|
|
@@ -339,7 +343,7 @@ class CockpitAlertManager(pulumi.CustomResource):
|
|
|
339
343
|
@pulumi.getter
|
|
340
344
|
def region(self) -> pulumi.Output[str]:
|
|
341
345
|
"""
|
|
342
|
-
|
|
346
|
+
) The region where the [alert manager](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#alert-manager) should be enabled.
|
|
343
347
|
"""
|
|
344
348
|
return pulumi.get(self, "region")
|
|
345
349
|
|
|
@@ -24,9 +24,9 @@ class CockpitGrafanaUserArgs:
|
|
|
24
24
|
project_id: Optional[pulumi.Input[str]] = None):
|
|
25
25
|
"""
|
|
26
26
|
The set of arguments for constructing a CockpitGrafanaUser resource.
|
|
27
|
-
:param pulumi.Input[str] login: The
|
|
28
|
-
:param pulumi.Input[str] role: The role
|
|
29
|
-
:param pulumi.Input[str] project_id:
|
|
27
|
+
: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.
|
|
28
|
+
:param pulumi.Input[str] role: The role assigned to the Grafana user. Must be `editor` or `viewer`.
|
|
29
|
+
:param pulumi.Input[str] project_id: ) The ID of the Project the Cockpit is associated with.
|
|
30
30
|
"""
|
|
31
31
|
pulumi.set(__self__, "login", login)
|
|
32
32
|
pulumi.set(__self__, "role", role)
|
|
@@ -37,7 +37,7 @@ class CockpitGrafanaUserArgs:
|
|
|
37
37
|
@pulumi.getter
|
|
38
38
|
def login(self) -> pulumi.Input[str]:
|
|
39
39
|
"""
|
|
40
|
-
The
|
|
40
|
+
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.
|
|
41
41
|
"""
|
|
42
42
|
return pulumi.get(self, "login")
|
|
43
43
|
|
|
@@ -49,7 +49,7 @@ class CockpitGrafanaUserArgs:
|
|
|
49
49
|
@pulumi.getter
|
|
50
50
|
def role(self) -> pulumi.Input[str]:
|
|
51
51
|
"""
|
|
52
|
-
The role
|
|
52
|
+
The role assigned to the Grafana user. Must be `editor` or `viewer`.
|
|
53
53
|
"""
|
|
54
54
|
return pulumi.get(self, "role")
|
|
55
55
|
|
|
@@ -61,7 +61,7 @@ class CockpitGrafanaUserArgs:
|
|
|
61
61
|
@pulumi.getter(name="projectId")
|
|
62
62
|
def project_id(self) -> Optional[pulumi.Input[str]]:
|
|
63
63
|
"""
|
|
64
|
-
|
|
64
|
+
) The ID of the Project the Cockpit is associated with.
|
|
65
65
|
"""
|
|
66
66
|
return pulumi.get(self, "project_id")
|
|
67
67
|
|
|
@@ -79,10 +79,10 @@ class _CockpitGrafanaUserState:
|
|
|
79
79
|
role: Optional[pulumi.Input[str]] = None):
|
|
80
80
|
"""
|
|
81
81
|
Input properties used for looking up and filtering CockpitGrafanaUser resources.
|
|
82
|
-
:param pulumi.Input[str] login: The
|
|
83
|
-
:param pulumi.Input[str] password: The password of the
|
|
84
|
-
:param pulumi.Input[str] project_id:
|
|
85
|
-
:param pulumi.Input[str] role: The role
|
|
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.
|
|
83
|
+
:param pulumi.Input[str] password: The password of the Grafana user.
|
|
84
|
+
:param pulumi.Input[str] project_id: ) The ID of the Project the Cockpit is associated with.
|
|
85
|
+
:param pulumi.Input[str] role: The role assigned to the Grafana user. Must be `editor` or `viewer`.
|
|
86
86
|
"""
|
|
87
87
|
if login is not None:
|
|
88
88
|
pulumi.set(__self__, "login", login)
|
|
@@ -97,7 +97,7 @@ class _CockpitGrafanaUserState:
|
|
|
97
97
|
@pulumi.getter
|
|
98
98
|
def login(self) -> Optional[pulumi.Input[str]]:
|
|
99
99
|
"""
|
|
100
|
-
The
|
|
100
|
+
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.
|
|
101
101
|
"""
|
|
102
102
|
return pulumi.get(self, "login")
|
|
103
103
|
|
|
@@ -109,7 +109,7 @@ class _CockpitGrafanaUserState:
|
|
|
109
109
|
@pulumi.getter
|
|
110
110
|
def password(self) -> Optional[pulumi.Input[str]]:
|
|
111
111
|
"""
|
|
112
|
-
The password of the
|
|
112
|
+
The password of the Grafana user.
|
|
113
113
|
"""
|
|
114
114
|
return pulumi.get(self, "password")
|
|
115
115
|
|
|
@@ -121,7 +121,7 @@ class _CockpitGrafanaUserState:
|
|
|
121
121
|
@pulumi.getter(name="projectId")
|
|
122
122
|
def project_id(self) -> Optional[pulumi.Input[str]]:
|
|
123
123
|
"""
|
|
124
|
-
|
|
124
|
+
) The ID of the Project the Cockpit is associated with.
|
|
125
125
|
"""
|
|
126
126
|
return pulumi.get(self, "project_id")
|
|
127
127
|
|
|
@@ -133,7 +133,7 @@ class _CockpitGrafanaUserState:
|
|
|
133
133
|
@pulumi.getter
|
|
134
134
|
def role(self) -> Optional[pulumi.Input[str]]:
|
|
135
135
|
"""
|
|
136
|
-
The role
|
|
136
|
+
The role assigned to the Grafana user. Must be `editor` or `viewer`.
|
|
137
137
|
"""
|
|
138
138
|
return pulumi.get(self, "role")
|
|
139
139
|
|
|
@@ -152,12 +152,16 @@ class CockpitGrafanaUser(pulumi.CustomResource):
|
|
|
152
152
|
role: Optional[pulumi.Input[str]] = None,
|
|
153
153
|
__props__=None):
|
|
154
154
|
"""
|
|
155
|
-
|
|
155
|
+
The `CockpitGrafanaUser` resource allows you to create and manage [Grafana users](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#grafana-users) in Scaleway Cockpit.
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information.
|
|
158
158
|
|
|
159
159
|
## Example Usage
|
|
160
160
|
|
|
161
|
+
### Create a Grafana user
|
|
162
|
+
|
|
163
|
+
The following command allows you to create a Grafana user within a specific Scaleway Project.
|
|
164
|
+
|
|
161
165
|
```python
|
|
162
166
|
import pulumi
|
|
163
167
|
import pulumiverse_scaleway as scaleway
|
|
@@ -171,7 +175,7 @@ class CockpitGrafanaUser(pulumi.CustomResource):
|
|
|
171
175
|
|
|
172
176
|
## Import
|
|
173
177
|
|
|
174
|
-
|
|
178
|
+
This section explains how to import Grafana users using the ID of the Project associated with Cockpit, and the Grafana user ID in the `{project_id}/{grafana_user_id}` format.
|
|
175
179
|
|
|
176
180
|
bash
|
|
177
181
|
|
|
@@ -181,9 +185,9 @@ class CockpitGrafanaUser(pulumi.CustomResource):
|
|
|
181
185
|
|
|
182
186
|
:param str resource_name: The name of the resource.
|
|
183
187
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
184
|
-
:param pulumi.Input[str] login: The
|
|
185
|
-
:param pulumi.Input[str] project_id:
|
|
186
|
-
:param pulumi.Input[str] role: The role
|
|
188
|
+
: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.
|
|
189
|
+
:param pulumi.Input[str] project_id: ) The ID of the Project the Cockpit is associated with.
|
|
190
|
+
:param pulumi.Input[str] role: The role assigned to the Grafana user. Must be `editor` or `viewer`.
|
|
187
191
|
"""
|
|
188
192
|
...
|
|
189
193
|
@overload
|
|
@@ -192,12 +196,16 @@ class CockpitGrafanaUser(pulumi.CustomResource):
|
|
|
192
196
|
args: CockpitGrafanaUserArgs,
|
|
193
197
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
194
198
|
"""
|
|
195
|
-
|
|
199
|
+
The `CockpitGrafanaUser` resource allows you to create and manage [Grafana users](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#grafana-users) in Scaleway Cockpit.
|
|
196
200
|
|
|
197
|
-
|
|
201
|
+
Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information.
|
|
198
202
|
|
|
199
203
|
## Example Usage
|
|
200
204
|
|
|
205
|
+
### Create a Grafana user
|
|
206
|
+
|
|
207
|
+
The following command allows you to create a Grafana user within a specific Scaleway Project.
|
|
208
|
+
|
|
201
209
|
```python
|
|
202
210
|
import pulumi
|
|
203
211
|
import pulumiverse_scaleway as scaleway
|
|
@@ -211,7 +219,7 @@ class CockpitGrafanaUser(pulumi.CustomResource):
|
|
|
211
219
|
|
|
212
220
|
## Import
|
|
213
221
|
|
|
214
|
-
|
|
222
|
+
This section explains how to import Grafana users using the ID of the Project associated with Cockpit, and the Grafana user ID in the `{project_id}/{grafana_user_id}` format.
|
|
215
223
|
|
|
216
224
|
bash
|
|
217
225
|
|
|
@@ -277,10 +285,10 @@ class CockpitGrafanaUser(pulumi.CustomResource):
|
|
|
277
285
|
:param str resource_name: The unique name of the resulting resource.
|
|
278
286
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
279
287
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
280
|
-
:param pulumi.Input[str] login: The
|
|
281
|
-
:param pulumi.Input[str] password: The password of the
|
|
282
|
-
:param pulumi.Input[str] project_id:
|
|
283
|
-
:param pulumi.Input[str] role: The role
|
|
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.
|
|
289
|
+
:param pulumi.Input[str] password: The password of the Grafana user.
|
|
290
|
+
:param pulumi.Input[str] project_id: ) The ID of the Project the Cockpit is associated with.
|
|
291
|
+
:param pulumi.Input[str] role: The role assigned to the Grafana user. Must be `editor` or `viewer`.
|
|
284
292
|
"""
|
|
285
293
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
286
294
|
|
|
@@ -296,7 +304,7 @@ class CockpitGrafanaUser(pulumi.CustomResource):
|
|
|
296
304
|
@pulumi.getter
|
|
297
305
|
def login(self) -> pulumi.Output[str]:
|
|
298
306
|
"""
|
|
299
|
-
The
|
|
307
|
+
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.
|
|
300
308
|
"""
|
|
301
309
|
return pulumi.get(self, "login")
|
|
302
310
|
|
|
@@ -304,7 +312,7 @@ class CockpitGrafanaUser(pulumi.CustomResource):
|
|
|
304
312
|
@pulumi.getter
|
|
305
313
|
def password(self) -> pulumi.Output[str]:
|
|
306
314
|
"""
|
|
307
|
-
The password of the
|
|
315
|
+
The password of the Grafana user.
|
|
308
316
|
"""
|
|
309
317
|
return pulumi.get(self, "password")
|
|
310
318
|
|
|
@@ -312,7 +320,7 @@ class CockpitGrafanaUser(pulumi.CustomResource):
|
|
|
312
320
|
@pulumi.getter(name="projectId")
|
|
313
321
|
def project_id(self) -> pulumi.Output[str]:
|
|
314
322
|
"""
|
|
315
|
-
|
|
323
|
+
) The ID of the Project the Cockpit is associated with.
|
|
316
324
|
"""
|
|
317
325
|
return pulumi.get(self, "project_id")
|
|
318
326
|
|
|
@@ -320,7 +328,7 @@ class CockpitGrafanaUser(pulumi.CustomResource):
|
|
|
320
328
|
@pulumi.getter
|
|
321
329
|
def role(self) -> pulumi.Output[str]:
|
|
322
330
|
"""
|
|
323
|
-
The role
|
|
331
|
+
The role assigned to the Grafana user. Must be `editor` or `viewer`.
|
|
324
332
|
"""
|
|
325
333
|
return pulumi.get(self, "role")
|
|
326
334
|
|