You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit eb460aa
Browse filesBrowse the repository at this point in the historyBrowse files
The API call this command makes is always performed against the destination project (--target-project-id). Moving requires an authorizing move code for the zone, which can be obtained in one of two ways:
9
+
- Generated automatically by this command: omit --code. The configured project is then used to look up the zone and must be its current project. The generated move code is valid for 1 hour.
10
+
- Generated beforehand, by yourself or by whoever controls the zone's current project, via "stackit dns zone generate-move-code" (and optionally checked with "stackit dns zone validate-move-code"), then passed explicitly via --code. The configured project isn't used for the move itself in this case.
11
+
12
+
```
13
+
stackit dns zone move [flags]
14
+
```
15
+
16
+
### Examples
17
+
18
+
```
19
+
Move a DNS zone with domain name "www.my-zone.com" to project "xxx", automatically generating a move code against the zone's current project
20
+
$ stackit dns zone move --zone-domain-name www.my-zone.com --target-project-id xxx
21
+
22
+
Move a DNS zone with domain name "www.my-zone.com" from project "yyy" to project "xxx", automatically generating a move code. --project-id explicitly sets the source project, i.e. the zone's current project
23
+
$ stackit dns zone move --project-id yyy --zone-domain-name www.my-zone.com --target-project-id xxx
24
+
25
+
Move a DNS zone with domain name "www.my-zone.com" to project "xxx" using a move code generated beforehand (e.g. via "stackit dns zone generate-move-code")
26
+
$ stackit dns zone move --zone-domain-name www.my-zone.com --target-project-id xxx --code @./move-code.txt
27
+
```
28
+
29
+
### Options
30
+
31
+
```
32
+
--code secret Code. Use @<file> to read from a file (example: @./secret.txt), or - to read from stdin (hidden input on a terminal). Literal values are not supported. If not set, a move code is generated automatically for the zone in the configured project, which must then be the zone's current project.
33
+
-h, --help Help for "stackit dns zone move"
34
+
--target-project-id string ID of the project the zone should be moved to
35
+
--zone-domain-name string Domain name of the zone to move
36
+
```
37
+
38
+
### Options inherited from parent commands
39
+
40
+
```
41
+
-y, --assume-yes If set, skips all confirmation prompts
Validates the move code of a DNS zone. Checks that the provided code is valid, not expired, and belongs to the given zone.
8
+
9
+
```
10
+
stackit dns zone validate-move-code ZONE_ID [flags]
11
+
```
12
+
13
+
### Examples
14
+
15
+
```
16
+
Validate the move code stored in "move-code.txt" of a DNS zone with ID "xxx"
17
+
$ stackit dns zone validate-move-code xxx --code @./move-code.txt
18
+
19
+
Validate a move code read from stdin for a DNS zone with ID "xxx"
20
+
$ echo yyy | stackit dns zone validate-move-code xxx --code -
21
+
```
22
+
23
+
### Options
24
+
25
+
```
26
+
--code secret Code. Use @<file> to read from a file (example: @./secret.txt), or - to read from stdin (hidden input on a terminal). Literal values are not supported.
27
+
-h, --help Help for "stackit dns zone validate-move-code"
28
+
```
29
+
30
+
### Options inherited from parent commands
31
+
32
+
```
33
+
-y, --assume-yes If set, skips all confirmation prompts
0 commit comments