diff --git a/cmd/scw/testdata/test-all-usage-webhosting-hosting-create-usage.golden b/cmd/scw/testdata/test-all-usage-webhosting-hosting-create-usage.golden index 74a55189f5..8eca9d2414 100644 --- a/cmd/scw/testdata/test-all-usage-webhosting-hosting-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-webhosting-hosting-create-usage.golden @@ -11,6 +11,7 @@ ARGS: [email] Contact email for the Web Hosting client [tags.{index}] List of tags for the Web Hosting plan [domain] Domain name to link to the Web Hosting plan. You must already own this domain name, and have completed the DNS validation process beforehand + [subdomain] The name prefix to use as a free subdomain (for example, `mysite`) assigned to the Web Hosting plan. The full domain will be automatically created by adding it to the fixed base domain (e.g. `mysite.scw.site`). You do not need to include the base domain yourself. [offer-options.{index}.id] Offer option ID [offer-options.{index}.quantity] The option requested quantity to set for the Web Hosting plan [language] Default language for the control panel interface (unknown_language_code | en_US | fr_FR | de_DE) diff --git a/cmd/scw/testdata/test-all-usage-webhosting-hosting-list-usage.golden b/cmd/scw/testdata/test-all-usage-webhosting-hosting-list-usage.golden index ddf96956be..8c7a22d5f0 100644 --- a/cmd/scw/testdata/test-all-usage-webhosting-hosting-list-usage.golden +++ b/cmd/scw/testdata/test-all-usage-webhosting-hosting-list-usage.golden @@ -12,10 +12,11 @@ EXAMPLES: ARGS: [order-by] Sort order for Web Hosting plans in the response (created_at_asc | created_at_desc) [tags.{index}] Tags to filter for, only Web Hosting plans with matching tags will be returned - [statuses.{index}] Statuses to filter for, only Web Hosting plans with matching statuses will be returned (unknown_status | delivering | ready | deleting | error | locked | migrating) + [statuses.{index}] Statuses to filter for, only Web Hosting plans with matching statuses will be returned (unknown_status | delivering | ready | deleting | error | locked | migrating | updating) [domain] Domain to filter for, only Web Hosting plans associated with this domain will be returned [project-id] Project ID to filter for, only Web Hosting plans from this Project will be returned [control-panels.{index}] Name of the control panel to filter for, only Web Hosting plans from this control panel will be returned + [subdomain] Optional free subdomain linked to the Web Hosting plan [organization-id] Organization ID to filter for, only Web Hosting plans from this Organization will be returned [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all) diff --git a/docs/commands/webhosting.md b/docs/commands/webhosting.md index ce9959a524..ca8befde47 100644 --- a/docs/commands/webhosting.md +++ b/docs/commands/webhosting.md @@ -504,6 +504,7 @@ scw webhosting hosting create [arg=value ...] | email | | Contact email for the Web Hosting client | | tags.{index} | | List of tags for the Web Hosting plan | | domain | | Domain name to link to the Web Hosting plan. You must already own this domain name, and have completed the DNS validation process beforehand | +| subdomain | | The name prefix to use as a free subdomain (for example, `mysite`) assigned to the Web Hosting plan. The full domain will be automatically created by adding it to the fixed base domain (e.g. `mysite.scw.site`). You do not need to include the base domain yourself. | | offer-options.{index}.id | | Offer option ID | | offer-options.{index}.quantity | | The option requested quantity to set for the Web Hosting plan | | language | One of: `unknown_language_code`, `en_US`, `fr_FR`, `de_DE` | Default language for the control panel interface | @@ -618,10 +619,11 @@ scw webhosting hosting list [arg=value ...] |------|---|-------------| | order-by | One of: `created_at_asc`, `created_at_desc` | Sort order for Web Hosting plans in the response | | tags.{index} | | Tags to filter for, only Web Hosting plans with matching tags will be returned | -| statuses.{index} | One of: `unknown_status`, `delivering`, `ready`, `deleting`, `error`, `locked`, `migrating` | Statuses to filter for, only Web Hosting plans with matching statuses will be returned | +| statuses.{index} | One of: `unknown_status`, `delivering`, `ready`, `deleting`, `error`, `locked`, `migrating`, `updating` | Statuses to filter for, only Web Hosting plans with matching statuses will be returned | | domain | | Domain to filter for, only Web Hosting plans associated with this domain will be returned | | project-id | | Project ID to filter for, only Web Hosting plans from this Project will be returned | | control-panels.{index} | | Name of the control panel to filter for, only Web Hosting plans from this control panel will be returned | +| subdomain | | Optional free subdomain linked to the Web Hosting plan | | organization-id | | Organization ID to filter for, only Web Hosting plans from this Organization will be returned | | region | Default: `fr-par`
One of: `fr-par`, `nl-ams`, `pl-waw`, `all` | Region to target. If none is passed will use default region from the config | diff --git a/go.mod b/go.mod index cf9e8e296b..d0112db11a 100644 --- a/go.mod +++ b/go.mod @@ -23,7 +23,7 @@ require ( github.com/mattn/go-isatty v0.0.20 github.com/moby/buildkit v0.13.2 github.com/opencontainers/go-digest v1.0.0 - github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250729162034-8db00eaf9654 + github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250804081430-2c6fa2495d96 github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 github.com/spf13/cobra v1.9.1 github.com/spf13/pflag v1.0.7 diff --git a/go.sum b/go.sum index 3827be2194..7d1638a22e 100644 --- a/go.sum +++ b/go.sum @@ -466,8 +466,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250729162034-8db00eaf9654 h1:G5/4vYAsx2lv3FKJFho58m9aE3wgBrbyn7Z/Fds4opU= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250729162034-8db00eaf9654/go.mod h1:fw6BmcfYRs2BEHYW0c3/rR0JgZHvdx6uMYqpeUJx3Bc= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250804081430-2c6fa2495d96 h1:zEsk3ZJxbQ0eZptCv+flRAMmzO52fVTEj5C6aRfpojE= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250804081430-2c6fa2495d96/go.mod h1:fw6BmcfYRs2BEHYW0c3/rR0JgZHvdx6uMYqpeUJx3Bc= github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8= github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM= github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA= diff --git a/internal/namespaces/webhosting/v1/webhosting_cli.go b/internal/namespaces/webhosting/v1/webhosting_cli.go index 0b0b56b584..1e873329f6 100644 --- a/internal/namespaces/webhosting/v1/webhosting_cli.go +++ b/internal/namespaces/webhosting/v1/webhosting_cli.go @@ -1017,6 +1017,13 @@ func webhostingHostingCreate() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "subdomain", + Short: `The name prefix to use as a free subdomain (for example, ` + "`" + `mysite` + "`" + `) assigned to the Web Hosting plan. The full domain will be automatically created by adding it to the fixed base domain (e.g. ` + "`" + `mysite.scw.site` + "`" + `). You do not need to include the base domain yourself.`, + Required: false, + Deprecated: false, + Positional: false, + }, { Name: "offer-options.{index}.id", Short: `Offer option ID`, @@ -1169,6 +1176,7 @@ func webhostingHostingList() *core.Command { "error", "locked", "migrating", + "updating", }, }, { @@ -1192,6 +1200,13 @@ func webhostingHostingList() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "subdomain", + Short: `Optional free subdomain linked to the Web Hosting plan`, + Required: false, + Deprecated: false, + Positional: false, + }, { Name: "organization-id", Short: `Organization ID to filter for, only Web Hosting plans from this Organization will be returned`,