pulumi-consul 3.13.0a1749706342__py3-none-any.whl → 3.14.0a1768432677__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.
- pulumi_consul/__init__.py +1 -1
- pulumi_consul/_inputs.py +1604 -1605
- pulumi_consul/acl_auth_method.py +174 -175
- pulumi_consul/acl_binding_rule.py +123 -124
- pulumi_consul/acl_policy.py +107 -108
- pulumi_consul/acl_role.py +95 -96
- pulumi_consul/acl_role_policy_attachment.py +35 -36
- pulumi_consul/acl_token.py +154 -155
- pulumi_consul/acl_token_policy_attachment.py +35 -36
- pulumi_consul/acl_token_role_attachment.py +35 -36
- pulumi_consul/admin_partition.py +82 -36
- pulumi_consul/agent_service.py +69 -70
- pulumi_consul/autopilot_config.py +137 -138
- pulumi_consul/catalog_entry.py +114 -73
- pulumi_consul/certificate_authority.py +44 -45
- pulumi_consul/config/__init__.py +1 -1
- pulumi_consul/config/__init__.pyi +6 -12
- pulumi_consul/config/outputs.py +24 -25
- pulumi_consul/config/vars.py +22 -28
- pulumi_consul/config_entry.py +86 -87
- pulumi_consul/config_entry_service_defaults.py +275 -224
- pulumi_consul/config_entry_service_intentions.py +75 -76
- pulumi_consul/config_entry_service_resolver.py +132 -133
- pulumi_consul/config_entry_service_router.py +72 -73
- pulumi_consul/config_entry_service_splitter.py +72 -73
- pulumi_consul/config_entry_v2_exported_services.py +137 -138
- pulumi_consul/get_acl_auth_method.py +36 -37
- pulumi_consul/get_acl_policy.py +27 -28
- pulumi_consul/get_acl_role.py +27 -28
- pulumi_consul/get_acl_token.py +32 -33
- pulumi_consul/get_acl_token_secret_id.py +29 -30
- pulumi_consul/get_agent_config.py +15 -16
- pulumi_consul/get_agent_self.py +149 -146
- pulumi_consul/get_autopilot_health.py +14 -15
- pulumi_consul/get_catalog_nodes.py +45 -12
- pulumi_consul/get_catalog_service.py +27 -28
- pulumi_consul/get_catalog_services.py +12 -13
- pulumi_consul/get_config_entry.py +29 -30
- pulumi_consul/get_config_entry_v2_exported_services.py +51 -52
- pulumi_consul/get_datacenters.py +73 -6
- pulumi_consul/get_key_prefix.py +38 -39
- pulumi_consul/get_keys.py +36 -37
- pulumi_consul/get_network_area_members.py +22 -23
- pulumi_consul/get_network_segments.py +17 -18
- pulumi_consul/get_nodes.py +45 -12
- pulumi_consul/get_peering.py +25 -26
- pulumi_consul/get_peerings.py +8 -9
- pulumi_consul/get_service.py +27 -28
- pulumi_consul/get_service_health.py +54 -51
- pulumi_consul/get_services.py +12 -13
- pulumi_consul/intention.py +137 -138
- pulumi_consul/key_prefix.py +106 -107
- pulumi_consul/keys.py +79 -80
- pulumi_consul/license.py +125 -126
- pulumi_consul/namespace.py +103 -104
- pulumi_consul/namespace_policy_attachment.py +35 -36
- pulumi_consul/namespace_role_attachment.py +35 -36
- pulumi_consul/network_area.py +86 -87
- pulumi_consul/node.py +99 -100
- pulumi_consul/outputs.py +1464 -1465
- pulumi_consul/peering.py +107 -108
- pulumi_consul/peering_token.py +74 -75
- pulumi_consul/prepared_query.py +231 -232
- pulumi_consul/provider.py +150 -169
- pulumi_consul/pulumi-plugin.json +1 -1
- pulumi_consul/service.py +251 -205
- {pulumi_consul-3.13.0a1749706342.dist-info → pulumi_consul-3.14.0a1768432677.dist-info}/METADATA +1 -1
- pulumi_consul-3.14.0a1768432677.dist-info/RECORD +72 -0
- pulumi_consul-3.13.0a1749706342.dist-info/RECORD +0 -72
- {pulumi_consul-3.13.0a1749706342.dist-info → pulumi_consul-3.14.0a1768432677.dist-info}/WHEEL +0 -0
- {pulumi_consul-3.13.0a1749706342.dist-info → pulumi_consul-3.14.0a1768432677.dist-info}/top_level.txt +0 -0
pulumi_consul/get_nodes.py
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -49,39 +48,39 @@ class GetNodesResult:
|
|
|
49
48
|
raise TypeError("Expected argument 'query_options' to be a list")
|
|
50
49
|
pulumi.set(__self__, "query_options", query_options)
|
|
51
50
|
|
|
52
|
-
@property
|
|
51
|
+
@_builtins.property
|
|
53
52
|
@pulumi.getter
|
|
54
|
-
def datacenter(self) ->
|
|
53
|
+
def datacenter(self) -> _builtins.str:
|
|
55
54
|
"""
|
|
56
55
|
The datacenter the keys are being read from to.
|
|
57
56
|
"""
|
|
58
57
|
return pulumi.get(self, "datacenter")
|
|
59
58
|
|
|
60
|
-
@property
|
|
59
|
+
@_builtins.property
|
|
61
60
|
@pulumi.getter
|
|
62
|
-
def id(self) ->
|
|
61
|
+
def id(self) -> _builtins.str:
|
|
63
62
|
"""
|
|
64
63
|
The provider-assigned unique ID for this managed resource.
|
|
65
64
|
"""
|
|
66
65
|
return pulumi.get(self, "id")
|
|
67
66
|
|
|
68
|
-
@property
|
|
67
|
+
@_builtins.property
|
|
69
68
|
@pulumi.getter(name="nodeIds")
|
|
70
|
-
def node_ids(self) -> Sequence[
|
|
69
|
+
def node_ids(self) -> Sequence[_builtins.str]:
|
|
71
70
|
"""
|
|
72
71
|
A list of the Consul node IDs.
|
|
73
72
|
"""
|
|
74
73
|
return pulumi.get(self, "node_ids")
|
|
75
74
|
|
|
76
|
-
@property
|
|
75
|
+
@_builtins.property
|
|
77
76
|
@pulumi.getter(name="nodeNames")
|
|
78
|
-
def node_names(self) -> Sequence[
|
|
77
|
+
def node_names(self) -> Sequence[_builtins.str]:
|
|
79
78
|
"""
|
|
80
79
|
A list of the Consul node names.
|
|
81
80
|
"""
|
|
82
81
|
return pulumi.get(self, "node_names")
|
|
83
82
|
|
|
84
|
-
@property
|
|
83
|
+
@_builtins.property
|
|
85
84
|
@pulumi.getter
|
|
86
85
|
def nodes(self) -> Sequence['outputs.GetNodesNodeResult']:
|
|
87
86
|
"""
|
|
@@ -90,7 +89,7 @@ class GetNodesResult:
|
|
|
90
89
|
"""
|
|
91
90
|
return pulumi.get(self, "nodes")
|
|
92
91
|
|
|
93
|
-
@property
|
|
92
|
+
@_builtins.property
|
|
94
93
|
@pulumi.getter(name="queryOptions")
|
|
95
94
|
def query_options(self) -> Optional[Sequence['outputs.GetNodesQueryOptionResult']]:
|
|
96
95
|
return pulumi.get(self, "query_options")
|
|
@@ -118,6 +117,23 @@ def get_nodes(query_options: Optional[Sequence[Union['GetNodesQueryOptionArgs',
|
|
|
118
117
|
different datacenter in the `query_options` it is possible to retrieve a list of
|
|
119
118
|
nodes from a different WAN-attached Consul datacenter.
|
|
120
119
|
|
|
120
|
+
## Example Usage
|
|
121
|
+
|
|
122
|
+
```python
|
|
123
|
+
import pulumi
|
|
124
|
+
import pulumi_consul as consul
|
|
125
|
+
import pulumi_example as example
|
|
126
|
+
import pulumi_std as std
|
|
127
|
+
|
|
128
|
+
read_dc1_nodes = consul.get_nodes(query_options=[{
|
|
129
|
+
"datacenter": "dc1",
|
|
130
|
+
}])
|
|
131
|
+
# Set the description to a whitespace delimited list of the node names
|
|
132
|
+
app = example.index.Resource("app", description=std.join(separator= ,
|
|
133
|
+
input=std.formatlist(input=%s,
|
|
134
|
+
args=[node_names]).result).result)
|
|
135
|
+
```
|
|
136
|
+
|
|
121
137
|
|
|
122
138
|
:param Sequence[Union['GetNodesQueryOptionArgs', 'GetNodesQueryOptionArgsDict']] query_options: See below.
|
|
123
139
|
"""
|
|
@@ -141,6 +157,23 @@ def get_nodes_output(query_options: Optional[pulumi.Input[Optional[Sequence[Unio
|
|
|
141
157
|
different datacenter in the `query_options` it is possible to retrieve a list of
|
|
142
158
|
nodes from a different WAN-attached Consul datacenter.
|
|
143
159
|
|
|
160
|
+
## Example Usage
|
|
161
|
+
|
|
162
|
+
```python
|
|
163
|
+
import pulumi
|
|
164
|
+
import pulumi_consul as consul
|
|
165
|
+
import pulumi_example as example
|
|
166
|
+
import pulumi_std as std
|
|
167
|
+
|
|
168
|
+
read_dc1_nodes = consul.get_nodes(query_options=[{
|
|
169
|
+
"datacenter": "dc1",
|
|
170
|
+
}])
|
|
171
|
+
# Set the description to a whitespace delimited list of the node names
|
|
172
|
+
app = example.index.Resource("app", description=std.join(separator= ,
|
|
173
|
+
input=std.formatlist(input=%s,
|
|
174
|
+
args=[node_names]).result).result)
|
|
175
|
+
```
|
|
176
|
+
|
|
144
177
|
|
|
145
178
|
:param Sequence[Union['GetNodesQueryOptionArgs', 'GetNodesQueryOptionArgsDict']] query_options: See below.
|
|
146
179
|
"""
|
pulumi_consul/get_peering.py
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -59,57 +58,57 @@ class GetPeeringResult:
|
|
|
59
58
|
raise TypeError("Expected argument 'state' to be a str")
|
|
60
59
|
pulumi.set(__self__, "state", state)
|
|
61
60
|
|
|
62
|
-
@property
|
|
61
|
+
@_builtins.property
|
|
63
62
|
@pulumi.getter(name="deletedAt")
|
|
64
|
-
def deleted_at(self) ->
|
|
63
|
+
def deleted_at(self) -> _builtins.str:
|
|
65
64
|
return pulumi.get(self, "deleted_at")
|
|
66
65
|
|
|
67
|
-
@property
|
|
66
|
+
@_builtins.property
|
|
68
67
|
@pulumi.getter
|
|
69
|
-
def id(self) ->
|
|
68
|
+
def id(self) -> _builtins.str:
|
|
70
69
|
"""
|
|
71
70
|
The provider-assigned unique ID for this managed resource.
|
|
72
71
|
"""
|
|
73
72
|
return pulumi.get(self, "id")
|
|
74
73
|
|
|
75
|
-
@property
|
|
74
|
+
@_builtins.property
|
|
76
75
|
@pulumi.getter
|
|
77
|
-
def meta(self) -> Mapping[str,
|
|
76
|
+
def meta(self) -> Mapping[str, _builtins.str]:
|
|
78
77
|
return pulumi.get(self, "meta")
|
|
79
78
|
|
|
80
|
-
@property
|
|
79
|
+
@_builtins.property
|
|
81
80
|
@pulumi.getter
|
|
82
|
-
def partition(self) -> Optional[
|
|
81
|
+
def partition(self) -> Optional[_builtins.str]:
|
|
83
82
|
return pulumi.get(self, "partition")
|
|
84
83
|
|
|
85
|
-
@property
|
|
84
|
+
@_builtins.property
|
|
86
85
|
@pulumi.getter(name="peerCaPems")
|
|
87
|
-
def peer_ca_pems(self) -> Sequence[
|
|
86
|
+
def peer_ca_pems(self) -> Sequence[_builtins.str]:
|
|
88
87
|
return pulumi.get(self, "peer_ca_pems")
|
|
89
88
|
|
|
90
|
-
@property
|
|
89
|
+
@_builtins.property
|
|
91
90
|
@pulumi.getter(name="peerId")
|
|
92
|
-
def peer_id(self) ->
|
|
91
|
+
def peer_id(self) -> _builtins.str:
|
|
93
92
|
return pulumi.get(self, "peer_id")
|
|
94
93
|
|
|
95
|
-
@property
|
|
94
|
+
@_builtins.property
|
|
96
95
|
@pulumi.getter(name="peerName")
|
|
97
|
-
def peer_name(self) ->
|
|
96
|
+
def peer_name(self) -> _builtins.str:
|
|
98
97
|
return pulumi.get(self, "peer_name")
|
|
99
98
|
|
|
100
|
-
@property
|
|
99
|
+
@_builtins.property
|
|
101
100
|
@pulumi.getter(name="peerServerAddresses")
|
|
102
|
-
def peer_server_addresses(self) -> Sequence[
|
|
101
|
+
def peer_server_addresses(self) -> Sequence[_builtins.str]:
|
|
103
102
|
return pulumi.get(self, "peer_server_addresses")
|
|
104
103
|
|
|
105
|
-
@property
|
|
104
|
+
@_builtins.property
|
|
106
105
|
@pulumi.getter(name="peerServerName")
|
|
107
|
-
def peer_server_name(self) ->
|
|
106
|
+
def peer_server_name(self) -> _builtins.str:
|
|
108
107
|
return pulumi.get(self, "peer_server_name")
|
|
109
108
|
|
|
110
|
-
@property
|
|
109
|
+
@_builtins.property
|
|
111
110
|
@pulumi.getter
|
|
112
|
-
def state(self) ->
|
|
111
|
+
def state(self) -> _builtins.str:
|
|
113
112
|
return pulumi.get(self, "state")
|
|
114
113
|
|
|
115
114
|
|
|
@@ -131,8 +130,8 @@ class AwaitableGetPeeringResult(GetPeeringResult):
|
|
|
131
130
|
state=self.state)
|
|
132
131
|
|
|
133
132
|
|
|
134
|
-
def get_peering(partition: Optional[
|
|
135
|
-
peer_name: Optional[
|
|
133
|
+
def get_peering(partition: Optional[_builtins.str] = None,
|
|
134
|
+
peer_name: Optional[_builtins.str] = None,
|
|
136
135
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPeeringResult:
|
|
137
136
|
"""
|
|
138
137
|
## Example Usage
|
|
@@ -161,8 +160,8 @@ def get_peering(partition: Optional[builtins.str] = None,
|
|
|
161
160
|
peer_server_addresses=pulumi.get(__ret__, 'peer_server_addresses'),
|
|
162
161
|
peer_server_name=pulumi.get(__ret__, 'peer_server_name'),
|
|
163
162
|
state=pulumi.get(__ret__, 'state'))
|
|
164
|
-
def get_peering_output(partition: Optional[pulumi.Input[Optional[
|
|
165
|
-
peer_name: Optional[pulumi.Input[
|
|
163
|
+
def get_peering_output(partition: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
164
|
+
peer_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
166
165
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPeeringResult]:
|
|
167
166
|
"""
|
|
168
167
|
## Example Usage
|
pulumi_consul/get_peerings.py
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -39,20 +38,20 @@ class GetPeeringsResult:
|
|
|
39
38
|
raise TypeError("Expected argument 'peers' to be a list")
|
|
40
39
|
pulumi.set(__self__, "peers", peers)
|
|
41
40
|
|
|
42
|
-
@property
|
|
41
|
+
@_builtins.property
|
|
43
42
|
@pulumi.getter
|
|
44
|
-
def id(self) ->
|
|
43
|
+
def id(self) -> _builtins.str:
|
|
45
44
|
"""
|
|
46
45
|
The provider-assigned unique ID for this managed resource.
|
|
47
46
|
"""
|
|
48
47
|
return pulumi.get(self, "id")
|
|
49
48
|
|
|
50
|
-
@property
|
|
49
|
+
@_builtins.property
|
|
51
50
|
@pulumi.getter
|
|
52
|
-
def partition(self) -> Optional[
|
|
51
|
+
def partition(self) -> Optional[_builtins.str]:
|
|
53
52
|
return pulumi.get(self, "partition")
|
|
54
53
|
|
|
55
|
-
@property
|
|
54
|
+
@_builtins.property
|
|
56
55
|
@pulumi.getter
|
|
57
56
|
def peers(self) -> Sequence['outputs.GetPeeringsPeerResult']:
|
|
58
57
|
return pulumi.get(self, "peers")
|
|
@@ -69,7 +68,7 @@ class AwaitableGetPeeringsResult(GetPeeringsResult):
|
|
|
69
68
|
peers=self.peers)
|
|
70
69
|
|
|
71
70
|
|
|
72
|
-
def get_peerings(partition: Optional[
|
|
71
|
+
def get_peerings(partition: Optional[_builtins.str] = None,
|
|
73
72
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPeeringsResult:
|
|
74
73
|
"""
|
|
75
74
|
## Example Usage
|
|
@@ -90,7 +89,7 @@ def get_peerings(partition: Optional[builtins.str] = None,
|
|
|
90
89
|
id=pulumi.get(__ret__, 'id'),
|
|
91
90
|
partition=pulumi.get(__ret__, 'partition'),
|
|
92
91
|
peers=pulumi.get(__ret__, 'peers'))
|
|
93
|
-
def get_peerings_output(partition: Optional[pulumi.Input[Optional[
|
|
92
|
+
def get_peerings_output(partition: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
94
93
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPeeringsResult]:
|
|
95
94
|
"""
|
|
96
95
|
## Example Usage
|
pulumi_consul/get_service.py
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -52,41 +51,41 @@ class GetServiceResult:
|
|
|
52
51
|
raise TypeError("Expected argument 'tag' to be a str")
|
|
53
52
|
pulumi.set(__self__, "tag", tag)
|
|
54
53
|
|
|
55
|
-
@property
|
|
54
|
+
@_builtins.property
|
|
56
55
|
@pulumi.getter
|
|
57
|
-
def datacenter(self) -> Optional[
|
|
56
|
+
def datacenter(self) -> Optional[_builtins.str]:
|
|
58
57
|
"""
|
|
59
58
|
The datacenter the keys are being read from to.
|
|
60
59
|
"""
|
|
61
60
|
return pulumi.get(self, "datacenter")
|
|
62
61
|
|
|
63
|
-
@property
|
|
62
|
+
@_builtins.property
|
|
64
63
|
@pulumi.getter
|
|
65
|
-
def filter(self) -> Optional[
|
|
64
|
+
def filter(self) -> Optional[_builtins.str]:
|
|
66
65
|
return pulumi.get(self, "filter")
|
|
67
66
|
|
|
68
|
-
@property
|
|
67
|
+
@_builtins.property
|
|
69
68
|
@pulumi.getter
|
|
70
|
-
def id(self) ->
|
|
69
|
+
def id(self) -> _builtins.str:
|
|
71
70
|
"""
|
|
72
71
|
The provider-assigned unique ID for this managed resource.
|
|
73
72
|
"""
|
|
74
73
|
return pulumi.get(self, "id")
|
|
75
74
|
|
|
76
|
-
@property
|
|
75
|
+
@_builtins.property
|
|
77
76
|
@pulumi.getter
|
|
78
|
-
def name(self) ->
|
|
77
|
+
def name(self) -> _builtins.str:
|
|
79
78
|
"""
|
|
80
79
|
The name of the service
|
|
81
80
|
"""
|
|
82
81
|
return pulumi.get(self, "name")
|
|
83
82
|
|
|
84
|
-
@property
|
|
83
|
+
@_builtins.property
|
|
85
84
|
@pulumi.getter(name="queryOptions")
|
|
86
85
|
def query_options(self) -> Optional[Sequence['outputs.GetServiceQueryOptionResult']]:
|
|
87
86
|
return pulumi.get(self, "query_options")
|
|
88
87
|
|
|
89
|
-
@property
|
|
88
|
+
@_builtins.property
|
|
90
89
|
@pulumi.getter
|
|
91
90
|
def services(self) -> Sequence['outputs.GetServiceServiceResult']:
|
|
92
91
|
"""
|
|
@@ -96,9 +95,9 @@ class GetServiceResult:
|
|
|
96
95
|
"""
|
|
97
96
|
return pulumi.get(self, "services")
|
|
98
97
|
|
|
99
|
-
@property
|
|
98
|
+
@_builtins.property
|
|
100
99
|
@pulumi.getter
|
|
101
|
-
def tag(self) -> Optional[
|
|
100
|
+
def tag(self) -> Optional[_builtins.str]:
|
|
102
101
|
"""
|
|
103
102
|
The name of the tag used to filter the list of nodes in `service`.
|
|
104
103
|
"""
|
|
@@ -120,11 +119,11 @@ class AwaitableGetServiceResult(GetServiceResult):
|
|
|
120
119
|
tag=self.tag)
|
|
121
120
|
|
|
122
121
|
|
|
123
|
-
def get_service(datacenter: Optional[
|
|
124
|
-
filter: Optional[
|
|
125
|
-
name: Optional[
|
|
122
|
+
def get_service(datacenter: Optional[_builtins.str] = None,
|
|
123
|
+
filter: Optional[_builtins.str] = None,
|
|
124
|
+
name: Optional[_builtins.str] = None,
|
|
126
125
|
query_options: Optional[Sequence[Union['GetServiceQueryOptionArgs', 'GetServiceQueryOptionArgsDict']]] = None,
|
|
127
|
-
tag: Optional[
|
|
126
|
+
tag: Optional[_builtins.str] = None,
|
|
128
127
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServiceResult:
|
|
129
128
|
"""
|
|
130
129
|
`Service` provides details about a specific Consul service in a
|
|
@@ -152,13 +151,13 @@ def get_service(datacenter: Optional[builtins.str] = None,
|
|
|
152
151
|
```
|
|
153
152
|
|
|
154
153
|
|
|
155
|
-
:param
|
|
154
|
+
:param _builtins.str datacenter: The Consul datacenter to query. Defaults to the
|
|
156
155
|
same value found in `query_options` parameter specified below, or if that is
|
|
157
156
|
empty, the `datacenter` value found in the Consul agent that this provider is
|
|
158
157
|
configured to talk to.
|
|
159
|
-
:param
|
|
158
|
+
:param _builtins.str name: The service name to select.
|
|
160
159
|
:param Sequence[Union['GetServiceQueryOptionArgs', 'GetServiceQueryOptionArgsDict']] query_options: See below.
|
|
161
|
-
:param
|
|
160
|
+
:param _builtins.str tag: A single tag that can be used to filter the list of nodes
|
|
162
161
|
to return based on a single matching tag..
|
|
163
162
|
"""
|
|
164
163
|
__args__ = dict()
|
|
@@ -178,11 +177,11 @@ def get_service(datacenter: Optional[builtins.str] = None,
|
|
|
178
177
|
query_options=pulumi.get(__ret__, 'query_options'),
|
|
179
178
|
services=pulumi.get(__ret__, 'services'),
|
|
180
179
|
tag=pulumi.get(__ret__, 'tag'))
|
|
181
|
-
def get_service_output(datacenter: Optional[pulumi.Input[Optional[
|
|
182
|
-
filter: Optional[pulumi.Input[Optional[
|
|
183
|
-
name: Optional[pulumi.Input[
|
|
180
|
+
def get_service_output(datacenter: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
181
|
+
filter: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
182
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
184
183
|
query_options: Optional[pulumi.Input[Optional[Sequence[Union['GetServiceQueryOptionArgs', 'GetServiceQueryOptionArgsDict']]]]] = None,
|
|
185
|
-
tag: Optional[pulumi.Input[Optional[
|
|
184
|
+
tag: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
186
185
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServiceResult]:
|
|
187
186
|
"""
|
|
188
187
|
`Service` provides details about a specific Consul service in a
|
|
@@ -210,13 +209,13 @@ def get_service_output(datacenter: Optional[pulumi.Input[Optional[builtins.str]]
|
|
|
210
209
|
```
|
|
211
210
|
|
|
212
211
|
|
|
213
|
-
:param
|
|
212
|
+
:param _builtins.str datacenter: The Consul datacenter to query. Defaults to the
|
|
214
213
|
same value found in `query_options` parameter specified below, or if that is
|
|
215
214
|
empty, the `datacenter` value found in the Consul agent that this provider is
|
|
216
215
|
configured to talk to.
|
|
217
|
-
:param
|
|
216
|
+
:param _builtins.str name: The service name to select.
|
|
218
217
|
:param Sequence[Union['GetServiceQueryOptionArgs', 'GetServiceQueryOptionArgsDict']] query_options: See below.
|
|
219
|
-
:param
|
|
218
|
+
:param _builtins.str tag: A single tag that can be used to filter the list of nodes
|
|
220
219
|
to return based on a single matching tag..
|
|
221
220
|
"""
|
|
222
221
|
__args__ = dict()
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -60,9 +59,9 @@ class GetServiceHealthResult:
|
|
|
60
59
|
raise TypeError("Expected argument 'wait_for' to be a str")
|
|
61
60
|
pulumi.set(__self__, "wait_for", wait_for)
|
|
62
61
|
|
|
63
|
-
@property
|
|
62
|
+
@_builtins.property
|
|
64
63
|
@pulumi.getter
|
|
65
|
-
def datacenter(self) -> Optional[
|
|
64
|
+
def datacenter(self) -> Optional[_builtins.str]:
|
|
66
65
|
"""
|
|
67
66
|
The datacenter in which the node is running.
|
|
68
67
|
* [`tagged_addresses`](https://www.consul.io/docs/agent/http/catalog.html#TaggedAddresses) -
|
|
@@ -70,53 +69,53 @@ class GetServiceHealthResult:
|
|
|
70
69
|
"""
|
|
71
70
|
return pulumi.get(self, "datacenter")
|
|
72
71
|
|
|
73
|
-
@property
|
|
72
|
+
@_builtins.property
|
|
74
73
|
@pulumi.getter
|
|
75
|
-
def filter(self) -> Optional[
|
|
74
|
+
def filter(self) -> Optional[_builtins.str]:
|
|
76
75
|
return pulumi.get(self, "filter")
|
|
77
76
|
|
|
78
|
-
@property
|
|
77
|
+
@_builtins.property
|
|
79
78
|
@pulumi.getter
|
|
80
|
-
def id(self) ->
|
|
79
|
+
def id(self) -> _builtins.str:
|
|
81
80
|
"""
|
|
82
81
|
The provider-assigned unique ID for this managed resource.
|
|
83
82
|
"""
|
|
84
83
|
return pulumi.get(self, "id")
|
|
85
84
|
|
|
86
|
-
@property
|
|
85
|
+
@_builtins.property
|
|
87
86
|
@pulumi.getter
|
|
88
|
-
def name(self) ->
|
|
87
|
+
def name(self) -> _builtins.str:
|
|
89
88
|
"""
|
|
90
89
|
The name of this health-check.
|
|
91
90
|
"""
|
|
92
91
|
return pulumi.get(self, "name")
|
|
93
92
|
|
|
94
|
-
@property
|
|
93
|
+
@_builtins.property
|
|
95
94
|
@pulumi.getter
|
|
96
|
-
def near(self) -> Optional[
|
|
95
|
+
def near(self) -> Optional[_builtins.str]:
|
|
97
96
|
"""
|
|
98
97
|
The node to which the result must be sorted to.
|
|
99
98
|
"""
|
|
100
99
|
return pulumi.get(self, "near")
|
|
101
100
|
|
|
102
|
-
@property
|
|
101
|
+
@_builtins.property
|
|
103
102
|
@pulumi.getter(name="nodeMeta")
|
|
104
|
-
def node_meta(self) -> Optional[Mapping[str,
|
|
103
|
+
def node_meta(self) -> Optional[Mapping[str, _builtins.str]]:
|
|
105
104
|
"""
|
|
106
105
|
The list of metadata to filter the nodes.
|
|
107
106
|
"""
|
|
108
107
|
return pulumi.get(self, "node_meta")
|
|
109
108
|
|
|
110
|
-
@property
|
|
109
|
+
@_builtins.property
|
|
111
110
|
@pulumi.getter
|
|
112
|
-
def passing(self) -> Optional[
|
|
111
|
+
def passing(self) -> Optional[_builtins.bool]:
|
|
113
112
|
"""
|
|
114
113
|
Whether to return only nodes with all checks in the
|
|
115
114
|
passing state.
|
|
116
115
|
"""
|
|
117
116
|
return pulumi.get(self, "passing")
|
|
118
117
|
|
|
119
|
-
@property
|
|
118
|
+
@_builtins.property
|
|
120
119
|
@pulumi.getter
|
|
121
120
|
def results(self) -> Sequence['outputs.GetServiceHealthResultResult']:
|
|
122
121
|
"""
|
|
@@ -126,17 +125,17 @@ class GetServiceHealthResult:
|
|
|
126
125
|
"""
|
|
127
126
|
return pulumi.get(self, "results")
|
|
128
127
|
|
|
129
|
-
@property
|
|
128
|
+
@_builtins.property
|
|
130
129
|
@pulumi.getter
|
|
131
|
-
def tag(self) -> Optional[
|
|
130
|
+
def tag(self) -> Optional[_builtins.str]:
|
|
132
131
|
"""
|
|
133
132
|
The name of the tag used to filter the list.
|
|
134
133
|
"""
|
|
135
134
|
return pulumi.get(self, "tag")
|
|
136
135
|
|
|
137
|
-
@property
|
|
136
|
+
@_builtins.property
|
|
138
137
|
@pulumi.getter(name="waitFor")
|
|
139
|
-
def wait_for(self) -> Optional[
|
|
138
|
+
def wait_for(self) -> Optional[_builtins.str]:
|
|
140
139
|
return pulumi.get(self, "wait_for")
|
|
141
140
|
|
|
142
141
|
|
|
@@ -158,14 +157,14 @@ class AwaitableGetServiceHealthResult(GetServiceHealthResult):
|
|
|
158
157
|
wait_for=self.wait_for)
|
|
159
158
|
|
|
160
159
|
|
|
161
|
-
def get_service_health(datacenter: Optional[
|
|
162
|
-
filter: Optional[
|
|
163
|
-
name: Optional[
|
|
164
|
-
near: Optional[
|
|
165
|
-
node_meta: Optional[Mapping[str,
|
|
166
|
-
passing: Optional[
|
|
167
|
-
tag: Optional[
|
|
168
|
-
wait_for: Optional[
|
|
160
|
+
def get_service_health(datacenter: Optional[_builtins.str] = None,
|
|
161
|
+
filter: Optional[_builtins.str] = None,
|
|
162
|
+
name: Optional[_builtins.str] = None,
|
|
163
|
+
near: Optional[_builtins.str] = None,
|
|
164
|
+
node_meta: Optional[Mapping[str, _builtins.str]] = None,
|
|
165
|
+
passing: Optional[_builtins.bool] = None,
|
|
166
|
+
tag: Optional[_builtins.str] = None,
|
|
167
|
+
wait_for: Optional[_builtins.str] = None,
|
|
169
168
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServiceHealthResult:
|
|
170
169
|
"""
|
|
171
170
|
`get_service_health` can be used to get the list of the instances that
|
|
@@ -176,18 +175,20 @@ def get_service_health(datacenter: Optional[builtins.str] = None,
|
|
|
176
175
|
This resource is likely to change as frequently as the health-checks are being
|
|
177
176
|
updated, you should expect different results in a frequent basis.
|
|
178
177
|
|
|
178
|
+
## Example Usage
|
|
179
179
|
|
|
180
|
-
|
|
181
|
-
:param
|
|
180
|
+
|
|
181
|
+
:param _builtins.str datacenter: The Consul datacenter to query.
|
|
182
|
+
:param _builtins.str filter: A filter expression to refine the list of results, see
|
|
182
183
|
https://www.consul.io/api-docs/features/filtering and https://www.consul.io/api-docs/health#filtering-2.
|
|
183
|
-
:param
|
|
184
|
-
:param
|
|
184
|
+
:param _builtins.str name: The service name to select.
|
|
185
|
+
:param _builtins.str near: Specifies a node name to sort the node list in ascending order
|
|
185
186
|
based on the estimated round trip time from that node.
|
|
186
|
-
:param Mapping[str,
|
|
187
|
+
:param Mapping[str, _builtins.str] node_meta: Filter the results to nodes with the specified key/value
|
|
187
188
|
pairs.
|
|
188
|
-
:param
|
|
189
|
+
:param _builtins.bool passing: Whether to return only nodes with all checks in the
|
|
189
190
|
passing state. Defaults to `true`.
|
|
190
|
-
:param
|
|
191
|
+
:param _builtins.str tag: A single tag that can be used to filter the list to return
|
|
191
192
|
based on a single matching tag.
|
|
192
193
|
"""
|
|
193
194
|
__args__ = dict()
|
|
@@ -213,14 +214,14 @@ def get_service_health(datacenter: Optional[builtins.str] = None,
|
|
|
213
214
|
results=pulumi.get(__ret__, 'results'),
|
|
214
215
|
tag=pulumi.get(__ret__, 'tag'),
|
|
215
216
|
wait_for=pulumi.get(__ret__, 'wait_for'))
|
|
216
|
-
def get_service_health_output(datacenter: Optional[pulumi.Input[Optional[
|
|
217
|
-
filter: Optional[pulumi.Input[Optional[
|
|
218
|
-
name: Optional[pulumi.Input[
|
|
219
|
-
near: Optional[pulumi.Input[Optional[
|
|
220
|
-
node_meta: Optional[pulumi.Input[Optional[Mapping[str,
|
|
221
|
-
passing: Optional[pulumi.Input[Optional[
|
|
222
|
-
tag: Optional[pulumi.Input[Optional[
|
|
223
|
-
wait_for: Optional[pulumi.Input[Optional[
|
|
217
|
+
def get_service_health_output(datacenter: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
218
|
+
filter: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
219
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
220
|
+
near: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
221
|
+
node_meta: Optional[pulumi.Input[Optional[Mapping[str, _builtins.str]]]] = None,
|
|
222
|
+
passing: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
223
|
+
tag: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
224
|
+
wait_for: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
224
225
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServiceHealthResult]:
|
|
225
226
|
"""
|
|
226
227
|
`get_service_health` can be used to get the list of the instances that
|
|
@@ -231,18 +232,20 @@ def get_service_health_output(datacenter: Optional[pulumi.Input[Optional[builtin
|
|
|
231
232
|
This resource is likely to change as frequently as the health-checks are being
|
|
232
233
|
updated, you should expect different results in a frequent basis.
|
|
233
234
|
|
|
235
|
+
## Example Usage
|
|
236
|
+
|
|
234
237
|
|
|
235
|
-
:param
|
|
236
|
-
:param
|
|
238
|
+
:param _builtins.str datacenter: The Consul datacenter to query.
|
|
239
|
+
:param _builtins.str filter: A filter expression to refine the list of results, see
|
|
237
240
|
https://www.consul.io/api-docs/features/filtering and https://www.consul.io/api-docs/health#filtering-2.
|
|
238
|
-
:param
|
|
239
|
-
:param
|
|
241
|
+
:param _builtins.str name: The service name to select.
|
|
242
|
+
:param _builtins.str near: Specifies a node name to sort the node list in ascending order
|
|
240
243
|
based on the estimated round trip time from that node.
|
|
241
|
-
:param Mapping[str,
|
|
244
|
+
:param Mapping[str, _builtins.str] node_meta: Filter the results to nodes with the specified key/value
|
|
242
245
|
pairs.
|
|
243
|
-
:param
|
|
246
|
+
:param _builtins.bool passing: Whether to return only nodes with all checks in the
|
|
244
247
|
passing state. Defaults to `true`.
|
|
245
|
-
:param
|
|
248
|
+
:param _builtins.str tag: A single tag that can be used to filter the list to return
|
|
246
249
|
based on a single matching tag.
|
|
247
250
|
"""
|
|
248
251
|
__args__ = dict()
|