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/notify_list.py
CHANGED
@@ -106,27 +106,27 @@ class NotifyList(pulumi.CustomResource):
|
|
106
106
|
|
107
107
|
## Example Usage
|
108
108
|
|
109
|
+
<!--Start PulumiCodeChooser -->
|
109
110
|
```python
|
110
111
|
import pulumi
|
111
112
|
import pulumi_ns1 as ns1
|
112
113
|
|
113
|
-
nl = ns1.NotifyList("nl",
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
),
|
128
|
-
])
|
114
|
+
nl = ns1.NotifyList("nl", notifications=[
|
115
|
+
ns1.NotifyListNotificationArgs(
|
116
|
+
config={
|
117
|
+
"url": "http://www.mywebhook.com",
|
118
|
+
},
|
119
|
+
type="webhook",
|
120
|
+
),
|
121
|
+
ns1.NotifyListNotificationArgs(
|
122
|
+
config={
|
123
|
+
"email": "test@test.com",
|
124
|
+
},
|
125
|
+
type="email",
|
126
|
+
),
|
127
|
+
])
|
129
128
|
```
|
129
|
+
<!--End PulumiCodeChooser -->
|
130
130
|
|
131
131
|
## NS1 Documentation
|
132
132
|
|
@@ -154,27 +154,27 @@ class NotifyList(pulumi.CustomResource):
|
|
154
154
|
|
155
155
|
## Example Usage
|
156
156
|
|
157
|
+
<!--Start PulumiCodeChooser -->
|
157
158
|
```python
|
158
159
|
import pulumi
|
159
160
|
import pulumi_ns1 as ns1
|
160
161
|
|
161
|
-
nl = ns1.NotifyList("nl",
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
),
|
176
|
-
])
|
162
|
+
nl = ns1.NotifyList("nl", notifications=[
|
163
|
+
ns1.NotifyListNotificationArgs(
|
164
|
+
config={
|
165
|
+
"url": "http://www.mywebhook.com",
|
166
|
+
},
|
167
|
+
type="webhook",
|
168
|
+
),
|
169
|
+
ns1.NotifyListNotificationArgs(
|
170
|
+
config={
|
171
|
+
"email": "test@test.com",
|
172
|
+
},
|
173
|
+
type="email",
|
174
|
+
),
|
175
|
+
])
|
177
176
|
```
|
177
|
+
<!--End PulumiCodeChooser -->
|
178
178
|
|
179
179
|
## NS1 Documentation
|
180
180
|
|
pulumi_ns1/pulumi-plugin.json
CHANGED
pulumi_ns1/record.py
CHANGED
@@ -47,7 +47,6 @@ class RecordArgs:
|
|
47
47
|
just groupings based on metadata, and are called "Answer Groups" in the NS1 UI,
|
48
48
|
but remain `regions` here for legacy reasons. Regions are
|
49
49
|
documented below. Please note the ordering requirement!
|
50
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: map of tags in the form of `"key" = "value"` where both key and value are strings
|
51
50
|
:param pulumi.Input[int] ttl: The records' time to live (in seconds).
|
52
51
|
:param pulumi.Input[bool] use_client_subnet: Whether to use EDNS client subnet data when
|
53
52
|
available(in filter chain).
|
@@ -217,9 +216,6 @@ class RecordArgs:
|
|
217
216
|
@property
|
218
217
|
@pulumi.getter
|
219
218
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
220
|
-
"""
|
221
|
-
map of tags in the form of `"key" = "value"` where both key and value are strings
|
222
|
-
"""
|
223
219
|
return pulumi.get(self, "tags")
|
224
220
|
|
225
221
|
@tags.setter
|
@@ -285,7 +281,6 @@ class _RecordState:
|
|
285
281
|
just groupings based on metadata, and are called "Answer Groups" in the NS1 UI,
|
286
282
|
but remain `regions` here for legacy reasons. Regions are
|
287
283
|
documented below. Please note the ordering requirement!
|
288
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: map of tags in the form of `"key" = "value"` where both key and value are strings
|
289
284
|
:param pulumi.Input[int] ttl: The records' time to live (in seconds).
|
290
285
|
:param pulumi.Input[str] type: The records' RR type.
|
291
286
|
:param pulumi.Input[bool] use_client_subnet: Whether to use EDNS client subnet data when
|
@@ -436,9 +431,6 @@ class _RecordState:
|
|
436
431
|
@property
|
437
432
|
@pulumi.getter
|
438
433
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
439
|
-
"""
|
440
|
-
map of tags in the form of `"key" = "value"` where both key and value are strings
|
441
|
-
"""
|
442
434
|
return pulumi.get(self, "tags")
|
443
435
|
|
444
436
|
@tags.setter
|
@@ -521,120 +513,6 @@ class Record(pulumi.CustomResource):
|
|
521
513
|
"""
|
522
514
|
Provides a NS1 Record resource. This can be used to create, modify, and delete records.
|
523
515
|
|
524
|
-
## Example Usage
|
525
|
-
|
526
|
-
```python
|
527
|
-
import pulumi
|
528
|
-
import json
|
529
|
-
import pulumi_external as external
|
530
|
-
import pulumi_ns1 as ns1
|
531
|
-
import pulumi_std as std
|
532
|
-
|
533
|
-
example = ns1.Zone("example", zone="terraform.example.io")
|
534
|
-
ns1 = ns1.DataSource("ns1",
|
535
|
-
name="ns1_source",
|
536
|
-
sourcetype="nsone_v1")
|
537
|
-
foo = ns1.DataFeed("foo",
|
538
|
-
name="foo_feed",
|
539
|
-
source_id=ns1.id,
|
540
|
-
config={
|
541
|
-
"label": "foo",
|
542
|
-
})
|
543
|
-
bar = ns1.DataFeed("bar",
|
544
|
-
name="bar_feed",
|
545
|
-
source_id=ns1.id,
|
546
|
-
config={
|
547
|
-
"label": "bar",
|
548
|
-
})
|
549
|
-
www = ns1.Record("www",
|
550
|
-
zone=tld["zone"],
|
551
|
-
domain=f"www.{tld['zone']}",
|
552
|
-
type="CNAME",
|
553
|
-
ttl=60,
|
554
|
-
meta={
|
555
|
-
"up": True,
|
556
|
-
},
|
557
|
-
regions=[
|
558
|
-
ns1.RecordRegionArgs(
|
559
|
-
name="east",
|
560
|
-
meta={
|
561
|
-
"georegion": "US-EAST",
|
562
|
-
},
|
563
|
-
),
|
564
|
-
ns1.RecordRegionArgs(
|
565
|
-
name="usa",
|
566
|
-
meta={
|
567
|
-
"country": "US",
|
568
|
-
},
|
569
|
-
),
|
570
|
-
],
|
571
|
-
answers=[
|
572
|
-
ns1.RecordAnswerArgs(
|
573
|
-
answer=f"sub1.{tld['zone']}",
|
574
|
-
region="east",
|
575
|
-
meta={
|
576
|
-
"up": foo.id.apply(lambda id: f"{{\\"feed\\":\\"{id}\\"}}"),
|
577
|
-
},
|
578
|
-
),
|
579
|
-
ns1.RecordAnswerArgs(
|
580
|
-
answer=f"sub2.{tld['zone']}",
|
581
|
-
meta={
|
582
|
-
"up": bar.id.apply(lambda id: f"{{\\"feed\\":\\"{id}\\"}}"),
|
583
|
-
"connections": 3,
|
584
|
-
},
|
585
|
-
),
|
586
|
-
ns1.RecordAnswerArgs(
|
587
|
-
answer=f"sub3.{tld['zone']}",
|
588
|
-
meta={
|
589
|
-
"pulsar": json.dumps([{
|
590
|
-
"job_id": "abcdef",
|
591
|
-
"bias": "*0.55",
|
592
|
-
"a5m_cutoff": 0.9,
|
593
|
-
}]),
|
594
|
-
"subdivisions": json.dumps({
|
595
|
-
"BR": [
|
596
|
-
"SP",
|
597
|
-
"SC",
|
598
|
-
],
|
599
|
-
"DZ": [
|
600
|
-
"01",
|
601
|
-
"02",
|
602
|
-
"03",
|
603
|
-
],
|
604
|
-
}),
|
605
|
-
},
|
606
|
-
),
|
607
|
-
],
|
608
|
-
filters=[ns1.RecordFilterArgs(
|
609
|
-
filter="select_first_n",
|
610
|
-
config={
|
611
|
-
"N": 1,
|
612
|
-
},
|
613
|
-
)])
|
614
|
-
# Some other non-NS1 provider that returns a zone with a trailing dot and a domain with a leading dot.
|
615
|
-
baz = external.index.Source("baz",
|
616
|
-
zone=terraform.example.io.,
|
617
|
-
domain=.www.terraform.example.io)
|
618
|
-
# Basic record showing how to clean a zone or domain field that comes from
|
619
|
-
# another non-NS1 resource. DNS names often end in '.' characters to signify
|
620
|
-
# the root of the DNS tree, but the NS1 provider does not support this.
|
621
|
-
#
|
622
|
-
# In other cases, a domain or zone may be passed in with a preceding dot ('.')
|
623
|
-
# character which would likewise lead the system to fail.
|
624
|
-
external = ns1.Record("external",
|
625
|
-
zone=std.replace(text=zone,
|
626
|
-
search="/(^\\\\.)|(\\\\.$)/",
|
627
|
-
replace="").result,
|
628
|
-
domain=std.replace(text=domain,
|
629
|
-
search="/(^\\\\.)|(\\\\.$)/",
|
630
|
-
replace="").result,
|
631
|
-
type="CNAME")
|
632
|
-
```
|
633
|
-
|
634
|
-
## NS1 Documentation
|
635
|
-
|
636
|
-
[Record Api Doc](https://ns1.com/api#records)
|
637
|
-
|
638
516
|
## Import
|
639
517
|
|
640
518
|
```sh
|
@@ -661,7 +539,6 @@ class Record(pulumi.CustomResource):
|
|
661
539
|
just groupings based on metadata, and are called "Answer Groups" in the NS1 UI,
|
662
540
|
but remain `regions` here for legacy reasons. Regions are
|
663
541
|
documented below. Please note the ordering requirement!
|
664
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: map of tags in the form of `"key" = "value"` where both key and value are strings
|
665
542
|
:param pulumi.Input[int] ttl: The records' time to live (in seconds).
|
666
543
|
:param pulumi.Input[str] type: The records' RR type.
|
667
544
|
:param pulumi.Input[bool] use_client_subnet: Whether to use EDNS client subnet data when
|
@@ -680,120 +557,6 @@ class Record(pulumi.CustomResource):
|
|
680
557
|
"""
|
681
558
|
Provides a NS1 Record resource. This can be used to create, modify, and delete records.
|
682
559
|
|
683
|
-
## Example Usage
|
684
|
-
|
685
|
-
```python
|
686
|
-
import pulumi
|
687
|
-
import json
|
688
|
-
import pulumi_external as external
|
689
|
-
import pulumi_ns1 as ns1
|
690
|
-
import pulumi_std as std
|
691
|
-
|
692
|
-
example = ns1.Zone("example", zone="terraform.example.io")
|
693
|
-
ns1 = ns1.DataSource("ns1",
|
694
|
-
name="ns1_source",
|
695
|
-
sourcetype="nsone_v1")
|
696
|
-
foo = ns1.DataFeed("foo",
|
697
|
-
name="foo_feed",
|
698
|
-
source_id=ns1.id,
|
699
|
-
config={
|
700
|
-
"label": "foo",
|
701
|
-
})
|
702
|
-
bar = ns1.DataFeed("bar",
|
703
|
-
name="bar_feed",
|
704
|
-
source_id=ns1.id,
|
705
|
-
config={
|
706
|
-
"label": "bar",
|
707
|
-
})
|
708
|
-
www = ns1.Record("www",
|
709
|
-
zone=tld["zone"],
|
710
|
-
domain=f"www.{tld['zone']}",
|
711
|
-
type="CNAME",
|
712
|
-
ttl=60,
|
713
|
-
meta={
|
714
|
-
"up": True,
|
715
|
-
},
|
716
|
-
regions=[
|
717
|
-
ns1.RecordRegionArgs(
|
718
|
-
name="east",
|
719
|
-
meta={
|
720
|
-
"georegion": "US-EAST",
|
721
|
-
},
|
722
|
-
),
|
723
|
-
ns1.RecordRegionArgs(
|
724
|
-
name="usa",
|
725
|
-
meta={
|
726
|
-
"country": "US",
|
727
|
-
},
|
728
|
-
),
|
729
|
-
],
|
730
|
-
answers=[
|
731
|
-
ns1.RecordAnswerArgs(
|
732
|
-
answer=f"sub1.{tld['zone']}",
|
733
|
-
region="east",
|
734
|
-
meta={
|
735
|
-
"up": foo.id.apply(lambda id: f"{{\\"feed\\":\\"{id}\\"}}"),
|
736
|
-
},
|
737
|
-
),
|
738
|
-
ns1.RecordAnswerArgs(
|
739
|
-
answer=f"sub2.{tld['zone']}",
|
740
|
-
meta={
|
741
|
-
"up": bar.id.apply(lambda id: f"{{\\"feed\\":\\"{id}\\"}}"),
|
742
|
-
"connections": 3,
|
743
|
-
},
|
744
|
-
),
|
745
|
-
ns1.RecordAnswerArgs(
|
746
|
-
answer=f"sub3.{tld['zone']}",
|
747
|
-
meta={
|
748
|
-
"pulsar": json.dumps([{
|
749
|
-
"job_id": "abcdef",
|
750
|
-
"bias": "*0.55",
|
751
|
-
"a5m_cutoff": 0.9,
|
752
|
-
}]),
|
753
|
-
"subdivisions": json.dumps({
|
754
|
-
"BR": [
|
755
|
-
"SP",
|
756
|
-
"SC",
|
757
|
-
],
|
758
|
-
"DZ": [
|
759
|
-
"01",
|
760
|
-
"02",
|
761
|
-
"03",
|
762
|
-
],
|
763
|
-
}),
|
764
|
-
},
|
765
|
-
),
|
766
|
-
],
|
767
|
-
filters=[ns1.RecordFilterArgs(
|
768
|
-
filter="select_first_n",
|
769
|
-
config={
|
770
|
-
"N": 1,
|
771
|
-
},
|
772
|
-
)])
|
773
|
-
# Some other non-NS1 provider that returns a zone with a trailing dot and a domain with a leading dot.
|
774
|
-
baz = external.index.Source("baz",
|
775
|
-
zone=terraform.example.io.,
|
776
|
-
domain=.www.terraform.example.io)
|
777
|
-
# Basic record showing how to clean a zone or domain field that comes from
|
778
|
-
# another non-NS1 resource. DNS names often end in '.' characters to signify
|
779
|
-
# the root of the DNS tree, but the NS1 provider does not support this.
|
780
|
-
#
|
781
|
-
# In other cases, a domain or zone may be passed in with a preceding dot ('.')
|
782
|
-
# character which would likewise lead the system to fail.
|
783
|
-
external = ns1.Record("external",
|
784
|
-
zone=std.replace(text=zone,
|
785
|
-
search="/(^\\\\.)|(\\\\.$)/",
|
786
|
-
replace="").result,
|
787
|
-
domain=std.replace(text=domain,
|
788
|
-
search="/(^\\\\.)|(\\\\.$)/",
|
789
|
-
replace="").result,
|
790
|
-
type="CNAME")
|
791
|
-
```
|
792
|
-
|
793
|
-
## NS1 Documentation
|
794
|
-
|
795
|
-
[Record Api Doc](https://ns1.com/api#records)
|
796
|
-
|
797
560
|
## Import
|
798
561
|
|
799
562
|
```sh
|
@@ -907,7 +670,6 @@ class Record(pulumi.CustomResource):
|
|
907
670
|
just groupings based on metadata, and are called "Answer Groups" in the NS1 UI,
|
908
671
|
but remain `regions` here for legacy reasons. Regions are
|
909
672
|
documented below. Please note the ordering requirement!
|
910
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: map of tags in the form of `"key" = "value"` where both key and value are strings
|
911
673
|
:param pulumi.Input[int] ttl: The records' time to live (in seconds).
|
912
674
|
:param pulumi.Input[str] type: The records' RR type.
|
913
675
|
:param pulumi.Input[bool] use_client_subnet: Whether to use EDNS client subnet data when
|
@@ -1010,9 +772,6 @@ class Record(pulumi.CustomResource):
|
|
1010
772
|
@property
|
1011
773
|
@pulumi.getter
|
1012
774
|
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
1013
|
-
"""
|
1014
|
-
map of tags in the form of `"key" = "value"` where both key and value are strings
|
1015
|
-
"""
|
1016
775
|
return pulumi.get(self, "tags")
|
1017
776
|
|
1018
777
|
@property
|
pulumi_ns1/team.py
CHANGED
@@ -1063,13 +1063,15 @@ class Team(pulumi.CustomResource):
|
|
1063
1063
|
|
1064
1064
|
## Example Usage
|
1065
1065
|
|
1066
|
+
<!--Start PulumiCodeChooser -->
|
1066
1067
|
```python
|
1067
1068
|
import pulumi
|
1068
1069
|
import pulumi_ns1 as ns1
|
1069
1070
|
|
1070
1071
|
# Create a new NS1 Team
|
1071
1072
|
example = ns1.Team("example",
|
1072
|
-
|
1073
|
+
account_manage_users=False,
|
1074
|
+
dns_view_zones=False,
|
1073
1075
|
ip_whitelists=[
|
1074
1076
|
ns1.TeamIpWhitelistArgs(
|
1075
1077
|
name="whitelist-1",
|
@@ -1085,24 +1087,22 @@ class Team(pulumi.CustomResource):
|
|
1085
1087
|
"4.4.4.4",
|
1086
1088
|
],
|
1087
1089
|
),
|
1088
|
-
]
|
1089
|
-
dns_view_zones=False,
|
1090
|
-
account_manage_users=False)
|
1090
|
+
])
|
1091
1091
|
# Another team
|
1092
1092
|
example2 = ns1.Team("example2",
|
1093
|
-
|
1094
|
-
dns_view_zones=True,
|
1095
|
-
dns_zones_allow_by_default=True,
|
1096
|
-
dns_zones_allows=["mytest.zone"],
|
1097
|
-
dns_zones_denies=["myother.zone"],
|
1093
|
+
data_manage_datasources=True,
|
1098
1094
|
dns_records_allows=[ns1.TeamDnsRecordsAllowArgs(
|
1099
1095
|
domain="terraform.example.io",
|
1100
1096
|
include_subdomains=False,
|
1101
|
-
zone="example.io",
|
1102
1097
|
type="A",
|
1098
|
+
zone="example.io",
|
1103
1099
|
)],
|
1104
|
-
|
1100
|
+
dns_view_zones=True,
|
1101
|
+
dns_zones_allows=["mytest.zone"],
|
1102
|
+
dns_zones_allow_by_default=True,
|
1103
|
+
dns_zones_denies=["myother.zone"])
|
1105
1104
|
```
|
1105
|
+
<!--End PulumiCodeChooser -->
|
1106
1106
|
|
1107
1107
|
## NS1 Documentation
|
1108
1108
|
|
@@ -1164,13 +1164,15 @@ class Team(pulumi.CustomResource):
|
|
1164
1164
|
|
1165
1165
|
## Example Usage
|
1166
1166
|
|
1167
|
+
<!--Start PulumiCodeChooser -->
|
1167
1168
|
```python
|
1168
1169
|
import pulumi
|
1169
1170
|
import pulumi_ns1 as ns1
|
1170
1171
|
|
1171
1172
|
# Create a new NS1 Team
|
1172
1173
|
example = ns1.Team("example",
|
1173
|
-
|
1174
|
+
account_manage_users=False,
|
1175
|
+
dns_view_zones=False,
|
1174
1176
|
ip_whitelists=[
|
1175
1177
|
ns1.TeamIpWhitelistArgs(
|
1176
1178
|
name="whitelist-1",
|
@@ -1186,24 +1188,22 @@ class Team(pulumi.CustomResource):
|
|
1186
1188
|
"4.4.4.4",
|
1187
1189
|
],
|
1188
1190
|
),
|
1189
|
-
]
|
1190
|
-
dns_view_zones=False,
|
1191
|
-
account_manage_users=False)
|
1191
|
+
])
|
1192
1192
|
# Another team
|
1193
1193
|
example2 = ns1.Team("example2",
|
1194
|
-
|
1195
|
-
dns_view_zones=True,
|
1196
|
-
dns_zones_allow_by_default=True,
|
1197
|
-
dns_zones_allows=["mytest.zone"],
|
1198
|
-
dns_zones_denies=["myother.zone"],
|
1194
|
+
data_manage_datasources=True,
|
1199
1195
|
dns_records_allows=[ns1.TeamDnsRecordsAllowArgs(
|
1200
1196
|
domain="terraform.example.io",
|
1201
1197
|
include_subdomains=False,
|
1202
|
-
zone="example.io",
|
1203
1198
|
type="A",
|
1199
|
+
zone="example.io",
|
1204
1200
|
)],
|
1205
|
-
|
1201
|
+
dns_view_zones=True,
|
1202
|
+
dns_zones_allows=["mytest.zone"],
|
1203
|
+
dns_zones_allow_by_default=True,
|
1204
|
+
dns_zones_denies=["myother.zone"])
|
1206
1205
|
```
|
1206
|
+
<!--End PulumiCodeChooser -->
|
1207
1207
|
|
1208
1208
|
## NS1 Documentation
|
1209
1209
|
|
pulumi_ns1/tsigkey.py
CHANGED
@@ -135,15 +135,16 @@ class Tsigkey(pulumi.CustomResource):
|
|
135
135
|
|
136
136
|
## Example Usage
|
137
137
|
|
138
|
+
<!--Start PulumiCodeChooser -->
|
138
139
|
```python
|
139
140
|
import pulumi
|
140
141
|
import pulumi_ns1 as ns1
|
141
142
|
|
142
143
|
example = ns1.Tsigkey("example",
|
143
|
-
name="ExampleTsigKey",
|
144
144
|
algorithm="hmac-sha256",
|
145
145
|
secret="Ok1qR5IW1ajVka5cHPEJQIXfLyx5V3PSkFBROAzOn21JumDq6nIpoj6H8rfj5Uo+Ok55ZWQ0Wgrf302fDscHLA==")
|
146
146
|
```
|
147
|
+
<!--End PulumiCodeChooser -->
|
147
148
|
## NS1 Documentation
|
148
149
|
|
149
150
|
[TSIG Keys Api Doc](https://ns1.com/api/#tsig)
|
@@ -171,15 +172,16 @@ class Tsigkey(pulumi.CustomResource):
|
|
171
172
|
|
172
173
|
## Example Usage
|
173
174
|
|
175
|
+
<!--Start PulumiCodeChooser -->
|
174
176
|
```python
|
175
177
|
import pulumi
|
176
178
|
import pulumi_ns1 as ns1
|
177
179
|
|
178
180
|
example = ns1.Tsigkey("example",
|
179
|
-
name="ExampleTsigKey",
|
180
181
|
algorithm="hmac-sha256",
|
181
182
|
secret="Ok1qR5IW1ajVka5cHPEJQIXfLyx5V3PSkFBROAzOn21JumDq6nIpoj6H8rfj5Uo+Ok55ZWQ0Wgrf302fDscHLA==")
|
182
183
|
```
|
184
|
+
<!--End PulumiCodeChooser -->
|
183
185
|
## NS1 Documentation
|
184
186
|
|
185
187
|
[TSIG Keys Api Doc](https://ns1.com/api/#tsig)
|
pulumi_ns1/user.py
CHANGED
@@ -1199,27 +1199,27 @@ class User(pulumi.CustomResource):
|
|
1199
1199
|
|
1200
1200
|
## Example Usage
|
1201
1201
|
|
1202
|
+
<!--Start PulumiCodeChooser -->
|
1202
1203
|
```python
|
1203
1204
|
import pulumi
|
1204
1205
|
import pulumi_ns1 as ns1
|
1205
1206
|
|
1206
|
-
|
1207
|
-
name="Example team",
|
1207
|
+
example_team = ns1.Team("exampleTeam",
|
1208
1208
|
ip_whitelists=[
|
1209
1209
|
"1.1.1.1",
|
1210
1210
|
"2.2.2.2",
|
1211
1211
|
],
|
1212
1212
|
dns_view_zones=False,
|
1213
1213
|
account_manage_users=False)
|
1214
|
-
example_user = ns1.User("
|
1215
|
-
name="Example User",
|
1214
|
+
example_user = ns1.User("exampleUser",
|
1216
1215
|
username="example_user",
|
1217
1216
|
email="user@example.com",
|
1218
|
-
teams=[
|
1217
|
+
teams=[example_team.id],
|
1219
1218
|
notify={
|
1220
1219
|
"billing": False,
|
1221
1220
|
})
|
1222
1221
|
```
|
1222
|
+
<!--End PulumiCodeChooser -->
|
1223
1223
|
|
1224
1224
|
## Permissions
|
1225
1225
|
|
@@ -1298,27 +1298,27 @@ class User(pulumi.CustomResource):
|
|
1298
1298
|
|
1299
1299
|
## Example Usage
|
1300
1300
|
|
1301
|
+
<!--Start PulumiCodeChooser -->
|
1301
1302
|
```python
|
1302
1303
|
import pulumi
|
1303
1304
|
import pulumi_ns1 as ns1
|
1304
1305
|
|
1305
|
-
|
1306
|
-
name="Example team",
|
1306
|
+
example_team = ns1.Team("exampleTeam",
|
1307
1307
|
ip_whitelists=[
|
1308
1308
|
"1.1.1.1",
|
1309
1309
|
"2.2.2.2",
|
1310
1310
|
],
|
1311
1311
|
dns_view_zones=False,
|
1312
1312
|
account_manage_users=False)
|
1313
|
-
example_user = ns1.User("
|
1314
|
-
name="Example User",
|
1313
|
+
example_user = ns1.User("exampleUser",
|
1315
1314
|
username="example_user",
|
1316
1315
|
email="user@example.com",
|
1317
|
-
teams=[
|
1316
|
+
teams=[example_team.id],
|
1318
1317
|
notify={
|
1319
1318
|
"billing": False,
|
1320
1319
|
})
|
1321
1320
|
```
|
1321
|
+
<!--End PulumiCodeChooser -->
|
1322
1322
|
|
1323
1323
|
## Permissions
|
1324
1324
|
|
pulumi_ns1/zone.py
CHANGED
@@ -60,7 +60,6 @@ class ZoneArgs:
|
|
60
60
|
:param pulumi.Input[Sequence[pulumi.Input['ZoneSecondaryArgs']]] secondaries: List of secondary servers. This makes the zone a
|
61
61
|
primary. Conflicts with `primary` and `additional_primaries`.
|
62
62
|
Secondaries is documented below.
|
63
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: map of tags in the form of `"key" = "value"` where both key and value are strings
|
64
63
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tsig: TSIG is documented below
|
65
64
|
:param pulumi.Input[int] ttl: The SOA TTL.
|
66
65
|
"""
|
@@ -286,9 +285,6 @@ class ZoneArgs:
|
|
286
285
|
@property
|
287
286
|
@pulumi.getter
|
288
287
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
289
|
-
"""
|
290
|
-
map of tags in the form of `"key" = "value"` where both key and value are strings
|
291
|
-
"""
|
292
288
|
return pulumi.get(self, "tags")
|
293
289
|
|
294
290
|
@tags.setter
|
@@ -368,7 +364,6 @@ class _ZoneState:
|
|
368
364
|
:param pulumi.Input[Sequence[pulumi.Input['ZoneSecondaryArgs']]] secondaries: List of secondary servers. This makes the zone a
|
369
365
|
primary. Conflicts with `primary` and `additional_primaries`.
|
370
366
|
Secondaries is documented below.
|
371
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: map of tags in the form of `"key" = "value"` where both key and value are strings
|
372
367
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tsig: TSIG is documented below
|
373
368
|
:param pulumi.Input[int] ttl: The SOA TTL.
|
374
369
|
:param pulumi.Input[str] zone: The domain name of the zone.
|
@@ -598,9 +593,6 @@ class _ZoneState:
|
|
598
593
|
@property
|
599
594
|
@pulumi.getter
|
600
595
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
601
|
-
"""
|
602
|
-
map of tags in the form of `"key" = "value"` where both key and value are strings
|
603
|
-
"""
|
604
596
|
return pulumi.get(self, "tags")
|
605
597
|
|
606
598
|
@tags.setter
|
@@ -706,7 +698,6 @@ class Zone(pulumi.CustomResource):
|
|
706
698
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ZoneSecondaryArgs']]]] secondaries: List of secondary servers. This makes the zone a
|
707
699
|
primary. Conflicts with `primary` and `additional_primaries`.
|
708
700
|
Secondaries is documented below.
|
709
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: map of tags in the form of `"key" = "value"` where both key and value are strings
|
710
701
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tsig: TSIG is documented below
|
711
702
|
:param pulumi.Input[int] ttl: The SOA TTL.
|
712
703
|
:param pulumi.Input[str] zone: The domain name of the zone.
|
@@ -853,7 +844,6 @@ class Zone(pulumi.CustomResource):
|
|
853
844
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ZoneSecondaryArgs']]]] secondaries: List of secondary servers. This makes the zone a
|
854
845
|
primary. Conflicts with `primary` and `additional_primaries`.
|
855
846
|
Secondaries is documented below.
|
856
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: map of tags in the form of `"key" = "value"` where both key and value are strings
|
857
847
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tsig: TSIG is documented below
|
858
848
|
:param pulumi.Input[int] ttl: The SOA TTL.
|
859
849
|
:param pulumi.Input[str] zone: The domain name of the zone.
|
@@ -1009,9 +999,6 @@ class Zone(pulumi.CustomResource):
|
|
1009
999
|
@property
|
1010
1000
|
@pulumi.getter
|
1011
1001
|
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
1012
|
-
"""
|
1013
|
-
map of tags in the form of `"key" = "value"` where both key and value are strings
|
1014
|
-
"""
|
1015
1002
|
return pulumi.get(self, "tags")
|
1016
1003
|
|
1017
1004
|
@property
|