mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 05:05:45 +02:00
Docs: REPP registrar nameserver replacement
This commit is contained in:
parent
909460668d
commit
d2d7bfb386
1 changed files with 28 additions and 22 deletions
|
@ -10,14 +10,14 @@ Accept: application/json
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
Authorization: Basic dGVzdDp0ZXN0dGVzdA==
|
Authorization: Basic dGVzdDp0ZXN0dGVzdA==
|
||||||
{
|
{
|
||||||
"data":{
|
"data": {
|
||||||
"type": "nameserver",
|
"type": "nameserver",
|
||||||
"id": "ns1.example.com",
|
"id": "ns1.example.com",
|
||||||
"attributes": {
|
"attributes": {
|
||||||
"hostname": "new-ns1.example.com",
|
"hostname": "new-ns1.example.com",
|
||||||
"ipv4": ["192.0.2.1", "192.0.2.2"],
|
"ipv4": ["192.0.2.1", "192.0.2.2"],
|
||||||
"ipv6": ["2001:db8::1", "2001:db8::2"]
|
"ipv6": ["2001:db8::1", "2001:db8::2"]
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -27,16 +27,26 @@ Authorization: Basic dGVzdDp0ZXN0dGVzdA==
|
||||||
HTTP/1.1 200
|
HTTP/1.1 200
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
{
|
{
|
||||||
"data":{
|
"code": 1000,
|
||||||
|
"message": "Command completed successfully",
|
||||||
|
"data": {
|
||||||
"type": "nameserver",
|
"type": "nameserver",
|
||||||
"id": "new-ns1.example.com",
|
"id": "new-ns1.example.com",
|
||||||
"attributes": {
|
"attributes": {
|
||||||
"hostname": "new-ns1.example.com",
|
"hostname": "new-ns1.example.com",
|
||||||
"ipv4": ["192.0.2.1", "192.0.2.2"],
|
"ipv4": [
|
||||||
"ipv6": ["2001:db8::1", "2001:db8::2"]
|
"192.0.2.1",
|
||||||
}
|
"192.0.2.2"
|
||||||
|
],
|
||||||
|
"ipv6": [
|
||||||
|
"2001:db8::1",
|
||||||
|
"2001:db8::2"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"affected_domains": ["example.com", "example.org"]
|
"affected_domains": [
|
||||||
|
"private.ee"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -44,14 +54,10 @@ Content-Type: application/json
|
||||||
```
|
```
|
||||||
HTTP/1.1 400
|
HTTP/1.1 400
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
{
|
{
|
||||||
"errors":[
|
"code": 2005,
|
||||||
{
|
"message": "IPv4 is invalid [ipv4]",
|
||||||
"title":"ns1.example.com does not exist"
|
"data": {}
|
||||||
},
|
|
||||||
{
|
|
||||||
"title":"192.0.2.1 is not a valid IPv4 address"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue