- Start
- API-Referenz
- API-Dokumentation (XML/ JSON)
- Auftragstypen
- Domain Restore-Auftragstypen
Domain Restore
Funktion
Der Auftragstyp DomainRestore stellt gelöschte Domains wieder her.
Beschreibung
Route: PUT /domain/{name}/_restore
{
"action": "RESTORE_RENEW"
}{
"stid": "20190701-app-9791",
"status": {
"code": "N0101005",
"text": "Die Wiederherstellung der Domain wurde erfolgreich gestartet.",
"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
}
]
}
Auftragstyp-Code: 0101005
Verwendet Objekt Domain
Kündigung des Typs Preack
Um zu verhindern, dass bei einer Kündigung des Typs PREACK RESTORE-Kosten entstehen, verwende die <action> RESTORE_RENEW. Sie umfasst sowohl RESTORE_ARGP als auch 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>Die Wiederherstellung der Domain wurde erfolgreich gestartet.</text>
<type>notify</type>
<object>
<type>domain</type>
<value>example.com</value>
</object>
</status>
</result>
<stid>20211018-app-6470</stid> </response>