- Home
- API reference
- API documentation (JSON/XML)
- Tasks
- Domain restore tasks
Domain restore
Function
The DomainRestore task restores deleted domains.
Description
Route: PUT /domain/{name}/_restore
{
"action": "RESTORE_RENEW"
}{
"stid": "20190701-app-9791",
"status": {
"code": "N0101005",
"text": "Domain restore was started successfully.",
"type": "NOTIFY"
},
"object": {
"type": "Domain",
"value": "example.com"
},
"data": [
{
"created": "2019-07-01T10:51:27.000+0200",
"updated": "2019-07-01T10:51:26.000+0200",
"owner": {
"context": 4,
"user": "customer"
},
"updater": {
"context": 4,
"user": "customer"
},
"status": "RUNNING",
"execution": "2019-07-01T10:51:26.000+0200",
"id": 4297543154
}
]
}
Task code: 0101005
Uses Restore object
Kündigung des Typs Preack
To prevent RESTORE costs from being incurred on a PREACK type termination, use the <action> RESTORE_RENEW. It includes both RESTORE_ARGP and RESTORE_NE (Not expired).
<request>
<auth>
<user>customer</user>
<password>password</password>
<context>4</context>
</auth>
<task>
<code>0101005</code>
<domain>
<name>example.com</name>
<action>RESTORE_RENEW</action>
</domain>
<reply_to>customer@example.com</reply_to>
<ctid>ABCDEFG</ctid>
</task>
</request><response>
<result>
<data>
<domain_job>
<job>
<id>4310307589</id>
<status>RUNNING</status>
</job>
</domain_job>
</data>
<status>
<code>N0101005</code>
<text>Domain restore was started successfully.</text>
<type>notify</type>
<object>
<type>domain</type>
<value>example.com</value>
</object>
</status>
</result>
<stid>20211018-app-6470</stid> </response>