pulumi-azure-native 3.0.0a1743504154__py3-none-any.whl → 3.1.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 pulumi-azure-native might be problematic. Click here for more details.
- pulumi_azure_native/__init__.py +9 -0
- pulumi_azure_native/monitor/__init__.py +19 -0
- pulumi_azure_native/monitor/_enums.py +305 -0
- pulumi_azure_native/monitor/_inputs.py +6221 -1259
- pulumi_azure_native/monitor/action_group.py +9 -9
- pulumi_azure_native/monitor/activity_log_alert.py +388 -0
- pulumi_azure_native/monitor/autoscale_setting.py +397 -0
- pulumi_azure_native/monitor/data_collection_endpoint.py +468 -0
- pulumi_azure_native/monitor/data_collection_rule.py +519 -0
- pulumi_azure_native/monitor/data_collection_rule_association.py +300 -0
- pulumi_azure_native/monitor/diagnostic_setting.py +444 -0
- pulumi_azure_native/monitor/get_action_group.py +2 -2
- pulumi_azure_native/monitor/get_activity_log_alert.py +231 -0
- pulumi_azure_native/monitor/get_autoscale_setting.py +189 -0
- pulumi_azure_native/monitor/get_data_collection_endpoint.py +357 -0
- pulumi_azure_native/monitor/get_data_collection_rule.py +344 -0
- pulumi_azure_native/monitor/get_data_collection_rule_association.py +231 -0
- pulumi_azure_native/monitor/get_diagnostic_setting.py +273 -0
- pulumi_azure_native/monitor/get_management_group_diagnostic_setting.py +245 -0
- pulumi_azure_native/monitor/get_metric_alert.py +343 -0
- pulumi_azure_native/monitor/get_private_endpoint_connection.py +4 -0
- pulumi_azure_native/monitor/get_private_link_scope.py +4 -0
- pulumi_azure_native/monitor/get_private_link_scoped_resource.py +4 -0
- pulumi_azure_native/monitor/get_subscription_diagnostic_setting.py +239 -0
- pulumi_azure_native/monitor/list_diagnostic_settings_category.py +85 -0
- pulumi_azure_native/monitor/management_group_diagnostic_setting.py +386 -0
- pulumi_azure_native/monitor/metric_alert.py +578 -0
- pulumi_azure_native/monitor/outputs.py +5646 -716
- pulumi_azure_native/monitor/private_endpoint_connection.py +4 -0
- pulumi_azure_native/monitor/private_link_scope.py +4 -0
- pulumi_azure_native/monitor/private_link_scoped_resource.py +4 -0
- pulumi_azure_native/monitor/subscription_diagnostic_setting.py +365 -0
- pulumi_azure_native/pulumi-plugin.json +1 -1
- {pulumi_azure_native-3.0.0a1743504154.dist-info → pulumi_azure_native-3.1.0.dist-info}/METADATA +1 -1
- {pulumi_azure_native-3.0.0a1743504154.dist-info → pulumi_azure_native-3.1.0.dist-info}/RECORD +37 -18
- {pulumi_azure_native-3.0.0a1743504154.dist-info → pulumi_azure_native-3.1.0.dist-info}/WHEEL +0 -0
- {pulumi_azure_native-3.0.0a1743504154.dist-info → pulumi_azure_native-3.1.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetActivityLogAlertResult',
|
|
20
|
+
'AwaitableGetActivityLogAlertResult',
|
|
21
|
+
'get_activity_log_alert',
|
|
22
|
+
'get_activity_log_alert_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetActivityLogAlertResult:
|
|
27
|
+
"""
|
|
28
|
+
An Activity Log Alert rule resource.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, actions=None, azure_api_version=None, condition=None, description=None, enabled=None, id=None, location=None, name=None, scopes=None, tags=None, type=None):
|
|
31
|
+
if actions and not isinstance(actions, dict):
|
|
32
|
+
raise TypeError("Expected argument 'actions' to be a dict")
|
|
33
|
+
pulumi.set(__self__, "actions", actions)
|
|
34
|
+
if azure_api_version and not isinstance(azure_api_version, str):
|
|
35
|
+
raise TypeError("Expected argument 'azure_api_version' to be a str")
|
|
36
|
+
pulumi.set(__self__, "azure_api_version", azure_api_version)
|
|
37
|
+
if condition and not isinstance(condition, dict):
|
|
38
|
+
raise TypeError("Expected argument 'condition' to be a dict")
|
|
39
|
+
pulumi.set(__self__, "condition", condition)
|
|
40
|
+
if description and not isinstance(description, str):
|
|
41
|
+
raise TypeError("Expected argument 'description' to be a str")
|
|
42
|
+
pulumi.set(__self__, "description", description)
|
|
43
|
+
if enabled and not isinstance(enabled, bool):
|
|
44
|
+
raise TypeError("Expected argument 'enabled' to be a bool")
|
|
45
|
+
pulumi.set(__self__, "enabled", enabled)
|
|
46
|
+
if id and not isinstance(id, str):
|
|
47
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
48
|
+
pulumi.set(__self__, "id", id)
|
|
49
|
+
if location and not isinstance(location, str):
|
|
50
|
+
raise TypeError("Expected argument 'location' to be a str")
|
|
51
|
+
pulumi.set(__self__, "location", location)
|
|
52
|
+
if name and not isinstance(name, str):
|
|
53
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
54
|
+
pulumi.set(__self__, "name", name)
|
|
55
|
+
if scopes and not isinstance(scopes, list):
|
|
56
|
+
raise TypeError("Expected argument 'scopes' to be a list")
|
|
57
|
+
pulumi.set(__self__, "scopes", scopes)
|
|
58
|
+
if tags and not isinstance(tags, dict):
|
|
59
|
+
raise TypeError("Expected argument 'tags' to be a dict")
|
|
60
|
+
pulumi.set(__self__, "tags", tags)
|
|
61
|
+
if type and not isinstance(type, str):
|
|
62
|
+
raise TypeError("Expected argument 'type' to be a str")
|
|
63
|
+
pulumi.set(__self__, "type", type)
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
@pulumi.getter
|
|
67
|
+
def actions(self) -> 'outputs.ActionListResponse':
|
|
68
|
+
"""
|
|
69
|
+
The actions that will activate when the condition is met.
|
|
70
|
+
"""
|
|
71
|
+
return pulumi.get(self, "actions")
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
@pulumi.getter(name="azureApiVersion")
|
|
75
|
+
def azure_api_version(self) -> str:
|
|
76
|
+
"""
|
|
77
|
+
The Azure API version of the resource.
|
|
78
|
+
"""
|
|
79
|
+
return pulumi.get(self, "azure_api_version")
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
@pulumi.getter
|
|
83
|
+
def condition(self) -> 'outputs.AlertRuleAllOfConditionResponse':
|
|
84
|
+
"""
|
|
85
|
+
The condition that will cause this alert to activate.
|
|
86
|
+
"""
|
|
87
|
+
return pulumi.get(self, "condition")
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
@pulumi.getter
|
|
91
|
+
def description(self) -> Optional[str]:
|
|
92
|
+
"""
|
|
93
|
+
A description of this Activity Log Alert rule.
|
|
94
|
+
"""
|
|
95
|
+
return pulumi.get(self, "description")
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
@pulumi.getter
|
|
99
|
+
def enabled(self) -> Optional[bool]:
|
|
100
|
+
"""
|
|
101
|
+
Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
|
|
102
|
+
"""
|
|
103
|
+
return pulumi.get(self, "enabled")
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
@pulumi.getter
|
|
107
|
+
def id(self) -> str:
|
|
108
|
+
"""
|
|
109
|
+
The resource Id.
|
|
110
|
+
"""
|
|
111
|
+
return pulumi.get(self, "id")
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
@pulumi.getter
|
|
115
|
+
def location(self) -> Optional[str]:
|
|
116
|
+
"""
|
|
117
|
+
The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
|
|
118
|
+
"""
|
|
119
|
+
return pulumi.get(self, "location")
|
|
120
|
+
|
|
121
|
+
@property
|
|
122
|
+
@pulumi.getter
|
|
123
|
+
def name(self) -> str:
|
|
124
|
+
"""
|
|
125
|
+
The name of the resource.
|
|
126
|
+
"""
|
|
127
|
+
return pulumi.get(self, "name")
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
@pulumi.getter
|
|
131
|
+
def scopes(self) -> Sequence[str]:
|
|
132
|
+
"""
|
|
133
|
+
A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
|
|
134
|
+
"""
|
|
135
|
+
return pulumi.get(self, "scopes")
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
@pulumi.getter
|
|
139
|
+
def tags(self) -> Optional[Mapping[str, str]]:
|
|
140
|
+
"""
|
|
141
|
+
The tags of the resource.
|
|
142
|
+
"""
|
|
143
|
+
return pulumi.get(self, "tags")
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
@pulumi.getter
|
|
147
|
+
def type(self) -> str:
|
|
148
|
+
"""
|
|
149
|
+
The type of the resource.
|
|
150
|
+
"""
|
|
151
|
+
return pulumi.get(self, "type")
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
class AwaitableGetActivityLogAlertResult(GetActivityLogAlertResult):
|
|
155
|
+
# pylint: disable=using-constant-test
|
|
156
|
+
def __await__(self):
|
|
157
|
+
if False:
|
|
158
|
+
yield self
|
|
159
|
+
return GetActivityLogAlertResult(
|
|
160
|
+
actions=self.actions,
|
|
161
|
+
azure_api_version=self.azure_api_version,
|
|
162
|
+
condition=self.condition,
|
|
163
|
+
description=self.description,
|
|
164
|
+
enabled=self.enabled,
|
|
165
|
+
id=self.id,
|
|
166
|
+
location=self.location,
|
|
167
|
+
name=self.name,
|
|
168
|
+
scopes=self.scopes,
|
|
169
|
+
tags=self.tags,
|
|
170
|
+
type=self.type)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
def get_activity_log_alert(activity_log_alert_name: Optional[str] = None,
|
|
174
|
+
resource_group_name: Optional[str] = None,
|
|
175
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetActivityLogAlertResult:
|
|
176
|
+
"""
|
|
177
|
+
Get an Activity Log Alert rule.
|
|
178
|
+
|
|
179
|
+
Uses Azure REST API version 2020-10-01.
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:param str activity_log_alert_name: The name of the Activity Log Alert rule.
|
|
183
|
+
:param str resource_group_name: The name of the resource group. The name is case insensitive.
|
|
184
|
+
"""
|
|
185
|
+
__args__ = dict()
|
|
186
|
+
__args__['activityLogAlertName'] = activity_log_alert_name
|
|
187
|
+
__args__['resourceGroupName'] = resource_group_name
|
|
188
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
189
|
+
__ret__ = pulumi.runtime.invoke('azure-native:monitor:getActivityLogAlert', __args__, opts=opts, typ=GetActivityLogAlertResult).value
|
|
190
|
+
|
|
191
|
+
return AwaitableGetActivityLogAlertResult(
|
|
192
|
+
actions=pulumi.get(__ret__, 'actions'),
|
|
193
|
+
azure_api_version=pulumi.get(__ret__, 'azure_api_version'),
|
|
194
|
+
condition=pulumi.get(__ret__, 'condition'),
|
|
195
|
+
description=pulumi.get(__ret__, 'description'),
|
|
196
|
+
enabled=pulumi.get(__ret__, 'enabled'),
|
|
197
|
+
id=pulumi.get(__ret__, 'id'),
|
|
198
|
+
location=pulumi.get(__ret__, 'location'),
|
|
199
|
+
name=pulumi.get(__ret__, 'name'),
|
|
200
|
+
scopes=pulumi.get(__ret__, 'scopes'),
|
|
201
|
+
tags=pulumi.get(__ret__, 'tags'),
|
|
202
|
+
type=pulumi.get(__ret__, 'type'))
|
|
203
|
+
def get_activity_log_alert_output(activity_log_alert_name: Optional[pulumi.Input[str]] = None,
|
|
204
|
+
resource_group_name: Optional[pulumi.Input[str]] = None,
|
|
205
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetActivityLogAlertResult]:
|
|
206
|
+
"""
|
|
207
|
+
Get an Activity Log Alert rule.
|
|
208
|
+
|
|
209
|
+
Uses Azure REST API version 2020-10-01.
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
:param str activity_log_alert_name: The name of the Activity Log Alert rule.
|
|
213
|
+
:param str resource_group_name: The name of the resource group. The name is case insensitive.
|
|
214
|
+
"""
|
|
215
|
+
__args__ = dict()
|
|
216
|
+
__args__['activityLogAlertName'] = activity_log_alert_name
|
|
217
|
+
__args__['resourceGroupName'] = resource_group_name
|
|
218
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
219
|
+
__ret__ = pulumi.runtime.invoke_output('azure-native:monitor:getActivityLogAlert', __args__, opts=opts, typ=GetActivityLogAlertResult)
|
|
220
|
+
return __ret__.apply(lambda __response__: GetActivityLogAlertResult(
|
|
221
|
+
actions=pulumi.get(__response__, 'actions'),
|
|
222
|
+
azure_api_version=pulumi.get(__response__, 'azure_api_version'),
|
|
223
|
+
condition=pulumi.get(__response__, 'condition'),
|
|
224
|
+
description=pulumi.get(__response__, 'description'),
|
|
225
|
+
enabled=pulumi.get(__response__, 'enabled'),
|
|
226
|
+
id=pulumi.get(__response__, 'id'),
|
|
227
|
+
location=pulumi.get(__response__, 'location'),
|
|
228
|
+
name=pulumi.get(__response__, 'name'),
|
|
229
|
+
scopes=pulumi.get(__response__, 'scopes'),
|
|
230
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
231
|
+
type=pulumi.get(__response__, 'type')))
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetAutoscaleSettingResult',
|
|
20
|
+
'AwaitableGetAutoscaleSettingResult',
|
|
21
|
+
'get_autoscale_setting',
|
|
22
|
+
'get_autoscale_setting_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetAutoscaleSettingResult:
|
|
27
|
+
"""
|
|
28
|
+
The autoscale setting resource.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, azure_api_version=None, id=None, location=None, name=None, properties=None, system_data=None, tags=None, type=None):
|
|
31
|
+
if azure_api_version and not isinstance(azure_api_version, str):
|
|
32
|
+
raise TypeError("Expected argument 'azure_api_version' to be a str")
|
|
33
|
+
pulumi.set(__self__, "azure_api_version", azure_api_version)
|
|
34
|
+
if id and not isinstance(id, str):
|
|
35
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
36
|
+
pulumi.set(__self__, "id", id)
|
|
37
|
+
if location and not isinstance(location, str):
|
|
38
|
+
raise TypeError("Expected argument 'location' to be a str")
|
|
39
|
+
pulumi.set(__self__, "location", location)
|
|
40
|
+
if name and not isinstance(name, str):
|
|
41
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
42
|
+
pulumi.set(__self__, "name", name)
|
|
43
|
+
if properties and not isinstance(properties, dict):
|
|
44
|
+
raise TypeError("Expected argument 'properties' to be a dict")
|
|
45
|
+
pulumi.set(__self__, "properties", properties)
|
|
46
|
+
if system_data and not isinstance(system_data, dict):
|
|
47
|
+
raise TypeError("Expected argument 'system_data' to be a dict")
|
|
48
|
+
pulumi.set(__self__, "system_data", system_data)
|
|
49
|
+
if tags and not isinstance(tags, dict):
|
|
50
|
+
raise TypeError("Expected argument 'tags' to be a dict")
|
|
51
|
+
pulumi.set(__self__, "tags", tags)
|
|
52
|
+
if type and not isinstance(type, str):
|
|
53
|
+
raise TypeError("Expected argument 'type' to be a str")
|
|
54
|
+
pulumi.set(__self__, "type", type)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
@pulumi.getter(name="azureApiVersion")
|
|
58
|
+
def azure_api_version(self) -> str:
|
|
59
|
+
"""
|
|
60
|
+
The Azure API version of the resource.
|
|
61
|
+
"""
|
|
62
|
+
return pulumi.get(self, "azure_api_version")
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
@pulumi.getter
|
|
66
|
+
def id(self) -> str:
|
|
67
|
+
"""
|
|
68
|
+
Azure resource Id
|
|
69
|
+
"""
|
|
70
|
+
return pulumi.get(self, "id")
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
@pulumi.getter
|
|
74
|
+
def location(self) -> str:
|
|
75
|
+
"""
|
|
76
|
+
Resource location
|
|
77
|
+
"""
|
|
78
|
+
return pulumi.get(self, "location")
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
@pulumi.getter
|
|
82
|
+
def name(self) -> str:
|
|
83
|
+
"""
|
|
84
|
+
Azure resource name
|
|
85
|
+
"""
|
|
86
|
+
return pulumi.get(self, "name")
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
@pulumi.getter
|
|
90
|
+
def properties(self) -> 'outputs.AutoscaleSettingResponse':
|
|
91
|
+
"""
|
|
92
|
+
The autoscale setting of the resource.
|
|
93
|
+
"""
|
|
94
|
+
return pulumi.get(self, "properties")
|
|
95
|
+
|
|
96
|
+
@property
|
|
97
|
+
@pulumi.getter(name="systemData")
|
|
98
|
+
def system_data(self) -> 'outputs.SystemDataResponse':
|
|
99
|
+
"""
|
|
100
|
+
The system metadata related to the response.
|
|
101
|
+
"""
|
|
102
|
+
return pulumi.get(self, "system_data")
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
@pulumi.getter
|
|
106
|
+
def tags(self) -> Optional[Mapping[str, str]]:
|
|
107
|
+
"""
|
|
108
|
+
Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters.
|
|
109
|
+
"""
|
|
110
|
+
return pulumi.get(self, "tags")
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
@pulumi.getter
|
|
114
|
+
def type(self) -> str:
|
|
115
|
+
"""
|
|
116
|
+
Azure resource type
|
|
117
|
+
"""
|
|
118
|
+
return pulumi.get(self, "type")
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
class AwaitableGetAutoscaleSettingResult(GetAutoscaleSettingResult):
|
|
122
|
+
# pylint: disable=using-constant-test
|
|
123
|
+
def __await__(self):
|
|
124
|
+
if False:
|
|
125
|
+
yield self
|
|
126
|
+
return GetAutoscaleSettingResult(
|
|
127
|
+
azure_api_version=self.azure_api_version,
|
|
128
|
+
id=self.id,
|
|
129
|
+
location=self.location,
|
|
130
|
+
name=self.name,
|
|
131
|
+
properties=self.properties,
|
|
132
|
+
system_data=self.system_data,
|
|
133
|
+
tags=self.tags,
|
|
134
|
+
type=self.type)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
def get_autoscale_setting(autoscale_setting_name: Optional[str] = None,
|
|
138
|
+
resource_group_name: Optional[str] = None,
|
|
139
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAutoscaleSettingResult:
|
|
140
|
+
"""
|
|
141
|
+
Gets an autoscale setting
|
|
142
|
+
|
|
143
|
+
Uses Azure REST API version 2021-05-01-preview.
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
:param str autoscale_setting_name: The autoscale setting name.
|
|
147
|
+
:param str resource_group_name: The name of the resource group. The name is case insensitive.
|
|
148
|
+
"""
|
|
149
|
+
__args__ = dict()
|
|
150
|
+
__args__['autoscaleSettingName'] = autoscale_setting_name
|
|
151
|
+
__args__['resourceGroupName'] = resource_group_name
|
|
152
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
153
|
+
__ret__ = pulumi.runtime.invoke('azure-native:monitor:getAutoscaleSetting', __args__, opts=opts, typ=GetAutoscaleSettingResult).value
|
|
154
|
+
|
|
155
|
+
return AwaitableGetAutoscaleSettingResult(
|
|
156
|
+
azure_api_version=pulumi.get(__ret__, 'azure_api_version'),
|
|
157
|
+
id=pulumi.get(__ret__, 'id'),
|
|
158
|
+
location=pulumi.get(__ret__, 'location'),
|
|
159
|
+
name=pulumi.get(__ret__, 'name'),
|
|
160
|
+
properties=pulumi.get(__ret__, 'properties'),
|
|
161
|
+
system_data=pulumi.get(__ret__, 'system_data'),
|
|
162
|
+
tags=pulumi.get(__ret__, 'tags'),
|
|
163
|
+
type=pulumi.get(__ret__, 'type'))
|
|
164
|
+
def get_autoscale_setting_output(autoscale_setting_name: Optional[pulumi.Input[str]] = None,
|
|
165
|
+
resource_group_name: Optional[pulumi.Input[str]] = None,
|
|
166
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAutoscaleSettingResult]:
|
|
167
|
+
"""
|
|
168
|
+
Gets an autoscale setting
|
|
169
|
+
|
|
170
|
+
Uses Azure REST API version 2021-05-01-preview.
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
:param str autoscale_setting_name: The autoscale setting name.
|
|
174
|
+
:param str resource_group_name: The name of the resource group. The name is case insensitive.
|
|
175
|
+
"""
|
|
176
|
+
__args__ = dict()
|
|
177
|
+
__args__['autoscaleSettingName'] = autoscale_setting_name
|
|
178
|
+
__args__['resourceGroupName'] = resource_group_name
|
|
179
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
180
|
+
__ret__ = pulumi.runtime.invoke_output('azure-native:monitor:getAutoscaleSetting', __args__, opts=opts, typ=GetAutoscaleSettingResult)
|
|
181
|
+
return __ret__.apply(lambda __response__: GetAutoscaleSettingResult(
|
|
182
|
+
azure_api_version=pulumi.get(__response__, 'azure_api_version'),
|
|
183
|
+
id=pulumi.get(__response__, 'id'),
|
|
184
|
+
location=pulumi.get(__response__, 'location'),
|
|
185
|
+
name=pulumi.get(__response__, 'name'),
|
|
186
|
+
properties=pulumi.get(__response__, 'properties'),
|
|
187
|
+
system_data=pulumi.get(__response__, 'system_data'),
|
|
188
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
189
|
+
type=pulumi.get(__response__, 'type')))
|