Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
titleColor#FFFFFF
titleBGColor#E44313
titleTable of Contents

Table of Contents
outlinetrue
stylenone

Function

The ZoneDelete task deletes a zone entry.

Info

The keyword force_unused in the default block can be used to prevent deletion of zones that are still in use (XML only).

Description

SP Tabs group
dispositionhorizontal
SP Tab pane
anchor2286824
nameJSON

Route:  /zone/{name}/{nameserver}             or  :  or : /zone/{name}

No body has to be sent with the request.

Code Block
languagejs
titleRequest
linenumberstrue
collapsetrue
DELETE/zone/{example.com}/{ns1.example.com}
Code Block
titleResponse
linenumberstrue
collapsetrue
{
   "stid": "20190701-app3-dev-11942",
   "status": {
      "code": "S0203",
      "text": "Zone was deleted successfully from the name server."
.",
      "type": "SUCCESS"
   },
   "object": {
      "type": "Zone",
      "value": "example.com"
   }
}
SP Tab pane
anchor87031
nameXML

Task code: 0203
Uses Zone object

Code Block
languagexml
titleRequest
linenumberstrue
collapsetrue
<request>
	<auth>
		<user>customer</user>
		<password>password</password>
		<context>4</context>
	</auth>
	<task>
		<code>0203</code>
		<zone>
			<name>example.com</name>
			<system_ns>ns1.example.com</system_ns>
		</zone>
	</task>
</request>
Code Block
languagexml
titleResponse
linenumberstrue
collapsetrue
<response>
	<result>
		<status>
			<code>S0203</code>
			<text>Zone was deleted successfully from the name server.</text>
			<type>success</type>
			<object>
				<type>zone</type>
				<value>example.com</value>
			</object>
		</status>
	</result>
</response>