Skip to content

Commit eb460aa

Browse files
Merge branch 'main' into feat/scf-organization-sub-resources
2 parents d462d01 + 2c3fa18 commit eb460aa

18 files changed

Lines changed: 1795 additions & 18 deletions

‎docs/stackit_dns_zone.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ stackit dns zone [flags]
3333
* [stackit dns zone clone](./stackit_dns_zone_clone.md) - Clones a DNS zone
3434
* [stackit dns zone create](./stackit_dns_zone_create.md) - Creates a DNS zone
3535
* [stackit dns zone delete](./stackit_dns_zone_delete.md) - Deletes a DNS zone
36+
* [stackit dns zone delete-move-code](./stackit_dns_zone_delete-move-code.md) - Deletes the move code of a DNS zone
3637
* [stackit dns zone describe](./stackit_dns_zone_describe.md) - Shows details of a DNS zone
38+
* [stackit dns zone generate-move-code](./stackit_dns_zone_generate-move-code.md) - Generates a move code for a DNS zone
3739
* [stackit dns zone list](./stackit_dns_zone_list.md) - Lists DNS zones
40+
* [stackit dns zone move](./stackit_dns_zone_move.md) - Moves a DNS zone to another project
3841
* [stackit dns zone update](./stackit_dns_zone_update.md) - Updates a DNS zone
42+
* [stackit dns zone validate-move-code](./stackit_dns_zone_validate-move-code.md) - Validates the move code of a DNS zone
3943

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## stackit dns zone delete-move-code
2+
3+
Deletes the move code of a DNS zone
4+
5+
### Synopsis
6+
7+
Deletes (invalidates) the move code of a DNS zone, so it can no longer be used to move the zone to another project.
8+
9+
```
10+
stackit dns zone delete-move-code ZONE_ID [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Delete the move code of a DNS zone with ID "xxx"
17+
$ stackit dns zone delete-move-code xxx
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit dns zone delete-move-code"
24+
```
25+
26+
### Options inherited from parent commands
27+
28+
```
29+
-y, --assume-yes If set, skips all confirmation prompts
30+
--async If set, runs the command asynchronously
31+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
32+
-p, --project-id string Project ID
33+
--region string Target region for region-specific requests
34+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
35+
```
36+
37+
### SEE ALSO
38+
39+
* [stackit dns zone](./stackit_dns_zone.md) - Provides functionality for DNS zones
40+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## stackit dns zone generate-move-code
2+
3+
Generates a move code for a DNS zone
4+
5+
### Synopsis
6+
7+
Generates a move code for a DNS zone, which is required to move the zone to another project.
8+
The code is only shown once upon creation, so make sure to save it. By default, the code is valid for 30 days.
9+
10+
```
11+
stackit dns zone generate-move-code ZONE_ID [flags]
12+
```
13+
14+
### Examples
15+
16+
```
17+
Generate a move code for a DNS zone with ID "xxx"
18+
$ stackit dns zone generate-move-code xxx
19+
20+
Generate a move code for a DNS zone with ID "xxx" that is valid for one hour
21+
$ stackit dns zone generate-move-code xxx --ttl 3600
22+
```
23+
24+
### Options
25+
26+
```
27+
-h, --help Help for "stackit dns zone generate-move-code"
28+
--ttl int32 Validity duration of the move code in seconds (min 1, max 2592000 / 30 days). If not set, the API default is used
29+
```
30+
31+
### Options inherited from parent commands
32+
33+
```
34+
-y, --assume-yes If set, skips all confirmation prompts
35+
--async If set, runs the command asynchronously
36+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
37+
-p, --project-id string Project ID
38+
--region string Target region for region-specific requests
39+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
40+
```
41+
42+
### SEE ALSO
43+
44+
* [stackit dns zone](./stackit_dns_zone.md) - Provides functionality for DNS zones
45+

‎docs/stackit_dns_zone_move.md‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
## stackit dns zone move
2+
3+
Moves a DNS zone to another project
4+
5+
### Synopsis
6+
7+
Moves a DNS zone to another project.
8+
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
42+
--async If set, runs the command asynchronously
43+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
44+
-p, --project-id string Project ID
45+
--region string Target region for region-specific requests
46+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
47+
```
48+
49+
### SEE ALSO
50+
51+
* [stackit dns zone](./stackit_dns_zone.md) - Provides functionality for DNS zones
52+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
## stackit dns zone validate-move-code
2+
3+
Validates the move code of a DNS zone
4+
5+
### Synopsis
6+
7+
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
34+
--async If set, runs the command asynchronously
35+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
36+
-p, --project-id string Project ID
37+
--region string Target region for region-specific requests
38+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
39+
```
40+
41+
### SEE ALSO
42+
43+
* [stackit dns zone](./stackit_dns_zone.md) - Provides functionality for DNS zones
44+

‎go.mod‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ require (
1616
github.com/spf13/pflag v1.0.10
1717
github.com/spf13/viper v1.21.0
1818
github.com/stackitcloud/stackit-sdk-go/core v0.27.1
19-
github.com/stackitcloud/stackit-sdk-go/services/alb v0.18.0
19+
github.com/stackitcloud/stackit-sdk-go/services/alb v0.20.0
2020
github.com/stackitcloud/stackit-sdk-go/services/albwaf v0.13.5
2121
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.16.0
2222
github.com/stackitcloud/stackit-sdk-go/services/automation v0.2.1
2323
github.com/stackitcloud/stackit-sdk-go/services/cdn v1.22.0
2424
github.com/stackitcloud/stackit-sdk-go/services/dns v0.25.0
2525
github.com/stackitcloud/stackit-sdk-go/services/edge v0.14.0
26-
github.com/stackitcloud/stackit-sdk-go/services/git v0.14.1
26+
github.com/stackitcloud/stackit-sdk-go/services/git v0.15.0
2727
github.com/stackitcloud/stackit-sdk-go/services/iaas v1.15.1
2828
github.com/stackitcloud/stackit-sdk-go/services/intake v0.12.0
29-
github.com/stackitcloud/stackit-sdk-go/services/logs v0.10.2
29+
github.com/stackitcloud/stackit-sdk-go/services/logs v0.12.0
3030
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.13.0
3131
github.com/stackitcloud/stackit-sdk-go/services/opensearch v1.5.0
32-
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.15.0
32+
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.16.0
3333
github.com/stackitcloud/stackit-sdk-go/services/resourcemanager v0.27.0
3434
github.com/stackitcloud/stackit-sdk-go/services/runcommand v1.11.0
3535
github.com/stackitcloud/stackit-sdk-go/services/scf v0.11.0
@@ -39,7 +39,7 @@ require (
3939
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.21.1
4040
github.com/stackitcloud/stackit-sdk-go/services/serviceenablement v1.8.0
4141
github.com/stackitcloud/stackit-sdk-go/services/ske v1.21.2
42-
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.18.1
42+
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.19.0
4343
github.com/stackitcloud/stackit-sdk-go/services/valkey v0.4.0
4444
github.com/stackitcloud/stackit-sdk-go/services/vpn v0.15.2
4545
github.com/zalando/go-keyring v0.2.8
@@ -270,7 +270,7 @@ require (
270270
github.com/spf13/cast v1.10.0 // indirect
271271
github.com/stackitcloud/stackit-sdk-go/services/kms v1.14.0
272272
github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.16.0
273-
github.com/stackitcloud/stackit-sdk-go/services/logme v1.5.0
273+
github.com/stackitcloud/stackit-sdk-go/services/logme v1.6.0
274274
github.com/stackitcloud/stackit-sdk-go/services/mariadb v1.4.0
275275
github.com/stackitcloud/stackit-sdk-go/services/objectstorage v1.12.0
276276
github.com/stackitcloud/stackit-sdk-go/services/observability v0.25.2

‎go.sum‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,8 @@ github.com/ssgreg/nlreturn/v2 v2.2.1 h1:X4XDI7jstt3ySqGU86YGAURbxw3oTDPK9sPEi6YE
610610
github.com/ssgreg/nlreturn/v2 v2.2.1/go.mod h1:E/iiPB78hV7Szg2YfRgyIrk1AD6JVMTRkkxBiELzh2I=
611611
github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw=
612612
github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA=
613-
github.com/stackitcloud/stackit-sdk-go/services/alb v0.18.0 h1:xJJS4REIKMn31Agzsb7Tdmr0B/yg1cuetx8lKhzWdw8=
614-
github.com/stackitcloud/stackit-sdk-go/services/alb v0.18.0/go.mod h1:zEx3JFbwg1VLB9uKa2P4BA2DdypghX1FT8mbJU+msjE=
613+
github.com/stackitcloud/stackit-sdk-go/services/alb v0.20.0 h1:YT/1o6fRLSjBiOoYqX7j1PpppPuRe2TzaAYhavmoTG4=
614+
github.com/stackitcloud/stackit-sdk-go/services/alb v0.20.0/go.mod h1:1BEa7Q0enW0oWZ3ibGdcYXOeadp0QUR8/A731mciQwU=
615615
github.com/stackitcloud/stackit-sdk-go/services/albwaf v0.13.5 h1:/+dqndnOwG6sHYlUWShOfSoDjUX8iU+5DKIeFTKtCLQ=
616616
github.com/stackitcloud/stackit-sdk-go/services/albwaf v0.13.5/go.mod h1:o6kIPueaI/+9K2XW5ENNkjGyu+euuLKlunr+xhXAS6Y=
617617
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.16.0 h1:I4NJalm+y2hVk+NhK4nCW86U7i8kTkDqF89eFPReaxw=
@@ -624,8 +624,8 @@ github.com/stackitcloud/stackit-sdk-go/services/dns v0.25.0 h1:Yn4etadrdEEPU8Ycb
624624
github.com/stackitcloud/stackit-sdk-go/services/dns v0.25.0/go.mod h1:D0iv6XBYkaEwTjbBeom0VTZnwQMfwb48FC8R2jRg80c=
625625
github.com/stackitcloud/stackit-sdk-go/services/edge v0.14.0 h1:TTwlI34FUb0AisiApxKs5brGNP3Ma9cTvdmbxzNxs40=
626626
github.com/stackitcloud/stackit-sdk-go/services/edge v0.14.0/go.mod h1:FBBnDsQns6SjJYQrox3YSY7ydOa4T8FR3sXNwFRTsPc=
627-
github.com/stackitcloud/stackit-sdk-go/services/git v0.14.1 h1:7R5peSRer3Y83mfB6wcdCP0vhEjsq4myUdVhl24q6to=
628-
github.com/stackitcloud/stackit-sdk-go/services/git v0.14.1/go.mod h1:kz2pl17t9MNQx0+fNXg10ZAVfjmvOtsHB7VlAzu/Io8=
627+
github.com/stackitcloud/stackit-sdk-go/services/git v0.15.0 h1:yQq0J3nhfQ2V9yLhkYFLQ7sH02WoZvwWnBsILpwinzI=
628+
github.com/stackitcloud/stackit-sdk-go/services/git v0.15.0/go.mod h1:om68OYj0xYfMuSLEP4v/bg/kgqcFS6xDVApZXHlWr5E=
629629
github.com/stackitcloud/stackit-sdk-go/services/iaas v1.15.1 h1:5D0ABveu3SZyB7DBkVJcCSS4fr1TiMmfdJA98TgDn/o=
630630
github.com/stackitcloud/stackit-sdk-go/services/iaas v1.15.1/go.mod h1:o6Mt/ZUB/3qvIwtu4B57m9IlyaUxAFS2Tu5XImiZxCE=
631631
github.com/stackitcloud/stackit-sdk-go/services/intake v0.12.0 h1:1RDIGabA3U/kWrV0vkbkTof075liEHMdn39BsNwDI4k=
@@ -634,10 +634,10 @@ github.com/stackitcloud/stackit-sdk-go/services/kms v1.14.0 h1:6vZhGEIEqXUcs6pzp
634634
github.com/stackitcloud/stackit-sdk-go/services/kms v1.14.0/go.mod h1:ZBXRYWP4Yz3Gn75VSFz2mfcLSOrDEbiCoGTIXonvXkA=
635635
github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.16.0 h1:zcPGXu16E5NRp5ocF/0JTnm6AyAQmk61iqIlUpAbfgo=
636636
github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.16.0/go.mod h1:tVD3LmpowgML5U3imG9DdGAjhLmccibO92Ta7DPNfc0=
637-
github.com/stackitcloud/stackit-sdk-go/services/logme v1.5.0 h1:WFok0NMwTUTIZtClkYZW8M2mAkoQwyaIJD8hLltM+z8=
638-
github.com/stackitcloud/stackit-sdk-go/services/logme v1.5.0/go.mod h1:88EgGOZDYkw31BPtuQsqhh2yqzF9ZfoggsP/cYz7+O0=
639-
github.com/stackitcloud/stackit-sdk-go/services/logs v0.10.2 h1:ZVOAS95S445ZUvXLjs4a+xL6kkxDm1bUHjDzYXwGbU4=
640-
github.com/stackitcloud/stackit-sdk-go/services/logs v0.10.2/go.mod h1:euyZx4EqA2N7lVrC/wWxdCKalZmnY5zjfrjouNkGycA=
637+
github.com/stackitcloud/stackit-sdk-go/services/logme v1.6.0 h1:uMAKAgYGSlVTxzEp71CP3ZQ19uf2nItJKXJS6baorQc=
638+
github.com/stackitcloud/stackit-sdk-go/services/logme v1.6.0/go.mod h1:88EgGOZDYkw31BPtuQsqhh2yqzF9ZfoggsP/cYz7+O0=
639+
github.com/stackitcloud/stackit-sdk-go/services/logs v0.12.0 h1:4ZUQuj5Zp9E4EbymAFxSTnBSa6DjOIQlhKfHM5YF1ZA=
640+
github.com/stackitcloud/stackit-sdk-go/services/logs v0.12.0/go.mod h1:YKBTmDJmeVeaWKnmJoyLTsZCy/FkdWcD/GXm3rAvG3c=
641641
github.com/stackitcloud/stackit-sdk-go/services/mariadb v1.4.0 h1:LFpdvASJnTv5Y/PEfwgK0pn7ixXLgcUmLt2cRTg979g=
642642
github.com/stackitcloud/stackit-sdk-go/services/mariadb v1.4.0/go.mod h1:GpFHOEVEq+Pog9dWPMvGeF4mEvB+MVLIRh3/jB1isUI=
643643
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.13.0 h1:+7cw7kFNw2dZ3opWDusuW+GC+3lwf8mjpHtIvi2+wqs=
@@ -648,8 +648,8 @@ github.com/stackitcloud/stackit-sdk-go/services/observability v0.25.2 h1:fFb8inh
648648
github.com/stackitcloud/stackit-sdk-go/services/observability v0.25.2/go.mod h1:OAR5GjprwOgXmCIbZTP8ISJ4CmPrCW0zY0phg06pIps=
649649
github.com/stackitcloud/stackit-sdk-go/services/opensearch v1.5.0 h1:npcmkkVpOnEssjQoJ0yxwOXSNNtNA1+opxjuf8ZJ1DY=
650650
github.com/stackitcloud/stackit-sdk-go/services/opensearch v1.5.0/go.mod h1:MlGckwnH8wbYwGojF6lI5sEvjgz4PbRccfIS6YZf8wQ=
651-
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.15.0 h1:TSxUvRRMT8KsGatFGZsuqRWU05KDf2jmh5ZJ2MRsUXw=
652-
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.15.0/go.mod h1:7Ka8vrinx+DjCXv6lqCVZbIkDIbrzA4qrkNjXr6MUDM=
651+
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.16.0 h1:bWeC7GzQP/IddeO2FesXxRmRrkgVClU2YYaSz099nqk=
652+
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.16.0/go.mod h1:wOyEouBvYDu/5NMx//fJcRNlwWBspLod6aTVIRSj8jg=
653653
github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v1.5.0 h1:SAro5TWVJDDyiqMwew9Ta1tMcItBmWrCRYErIQ9+UBI=
654654
github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v1.5.0/go.mod h1:mjYkyr/A/+9rZnX5IOLEoAMFqHsRCIToZWpsYzYBwWo=
655655
github.com/stackitcloud/stackit-sdk-go/services/redis v1.6.0 h1:5UEPilI+RCuXEM8jm4ibREoZAsSAGI1+KnJ0oapye7Q=
@@ -674,8 +674,8 @@ github.com/stackitcloud/stackit-sdk-go/services/sfs v0.13.1 h1:jlxd9ee8GX4wzQywy
674674
github.com/stackitcloud/stackit-sdk-go/services/sfs v0.13.1/go.mod h1:QDhu6jIIgqgO7l/wAGlfUDHC4Q20vfyUifh3a0qT3W4=
675675
github.com/stackitcloud/stackit-sdk-go/services/ske v1.21.2 h1:4ApmRQGkcf/G/h1s19QsqH/vqE3oqfrdG1J/3/40iEM=
676676
github.com/stackitcloud/stackit-sdk-go/services/ske v1.21.2/go.mod h1:YYwFQNYrYUpa4FeT/6pxky8vp7E7pPy2F6+Ptf469hg=
677-
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.18.1 h1:EU8vhBTmlqvQGPEeakXrzjpCsYHVaD3XU3sJO9Glj38=
678-
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.18.1/go.mod h1:T1xYY3XabHJW6HppYk486ECBRswNwB3tRFM/ZOfQft0=
677+
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.19.0 h1:uw2dozjFotbbRa0hdp2zxxuou7H4mSowzew2VNbe7pw=
678+
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.19.0/go.mod h1:chULz8M6OKvzWEMVH/3DWKDb1UQab87O1KLJfWV0Vp4=
679679
github.com/stackitcloud/stackit-sdk-go/services/valkey v0.4.0 h1:75iJs+mZPnrGSlSoTZtKYYCyNqtqgx6JVChwJokcKVg=
680680
github.com/stackitcloud/stackit-sdk-go/services/valkey v0.4.0/go.mod h1:0crDO5v97ulHjVZVoFR2gJ4FCpEQeXGdM+V+AlZ6M6E=
681681
github.com/stackitcloud/stackit-sdk-go/services/vpn v0.15.2 h1:82VZJaJPwcBKSj8WV8v0ujBvbkbMxFXIvvv0wU+0Be0=

0 commit comments

Comments
 (0)