Skip to content

Commit 662224f

Browse files
authored
docs(instance): add dynamic-ip-required default value (scaleway#4224)
1 parent 0eb6229 commit 662224f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

cmd/scw/testdata/test-all-usage-instance-server-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ ARGS:
4141
[root-volume] Local root volume of the server
4242
[additional-volumes.{index}] Additional local and block volumes attached to your server
4343
[ip=new] Either an IP, an IP ID, ('new', 'ipv4', 'ipv6' or 'both') to create new IPs, 'dynamic' to use a dynamic IP or 'none' for no public IP (new | ipv4 | ipv6 | both | dynamic | none | <id> | <address>)
44-
[dynamic-ip-required] Define if a dynamic IPv4 is required for the Instance. If server has no IPv4, a dynamic one will be allocated.
44+
[dynamic-ip-required=true] Define if a dynamic IPv4 is required for the Instance. If server has no IPv4, a dynamic one will be allocated.
4545
[tags.{index}] Server tags
4646
[ipv6] Enable IPv6, to be used with routed-ip-enabled=false
4747
[stopped] Do not start server after its creation

docs/commands/instance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,7 @@ scw instance server create [arg=value ...]
17141714
| root-volume | | Local root volume of the server |
17151715
| additional-volumes.{index} | | Additional local and block volumes attached to your server |
17161716
| ip | Default: `new` | Either an IP, an IP ID, ('new', 'ipv4', 'ipv6' or 'both') to create new IPs, 'dynamic' to use a dynamic IP or 'none' for no public IP (new | ipv4 | ipv6 | both | dynamic | none | <id> | <address>) |
1717-
| dynamic-ip-required | | Define if a dynamic IPv4 is required for the Instance. If server has no IPv4, a dynamic one will be allocated. |
1717+
| dynamic-ip-required | Default: `true` | Define if a dynamic IPv4 is required for the Instance. If server has no IPv4, a dynamic one will be allocated. |
17181718
| tags.{index} | | Server tags |
17191719
| ipv6 | | Enable IPv6, to be used with routed-ip-enabled=false |
17201720
| stopped | | Do not start server after its creation |

internal/namespaces/instance/v1/custom_server_create.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ func serverCreateCommand() *core.Command {
9494
Default: core.DefaultValueSetter("new"),
9595
},
9696
{
97-
Name: "dynamic-ip-required",
98-
Short: "Define if a dynamic IPv4 is required for the Instance. If server has no IPv4, a dynamic one will be allocated.",
97+
Name: "dynamic-ip-required",
98+
Short: "Define if a dynamic IPv4 is required for the Instance. If server has no IPv4, a dynamic one will be allocated.",
99+
Default: core.DefaultValueSetter("true"),
99100
},
100101
{
101102
Name: "tags.{index}",

0 commit comments

Comments
 (0)