pulumi-ns1 3.3.0__py3-none-any.whl → 3.3.0a1710996153__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_ns1/__init__.py +0 -18
- pulumi_ns1/account_whitelist.py +12 -12
- pulumi_ns1/api_key.py +10 -8
- pulumi_ns1/application.py +44 -0
- pulumi_ns1/data_feed.py +16 -26
- pulumi_ns1/data_source.py +6 -6
- pulumi_ns1/get_dns_sec.py +12 -8
- pulumi_ns1/get_monitoring_regions.py +4 -2
- pulumi_ns1/get_networks.py +4 -2
- pulumi_ns1/get_record.py +10 -8
- pulumi_ns1/get_zone.py +4 -2
- pulumi_ns1/monitoring_job.py +30 -28
- pulumi_ns1/notify_list.py +32 -32
- pulumi_ns1/pulumi-plugin.json +1 -2
- pulumi_ns1/record.py +0 -241
- pulumi_ns1/team.py +22 -22
- pulumi_ns1/tsigkey.py +4 -2
- pulumi_ns1/user.py +10 -10
- pulumi_ns1/zone.py +0 -13
- {pulumi_ns1-3.3.0.dist-info → pulumi_ns1-3.3.0a1710996153.dist-info}/METADATA +1 -1
- pulumi_ns1-3.3.0a1710996153.dist-info/RECORD +35 -0
- {pulumi_ns1-3.3.0.dist-info → pulumi_ns1-3.3.0a1710996153.dist-info}/WHEEL +1 -1
- pulumi_ns1/redirect.py +0 -723
- pulumi_ns1/redirect_certificate.py +0 -231
- pulumi_ns1-3.3.0.dist-info/RECORD +0 -37
- {pulumi_ns1-3.3.0.dist-info → pulumi_ns1-3.3.0a1710996153.dist-info}/top_level.txt +0 -0
pulumi_ns1/__init__.py
CHANGED
@@ -22,8 +22,6 @@ from .notify_list import *
|
|
22
22
|
from .provider import *
|
23
23
|
from .pulsar_job import *
|
24
24
|
from .record import *
|
25
|
-
from .redirect import *
|
26
|
-
from .redirect_certificate import *
|
27
25
|
from .subnet import *
|
28
26
|
from .team import *
|
29
27
|
from .tsigkey import *
|
@@ -130,22 +128,6 @@ _utilities.register(
|
|
130
128
|
"ns1:index/record:Record": "Record"
|
131
129
|
}
|
132
130
|
},
|
133
|
-
{
|
134
|
-
"pkg": "ns1",
|
135
|
-
"mod": "index/redirect",
|
136
|
-
"fqn": "pulumi_ns1",
|
137
|
-
"classes": {
|
138
|
-
"ns1:index/redirect:Redirect": "Redirect"
|
139
|
-
}
|
140
|
-
},
|
141
|
-
{
|
142
|
-
"pkg": "ns1",
|
143
|
-
"mod": "index/redirectCertificate",
|
144
|
-
"fqn": "pulumi_ns1",
|
145
|
-
"classes": {
|
146
|
-
"ns1:index/redirectCertificate:RedirectCertificate": "RedirectCertificate"
|
147
|
-
}
|
148
|
-
},
|
149
131
|
{
|
150
132
|
"pkg": "ns1",
|
151
133
|
"mod": "index/subnet",
|
pulumi_ns1/account_whitelist.py
CHANGED
@@ -105,17 +105,17 @@ class AccountWhitelist(pulumi.CustomResource):
|
|
105
105
|
|
106
106
|
## Example Usage
|
107
107
|
|
108
|
+
<!--Start PulumiCodeChooser -->
|
108
109
|
```python
|
109
110
|
import pulumi
|
110
111
|
import pulumi_ns1 as ns1
|
111
112
|
|
112
|
-
example = ns1.AccountWhitelist("example",
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
"2.2.2.2",
|
117
|
-
])
|
113
|
+
example = ns1.AccountWhitelist("example", values=[
|
114
|
+
"1.1.1.1",
|
115
|
+
"2.2.2.2",
|
116
|
+
])
|
118
117
|
```
|
118
|
+
<!--End PulumiCodeChooser -->
|
119
119
|
|
120
120
|
> You current source IP must be present in one of the whitelists to prevent locking yourself out.
|
121
121
|
|
@@ -147,17 +147,17 @@ class AccountWhitelist(pulumi.CustomResource):
|
|
147
147
|
|
148
148
|
## Example Usage
|
149
149
|
|
150
|
+
<!--Start PulumiCodeChooser -->
|
150
151
|
```python
|
151
152
|
import pulumi
|
152
153
|
import pulumi_ns1 as ns1
|
153
154
|
|
154
|
-
example = ns1.AccountWhitelist("example",
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
"2.2.2.2",
|
159
|
-
])
|
155
|
+
example = ns1.AccountWhitelist("example", values=[
|
156
|
+
"1.1.1.1",
|
157
|
+
"2.2.2.2",
|
158
|
+
])
|
160
159
|
```
|
160
|
+
<!--End PulumiCodeChooser -->
|
161
161
|
|
162
162
|
> You current source IP must be present in one of the whitelists to prevent locking yourself out.
|
163
163
|
|
pulumi_ns1/api_key.py
CHANGED
@@ -1144,14 +1144,14 @@ class APIKey(pulumi.CustomResource):
|
|
1144
1144
|
|
1145
1145
|
## Example Usage
|
1146
1146
|
|
1147
|
+
<!--Start PulumiCodeChooser -->
|
1147
1148
|
```python
|
1148
1149
|
import pulumi
|
1149
1150
|
import pulumi_ns1 as ns1
|
1150
1151
|
|
1151
|
-
|
1152
|
-
example_api_key = ns1.APIKey("
|
1153
|
-
|
1154
|
-
teams=[example.id],
|
1152
|
+
example_team = ns1.Team("exampleTeam")
|
1153
|
+
example_api_key = ns1.APIKey("exampleAPIKey",
|
1154
|
+
teams=[example_team.id],
|
1155
1155
|
ip_whitelists=[
|
1156
1156
|
"1.1.1.1",
|
1157
1157
|
"2.2.2.2",
|
@@ -1159,6 +1159,7 @@ class APIKey(pulumi.CustomResource):
|
|
1159
1159
|
dns_view_zones=False,
|
1160
1160
|
account_manage_users=False)
|
1161
1161
|
```
|
1162
|
+
<!--End PulumiCodeChooser -->
|
1162
1163
|
|
1163
1164
|
## Permissions
|
1164
1165
|
|
@@ -1240,14 +1241,14 @@ class APIKey(pulumi.CustomResource):
|
|
1240
1241
|
|
1241
1242
|
## Example Usage
|
1242
1243
|
|
1244
|
+
<!--Start PulumiCodeChooser -->
|
1243
1245
|
```python
|
1244
1246
|
import pulumi
|
1245
1247
|
import pulumi_ns1 as ns1
|
1246
1248
|
|
1247
|
-
|
1248
|
-
example_api_key = ns1.APIKey("
|
1249
|
-
|
1250
|
-
teams=[example.id],
|
1249
|
+
example_team = ns1.Team("exampleTeam")
|
1250
|
+
example_api_key = ns1.APIKey("exampleAPIKey",
|
1251
|
+
teams=[example_team.id],
|
1251
1252
|
ip_whitelists=[
|
1252
1253
|
"1.1.1.1",
|
1253
1254
|
"2.2.2.2",
|
@@ -1255,6 +1256,7 @@ class APIKey(pulumi.CustomResource):
|
|
1255
1256
|
dns_view_zones=False,
|
1256
1257
|
account_manage_users=False)
|
1257
1258
|
```
|
1259
|
+
<!--End PulumiCodeChooser -->
|
1258
1260
|
|
1259
1261
|
## Permissions
|
1260
1262
|
|
pulumi_ns1/application.py
CHANGED
@@ -215,6 +215,28 @@ class Application(pulumi.CustomResource):
|
|
215
215
|
"""
|
216
216
|
Provides a NS1 Pulsar application resource. This can be used to create, modify, and delete applications.
|
217
217
|
|
218
|
+
## Example Usage
|
219
|
+
|
220
|
+
<!--Start PulumiCodeChooser -->
|
221
|
+
```python
|
222
|
+
import pulumi
|
223
|
+
import pulumi_ns1 as ns1
|
224
|
+
|
225
|
+
# Create a new pulsar application with default config
|
226
|
+
ns1_app = ns1.Application("ns1App", default_config=ns1.ApplicationDefaultConfigArgs(
|
227
|
+
http=True,
|
228
|
+
https=False,
|
229
|
+
job_timeout_millis=100,
|
230
|
+
request_timeout_millis=100,
|
231
|
+
static_values=True,
|
232
|
+
))
|
233
|
+
```
|
234
|
+
<!--End PulumiCodeChooser -->
|
235
|
+
|
236
|
+
## NS1 Documentation
|
237
|
+
|
238
|
+
[Application Api Docs](https://ns1.com/api#get-list-pulsar-applications)
|
239
|
+
|
218
240
|
## Import
|
219
241
|
|
220
242
|
```sh
|
@@ -247,6 +269,28 @@ class Application(pulumi.CustomResource):
|
|
247
269
|
"""
|
248
270
|
Provides a NS1 Pulsar application resource. This can be used to create, modify, and delete applications.
|
249
271
|
|
272
|
+
## Example Usage
|
273
|
+
|
274
|
+
<!--Start PulumiCodeChooser -->
|
275
|
+
```python
|
276
|
+
import pulumi
|
277
|
+
import pulumi_ns1 as ns1
|
278
|
+
|
279
|
+
# Create a new pulsar application with default config
|
280
|
+
ns1_app = ns1.Application("ns1App", default_config=ns1.ApplicationDefaultConfigArgs(
|
281
|
+
http=True,
|
282
|
+
https=False,
|
283
|
+
job_timeout_millis=100,
|
284
|
+
request_timeout_millis=100,
|
285
|
+
static_values=True,
|
286
|
+
))
|
287
|
+
```
|
288
|
+
<!--End PulumiCodeChooser -->
|
289
|
+
|
290
|
+
## NS1 Documentation
|
291
|
+
|
292
|
+
[Application Api Docs](https://ns1.com/api#get-list-pulsar-applications)
|
293
|
+
|
250
294
|
## Import
|
251
295
|
|
252
296
|
```sh
|
pulumi_ns1/data_feed.py
CHANGED
@@ -140,35 +140,30 @@ class DataFeed(pulumi.CustomResource):
|
|
140
140
|
|
141
141
|
## Example Usage
|
142
142
|
|
143
|
+
<!--Start PulumiCodeChooser -->
|
143
144
|
```python
|
144
145
|
import pulumi
|
145
146
|
import pulumi_ns1 as ns1
|
146
147
|
|
147
|
-
example = ns1.DataSource("example",
|
148
|
-
|
149
|
-
|
150
|
-
example_monitoring = ns1.DataSource("example_monitoring",
|
151
|
-
name="example_monitoring",
|
152
|
-
sourcetype="nsone_monitoring")
|
153
|
-
uswest_feed = ns1.DataFeed("uswest_feed",
|
154
|
-
name="uswest_feed",
|
148
|
+
example = ns1.DataSource("example", sourcetype="nsone_v1")
|
149
|
+
example_monitoring = ns1.DataSource("exampleMonitoring", sourcetype="nsone_monitoring")
|
150
|
+
uswest_feed = ns1.DataFeed("uswestFeed",
|
155
151
|
source_id=example.id,
|
156
152
|
config={
|
157
153
|
"label": "uswest",
|
158
154
|
})
|
159
|
-
useast_feed = ns1.DataFeed("
|
160
|
-
name="useast_feed",
|
155
|
+
useast_feed = ns1.DataFeed("useastFeed",
|
161
156
|
source_id=example.id,
|
162
157
|
config={
|
163
158
|
"label": "useast",
|
164
159
|
})
|
165
|
-
useast_monitor_feed = ns1.DataFeed("
|
166
|
-
name="useast_monitor_feed",
|
160
|
+
useast_monitor_feed = ns1.DataFeed("useastMonitorFeed",
|
167
161
|
source_id=example_monitoring.id,
|
168
162
|
config={
|
169
|
-
"jobid": example_job["id"],
|
163
|
+
"jobid": ns1_monitoringjob["example_job"]["id"],
|
170
164
|
})
|
171
165
|
```
|
166
|
+
<!--End PulumiCodeChooser -->
|
172
167
|
|
173
168
|
## NS1 Documentation
|
174
169
|
|
@@ -198,35 +193,30 @@ class DataFeed(pulumi.CustomResource):
|
|
198
193
|
|
199
194
|
## Example Usage
|
200
195
|
|
196
|
+
<!--Start PulumiCodeChooser -->
|
201
197
|
```python
|
202
198
|
import pulumi
|
203
199
|
import pulumi_ns1 as ns1
|
204
200
|
|
205
|
-
example = ns1.DataSource("example",
|
206
|
-
|
207
|
-
|
208
|
-
example_monitoring = ns1.DataSource("example_monitoring",
|
209
|
-
name="example_monitoring",
|
210
|
-
sourcetype="nsone_monitoring")
|
211
|
-
uswest_feed = ns1.DataFeed("uswest_feed",
|
212
|
-
name="uswest_feed",
|
201
|
+
example = ns1.DataSource("example", sourcetype="nsone_v1")
|
202
|
+
example_monitoring = ns1.DataSource("exampleMonitoring", sourcetype="nsone_monitoring")
|
203
|
+
uswest_feed = ns1.DataFeed("uswestFeed",
|
213
204
|
source_id=example.id,
|
214
205
|
config={
|
215
206
|
"label": "uswest",
|
216
207
|
})
|
217
|
-
useast_feed = ns1.DataFeed("
|
218
|
-
name="useast_feed",
|
208
|
+
useast_feed = ns1.DataFeed("useastFeed",
|
219
209
|
source_id=example.id,
|
220
210
|
config={
|
221
211
|
"label": "useast",
|
222
212
|
})
|
223
|
-
useast_monitor_feed = ns1.DataFeed("
|
224
|
-
name="useast_monitor_feed",
|
213
|
+
useast_monitor_feed = ns1.DataFeed("useastMonitorFeed",
|
225
214
|
source_id=example_monitoring.id,
|
226
215
|
config={
|
227
|
-
"jobid": example_job["id"],
|
216
|
+
"jobid": ns1_monitoringjob["example_job"]["id"],
|
228
217
|
})
|
229
218
|
```
|
219
|
+
<!--End PulumiCodeChooser -->
|
230
220
|
|
231
221
|
## NS1 Documentation
|
232
222
|
|
pulumi_ns1/data_source.py
CHANGED
@@ -140,14 +140,14 @@ class DataSource(pulumi.CustomResource):
|
|
140
140
|
|
141
141
|
## Example Usage
|
142
142
|
|
143
|
+
<!--Start PulumiCodeChooser -->
|
143
144
|
```python
|
144
145
|
import pulumi
|
145
146
|
import pulumi_ns1 as ns1
|
146
147
|
|
147
|
-
example = ns1.DataSource("example",
|
148
|
-
name="example",
|
149
|
-
sourcetype="nsone_v1")
|
148
|
+
example = ns1.DataSource("example", sourcetype="nsone_v1")
|
150
149
|
```
|
150
|
+
<!--End PulumiCodeChooser -->
|
151
151
|
|
152
152
|
## NS1 Documentation
|
153
153
|
|
@@ -177,14 +177,14 @@ class DataSource(pulumi.CustomResource):
|
|
177
177
|
|
178
178
|
## Example Usage
|
179
179
|
|
180
|
+
<!--Start PulumiCodeChooser -->
|
180
181
|
```python
|
181
182
|
import pulumi
|
182
183
|
import pulumi_ns1 as ns1
|
183
184
|
|
184
|
-
example = ns1.DataSource("example",
|
185
|
-
name="example",
|
186
|
-
sourcetype="nsone_v1")
|
185
|
+
example = ns1.DataSource("example", sourcetype="nsone_v1")
|
187
186
|
```
|
187
|
+
<!--End PulumiCodeChooser -->
|
188
188
|
|
189
189
|
## NS1 Documentation
|
190
190
|
|
pulumi_ns1/get_dns_sec.py
CHANGED
@@ -86,16 +86,18 @@ def get_dns_sec(zone: Optional[str] = None,
|
|
86
86
|
|
87
87
|
## Example Usage
|
88
88
|
|
89
|
+
<!--Start PulumiCodeChooser -->
|
89
90
|
```python
|
90
91
|
import pulumi
|
91
92
|
import pulumi_ns1 as ns1
|
92
93
|
|
93
94
|
# Get DNSSEC details about a NS1 Zone.
|
94
|
-
example_zone = ns1.Zone("
|
95
|
-
|
96
|
-
|
97
|
-
|
95
|
+
example_zone = ns1.Zone("exampleZone",
|
96
|
+
dnssec=True,
|
97
|
+
zone="terraform.example.io")
|
98
|
+
example_dns_sec = ns1.get_dns_sec_output(zone=example_zone.zone)
|
98
99
|
```
|
100
|
+
<!--End PulumiCodeChooser -->
|
99
101
|
|
100
102
|
|
101
103
|
:param str zone: The name of the zone to get DNSSEC details for.
|
@@ -120,16 +122,18 @@ def get_dns_sec_output(zone: Optional[pulumi.Input[str]] = None,
|
|
120
122
|
|
121
123
|
## Example Usage
|
122
124
|
|
125
|
+
<!--Start PulumiCodeChooser -->
|
123
126
|
```python
|
124
127
|
import pulumi
|
125
128
|
import pulumi_ns1 as ns1
|
126
129
|
|
127
130
|
# Get DNSSEC details about a NS1 Zone.
|
128
|
-
example_zone = ns1.Zone("
|
129
|
-
|
130
|
-
|
131
|
-
|
131
|
+
example_zone = ns1.Zone("exampleZone",
|
132
|
+
dnssec=True,
|
133
|
+
zone="terraform.example.io")
|
134
|
+
example_dns_sec = ns1.get_dns_sec_output(zone=example_zone.zone)
|
132
135
|
```
|
136
|
+
<!--End PulumiCodeChooser -->
|
133
137
|
|
134
138
|
|
135
139
|
:param str zone: The name of the zone to get DNSSEC details for.
|
@@ -66,13 +66,14 @@ def get_monitoring_regions(regions: Optional[Sequence[pulumi.InputType['GetMonit
|
|
66
66
|
|
67
67
|
## Example Usage
|
68
68
|
|
69
|
+
<!--Start PulumiCodeChooser -->
|
69
70
|
```python
|
70
71
|
import pulumi
|
71
72
|
import pulumi_ns1 as ns1
|
72
73
|
|
73
|
-
# Get details of all available monitoring regions.
|
74
74
|
example = ns1.get_monitoring_regions()
|
75
75
|
```
|
76
|
+
<!--End PulumiCodeChooser -->
|
76
77
|
|
77
78
|
|
78
79
|
:param Sequence[pulumi.InputType['GetMonitoringRegionsRegionArgs']] regions: A set of the available monitoring regions. Regions is
|
@@ -96,13 +97,14 @@ def get_monitoring_regions_output(regions: Optional[pulumi.Input[Optional[Sequen
|
|
96
97
|
|
97
98
|
## Example Usage
|
98
99
|
|
100
|
+
<!--Start PulumiCodeChooser -->
|
99
101
|
```python
|
100
102
|
import pulumi
|
101
103
|
import pulumi_ns1 as ns1
|
102
104
|
|
103
|
-
# Get details of all available monitoring regions.
|
104
105
|
example = ns1.get_monitoring_regions()
|
105
106
|
```
|
107
|
+
<!--End PulumiCodeChooser -->
|
106
108
|
|
107
109
|
|
108
110
|
:param Sequence[pulumi.InputType['GetMonitoringRegionsRegionArgs']] regions: A set of the available monitoring regions. Regions is
|
pulumi_ns1/get_networks.py
CHANGED
@@ -66,13 +66,14 @@ def get_networks(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNet
|
|
66
66
|
|
67
67
|
## Example Usage
|
68
68
|
|
69
|
+
<!--Start PulumiCodeChooser -->
|
69
70
|
```python
|
70
71
|
import pulumi
|
71
72
|
import pulumi_ns1 as ns1
|
72
73
|
|
73
|
-
# Get details about NS1 Networks.
|
74
74
|
example = ns1.get_networks()
|
75
75
|
```
|
76
|
+
<!--End PulumiCodeChooser -->
|
76
77
|
"""
|
77
78
|
__args__ = dict()
|
78
79
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
@@ -92,12 +93,13 @@ def get_networks_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.O
|
|
92
93
|
|
93
94
|
## Example Usage
|
94
95
|
|
96
|
+
<!--Start PulumiCodeChooser -->
|
95
97
|
```python
|
96
98
|
import pulumi
|
97
99
|
import pulumi_ns1 as ns1
|
98
100
|
|
99
|
-
# Get details about NS1 Networks.
|
100
101
|
example = ns1.get_networks()
|
101
102
|
```
|
103
|
+
<!--End PulumiCodeChooser -->
|
102
104
|
"""
|
103
105
|
...
|
pulumi_ns1/get_record.py
CHANGED
@@ -194,15 +194,16 @@ def get_record(domain: Optional[str] = None,
|
|
194
194
|
|
195
195
|
## Example Usage
|
196
196
|
|
197
|
+
<!--Start PulumiCodeChooser -->
|
197
198
|
```python
|
198
199
|
import pulumi
|
199
200
|
import pulumi_ns1 as ns1
|
200
201
|
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
type="A")
|
202
|
+
example = ns1.get_record(domain="terraform.example.io",
|
203
|
+
type="A",
|
204
|
+
zone="example.io")
|
205
205
|
```
|
206
|
+
<!--End PulumiCodeChooser -->
|
206
207
|
|
207
208
|
|
208
209
|
:param str domain: The records' domain.
|
@@ -245,15 +246,16 @@ def get_record_output(domain: Optional[pulumi.Input[str]] = None,
|
|
245
246
|
|
246
247
|
## Example Usage
|
247
248
|
|
249
|
+
<!--Start PulumiCodeChooser -->
|
248
250
|
```python
|
249
251
|
import pulumi
|
250
252
|
import pulumi_ns1 as ns1
|
251
253
|
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
type="A")
|
254
|
+
example = ns1.get_record(domain="terraform.example.io",
|
255
|
+
type="A",
|
256
|
+
zone="example.io")
|
256
257
|
```
|
258
|
+
<!--End PulumiCodeChooser -->
|
257
259
|
|
258
260
|
|
259
261
|
:param str domain: The records' domain.
|
pulumi_ns1/get_zone.py
CHANGED
@@ -252,13 +252,14 @@ def get_zone(additional_ports: Optional[Sequence[int]] = None,
|
|
252
252
|
|
253
253
|
## Example Usage
|
254
254
|
|
255
|
+
<!--Start PulumiCodeChooser -->
|
255
256
|
```python
|
256
257
|
import pulumi
|
257
258
|
import pulumi_ns1 as ns1
|
258
259
|
|
259
|
-
# Get details about a NS1 Zone.
|
260
260
|
example = ns1.get_zone(zone="terraform.example.io")
|
261
261
|
```
|
262
|
+
<!--End PulumiCodeChooser -->
|
262
263
|
|
263
264
|
|
264
265
|
:param Sequence[str] additional_primaries: List of additional IPv4 addresses for the primary
|
@@ -307,13 +308,14 @@ def get_zone_output(additional_ports: Optional[pulumi.Input[Optional[Sequence[in
|
|
307
308
|
|
308
309
|
## Example Usage
|
309
310
|
|
311
|
+
<!--Start PulumiCodeChooser -->
|
310
312
|
```python
|
311
313
|
import pulumi
|
312
314
|
import pulumi_ns1 as ns1
|
313
315
|
|
314
|
-
# Get details about a NS1 Zone.
|
315
316
|
example = ns1.get_zone(zone="terraform.example.io")
|
316
317
|
```
|
318
|
+
<!--End PulumiCodeChooser -->
|
317
319
|
|
318
320
|
|
319
321
|
:param Sequence[str] additional_primaries: List of additional IPv4 addresses for the primary
|
pulumi_ns1/monitoring_job.py
CHANGED
@@ -564,35 +564,36 @@ class MonitoringJob(pulumi.CustomResource):
|
|
564
564
|
|
565
565
|
## Example Usage
|
566
566
|
|
567
|
+
<!--Start PulumiCodeChooser -->
|
567
568
|
```python
|
568
569
|
import pulumi
|
569
570
|
import pulumi_ns1 as ns1
|
570
571
|
|
571
|
-
uswest_monitor = ns1.MonitoringJob("
|
572
|
-
name="uswest",
|
572
|
+
uswest_monitor = ns1.MonitoringJob("uswestMonitor",
|
573
573
|
active=True,
|
574
|
+
config={
|
575
|
+
"host": "example-elb-uswest.aws.amazon.com",
|
576
|
+
"port": 443,
|
577
|
+
"send": "HEAD / HTTP/1.0\\\\r\\\\n\\\\r\\\\n",
|
578
|
+
"ssl": 1,
|
579
|
+
},
|
580
|
+
frequency=60,
|
581
|
+
job_type="tcp",
|
582
|
+
mute=True,
|
583
|
+
policy="quorum",
|
584
|
+
rapid_recheck=True,
|
574
585
|
regions=[
|
575
586
|
"lga",
|
576
587
|
"sjc",
|
577
588
|
"sin",
|
578
589
|
],
|
579
|
-
job_type="tcp",
|
580
|
-
frequency=60,
|
581
|
-
rapid_recheck=True,
|
582
|
-
policy="quorum",
|
583
|
-
mute=True,
|
584
|
-
config={
|
585
|
-
"ssl": 1,
|
586
|
-
"send": "HEAD / HTTP/1.0\\\\r\\\\n\\\\r\\\\n",
|
587
|
-
"port": 443,
|
588
|
-
"host": "example-elb-uswest.aws.amazon.com",
|
589
|
-
},
|
590
590
|
rules=[ns1.MonitoringJobRuleArgs(
|
591
|
-
value="200 OK",
|
592
591
|
comparison="contains",
|
593
592
|
key="output",
|
593
|
+
value="200 OK",
|
594
594
|
)])
|
595
595
|
```
|
596
|
+
<!--End PulumiCodeChooser -->
|
596
597
|
|
597
598
|
## NS1 Documentation
|
598
599
|
|
@@ -635,35 +636,36 @@ class MonitoringJob(pulumi.CustomResource):
|
|
635
636
|
|
636
637
|
## Example Usage
|
637
638
|
|
639
|
+
<!--Start PulumiCodeChooser -->
|
638
640
|
```python
|
639
641
|
import pulumi
|
640
642
|
import pulumi_ns1 as ns1
|
641
643
|
|
642
|
-
uswest_monitor = ns1.MonitoringJob("
|
643
|
-
name="uswest",
|
644
|
+
uswest_monitor = ns1.MonitoringJob("uswestMonitor",
|
644
645
|
active=True,
|
646
|
+
config={
|
647
|
+
"host": "example-elb-uswest.aws.amazon.com",
|
648
|
+
"port": 443,
|
649
|
+
"send": "HEAD / HTTP/1.0\\\\r\\\\n\\\\r\\\\n",
|
650
|
+
"ssl": 1,
|
651
|
+
},
|
652
|
+
frequency=60,
|
653
|
+
job_type="tcp",
|
654
|
+
mute=True,
|
655
|
+
policy="quorum",
|
656
|
+
rapid_recheck=True,
|
645
657
|
regions=[
|
646
658
|
"lga",
|
647
659
|
"sjc",
|
648
660
|
"sin",
|
649
661
|
],
|
650
|
-
job_type="tcp",
|
651
|
-
frequency=60,
|
652
|
-
rapid_recheck=True,
|
653
|
-
policy="quorum",
|
654
|
-
mute=True,
|
655
|
-
config={
|
656
|
-
"ssl": 1,
|
657
|
-
"send": "HEAD / HTTP/1.0\\\\r\\\\n\\\\r\\\\n",
|
658
|
-
"port": 443,
|
659
|
-
"host": "example-elb-uswest.aws.amazon.com",
|
660
|
-
},
|
661
662
|
rules=[ns1.MonitoringJobRuleArgs(
|
662
|
-
value="200 OK",
|
663
663
|
comparison="contains",
|
664
664
|
key="output",
|
665
|
+
value="200 OK",
|
665
666
|
)])
|
666
667
|
```
|
668
|
+
<!--End PulumiCodeChooser -->
|
667
669
|
|
668
670
|
## NS1 Documentation
|
669
671
|
|