pulumi-azure-native 2.20.1a1701336041__py3-none-any.whl → 2.20.2a1701703974__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 +8 -0
- pulumi_azure_native/alertsmanagement/__init__.py +3 -0
- pulumi_azure_native/alertsmanagement/_enums.py +0 -10
- pulumi_azure_native/alertsmanagement/_inputs.py +4 -118
- pulumi_azure_native/alertsmanagement/alert_processing_rule_by_name.py +6 -2
- pulumi_azure_native/alertsmanagement/get_alert_processing_rule_by_name.py +6 -2
- pulumi_azure_native/alertsmanagement/outputs.py +1 -120
- pulumi_azure_native/alertsmanagement/v20210808/__init__.py +12 -0
- pulumi_azure_native/alertsmanagement/v20210808/_enums.py +70 -0
- pulumi_azure_native/alertsmanagement/v20210808/_inputs.py +519 -0
- pulumi_azure_native/alertsmanagement/v20210808/alert_processing_rule_by_name.py +253 -0
- pulumi_azure_native/alertsmanagement/v20210808/get_alert_processing_rule_by_name.py +157 -0
- pulumi_azure_native/alertsmanagement/v20210808/outputs.py +671 -0
- pulumi_azure_native/config/__init__.pyi +23 -5
- pulumi_azure_native/config/vars.py +29 -5
- pulumi_azure_native/insights/__init__.py +1 -0
- pulumi_azure_native/insights/list_diagnostic_settings_category.py +80 -0
- pulumi_azure_native/insights/outputs.py +80 -0
- pulumi_azure_native/insights/v20170501preview/__init__.py +1 -0
- pulumi_azure_native/insights/v20170501preview/list_diagnostic_settings_category.py +74 -0
- pulumi_azure_native/insights/v20170501preview/outputs.py +57 -0
- pulumi_azure_native/insights/v20210501preview/__init__.py +1 -0
- pulumi_azure_native/insights/v20210501preview/list_diagnostic_settings_category.py +74 -0
- pulumi_azure_native/insights/v20210501preview/outputs.py +80 -0
- pulumi_azure_native/provider.py +49 -9
- pulumi_azure_native/testbase/_inputs.py +17 -16
- {pulumi_azure_native-2.20.1a1701336041.dist-info → pulumi_azure_native-2.20.2a1701703974.dist-info}/METADATA +1 -1
- {pulumi_azure_native-2.20.1a1701336041.dist-info → pulumi_azure_native-2.20.2a1701703974.dist-info}/RECORD +30 -21
- {pulumi_azure_native-2.20.1a1701336041.dist-info → pulumi_azure_native-2.20.2a1701703974.dist-info}/WHEEL +0 -0
- {pulumi_azure_native-2.20.1a1701336041.dist-info → pulumi_azure_native-2.20.2a1701703974.dist-info}/top_level.txt +0 -0
|
@@ -10,6 +10,9 @@ from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
|
10
10
|
from .. import _utilities
|
|
11
11
|
|
|
12
12
|
auxiliaryTenantIds: Optional[str]
|
|
13
|
+
"""
|
|
14
|
+
Any additional Tenant IDs which should be used for authentication.
|
|
15
|
+
"""
|
|
13
16
|
|
|
14
17
|
clientCertificatePassword: Optional[str]
|
|
15
18
|
"""
|
|
@@ -38,17 +41,27 @@ This will disable the Pulumi Partner ID which is used if a custom `partnerId` is
|
|
|
38
41
|
|
|
39
42
|
environment: Optional[str]
|
|
40
43
|
"""
|
|
41
|
-
The Cloud Environment which should be used. Possible values are public, usgovernment,
|
|
44
|
+
The Cloud Environment which should be used. Possible values are public, usgovernment, and china. Defaults to public.
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
location: Optional[str]
|
|
48
|
+
"""
|
|
49
|
+
The location to use. ResourceGroups will consult this property for a default location, if one was not supplied explicitly when defining the resource.
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
metadataHost: Optional[str]
|
|
53
|
+
"""
|
|
54
|
+
The Hostname of the Azure Metadata Service.
|
|
42
55
|
"""
|
|
43
56
|
|
|
44
57
|
msiEndpoint: Optional[str]
|
|
45
58
|
"""
|
|
46
|
-
The path to a custom endpoint for Managed Service Identity - in most circumstances this should be detected automatically.
|
|
59
|
+
The path to a custom endpoint for Managed Service Identity - in most circumstances this should be detected automatically.
|
|
47
60
|
"""
|
|
48
61
|
|
|
49
62
|
oidcRequestToken: Optional[str]
|
|
50
63
|
"""
|
|
51
|
-
Your cloud service or provider’s token to exchange for an
|
|
64
|
+
Your cloud service or provider’s bearer token to exchange for an OIDC ID token.
|
|
52
65
|
"""
|
|
53
66
|
|
|
54
67
|
oidcRequestUrl: Optional[str]
|
|
@@ -56,6 +69,11 @@ oidcRequestUrl: Optional[str]
|
|
|
56
69
|
The URL to initiate the OIDC token exchange.
|
|
57
70
|
"""
|
|
58
71
|
|
|
72
|
+
oidcToken: Optional[str]
|
|
73
|
+
"""
|
|
74
|
+
The OIDC token to exchange for an Azure token.
|
|
75
|
+
"""
|
|
76
|
+
|
|
59
77
|
partnerId: Optional[str]
|
|
60
78
|
"""
|
|
61
79
|
A GUID/UUID that is registered with Microsoft to facilitate partner resource usage attribution.
|
|
@@ -73,11 +91,11 @@ The Tenant ID which should be used.
|
|
|
73
91
|
|
|
74
92
|
useMsi: bool
|
|
75
93
|
"""
|
|
76
|
-
|
|
94
|
+
Allow Managed Service Identity be used for Authentication.
|
|
77
95
|
"""
|
|
78
96
|
|
|
79
97
|
useOidc: bool
|
|
80
98
|
"""
|
|
81
|
-
|
|
99
|
+
Allow OpenID Connect (OIDC) to be used for Authentication.
|
|
82
100
|
"""
|
|
83
101
|
|
|
@@ -17,6 +17,9 @@ __config__ = pulumi.Config('azure-native')
|
|
|
17
17
|
class _ExportableConfig(types.ModuleType):
|
|
18
18
|
@property
|
|
19
19
|
def auxiliary_tenant_ids(self) -> Optional[str]:
|
|
20
|
+
"""
|
|
21
|
+
Any additional Tenant IDs which should be used for authentication.
|
|
22
|
+
"""
|
|
20
23
|
return __config__.get('auxiliaryTenantIds')
|
|
21
24
|
|
|
22
25
|
@property
|
|
@@ -57,21 +60,35 @@ class _ExportableConfig(types.ModuleType):
|
|
|
57
60
|
@property
|
|
58
61
|
def environment(self) -> Optional[str]:
|
|
59
62
|
"""
|
|
60
|
-
The Cloud Environment which should be used. Possible values are public, usgovernment,
|
|
63
|
+
The Cloud Environment which should be used. Possible values are public, usgovernment, and china. Defaults to public.
|
|
61
64
|
"""
|
|
62
65
|
return __config__.get('environment')
|
|
63
66
|
|
|
67
|
+
@property
|
|
68
|
+
def location(self) -> Optional[str]:
|
|
69
|
+
"""
|
|
70
|
+
The location to use. ResourceGroups will consult this property for a default location, if one was not supplied explicitly when defining the resource.
|
|
71
|
+
"""
|
|
72
|
+
return __config__.get('location')
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def metadata_host(self) -> Optional[str]:
|
|
76
|
+
"""
|
|
77
|
+
The Hostname of the Azure Metadata Service.
|
|
78
|
+
"""
|
|
79
|
+
return __config__.get('metadataHost')
|
|
80
|
+
|
|
64
81
|
@property
|
|
65
82
|
def msi_endpoint(self) -> Optional[str]:
|
|
66
83
|
"""
|
|
67
|
-
The path to a custom endpoint for Managed Service Identity - in most circumstances this should be detected automatically.
|
|
84
|
+
The path to a custom endpoint for Managed Service Identity - in most circumstances this should be detected automatically.
|
|
68
85
|
"""
|
|
69
86
|
return __config__.get('msiEndpoint')
|
|
70
87
|
|
|
71
88
|
@property
|
|
72
89
|
def oidc_request_token(self) -> Optional[str]:
|
|
73
90
|
"""
|
|
74
|
-
Your cloud service or provider’s token to exchange for an
|
|
91
|
+
Your cloud service or provider’s bearer token to exchange for an OIDC ID token.
|
|
75
92
|
"""
|
|
76
93
|
return __config__.get('oidcRequestToken')
|
|
77
94
|
|
|
@@ -82,6 +99,13 @@ class _ExportableConfig(types.ModuleType):
|
|
|
82
99
|
"""
|
|
83
100
|
return __config__.get('oidcRequestUrl')
|
|
84
101
|
|
|
102
|
+
@property
|
|
103
|
+
def oidc_token(self) -> Optional[str]:
|
|
104
|
+
"""
|
|
105
|
+
The OIDC token to exchange for an Azure token.
|
|
106
|
+
"""
|
|
107
|
+
return __config__.get('oidcToken')
|
|
108
|
+
|
|
85
109
|
@property
|
|
86
110
|
def partner_id(self) -> Optional[str]:
|
|
87
111
|
"""
|
|
@@ -106,14 +130,14 @@ class _ExportableConfig(types.ModuleType):
|
|
|
106
130
|
@property
|
|
107
131
|
def use_msi(self) -> bool:
|
|
108
132
|
"""
|
|
109
|
-
|
|
133
|
+
Allow Managed Service Identity be used for Authentication.
|
|
110
134
|
"""
|
|
111
135
|
return __config__.get_bool('useMsi') or False
|
|
112
136
|
|
|
113
137
|
@property
|
|
114
138
|
def use_oidc(self) -> bool:
|
|
115
139
|
"""
|
|
116
|
-
|
|
140
|
+
Allow OpenID Connect (OIDC) to be used for Authentication.
|
|
117
141
|
"""
|
|
118
142
|
return __config__.get_bool('useOidc') or False
|
|
119
143
|
|
|
@@ -56,6 +56,7 @@ from .get_workbook import *
|
|
|
56
56
|
from .get_workbook_template import *
|
|
57
57
|
from .guest_diagnostics_setting import *
|
|
58
58
|
from .guest_diagnostics_settings_association import *
|
|
59
|
+
from .list_diagnostic_settings_category import *
|
|
59
60
|
from .list_ea_subscription_list_migration_date_post import *
|
|
60
61
|
from .log_profile import *
|
|
61
62
|
from .management_group_diagnostic_setting import *
|
|
@@ -0,0 +1,80 @@
|
|
|
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 pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from .. import _utilities
|
|
11
|
+
from . import outputs
|
|
12
|
+
|
|
13
|
+
__all__ = [
|
|
14
|
+
'ListDiagnosticSettingsCategoryResult',
|
|
15
|
+
'AwaitableListDiagnosticSettingsCategoryResult',
|
|
16
|
+
'list_diagnostic_settings_category',
|
|
17
|
+
'list_diagnostic_settings_category_output',
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
@pulumi.output_type
|
|
21
|
+
class ListDiagnosticSettingsCategoryResult:
|
|
22
|
+
"""
|
|
23
|
+
Represents a collection of diagnostic setting category resources.
|
|
24
|
+
"""
|
|
25
|
+
def __init__(__self__, value=None):
|
|
26
|
+
if value and not isinstance(value, list):
|
|
27
|
+
raise TypeError("Expected argument 'value' to be a list")
|
|
28
|
+
pulumi.set(__self__, "value", value)
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
@pulumi.getter
|
|
32
|
+
def value(self) -> Optional[Sequence['outputs.DiagnosticSettingsCategoryResourceResponse']]:
|
|
33
|
+
"""
|
|
34
|
+
The collection of diagnostic settings category resources.
|
|
35
|
+
"""
|
|
36
|
+
return pulumi.get(self, "value")
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class AwaitableListDiagnosticSettingsCategoryResult(ListDiagnosticSettingsCategoryResult):
|
|
40
|
+
# pylint: disable=using-constant-test
|
|
41
|
+
def __await__(self):
|
|
42
|
+
if False:
|
|
43
|
+
yield self
|
|
44
|
+
return ListDiagnosticSettingsCategoryResult(
|
|
45
|
+
value=self.value)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def list_diagnostic_settings_category(resource_uri: Optional[str] = None,
|
|
49
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListDiagnosticSettingsCategoryResult:
|
|
50
|
+
"""
|
|
51
|
+
Lists the diagnostic settings categories for the specified resource.
|
|
52
|
+
Azure REST API version: 2021-05-01-preview.
|
|
53
|
+
|
|
54
|
+
Other available API versions: 2017-05-01-preview.
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
:param str resource_uri: The identifier of the resource.
|
|
58
|
+
"""
|
|
59
|
+
__args__ = dict()
|
|
60
|
+
__args__['resourceUri'] = resource_uri
|
|
61
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
62
|
+
__ret__ = pulumi.runtime.invoke('azure-native:insights:listDiagnosticSettingsCategory', __args__, opts=opts, typ=ListDiagnosticSettingsCategoryResult).value
|
|
63
|
+
|
|
64
|
+
return AwaitableListDiagnosticSettingsCategoryResult(
|
|
65
|
+
value=pulumi.get(__ret__, 'value'))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
@_utilities.lift_output_func(list_diagnostic_settings_category)
|
|
69
|
+
def list_diagnostic_settings_category_output(resource_uri: Optional[pulumi.Input[str]] = None,
|
|
70
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[ListDiagnosticSettingsCategoryResult]:
|
|
71
|
+
"""
|
|
72
|
+
Lists the diagnostic settings categories for the specified resource.
|
|
73
|
+
Azure REST API version: 2021-05-01-preview.
|
|
74
|
+
|
|
75
|
+
Other available API versions: 2017-05-01-preview.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param str resource_uri: The identifier of the resource.
|
|
79
|
+
"""
|
|
80
|
+
...
|
|
@@ -53,6 +53,7 @@ __all__ = [
|
|
|
53
53
|
'DataSourceResponse',
|
|
54
54
|
'DataSourcesSpecResponseDataImports',
|
|
55
55
|
'DestinationsSpecResponseAzureMonitorMetrics',
|
|
56
|
+
'DiagnosticSettingsCategoryResourceResponse',
|
|
56
57
|
'DimensionResponse',
|
|
57
58
|
'DynamicMetricCriteriaResponse',
|
|
58
59
|
'DynamicThresholdFailingPeriodsResponse',
|
|
@@ -3045,6 +3046,85 @@ class DestinationsSpecResponseAzureMonitorMetrics(dict):
|
|
|
3045
3046
|
return pulumi.get(self, "name")
|
|
3046
3047
|
|
|
3047
3048
|
|
|
3049
|
+
@pulumi.output_type
|
|
3050
|
+
class DiagnosticSettingsCategoryResourceResponse(dict):
|
|
3051
|
+
"""
|
|
3052
|
+
The diagnostic settings category resource.
|
|
3053
|
+
"""
|
|
3054
|
+
def __init__(__self__, *,
|
|
3055
|
+
id: str,
|
|
3056
|
+
name: str,
|
|
3057
|
+
system_data: 'outputs.SystemDataResponse',
|
|
3058
|
+
type: str,
|
|
3059
|
+
category_groups: Optional[Sequence[str]] = None,
|
|
3060
|
+
category_type: Optional[str] = None):
|
|
3061
|
+
"""
|
|
3062
|
+
The diagnostic settings category resource.
|
|
3063
|
+
:param str id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
|
3064
|
+
:param str name: The name of the resource
|
|
3065
|
+
:param 'SystemDataResponse' system_data: The system metadata related to this resource.
|
|
3066
|
+
:param str type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
|
3067
|
+
:param Sequence[str] category_groups: the collection of what category groups are supported.
|
|
3068
|
+
:param str category_type: The type of the diagnostic settings category.
|
|
3069
|
+
"""
|
|
3070
|
+
pulumi.set(__self__, "id", id)
|
|
3071
|
+
pulumi.set(__self__, "name", name)
|
|
3072
|
+
pulumi.set(__self__, "system_data", system_data)
|
|
3073
|
+
pulumi.set(__self__, "type", type)
|
|
3074
|
+
if category_groups is not None:
|
|
3075
|
+
pulumi.set(__self__, "category_groups", category_groups)
|
|
3076
|
+
if category_type is not None:
|
|
3077
|
+
pulumi.set(__self__, "category_type", category_type)
|
|
3078
|
+
|
|
3079
|
+
@property
|
|
3080
|
+
@pulumi.getter
|
|
3081
|
+
def id(self) -> str:
|
|
3082
|
+
"""
|
|
3083
|
+
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
|
3084
|
+
"""
|
|
3085
|
+
return pulumi.get(self, "id")
|
|
3086
|
+
|
|
3087
|
+
@property
|
|
3088
|
+
@pulumi.getter
|
|
3089
|
+
def name(self) -> str:
|
|
3090
|
+
"""
|
|
3091
|
+
The name of the resource
|
|
3092
|
+
"""
|
|
3093
|
+
return pulumi.get(self, "name")
|
|
3094
|
+
|
|
3095
|
+
@property
|
|
3096
|
+
@pulumi.getter(name="systemData")
|
|
3097
|
+
def system_data(self) -> 'outputs.SystemDataResponse':
|
|
3098
|
+
"""
|
|
3099
|
+
The system metadata related to this resource.
|
|
3100
|
+
"""
|
|
3101
|
+
return pulumi.get(self, "system_data")
|
|
3102
|
+
|
|
3103
|
+
@property
|
|
3104
|
+
@pulumi.getter
|
|
3105
|
+
def type(self) -> str:
|
|
3106
|
+
"""
|
|
3107
|
+
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
|
3108
|
+
"""
|
|
3109
|
+
return pulumi.get(self, "type")
|
|
3110
|
+
|
|
3111
|
+
@property
|
|
3112
|
+
@pulumi.getter(name="categoryGroups")
|
|
3113
|
+
def category_groups(self) -> Optional[Sequence[str]]:
|
|
3114
|
+
"""
|
|
3115
|
+
the collection of what category groups are supported.
|
|
3116
|
+
"""
|
|
3117
|
+
return pulumi.get(self, "category_groups")
|
|
3118
|
+
|
|
3119
|
+
@property
|
|
3120
|
+
@pulumi.getter(name="categoryType")
|
|
3121
|
+
def category_type(self) -> Optional[str]:
|
|
3122
|
+
"""
|
|
3123
|
+
The type of the diagnostic settings category.
|
|
3124
|
+
"""
|
|
3125
|
+
return pulumi.get(self, "category_type")
|
|
3126
|
+
|
|
3127
|
+
|
|
3048
3128
|
@pulumi.output_type
|
|
3049
3129
|
class DimensionResponse(dict):
|
|
3050
3130
|
"""
|
|
@@ -6,6 +6,7 @@ from ... import _utilities
|
|
|
6
6
|
import typing
|
|
7
7
|
# Export this package's modules as members:
|
|
8
8
|
from .get_subscription_diagnostic_setting import *
|
|
9
|
+
from .list_diagnostic_settings_category import *
|
|
9
10
|
from .subscription_diagnostic_setting import *
|
|
10
11
|
from ._inputs import *
|
|
11
12
|
from . import outputs
|
|
@@ -0,0 +1,74 @@
|
|
|
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 pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from ... import _utilities
|
|
11
|
+
from . import outputs
|
|
12
|
+
|
|
13
|
+
__all__ = [
|
|
14
|
+
'ListDiagnosticSettingsCategoryResult',
|
|
15
|
+
'AwaitableListDiagnosticSettingsCategoryResult',
|
|
16
|
+
'list_diagnostic_settings_category',
|
|
17
|
+
'list_diagnostic_settings_category_output',
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
@pulumi.output_type
|
|
21
|
+
class ListDiagnosticSettingsCategoryResult:
|
|
22
|
+
"""
|
|
23
|
+
Represents a collection of diagnostic setting category resources.
|
|
24
|
+
"""
|
|
25
|
+
def __init__(__self__, value=None):
|
|
26
|
+
if value and not isinstance(value, list):
|
|
27
|
+
raise TypeError("Expected argument 'value' to be a list")
|
|
28
|
+
pulumi.set(__self__, "value", value)
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
@pulumi.getter
|
|
32
|
+
def value(self) -> Optional[Sequence['outputs.DiagnosticSettingsCategoryResourceResponse']]:
|
|
33
|
+
"""
|
|
34
|
+
The collection of diagnostic settings category resources.
|
|
35
|
+
"""
|
|
36
|
+
return pulumi.get(self, "value")
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class AwaitableListDiagnosticSettingsCategoryResult(ListDiagnosticSettingsCategoryResult):
|
|
40
|
+
# pylint: disable=using-constant-test
|
|
41
|
+
def __await__(self):
|
|
42
|
+
if False:
|
|
43
|
+
yield self
|
|
44
|
+
return ListDiagnosticSettingsCategoryResult(
|
|
45
|
+
value=self.value)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def list_diagnostic_settings_category(resource_uri: Optional[str] = None,
|
|
49
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListDiagnosticSettingsCategoryResult:
|
|
50
|
+
"""
|
|
51
|
+
Lists the diagnostic settings categories for the specified resource.
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
:param str resource_uri: The identifier of the resource.
|
|
55
|
+
"""
|
|
56
|
+
__args__ = dict()
|
|
57
|
+
__args__['resourceUri'] = resource_uri
|
|
58
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
59
|
+
__ret__ = pulumi.runtime.invoke('azure-native:insights/v20170501preview:listDiagnosticSettingsCategory', __args__, opts=opts, typ=ListDiagnosticSettingsCategoryResult).value
|
|
60
|
+
|
|
61
|
+
return AwaitableListDiagnosticSettingsCategoryResult(
|
|
62
|
+
value=pulumi.get(__ret__, 'value'))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@_utilities.lift_output_func(list_diagnostic_settings_category)
|
|
66
|
+
def list_diagnostic_settings_category_output(resource_uri: Optional[pulumi.Input[str]] = None,
|
|
67
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[ListDiagnosticSettingsCategoryResult]:
|
|
68
|
+
"""
|
|
69
|
+
Lists the diagnostic settings categories for the specified resource.
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
:param str resource_uri: The identifier of the resource.
|
|
73
|
+
"""
|
|
74
|
+
...
|
|
@@ -10,9 +10,66 @@ from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
|
10
10
|
from ... import _utilities
|
|
11
11
|
|
|
12
12
|
__all__ = [
|
|
13
|
+
'DiagnosticSettingsCategoryResourceResponse',
|
|
13
14
|
'SubscriptionLogSettingsResponse',
|
|
14
15
|
]
|
|
15
16
|
|
|
17
|
+
@pulumi.output_type
|
|
18
|
+
class DiagnosticSettingsCategoryResourceResponse(dict):
|
|
19
|
+
"""
|
|
20
|
+
The diagnostic settings category resource.
|
|
21
|
+
"""
|
|
22
|
+
def __init__(__self__, *,
|
|
23
|
+
id: str,
|
|
24
|
+
name: str,
|
|
25
|
+
type: str,
|
|
26
|
+
category_type: Optional[str] = None):
|
|
27
|
+
"""
|
|
28
|
+
The diagnostic settings category resource.
|
|
29
|
+
:param str id: Azure resource Id
|
|
30
|
+
:param str name: Azure resource name
|
|
31
|
+
:param str type: Azure resource type
|
|
32
|
+
:param str category_type: The type of the diagnostic settings category.
|
|
33
|
+
"""
|
|
34
|
+
pulumi.set(__self__, "id", id)
|
|
35
|
+
pulumi.set(__self__, "name", name)
|
|
36
|
+
pulumi.set(__self__, "type", type)
|
|
37
|
+
if category_type is not None:
|
|
38
|
+
pulumi.set(__self__, "category_type", category_type)
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
@pulumi.getter
|
|
42
|
+
def id(self) -> str:
|
|
43
|
+
"""
|
|
44
|
+
Azure resource Id
|
|
45
|
+
"""
|
|
46
|
+
return pulumi.get(self, "id")
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
@pulumi.getter
|
|
50
|
+
def name(self) -> str:
|
|
51
|
+
"""
|
|
52
|
+
Azure resource name
|
|
53
|
+
"""
|
|
54
|
+
return pulumi.get(self, "name")
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
@pulumi.getter
|
|
58
|
+
def type(self) -> str:
|
|
59
|
+
"""
|
|
60
|
+
Azure resource type
|
|
61
|
+
"""
|
|
62
|
+
return pulumi.get(self, "type")
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
@pulumi.getter(name="categoryType")
|
|
66
|
+
def category_type(self) -> Optional[str]:
|
|
67
|
+
"""
|
|
68
|
+
The type of the diagnostic settings category.
|
|
69
|
+
"""
|
|
70
|
+
return pulumi.get(self, "category_type")
|
|
71
|
+
|
|
72
|
+
|
|
16
73
|
@pulumi.output_type
|
|
17
74
|
class SubscriptionLogSettingsResponse(dict):
|
|
18
75
|
"""
|
|
@@ -9,6 +9,7 @@ from .diagnostic_setting import *
|
|
|
9
9
|
from .get_diagnostic_setting import *
|
|
10
10
|
from .get_management_group_diagnostic_setting import *
|
|
11
11
|
from .get_subscription_diagnostic_setting import *
|
|
12
|
+
from .list_diagnostic_settings_category import *
|
|
12
13
|
from .management_group_diagnostic_setting import *
|
|
13
14
|
from .subscription_diagnostic_setting import *
|
|
14
15
|
from ._inputs import *
|
|
@@ -0,0 +1,74 @@
|
|
|
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 pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from ... import _utilities
|
|
11
|
+
from . import outputs
|
|
12
|
+
|
|
13
|
+
__all__ = [
|
|
14
|
+
'ListDiagnosticSettingsCategoryResult',
|
|
15
|
+
'AwaitableListDiagnosticSettingsCategoryResult',
|
|
16
|
+
'list_diagnostic_settings_category',
|
|
17
|
+
'list_diagnostic_settings_category_output',
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
@pulumi.output_type
|
|
21
|
+
class ListDiagnosticSettingsCategoryResult:
|
|
22
|
+
"""
|
|
23
|
+
Represents a collection of diagnostic setting category resources.
|
|
24
|
+
"""
|
|
25
|
+
def __init__(__self__, value=None):
|
|
26
|
+
if value and not isinstance(value, list):
|
|
27
|
+
raise TypeError("Expected argument 'value' to be a list")
|
|
28
|
+
pulumi.set(__self__, "value", value)
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
@pulumi.getter
|
|
32
|
+
def value(self) -> Optional[Sequence['outputs.DiagnosticSettingsCategoryResourceResponse']]:
|
|
33
|
+
"""
|
|
34
|
+
The collection of diagnostic settings category resources.
|
|
35
|
+
"""
|
|
36
|
+
return pulumi.get(self, "value")
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class AwaitableListDiagnosticSettingsCategoryResult(ListDiagnosticSettingsCategoryResult):
|
|
40
|
+
# pylint: disable=using-constant-test
|
|
41
|
+
def __await__(self):
|
|
42
|
+
if False:
|
|
43
|
+
yield self
|
|
44
|
+
return ListDiagnosticSettingsCategoryResult(
|
|
45
|
+
value=self.value)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def list_diagnostic_settings_category(resource_uri: Optional[str] = None,
|
|
49
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListDiagnosticSettingsCategoryResult:
|
|
50
|
+
"""
|
|
51
|
+
Lists the diagnostic settings categories for the specified resource.
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
:param str resource_uri: The identifier of the resource.
|
|
55
|
+
"""
|
|
56
|
+
__args__ = dict()
|
|
57
|
+
__args__['resourceUri'] = resource_uri
|
|
58
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
59
|
+
__ret__ = pulumi.runtime.invoke('azure-native:insights/v20210501preview:listDiagnosticSettingsCategory', __args__, opts=opts, typ=ListDiagnosticSettingsCategoryResult).value
|
|
60
|
+
|
|
61
|
+
return AwaitableListDiagnosticSettingsCategoryResult(
|
|
62
|
+
value=pulumi.get(__ret__, 'value'))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@_utilities.lift_output_func(list_diagnostic_settings_category)
|
|
66
|
+
def list_diagnostic_settings_category_output(resource_uri: Optional[pulumi.Input[str]] = None,
|
|
67
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[ListDiagnosticSettingsCategoryResult]:
|
|
68
|
+
"""
|
|
69
|
+
Lists the diagnostic settings categories for the specified resource.
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
:param str resource_uri: The identifier of the resource.
|
|
73
|
+
"""
|
|
74
|
+
...
|
|
@@ -11,6 +11,7 @@ from ... import _utilities
|
|
|
11
11
|
from . import outputs
|
|
12
12
|
|
|
13
13
|
__all__ = [
|
|
14
|
+
'DiagnosticSettingsCategoryResourceResponse',
|
|
14
15
|
'LogSettingsResponse',
|
|
15
16
|
'ManagementGroupLogSettingsResponse',
|
|
16
17
|
'MetricSettingsResponse',
|
|
@@ -19,6 +20,85 @@ __all__ = [
|
|
|
19
20
|
'SystemDataResponse',
|
|
20
21
|
]
|
|
21
22
|
|
|
23
|
+
@pulumi.output_type
|
|
24
|
+
class DiagnosticSettingsCategoryResourceResponse(dict):
|
|
25
|
+
"""
|
|
26
|
+
The diagnostic settings category resource.
|
|
27
|
+
"""
|
|
28
|
+
def __init__(__self__, *,
|
|
29
|
+
id: str,
|
|
30
|
+
name: str,
|
|
31
|
+
system_data: 'outputs.SystemDataResponse',
|
|
32
|
+
type: str,
|
|
33
|
+
category_groups: Optional[Sequence[str]] = None,
|
|
34
|
+
category_type: Optional[str] = None):
|
|
35
|
+
"""
|
|
36
|
+
The diagnostic settings category resource.
|
|
37
|
+
:param str id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
|
38
|
+
:param str name: The name of the resource
|
|
39
|
+
:param 'SystemDataResponse' system_data: The system metadata related to this resource.
|
|
40
|
+
:param str type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
|
41
|
+
:param Sequence[str] category_groups: the collection of what category groups are supported.
|
|
42
|
+
:param str category_type: The type of the diagnostic settings category.
|
|
43
|
+
"""
|
|
44
|
+
pulumi.set(__self__, "id", id)
|
|
45
|
+
pulumi.set(__self__, "name", name)
|
|
46
|
+
pulumi.set(__self__, "system_data", system_data)
|
|
47
|
+
pulumi.set(__self__, "type", type)
|
|
48
|
+
if category_groups is not None:
|
|
49
|
+
pulumi.set(__self__, "category_groups", category_groups)
|
|
50
|
+
if category_type is not None:
|
|
51
|
+
pulumi.set(__self__, "category_type", category_type)
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
@pulumi.getter
|
|
55
|
+
def id(self) -> str:
|
|
56
|
+
"""
|
|
57
|
+
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
|
58
|
+
"""
|
|
59
|
+
return pulumi.get(self, "id")
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
@pulumi.getter
|
|
63
|
+
def name(self) -> str:
|
|
64
|
+
"""
|
|
65
|
+
The name of the resource
|
|
66
|
+
"""
|
|
67
|
+
return pulumi.get(self, "name")
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
@pulumi.getter(name="systemData")
|
|
71
|
+
def system_data(self) -> 'outputs.SystemDataResponse':
|
|
72
|
+
"""
|
|
73
|
+
The system metadata related to this resource.
|
|
74
|
+
"""
|
|
75
|
+
return pulumi.get(self, "system_data")
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
@pulumi.getter
|
|
79
|
+
def type(self) -> str:
|
|
80
|
+
"""
|
|
81
|
+
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
|
82
|
+
"""
|
|
83
|
+
return pulumi.get(self, "type")
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
@pulumi.getter(name="categoryGroups")
|
|
87
|
+
def category_groups(self) -> Optional[Sequence[str]]:
|
|
88
|
+
"""
|
|
89
|
+
the collection of what category groups are supported.
|
|
90
|
+
"""
|
|
91
|
+
return pulumi.get(self, "category_groups")
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
@pulumi.getter(name="categoryType")
|
|
95
|
+
def category_type(self) -> Optional[str]:
|
|
96
|
+
"""
|
|
97
|
+
The type of the diagnostic settings category.
|
|
98
|
+
"""
|
|
99
|
+
return pulumi.get(self, "category_type")
|
|
100
|
+
|
|
101
|
+
|
|
22
102
|
@pulumi.output_type
|
|
23
103
|
class LogSettingsResponse(dict):
|
|
24
104
|
"""
|