|
|
@ -5,60 +5,69 @@ This is a commandline tool for knotapi
|
|
|
|
https://gitlab.nic.cz/knot/knot-dns-rest
|
|
|
|
https://gitlab.nic.cz/knot/knot-dns-rest
|
|
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
usage: knotctl [-h] [--json | --no-json] {add,delete,list,config,update} ...
|
|
|
|
usage: knotctl [-h] [--json | --no-json] {add,config,delete,list,update} ...
|
|
|
|
positional arguments: {add,delete,list,config,update}
|
|
|
|
|
|
|
|
|
|
|
|
positional arguments:
|
|
|
|
|
|
|
|
{add,config,delete,list,update}
|
|
|
|
|
|
|
|
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
--json, --no-json
|
|
|
|
--json, --no-json
|
|
|
|
```
|
|
|
|
```
|
|
|
|
### Add
|
|
|
|
### ADD
|
|
|
|
```
|
|
|
|
```
|
|
|
|
usage: knotctl add [-h] [-d [DATA ...]] [-n NAME] [-r RTYPE] -z ZONE
|
|
|
|
usage: knotctl add [-h] -d DATA -n NAME -r RTYPE -t TTL -z ZONE
|
|
|
|
|
|
|
|
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
-d [DATA ...], --data [DATA ...] Specify any number of key - value pairs: name=dns1.example.com.
|
|
|
|
-d DATA, --data DATA
|
|
|
|
-n NAME, --name NAME
|
|
|
|
-n NAME, --name NAME
|
|
|
|
-r RTYPE, --rtype RTYPE
|
|
|
|
-r RTYPE, --rtype RTYPE
|
|
|
|
|
|
|
|
-t TTL, --ttl TTL
|
|
|
|
-z ZONE, --zone ZONE
|
|
|
|
-z ZONE, --zone ZONE
|
|
|
|
```
|
|
|
|
```
|
|
|
|
### Delete
|
|
|
|
### CONFIG
|
|
|
|
```
|
|
|
|
```
|
|
|
|
usage: knotctl delete [-h] [-d [DATA ...]] [-n NAME] [-r RTYPE] -z ZONE
|
|
|
|
usage: knotctl config [-h] [-b BASEURL] [-p PASSWORD] [-u USERNAME]
|
|
|
|
|
|
|
|
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
-d [DATA ...], --data [DATA ...] Specify any number of key - value pairs: name=dns1.example.com.
|
|
|
|
-b BASEURL, --baseurl BASEURL
|
|
|
|
-n NAME, --name NAME
|
|
|
|
-p PASSWORD, --password PASSWORD
|
|
|
|
-r RTYPE, --rtype RTYPE
|
|
|
|
-u USERNAME, --username USERNAME
|
|
|
|
-z ZONE, --zone ZONE
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
### List
|
|
|
|
### DELETE
|
|
|
|
```
|
|
|
|
```
|
|
|
|
usage: knotctl list [-h] [-d [DATA ...]] [-n NAME] [-r RTYPE] [-z ZONE]
|
|
|
|
usage: knotctl delete [-h] [-d DATA] [-n NAME] [-r RTYPE] -z ZONE
|
|
|
|
|
|
|
|
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
-d [DATA ...], --data [DATA ...] Specify any number of key - value pairs: name=dns1.example.com.
|
|
|
|
-d DATA, --data DATA
|
|
|
|
-n NAME, --name NAME
|
|
|
|
-n NAME, --name NAME
|
|
|
|
-r RTYPE, --rtype RTYPE
|
|
|
|
-r RTYPE, --rtype RTYPE
|
|
|
|
-z ZONE, --zone ZONE
|
|
|
|
-z ZONE, --zone ZONE
|
|
|
|
```
|
|
|
|
```
|
|
|
|
### Config
|
|
|
|
### LIST
|
|
|
|
```
|
|
|
|
```
|
|
|
|
usage: knotctl config [-h] [-b BASEURL] [-p PASSWORD] [-u USERNAME]
|
|
|
|
usage: knotctl list [-h] [-d DATA] [-n NAME] [-r RTYPE] [-z ZONE]
|
|
|
|
|
|
|
|
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
-b BASEURL, --baseurl BASEURL
|
|
|
|
-d DATA, --data DATA
|
|
|
|
-p PASSWORD, --password PASSWORD
|
|
|
|
-n NAME, --name NAME
|
|
|
|
-u USERNAME, --username USERNAME
|
|
|
|
-r RTYPE, --rtype RTYPE
|
|
|
|
|
|
|
|
-z ZONE, --zone ZONE
|
|
|
|
```
|
|
|
|
```
|
|
|
|
### Update
|
|
|
|
### UPDATE
|
|
|
|
```
|
|
|
|
```
|
|
|
|
usage: knotctl update [-h] -d [DATA ...] -n NAME -r RTYPE -z ZONE
|
|
|
|
usage: knotctl update [-h] -d DATA -n NAME -r RTYPE -t TTL -z ZONE
|
|
|
|
|
|
|
|
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
-d [DATA ...], --data [DATA ...] Specify any number of key - value pairs: name=dns1.example.com.
|
|
|
|
-d DATA, --data DATA
|
|
|
|
-n NAME, --name NAME
|
|
|
|
-n NAME, --name NAME
|
|
|
|
-r RTYPE, --rtype RTYPE
|
|
|
|
-r RTYPE, --rtype RTYPE
|
|
|
|
|
|
|
|
-t TTL, --ttl TTL
|
|
|
|
-z ZONE, --zone ZONE
|
|
|
|
-z ZONE, --zone ZONE
|
|
|
|
```
|
|
|
|
```
|
|
|
|