20
20
description:
21
21
- Get NAT gateway info from the OTC.
22
22
options:
23
- created_at:
24
- description:
25
- - Time when the zone was created
26
- type: str
27
23
description:
28
24
description:
29
25
- DNS Zone Description
60
56
description:
61
57
- TTL value of the SOA record set in the zone
62
58
type: int
63
- updated_at:
64
- description:
65
- - Time when the zone was updated
66
- type: str
67
59
zone_type:
68
60
description:
69
61
- DNS Zone type
83
75
type: complex
84
76
returned: On Success.
85
77
contains:
86
- created_at:
87
- description: Time when the zone was created
88
- type: str
89
- sample: "2020-09-10T19:40:29.362"
90
78
description:
91
79
description: Description of the zone
92
80
type: str
123
111
description: TTL value of the SOA record set in the zone
124
112
type: int
125
113
sample: 300
126
- updated_at:
127
- description: Time when the zone was updated
128
- type: str
129
- sample: "2020-09-10T19:40:29.362"
130
114
zone_type:
131
115
description: DNS Zone type
132
116
type: str
160
144
161
145
class DNSZoneInfoModule (OTCModule ):
162
146
argument_spec = dict (
163
- created_at = dict (required = False ),
164
147
description = dict (required = False ),
165
148
email = dict (required = False ),
166
149
name = dict (required = False ),
@@ -170,7 +153,6 @@ class DNSZoneInfoModule(OTCModule):
170
153
serial = dict (required = False , type = 'int' ),
171
154
status = dict (required = False ),
172
155
ttl = dict (required = False , type = 'int' ),
173
- updated_at = dict (required = False ),
174
156
zone_type = dict (required = True ),
175
157
zone_id = dict (required = False )
176
158
)
@@ -241,16 +223,6 @@ def run(self):
241
223
del data [i ]
242
224
i = 0
243
225
continue
244
- if self .params ['created_at' ]:
245
- if data [i ]['created_at' ] != self .params ['created_at' ]:
246
- del data [i ]
247
- i = 0
248
- continue
249
- if self .params ['updated_at' ]:
250
- if data [i ]['updated_at' ] != self .params ['updated_at' ]:
251
- del data [i ]
252
- i = 0
253
- continue
254
226
i = i + 1
255
227
256
228
self .exit (
0 commit comments