pulumi-consul 3.12.0a1709360320__py3-none-any.whl → 3.13.0a1736832526__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-consul might be problematic. Click here for more details.
- pulumi_consul/__init__.py +10 -0
- pulumi_consul/_inputs.py +1592 -31
- pulumi_consul/_utilities.py +41 -5
- pulumi_consul/acl_auth_method.py +17 -14
- pulumi_consul/acl_binding_rule.py +12 -5
- pulumi_consul/acl_policy.py +9 -4
- pulumi_consul/acl_role.py +39 -30
- pulumi_consul/acl_role_policy_attachment.py +15 -8
- pulumi_consul/acl_token.py +36 -27
- pulumi_consul/acl_token_policy_attachment.py +7 -2
- pulumi_consul/acl_token_role_attachment.py +11 -4
- pulumi_consul/admin_partition.py +13 -4
- pulumi_consul/agent_service.py +7 -0
- pulumi_consul/autopilot_config.py +5 -0
- pulumi_consul/catalog_entry.py +16 -62
- pulumi_consul/certificate_authority.py +10 -51
- pulumi_consul/config/__init__.pyi +5 -0
- pulumi_consul/config/outputs.py +5 -0
- pulumi_consul/config/vars.py +5 -0
- pulumi_consul/config_entry.py +75 -26
- pulumi_consul/config_entry_service_defaults.py +58 -51
- pulumi_consul/config_entry_service_intentions.py +80 -71
- pulumi_consul/config_entry_service_resolver.py +94 -87
- pulumi_consul/config_entry_service_router.py +31 -62
- pulumi_consul/config_entry_service_splitter.py +104 -93
- pulumi_consul/config_entry_v2_exported_services.py +479 -0
- pulumi_consul/get_acl_auth_method.py +26 -8
- pulumi_consul/get_acl_policy.py +20 -5
- pulumi_consul/get_acl_role.py +24 -5
- pulumi_consul/get_acl_token.py +25 -5
- pulumi_consul/get_acl_token_secret_id.py +29 -11
- pulumi_consul/get_agent_config.py +17 -5
- pulumi_consul/get_agent_self.py +82 -5
- pulumi_consul/get_autopilot_health.py +16 -5
- pulumi_consul/get_catalog_nodes.py +21 -9
- pulumi_consul/get_catalog_service.py +56 -13
- pulumi_consul/get_catalog_services.py +53 -9
- pulumi_consul/get_config_entry.py +20 -5
- pulumi_consul/get_config_entry_v2_exported_services.py +232 -0
- pulumi_consul/get_datacenters.py +12 -5
- pulumi_consul/get_key_prefix.py +55 -38
- pulumi_consul/get_keys.py +44 -30
- pulumi_consul/get_network_area_members.py +26 -16
- pulumi_consul/get_network_segments.py +22 -14
- pulumi_consul/get_nodes.py +21 -9
- pulumi_consul/get_peering.py +22 -5
- pulumi_consul/get_peerings.py +14 -5
- pulumi_consul/get_service.py +56 -13
- pulumi_consul/get_service_health.py +28 -5
- pulumi_consul/get_services.py +53 -9
- pulumi_consul/intention.py +17 -12
- pulumi_consul/key_prefix.py +48 -50
- pulumi_consul/keys.py +26 -30
- pulumi_consul/license.py +9 -2
- pulumi_consul/namespace.py +13 -4
- pulumi_consul/namespace_policy_attachment.py +11 -4
- pulumi_consul/namespace_role_attachment.py +11 -4
- pulumi_consul/network_area.py +11 -15
- pulumi_consul/node.py +19 -19
- pulumi_consul/outputs.py +30 -27
- pulumi_consul/peering.py +13 -18
- pulumi_consul/peering_token.py +55 -11
- pulumi_consul/prepared_query.py +101 -101
- pulumi_consul/provider.py +11 -6
- pulumi_consul/pulumi-plugin.json +2 -1
- pulumi_consul/service.py +144 -19
- {pulumi_consul-3.12.0a1709360320.dist-info → pulumi_consul-3.13.0a1736832526.dist-info}/METADATA +7 -6
- pulumi_consul-3.13.0a1736832526.dist-info/RECORD +72 -0
- {pulumi_consul-3.12.0a1709360320.dist-info → pulumi_consul-3.13.0a1736832526.dist-info}/WHEEL +1 -1
- pulumi_consul-3.12.0a1709360320.dist-info/RECORD +0 -70
- {pulumi_consul-3.12.0a1709360320.dist-info → pulumi_consul-3.13.0a1736832526.dist-info}/top_level.txt +0 -0
pulumi_consul/get_acl_token.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
|
|
@@ -221,13 +226,10 @@ def get_acl_token(accessor_id: Optional[str] = None,
|
|
|
221
226
|
roles=pulumi.get(__ret__, 'roles'),
|
|
222
227
|
service_identities=pulumi.get(__ret__, 'service_identities'),
|
|
223
228
|
templated_policies=pulumi.get(__ret__, 'templated_policies'))
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
@_utilities.lift_output_func(get_acl_token)
|
|
227
229
|
def get_acl_token_output(accessor_id: Optional[pulumi.Input[str]] = None,
|
|
228
230
|
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
229
231
|
partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
230
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAclTokenResult]:
|
|
232
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAclTokenResult]:
|
|
231
233
|
"""
|
|
232
234
|
The `AclToken` data source returns the information related to the `AclToken` resource with the exception of its secret ID.
|
|
233
235
|
|
|
@@ -248,4 +250,22 @@ def get_acl_token_output(accessor_id: Optional[pulumi.Input[str]] = None,
|
|
|
248
250
|
:param str namespace: The namespace to lookup the ACL token.
|
|
249
251
|
:param str partition: The partition to lookup the ACL token.
|
|
250
252
|
"""
|
|
251
|
-
|
|
253
|
+
__args__ = dict()
|
|
254
|
+
__args__['accessorId'] = accessor_id
|
|
255
|
+
__args__['namespace'] = namespace
|
|
256
|
+
__args__['partition'] = partition
|
|
257
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
258
|
+
__ret__ = pulumi.runtime.invoke_output('consul:index/getAclToken:getAclToken', __args__, opts=opts, typ=GetAclTokenResult)
|
|
259
|
+
return __ret__.apply(lambda __response__: GetAclTokenResult(
|
|
260
|
+
accessor_id=pulumi.get(__response__, 'accessor_id'),
|
|
261
|
+
description=pulumi.get(__response__, 'description'),
|
|
262
|
+
expiration_time=pulumi.get(__response__, 'expiration_time'),
|
|
263
|
+
id=pulumi.get(__response__, 'id'),
|
|
264
|
+
local=pulumi.get(__response__, 'local'),
|
|
265
|
+
namespace=pulumi.get(__response__, 'namespace'),
|
|
266
|
+
node_identities=pulumi.get(__response__, 'node_identities'),
|
|
267
|
+
partition=pulumi.get(__response__, 'partition'),
|
|
268
|
+
policies=pulumi.get(__response__, 'policies'),
|
|
269
|
+
roles=pulumi.get(__response__, 'roles'),
|
|
270
|
+
service_identities=pulumi.get(__response__, 'service_identities'),
|
|
271
|
+
templated_policies=pulumi.get(__response__, 'templated_policies')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = [
|
|
@@ -113,12 +118,13 @@ def get_acl_token_secret_id(accessor_id: Optional[str] = None,
|
|
|
113
118
|
import pulumi
|
|
114
119
|
import pulumi_consul as consul
|
|
115
120
|
|
|
116
|
-
|
|
121
|
+
test = consul.AclPolicy("test",
|
|
122
|
+
name="test",
|
|
117
123
|
rules="node \\"\\" { policy = \\"read\\" }",
|
|
118
124
|
datacenters=["dc1"])
|
|
119
|
-
test_acl_token = consul.AclToken("
|
|
125
|
+
test_acl_token = consul.AclToken("test",
|
|
120
126
|
description="test",
|
|
121
|
-
policies=[
|
|
127
|
+
policies=[test.name],
|
|
122
128
|
local=True)
|
|
123
129
|
read = consul.get_acl_token_secret_id_output(accessor_id=test_acl_token.id,
|
|
124
130
|
pgp_key="keybase:my_username")
|
|
@@ -146,14 +152,11 @@ def get_acl_token_secret_id(accessor_id: Optional[str] = None,
|
|
|
146
152
|
partition=pulumi.get(__ret__, 'partition'),
|
|
147
153
|
pgp_key=pulumi.get(__ret__, 'pgp_key'),
|
|
148
154
|
secret_id=pulumi.get(__ret__, 'secret_id'))
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
@_utilities.lift_output_func(get_acl_token_secret_id)
|
|
152
155
|
def get_acl_token_secret_id_output(accessor_id: Optional[pulumi.Input[str]] = None,
|
|
153
156
|
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
154
157
|
partition: Optional[pulumi.Input[Optional[str]]] = None,
|
|
155
158
|
pgp_key: Optional[pulumi.Input[Optional[str]]] = None,
|
|
156
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAclTokenSecretIdResult]:
|
|
159
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAclTokenSecretIdResult]:
|
|
157
160
|
"""
|
|
158
161
|
## Example Usage
|
|
159
162
|
|
|
@@ -161,12 +164,13 @@ def get_acl_token_secret_id_output(accessor_id: Optional[pulumi.Input[str]] = No
|
|
|
161
164
|
import pulumi
|
|
162
165
|
import pulumi_consul as consul
|
|
163
166
|
|
|
164
|
-
|
|
167
|
+
test = consul.AclPolicy("test",
|
|
168
|
+
name="test",
|
|
165
169
|
rules="node \\"\\" { policy = \\"read\\" }",
|
|
166
170
|
datacenters=["dc1"])
|
|
167
|
-
test_acl_token = consul.AclToken("
|
|
171
|
+
test_acl_token = consul.AclToken("test",
|
|
168
172
|
description="test",
|
|
169
|
-
policies=[
|
|
173
|
+
policies=[test.name],
|
|
170
174
|
local=True)
|
|
171
175
|
read = consul.get_acl_token_secret_id_output(accessor_id=test_acl_token.id,
|
|
172
176
|
pgp_key="keybase:my_username")
|
|
@@ -178,4 +182,18 @@ def get_acl_token_secret_id_output(accessor_id: Optional[pulumi.Input[str]] = No
|
|
|
178
182
|
:param str namespace: The namespace to lookup the token.
|
|
179
183
|
:param str partition: The partition to lookup the token.
|
|
180
184
|
"""
|
|
181
|
-
|
|
185
|
+
__args__ = dict()
|
|
186
|
+
__args__['accessorId'] = accessor_id
|
|
187
|
+
__args__['namespace'] = namespace
|
|
188
|
+
__args__['partition'] = partition
|
|
189
|
+
__args__['pgpKey'] = pgp_key
|
|
190
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
191
|
+
__ret__ = pulumi.runtime.invoke_output('consul:index/getAclTokenSecretId:getAclTokenSecretId', __args__, opts=opts, typ=GetAclTokenSecretIdResult)
|
|
192
|
+
return __ret__.apply(lambda __response__: GetAclTokenSecretIdResult(
|
|
193
|
+
accessor_id=pulumi.get(__response__, 'accessor_id'),
|
|
194
|
+
encrypted_secret_id=pulumi.get(__response__, 'encrypted_secret_id'),
|
|
195
|
+
id=pulumi.get(__response__, 'id'),
|
|
196
|
+
namespace=pulumi.get(__response__, 'namespace'),
|
|
197
|
+
partition=pulumi.get(__response__, 'partition'),
|
|
198
|
+
pgp_key=pulumi.get(__response__, 'pgp_key'),
|
|
199
|
+
secret_id=pulumi.get(__response__, 'secret_id')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = [
|
|
@@ -148,10 +153,7 @@ def get_agent_config(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGe
|
|
|
148
153
|
revision=pulumi.get(__ret__, 'revision'),
|
|
149
154
|
server=pulumi.get(__ret__, 'server'),
|
|
150
155
|
version=pulumi.get(__ret__, 'version'))
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
@_utilities.lift_output_func(get_agent_config)
|
|
154
|
-
def get_agent_config_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAgentConfigResult]:
|
|
156
|
+
def get_agent_config_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAgentConfigResult]:
|
|
155
157
|
"""
|
|
156
158
|
> **Note:** The `get_agent_config` resource differs from [`get_agent_self`](https://www.terraform.io/docs/providers/consul/d/agent_self.html),
|
|
157
159
|
providing less information but utilizing stable APIs. `get_agent_self` will be
|
|
@@ -171,4 +173,14 @@ def get_agent_config_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulu
|
|
|
171
173
|
pulumi.export("consulVersion", remote_agent.version)
|
|
172
174
|
```
|
|
173
175
|
"""
|
|
174
|
-
|
|
176
|
+
__args__ = dict()
|
|
177
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
178
|
+
__ret__ = pulumi.runtime.invoke_output('consul:index/getAgentConfig:getAgentConfig', __args__, opts=opts, typ=GetAgentConfigResult)
|
|
179
|
+
return __ret__.apply(lambda __response__: GetAgentConfigResult(
|
|
180
|
+
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
181
|
+
id=pulumi.get(__response__, 'id'),
|
|
182
|
+
node_id=pulumi.get(__response__, 'node_id'),
|
|
183
|
+
node_name=pulumi.get(__response__, 'node_name'),
|
|
184
|
+
revision=pulumi.get(__response__, 'revision'),
|
|
185
|
+
server=pulumi.get(__response__, 'server'),
|
|
186
|
+
version=pulumi.get(__response__, 'version')))
|
pulumi_consul/get_agent_self.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = [
|
|
@@ -847,10 +852,7 @@ def get_agent_self(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetA
|
|
|
847
852
|
version=pulumi.get(__ret__, 'version'),
|
|
848
853
|
version_prerelease=pulumi.get(__ret__, 'version_prerelease'),
|
|
849
854
|
version_revision=pulumi.get(__ret__, 'version_revision'))
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
@_utilities.lift_output_func(get_agent_self)
|
|
853
|
-
def get_agent_self_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAgentSelfResult]:
|
|
855
|
+
def get_agent_self_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAgentSelfResult]:
|
|
854
856
|
"""
|
|
855
857
|
> **Warning:** The `get_agent_self` resource has been deprecated and will be removed
|
|
856
858
|
from a future release of the provider. Read the [upgrade instructions](https://www.terraform.io/docs/providers/consul/guides/upgrading.html#deprecation-of-consul_agent_self) for more information.
|
|
@@ -859,4 +861,79 @@ def get_agent_self_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi
|
|
|
859
861
|
[configuration and status data](https://www.consul.io/docs/agent/http/agent.html#agent_self)
|
|
860
862
|
from the agent specified in the `provider`.
|
|
861
863
|
"""
|
|
862
|
-
|
|
864
|
+
__args__ = dict()
|
|
865
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
866
|
+
__ret__ = pulumi.runtime.invoke_output('consul:index/getAgentSelf:getAgentSelf', __args__, opts=opts, typ=GetAgentSelfResult)
|
|
867
|
+
return __ret__.apply(lambda __response__: GetAgentSelfResult(
|
|
868
|
+
acl_datacenter=pulumi.get(__response__, 'acl_datacenter'),
|
|
869
|
+
acl_default_policy=pulumi.get(__response__, 'acl_default_policy'),
|
|
870
|
+
acl_disabled_ttl=pulumi.get(__response__, 'acl_disabled_ttl'),
|
|
871
|
+
acl_down_policy=pulumi.get(__response__, 'acl_down_policy'),
|
|
872
|
+
acl_enforce08_semantics=pulumi.get(__response__, 'acl_enforce08_semantics'),
|
|
873
|
+
acl_ttl=pulumi.get(__response__, 'acl_ttl'),
|
|
874
|
+
addresses=pulumi.get(__response__, 'addresses'),
|
|
875
|
+
advertise_addr=pulumi.get(__response__, 'advertise_addr'),
|
|
876
|
+
advertise_addr_wan=pulumi.get(__response__, 'advertise_addr_wan'),
|
|
877
|
+
advertise_addrs=pulumi.get(__response__, 'advertise_addrs'),
|
|
878
|
+
atlas_join=pulumi.get(__response__, 'atlas_join'),
|
|
879
|
+
bind_addr=pulumi.get(__response__, 'bind_addr'),
|
|
880
|
+
bootstrap_expect=pulumi.get(__response__, 'bootstrap_expect'),
|
|
881
|
+
bootstrap_mode=pulumi.get(__response__, 'bootstrap_mode'),
|
|
882
|
+
check_deregister_interval_min=pulumi.get(__response__, 'check_deregister_interval_min'),
|
|
883
|
+
check_reap_interval=pulumi.get(__response__, 'check_reap_interval'),
|
|
884
|
+
check_update_interval=pulumi.get(__response__, 'check_update_interval'),
|
|
885
|
+
client_addr=pulumi.get(__response__, 'client_addr'),
|
|
886
|
+
data_dir=pulumi.get(__response__, 'data_dir'),
|
|
887
|
+
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
888
|
+
dev_mode=pulumi.get(__response__, 'dev_mode'),
|
|
889
|
+
dns=pulumi.get(__response__, 'dns'),
|
|
890
|
+
dns_recursors=pulumi.get(__response__, 'dns_recursors'),
|
|
891
|
+
domain=pulumi.get(__response__, 'domain'),
|
|
892
|
+
enable_anonymous_signature=pulumi.get(__response__, 'enable_anonymous_signature'),
|
|
893
|
+
enable_coordinates=pulumi.get(__response__, 'enable_coordinates'),
|
|
894
|
+
enable_debug=pulumi.get(__response__, 'enable_debug'),
|
|
895
|
+
enable_remote_exec=pulumi.get(__response__, 'enable_remote_exec'),
|
|
896
|
+
enable_syslog=pulumi.get(__response__, 'enable_syslog'),
|
|
897
|
+
enable_ui=pulumi.get(__response__, 'enable_ui'),
|
|
898
|
+
enable_update_check=pulumi.get(__response__, 'enable_update_check'),
|
|
899
|
+
id=pulumi.get(__response__, 'id'),
|
|
900
|
+
leave_on_int=pulumi.get(__response__, 'leave_on_int'),
|
|
901
|
+
leave_on_term=pulumi.get(__response__, 'leave_on_term'),
|
|
902
|
+
log_level=pulumi.get(__response__, 'log_level'),
|
|
903
|
+
name=pulumi.get(__response__, 'name'),
|
|
904
|
+
performance=pulumi.get(__response__, 'performance'),
|
|
905
|
+
pid_file=pulumi.get(__response__, 'pid_file'),
|
|
906
|
+
ports=pulumi.get(__response__, 'ports'),
|
|
907
|
+
protocol_version=pulumi.get(__response__, 'protocol_version'),
|
|
908
|
+
reconnect_timeout_lan=pulumi.get(__response__, 'reconnect_timeout_lan'),
|
|
909
|
+
reconnect_timeout_wan=pulumi.get(__response__, 'reconnect_timeout_wan'),
|
|
910
|
+
rejoin_after_leave=pulumi.get(__response__, 'rejoin_after_leave'),
|
|
911
|
+
retry_join_ec2=pulumi.get(__response__, 'retry_join_ec2'),
|
|
912
|
+
retry_join_gce=pulumi.get(__response__, 'retry_join_gce'),
|
|
913
|
+
retry_join_wans=pulumi.get(__response__, 'retry_join_wans'),
|
|
914
|
+
retry_joins=pulumi.get(__response__, 'retry_joins'),
|
|
915
|
+
retry_max_attempts=pulumi.get(__response__, 'retry_max_attempts'),
|
|
916
|
+
retry_max_attempts_wan=pulumi.get(__response__, 'retry_max_attempts_wan'),
|
|
917
|
+
serf_lan_bind_addr=pulumi.get(__response__, 'serf_lan_bind_addr'),
|
|
918
|
+
serf_wan_bind_addr=pulumi.get(__response__, 'serf_wan_bind_addr'),
|
|
919
|
+
server_mode=pulumi.get(__response__, 'server_mode'),
|
|
920
|
+
server_name=pulumi.get(__response__, 'server_name'),
|
|
921
|
+
session_ttl_min=pulumi.get(__response__, 'session_ttl_min'),
|
|
922
|
+
start_join_wans=pulumi.get(__response__, 'start_join_wans'),
|
|
923
|
+
start_joins=pulumi.get(__response__, 'start_joins'),
|
|
924
|
+
syslog_facility=pulumi.get(__response__, 'syslog_facility'),
|
|
925
|
+
tagged_addresses=pulumi.get(__response__, 'tagged_addresses'),
|
|
926
|
+
telemetry=pulumi.get(__response__, 'telemetry'),
|
|
927
|
+
tls_ca_file=pulumi.get(__response__, 'tls_ca_file'),
|
|
928
|
+
tls_cert_file=pulumi.get(__response__, 'tls_cert_file'),
|
|
929
|
+
tls_key_file=pulumi.get(__response__, 'tls_key_file'),
|
|
930
|
+
tls_min_version=pulumi.get(__response__, 'tls_min_version'),
|
|
931
|
+
tls_verify_incoming=pulumi.get(__response__, 'tls_verify_incoming'),
|
|
932
|
+
tls_verify_outgoing=pulumi.get(__response__, 'tls_verify_outgoing'),
|
|
933
|
+
tls_verify_server_hostname=pulumi.get(__response__, 'tls_verify_server_hostname'),
|
|
934
|
+
translate_wan_addrs=pulumi.get(__response__, 'translate_wan_addrs'),
|
|
935
|
+
ui_dir=pulumi.get(__response__, 'ui_dir'),
|
|
936
|
+
unix_sockets=pulumi.get(__response__, 'unix_sockets'),
|
|
937
|
+
version=pulumi.get(__response__, 'version'),
|
|
938
|
+
version_prerelease=pulumi.get(__response__, 'version_prerelease'),
|
|
939
|
+
version_revision=pulumi.get(__response__, 'version_revision')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
|
|
@@ -125,11 +130,8 @@ def get_autopilot_health(datacenter: Optional[str] = None,
|
|
|
125
130
|
healthy=pulumi.get(__ret__, 'healthy'),
|
|
126
131
|
id=pulumi.get(__ret__, 'id'),
|
|
127
132
|
servers=pulumi.get(__ret__, 'servers'))
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
@_utilities.lift_output_func(get_autopilot_health)
|
|
131
133
|
def get_autopilot_health_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
132
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAutopilotHealthResult]:
|
|
134
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAutopilotHealthResult]:
|
|
133
135
|
"""
|
|
134
136
|
The `get_autopilot_health` data source returns
|
|
135
137
|
[autopilot health information](https://www.consul.io/api/operator/autopilot.html#read-health)
|
|
@@ -149,4 +151,13 @@ def get_autopilot_health_output(datacenter: Optional[pulumi.Input[Optional[str]]
|
|
|
149
151
|
:param str datacenter: The datacenter to use. This overrides the agent's
|
|
150
152
|
default datacenter and the datacenter in the provider setup.
|
|
151
153
|
"""
|
|
152
|
-
|
|
154
|
+
__args__ = dict()
|
|
155
|
+
__args__['datacenter'] = datacenter
|
|
156
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
157
|
+
__ret__ = pulumi.runtime.invoke_output('consul:index/getAutopilotHealth:getAutopilotHealth', __args__, opts=opts, typ=GetAutopilotHealthResult)
|
|
158
|
+
return __ret__.apply(lambda __response__: GetAutopilotHealthResult(
|
|
159
|
+
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
160
|
+
failure_tolerance=pulumi.get(__response__, 'failure_tolerance'),
|
|
161
|
+
healthy=pulumi.get(__response__, 'healthy'),
|
|
162
|
+
id=pulumi.get(__response__, 'id'),
|
|
163
|
+
servers=pulumi.get(__response__, 'servers')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -106,7 +111,7 @@ class AwaitableGetCatalogNodesResult(GetCatalogNodesResult):
|
|
|
106
111
|
query_options=self.query_options)
|
|
107
112
|
|
|
108
113
|
|
|
109
|
-
def get_catalog_nodes(query_options: Optional[Sequence[
|
|
114
|
+
def get_catalog_nodes(query_options: Optional[Sequence[Union['GetCatalogNodesQueryOptionArgs', 'GetCatalogNodesQueryOptionArgsDict']]] = None,
|
|
110
115
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCatalogNodesResult:
|
|
111
116
|
"""
|
|
112
117
|
The `get_nodes` data source returns a list of Consul nodes that have
|
|
@@ -115,7 +120,7 @@ def get_catalog_nodes(query_options: Optional[Sequence[pulumi.InputType['GetCata
|
|
|
115
120
|
nodes from a different WAN-attached Consul datacenter.
|
|
116
121
|
|
|
117
122
|
|
|
118
|
-
:param Sequence[
|
|
123
|
+
:param Sequence[Union['GetCatalogNodesQueryOptionArgs', 'GetCatalogNodesQueryOptionArgsDict']] query_options: See below.
|
|
119
124
|
"""
|
|
120
125
|
pulumi.log.warn("""get_catalog_nodes is deprecated: getCatalogNodes has been deprecated in favor of getNodes""")
|
|
121
126
|
__args__ = dict()
|
|
@@ -130,11 +135,8 @@ def get_catalog_nodes(query_options: Optional[Sequence[pulumi.InputType['GetCata
|
|
|
130
135
|
node_names=pulumi.get(__ret__, 'node_names'),
|
|
131
136
|
nodes=pulumi.get(__ret__, 'nodes'),
|
|
132
137
|
query_options=pulumi.get(__ret__, 'query_options'))
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
@_utilities.lift_output_func(get_catalog_nodes)
|
|
136
|
-
def get_catalog_nodes_output(query_options: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetCatalogNodesQueryOptionArgs']]]]] = None,
|
|
137
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCatalogNodesResult]:
|
|
138
|
+
def get_catalog_nodes_output(query_options: Optional[pulumi.Input[Optional[Sequence[Union['GetCatalogNodesQueryOptionArgs', 'GetCatalogNodesQueryOptionArgsDict']]]]] = None,
|
|
139
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCatalogNodesResult]:
|
|
138
140
|
"""
|
|
139
141
|
The `get_nodes` data source returns a list of Consul nodes that have
|
|
140
142
|
been registered with the Consul cluster in a given datacenter. By specifying a
|
|
@@ -142,7 +144,17 @@ def get_catalog_nodes_output(query_options: Optional[pulumi.Input[Optional[Seque
|
|
|
142
144
|
nodes from a different WAN-attached Consul datacenter.
|
|
143
145
|
|
|
144
146
|
|
|
145
|
-
:param Sequence[
|
|
147
|
+
:param Sequence[Union['GetCatalogNodesQueryOptionArgs', 'GetCatalogNodesQueryOptionArgsDict']] query_options: See below.
|
|
146
148
|
"""
|
|
147
149
|
pulumi.log.warn("""get_catalog_nodes is deprecated: getCatalogNodes has been deprecated in favor of getNodes""")
|
|
148
|
-
|
|
150
|
+
__args__ = dict()
|
|
151
|
+
__args__['queryOptions'] = query_options
|
|
152
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
153
|
+
__ret__ = pulumi.runtime.invoke_output('consul:index/getCatalogNodes:getCatalogNodes', __args__, opts=opts, typ=GetCatalogNodesResult)
|
|
154
|
+
return __ret__.apply(lambda __response__: GetCatalogNodesResult(
|
|
155
|
+
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
156
|
+
id=pulumi.get(__response__, 'id'),
|
|
157
|
+
node_ids=pulumi.get(__response__, 'node_ids'),
|
|
158
|
+
node_names=pulumi.get(__response__, 'node_names'),
|
|
159
|
+
nodes=pulumi.get(__response__, 'nodes'),
|
|
160
|
+
query_options=pulumi.get(__response__, 'query_options')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -119,7 +124,7 @@ class AwaitableGetCatalogServiceResult(GetCatalogServiceResult):
|
|
|
119
124
|
def get_catalog_service(datacenter: Optional[str] = None,
|
|
120
125
|
filter: Optional[str] = None,
|
|
121
126
|
name: Optional[str] = None,
|
|
122
|
-
query_options: Optional[Sequence[
|
|
127
|
+
query_options: Optional[Sequence[Union['GetCatalogServiceQueryOptionArgs', 'GetCatalogServiceQueryOptionArgsDict']]] = None,
|
|
123
128
|
tag: Optional[str] = None,
|
|
124
129
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCatalogServiceResult:
|
|
125
130
|
"""
|
|
@@ -132,15 +137,28 @@ def get_catalog_service(datacenter: Optional[str] = None,
|
|
|
132
137
|
This data source is different from the `get_services` (plural) data
|
|
133
138
|
source, which provides a summary of the current Consul services.
|
|
134
139
|
|
|
140
|
+
## Example Usage
|
|
141
|
+
|
|
142
|
+
```python
|
|
143
|
+
import pulumi
|
|
144
|
+
import pulumi_consul as consul
|
|
145
|
+
import pulumi_example as example
|
|
146
|
+
import pulumi_std as std
|
|
147
|
+
|
|
148
|
+
read_consul_dc1 = consul.get_service(name="consul",
|
|
149
|
+
datacenter="dc1")
|
|
150
|
+
# Set the description to a whitespace delimited list of the node names
|
|
151
|
+
app = example.index.Resource("app", description=std.join(separator= ,
|
|
152
|
+
input=nodes).result)
|
|
153
|
+
```
|
|
154
|
+
|
|
135
155
|
|
|
136
156
|
:param str datacenter: The Consul datacenter to query. Defaults to the
|
|
137
157
|
same value found in `query_options` parameter specified below, or if that is
|
|
138
158
|
empty, the `datacenter` value found in the Consul agent that this provider is
|
|
139
159
|
configured to talk to.
|
|
140
|
-
:param str filter: A filter expression to refine the query, see https://www.consul.io/api-docs/features/filtering
|
|
141
|
-
and https://www.consul.io/api-docs/catalog#filtering-1.
|
|
142
160
|
:param str name: The service name to select.
|
|
143
|
-
:param Sequence[
|
|
161
|
+
:param Sequence[Union['GetCatalogServiceQueryOptionArgs', 'GetCatalogServiceQueryOptionArgsDict']] query_options: See below.
|
|
144
162
|
:param str tag: A single tag that can be used to filter the list of nodes
|
|
145
163
|
to return based on a single matching tag..
|
|
146
164
|
"""
|
|
@@ -162,15 +180,12 @@ def get_catalog_service(datacenter: Optional[str] = None,
|
|
|
162
180
|
query_options=pulumi.get(__ret__, 'query_options'),
|
|
163
181
|
services=pulumi.get(__ret__, 'services'),
|
|
164
182
|
tag=pulumi.get(__ret__, 'tag'))
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
@_utilities.lift_output_func(get_catalog_service)
|
|
168
183
|
def get_catalog_service_output(datacenter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
169
184
|
filter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
170
185
|
name: Optional[pulumi.Input[str]] = None,
|
|
171
|
-
query_options: Optional[pulumi.Input[Optional[Sequence[
|
|
186
|
+
query_options: Optional[pulumi.Input[Optional[Sequence[Union['GetCatalogServiceQueryOptionArgs', 'GetCatalogServiceQueryOptionArgsDict']]]]] = None,
|
|
172
187
|
tag: Optional[pulumi.Input[Optional[str]]] = None,
|
|
173
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCatalogServiceResult]:
|
|
188
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCatalogServiceResult]:
|
|
174
189
|
"""
|
|
175
190
|
`Service` provides details about a specific Consul service in a
|
|
176
191
|
given datacenter. The results include a list of nodes advertising the specified
|
|
@@ -181,17 +196,45 @@ def get_catalog_service_output(datacenter: Optional[pulumi.Input[Optional[str]]]
|
|
|
181
196
|
This data source is different from the `get_services` (plural) data
|
|
182
197
|
source, which provides a summary of the current Consul services.
|
|
183
198
|
|
|
199
|
+
## Example Usage
|
|
200
|
+
|
|
201
|
+
```python
|
|
202
|
+
import pulumi
|
|
203
|
+
import pulumi_consul as consul
|
|
204
|
+
import pulumi_example as example
|
|
205
|
+
import pulumi_std as std
|
|
206
|
+
|
|
207
|
+
read_consul_dc1 = consul.get_service(name="consul",
|
|
208
|
+
datacenter="dc1")
|
|
209
|
+
# Set the description to a whitespace delimited list of the node names
|
|
210
|
+
app = example.index.Resource("app", description=std.join(separator= ,
|
|
211
|
+
input=nodes).result)
|
|
212
|
+
```
|
|
213
|
+
|
|
184
214
|
|
|
185
215
|
:param str datacenter: The Consul datacenter to query. Defaults to the
|
|
186
216
|
same value found in `query_options` parameter specified below, or if that is
|
|
187
217
|
empty, the `datacenter` value found in the Consul agent that this provider is
|
|
188
218
|
configured to talk to.
|
|
189
|
-
:param str filter: A filter expression to refine the query, see https://www.consul.io/api-docs/features/filtering
|
|
190
|
-
and https://www.consul.io/api-docs/catalog#filtering-1.
|
|
191
219
|
:param str name: The service name to select.
|
|
192
|
-
:param Sequence[
|
|
220
|
+
:param Sequence[Union['GetCatalogServiceQueryOptionArgs', 'GetCatalogServiceQueryOptionArgsDict']] query_options: See below.
|
|
193
221
|
:param str tag: A single tag that can be used to filter the list of nodes
|
|
194
222
|
to return based on a single matching tag..
|
|
195
223
|
"""
|
|
196
224
|
pulumi.log.warn("""get_catalog_service is deprecated: getCatalogService has been deprecated in favor of getService""")
|
|
197
|
-
|
|
225
|
+
__args__ = dict()
|
|
226
|
+
__args__['datacenter'] = datacenter
|
|
227
|
+
__args__['filter'] = filter
|
|
228
|
+
__args__['name'] = name
|
|
229
|
+
__args__['queryOptions'] = query_options
|
|
230
|
+
__args__['tag'] = tag
|
|
231
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
232
|
+
__ret__ = pulumi.runtime.invoke_output('consul:index/getCatalogService:getCatalogService', __args__, opts=opts, typ=GetCatalogServiceResult)
|
|
233
|
+
return __ret__.apply(lambda __response__: GetCatalogServiceResult(
|
|
234
|
+
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
235
|
+
filter=pulumi.get(__response__, 'filter'),
|
|
236
|
+
id=pulumi.get(__response__, 'id'),
|
|
237
|
+
name=pulumi.get(__response__, 'name'),
|
|
238
|
+
query_options=pulumi.get(__response__, 'query_options'),
|
|
239
|
+
services=pulumi.get(__response__, 'services'),
|
|
240
|
+
tag=pulumi.get(__response__, 'tag')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -102,7 +107,7 @@ class AwaitableGetCatalogServicesResult(GetCatalogServicesResult):
|
|
|
102
107
|
tags=self.tags)
|
|
103
108
|
|
|
104
109
|
|
|
105
|
-
def get_catalog_services(query_options: Optional[Sequence[
|
|
110
|
+
def get_catalog_services(query_options: Optional[Sequence[Union['GetCatalogServicesQueryOptionArgs', 'GetCatalogServicesQueryOptionArgsDict']]] = None,
|
|
106
111
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCatalogServicesResult:
|
|
107
112
|
"""
|
|
108
113
|
The `get_services` data source returns a list of Consul services that
|
|
@@ -113,8 +118,24 @@ def get_catalog_services(query_options: Optional[Sequence[pulumi.InputType['GetC
|
|
|
113
118
|
This data source is different from the `Service` (singular) data
|
|
114
119
|
source, which provides a detailed response about a specific Consul service.
|
|
115
120
|
|
|
121
|
+
## Example Usage
|
|
116
122
|
|
|
117
|
-
|
|
123
|
+
```python
|
|
124
|
+
import pulumi
|
|
125
|
+
import pulumi_consul as consul
|
|
126
|
+
import pulumi_example as example
|
|
127
|
+
import pulumi_std as std
|
|
128
|
+
|
|
129
|
+
read_dc1 = consul.get_services(query_options=[{
|
|
130
|
+
"datacenter": "dc1",
|
|
131
|
+
}])
|
|
132
|
+
# Set the description to a whitespace delimited list of the services
|
|
133
|
+
app = example.index.Resource("app", description=std.join(separator= ,
|
|
134
|
+
input=names).result)
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:param Sequence[Union['GetCatalogServicesQueryOptionArgs', 'GetCatalogServicesQueryOptionArgsDict']] query_options: See below.
|
|
118
139
|
"""
|
|
119
140
|
pulumi.log.warn("""get_catalog_services is deprecated: getCatalogServices has been deprecated in favor of getServices""")
|
|
120
141
|
__args__ = dict()
|
|
@@ -129,11 +150,8 @@ def get_catalog_services(query_options: Optional[Sequence[pulumi.InputType['GetC
|
|
|
129
150
|
query_options=pulumi.get(__ret__, 'query_options'),
|
|
130
151
|
services=pulumi.get(__ret__, 'services'),
|
|
131
152
|
tags=pulumi.get(__ret__, 'tags'))
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
@_utilities.lift_output_func(get_catalog_services)
|
|
135
|
-
def get_catalog_services_output(query_options: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetCatalogServicesQueryOptionArgs']]]]] = None,
|
|
136
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCatalogServicesResult]:
|
|
153
|
+
def get_catalog_services_output(query_options: Optional[pulumi.Input[Optional[Sequence[Union['GetCatalogServicesQueryOptionArgs', 'GetCatalogServicesQueryOptionArgsDict']]]]] = None,
|
|
154
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCatalogServicesResult]:
|
|
137
155
|
"""
|
|
138
156
|
The `get_services` data source returns a list of Consul services that
|
|
139
157
|
have been registered with the Consul cluster in a given datacenter. By
|
|
@@ -143,8 +161,34 @@ def get_catalog_services_output(query_options: Optional[pulumi.Input[Optional[Se
|
|
|
143
161
|
This data source is different from the `Service` (singular) data
|
|
144
162
|
source, which provides a detailed response about a specific Consul service.
|
|
145
163
|
|
|
164
|
+
## Example Usage
|
|
146
165
|
|
|
147
|
-
|
|
166
|
+
```python
|
|
167
|
+
import pulumi
|
|
168
|
+
import pulumi_consul as consul
|
|
169
|
+
import pulumi_example as example
|
|
170
|
+
import pulumi_std as std
|
|
171
|
+
|
|
172
|
+
read_dc1 = consul.get_services(query_options=[{
|
|
173
|
+
"datacenter": "dc1",
|
|
174
|
+
}])
|
|
175
|
+
# Set the description to a whitespace delimited list of the services
|
|
176
|
+
app = example.index.Resource("app", description=std.join(separator= ,
|
|
177
|
+
input=names).result)
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
:param Sequence[Union['GetCatalogServicesQueryOptionArgs', 'GetCatalogServicesQueryOptionArgsDict']] query_options: See below.
|
|
148
182
|
"""
|
|
149
183
|
pulumi.log.warn("""get_catalog_services is deprecated: getCatalogServices has been deprecated in favor of getServices""")
|
|
150
|
-
|
|
184
|
+
__args__ = dict()
|
|
185
|
+
__args__['queryOptions'] = query_options
|
|
186
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
187
|
+
__ret__ = pulumi.runtime.invoke_output('consul:index/getCatalogServices:getCatalogServices', __args__, opts=opts, typ=GetCatalogServicesResult)
|
|
188
|
+
return __ret__.apply(lambda __response__: GetCatalogServicesResult(
|
|
189
|
+
datacenter=pulumi.get(__response__, 'datacenter'),
|
|
190
|
+
id=pulumi.get(__response__, 'id'),
|
|
191
|
+
names=pulumi.get(__response__, 'names'),
|
|
192
|
+
query_options=pulumi.get(__response__, 'query_options'),
|
|
193
|
+
services=pulumi.get(__response__, 'services'),
|
|
194
|
+
tags=pulumi.get(__response__, 'tags')))
|