Skip to content

Commit 4b2a3c0

Browse files
committed
introduce import and unmanage option for createDnsZone and deleteDnsZone
1 parent 232b50a commit 4b2a3c0

4 files changed

Lines changed: 23 additions & 2 deletions

File tree

26 KB
Loading
9.27 KB
Loading
-41.9 KB
Loading

source/adminguide/networking/dns_framework.rst

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ Using the API:
255255

256256
.. code:: bash
257257
258-
cmk create dnszone dnsserverid=<dns-server-id> name="example.com" description="Example DNS zone"
258+
cmk create dnszone dnsserverid=<dns-server-id> name="example.com" import=false description="Example DNS zone"
259259
260260
261261
**Parameters**
@@ -276,6 +276,9 @@ Using the API:
276276
* - ``description``
277277
- No
278278
- The description of the DNS zone
279+
* - ``import``
280+
- No
281+
- If true, imports an existing DNS zone from the external DNS provider into CloudStack; if false, creates a new DNS zone in both CloudStack and the DNS provider. **Default**: ``false``
279282

280283

281284
Listing DNS Zones
@@ -322,7 +325,25 @@ Using the API:
322325

323326
.. code:: bash
324327
325-
cmk delete dnszone id=<zone-id>
328+
cmk delete dnszone id=<zone-id> unmanage=false
329+
330+
331+
**Parameters**
332+
333+
.. list-table::
334+
:widths: 20 15 65
335+
:header-rows: 1
336+
337+
* - Name
338+
- Required
339+
- Description
340+
* - ``id``
341+
- Yes
342+
- The ID of the DNS zone
343+
* - ``unmanage``
344+
- No
345+
- If false, removes it from both CloudStack and the DNS provider, if true, removes the DNS zone only from CloudStack. **Default**: ``false``
346+
326347

327348
.. note:: Deleting a DNS zone will also delete all DNS records within that zone.
328349

0 commit comments

Comments
 (0)