diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d8753ca1..ead4d4c23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +Versioning follows [SemVer](https://semver.org/). Sections: **Added**, **Changed**, **Deprecated**, **Fixed**, **Removed**, **Known Limitations**, **Dependencies**. Only user-visible changes listed. Older entries may use non-standard section names. + +## [v6.10.2] - June 2026 + +### Added +- **Regional API list from all locations**: List commands for regional APIs (DNS, Kafka, VPN, DBaaS, Monitoring, Logging, CDN, CertManager) now query all locations by default and display a `Location` column. Use `--location` to filter to a specific location. `-o json` merges items from all locations; `-o api-json` returns an array of per-location responses. +- **Multi-location tab completion**: Tab completion for regional resource IDs (e.g. `--cluster-id`, `--gateway-id`) now shows resources from all locations with location hints, when `--location` is not set. + ## [v6.10.1] – May 2026 ### Added diff --git a/commands/cdn/distribution/list.go b/commands/cdn/distribution/list.go index c44b52b82..b6c611cf0 100644 --- a/commands/cdn/distribution/list.go +++ b/commands/cdn/distribution/list.go @@ -2,14 +2,13 @@ package distribution import ( "context" - "fmt" - "github.com/ionos-cloud/ionosctl/v6/commands/cdn/completer" + cdn "github.com/ionos-cloud/sdk-go-bundle/products/cdn/v2" + "github.com/ionos-cloud/sdk-go-bundle/shared" + "github.com/spf13/viper" + "github.com/ionos-cloud/ionosctl/v6/internal/constants" "github.com/ionos-cloud/ionosctl/v6/internal/core" - "github.com/ionos-cloud/sdk-go-bundle/products/cdn/v2" - - "github.com/spf13/viper" ) func List() *core.Command { @@ -25,7 +24,20 @@ func List() *core.Command { return nil }, CmdRun: func(c *core.CommandConfig) error { - return listDistributions(c) + return c.ListAllLocations(allCols, func(cfg *shared.Configuration) (any, error) { + cdnClient := cdn.NewAPIClient(cfg) + req := cdnClient.DistributionsApi.DistributionsGet(context.Background()) + + if fn := core.GetFlagName(c.NS, constants.FlagCDNDistributionFilterState); viper.IsSet(fn) { + req = req.FilterState(viper.GetString(fn)) + } + if fn := core.GetFlagName(c.NS, constants.FlagCDNDistributionFilterDomain); viper.IsSet(fn) { + req = req.FilterDomain(viper.GetString(fn)) + } + + ls, _, err := req.Execute() + return ls, err + }) }, InitClient: true, }, @@ -36,27 +48,3 @@ func List() *core.Command { return cmd } - -func listDistributions(c *core.CommandConfig) error { - ls, err := completer.Distributions( - func(req cdn.ApiDistributionsGetRequest) (cdn.ApiDistributionsGetRequest, error) { - if fn := core.GetFlagName(c.NS, constants.FlagCDNDistributionFilterState); viper.IsSet(fn) { - req = req.FilterState(viper.GetString(fn)) - } - if fn := core.GetFlagName(c.NS, constants.FlagCDNDistributionFilterDomain); viper.IsSet(fn) { - req = req.FilterDomain(viper.GetString(fn)) - } - return req, nil - }, - ) - if err != nil { - return fmt.Errorf("failed listing cdn distributions: %w", err) - } - - items, ok := ls.GetItemsOk() - if !ok || items == nil { - return fmt.Errorf("could not retrieve distributions") - } - - return c.Printer(allCols).Print(items) -} diff --git a/commands/cert/autocertificate/list.go b/commands/cert/autocertificate/list.go index 55be8c963..6e8c6f9c5 100644 --- a/commands/cert/autocertificate/list.go +++ b/commands/cert/autocertificate/list.go @@ -2,12 +2,13 @@ package autocertificate import ( "context" - "fmt" - "github.com/ionos-cloud/ionosctl/v6/internal/client" + cert "github.com/ionos-cloud/sdk-go-bundle/products/cert/v2" + "github.com/ionos-cloud/sdk-go-bundle/shared" + "github.com/spf13/viper" + "github.com/ionos-cloud/ionosctl/v6/internal/constants" "github.com/ionos-cloud/ionosctl/v6/internal/core" - "github.com/spf13/viper" ) func AutocertificateListCmd() *core.Command { @@ -22,18 +23,17 @@ func AutocertificateListCmd() *core.Command { return nil }, CmdRun: func(c *core.CommandConfig) error { - req := client.Must().CertManagerClient.AutoCertificateApi.AutoCertificatesGet(context.Background()) - - if fn := core.GetFlagName(c.NS, constants.FlagCommonName); viper.IsSet(fn) { - req = req.FilterCommonName(viper.GetString(fn)) - } + return c.ListAllLocations(allCols, func(cfg *shared.Configuration) (any, error) { + certClient := cert.NewAPIClient(cfg) + req := certClient.AutoCertificateApi.AutoCertificatesGet(context.Background()) - ls, _, err := req.Execute() - if err != nil { - return fmt.Errorf("failed listing the AutoCertificates: %w", err) - } + if fn := core.GetFlagName(c.NS, constants.FlagCommonName); viper.IsSet(fn) { + req = req.FilterCommonName(viper.GetString(fn)) + } - return c.Printer(allCols).Prefix("items").Print(ls) + ls, _, err := req.Execute() + return ls, err + }) }, InitClient: true, }) diff --git a/commands/cert/certificate/list.go b/commands/cert/certificate/list.go index 4e91045f7..48c16f690 100644 --- a/commands/cert/certificate/list.go +++ b/commands/cert/certificate/list.go @@ -3,7 +3,9 @@ package certificate import ( "context" - "github.com/ionos-cloud/ionosctl/v6/internal/client" + cert "github.com/ionos-cloud/sdk-go-bundle/products/cert/v2" + "github.com/ionos-cloud/sdk-go-bundle/shared" + "github.com/ionos-cloud/ionosctl/v6/internal/core" ) @@ -27,10 +29,9 @@ func CertListCmd() *core.Command { func CmdList(c *core.CommandConfig) error { c.Verbose("Getting Certificates...") - certs, _, err := client.Must().CertManagerClient.CertificateApi.CertificatesGet(context.Background()).Execute() - if err != nil { - return err - } - - return c.Printer(allCols).Prefix("items").Print(certs) + return c.ListAllLocations(allCols, func(cfg *shared.Configuration) (any, error) { + certClient := cert.NewAPIClient(cfg) + ls, _, err := certClient.CertificateApi.CertificatesGet(context.Background()).Execute() + return ls, err + }) } diff --git a/commands/cert/provider/list.go b/commands/cert/provider/list.go index 6fd5428e3..15ee5c5c0 100644 --- a/commands/cert/provider/list.go +++ b/commands/cert/provider/list.go @@ -2,9 +2,10 @@ package provider import ( "context" - "fmt" - "github.com/ionos-cloud/ionosctl/v6/internal/client" + cert "github.com/ionos-cloud/sdk-go-bundle/products/cert/v2" + "github.com/ionos-cloud/sdk-go-bundle/shared" + "github.com/ionos-cloud/ionosctl/v6/internal/core" ) @@ -20,14 +21,11 @@ func ProviderListCmd() *core.Command { return nil }, CmdRun: func(c *core.CommandConfig) error { - req := client.Must().CertManagerClient.ProviderApi.ProvidersGet(context.Background()) - - ls, _, err := req.Execute() - if err != nil { - return fmt.Errorf("failed listing the Providers: %w", err) - } - - return c.Printer(allCols).Prefix("items").Print(ls) + return c.ListAllLocations(allCols, func(cfg *shared.Configuration) (any, error) { + certClient := cert.NewAPIClient(cfg) + ls, _, err := certClient.ProviderApi.ProvidersGet(context.Background()).Execute() + return ls, err + }) }, InitClient: true, }) diff --git a/commands/dbaas/inmemorydb/replicaset/list.go b/commands/dbaas/inmemorydb/replicaset/list.go index 923e18f1f..34f29d8a6 100644 --- a/commands/dbaas/inmemorydb/replicaset/list.go +++ b/commands/dbaas/inmemorydb/replicaset/list.go @@ -4,10 +4,10 @@ import ( "context" "github.com/ionos-cloud/ionosctl/v6/commands/dbaas/inmemorydb/utils" - "github.com/ionos-cloud/ionosctl/v6/internal/client" "github.com/ionos-cloud/ionosctl/v6/internal/constants" "github.com/ionos-cloud/ionosctl/v6/internal/core" "github.com/ionos-cloud/sdk-go-bundle/products/dbaas/inmemorydb/v2" + "github.com/ionos-cloud/sdk-go-bundle/shared" ) func List() *core.Command { @@ -23,13 +23,12 @@ func List() *core.Command { return nil }, CmdRun: func(c *core.CommandConfig) error { - ls, _, err := client.Must().InMemoryDBClient.ReplicaSetApi. - ReplicasetsGet(context.Background()).Execute() - if err != nil { - return err - } - - return c.Printer(allCols).Prefix("items").Print(ls) + return c.ListAllLocations(allCols, func(cfg *shared.Configuration) (any, error) { + apiClient := inmemorydb.NewAPIClient(cfg) + ls, _, err := apiClient.ReplicaSetApi. + ReplicasetsGet(context.Background()).Execute() + return ls, err + }) }, InitClient: true, }) diff --git a/commands/dbaas/inmemorydb/snapshot/list.go b/commands/dbaas/inmemorydb/snapshot/list.go index 60d8927e3..6ce033ca9 100644 --- a/commands/dbaas/inmemorydb/snapshot/list.go +++ b/commands/dbaas/inmemorydb/snapshot/list.go @@ -3,8 +3,9 @@ package snapshot import ( "context" - "github.com/ionos-cloud/ionosctl/v6/internal/client" "github.com/ionos-cloud/ionosctl/v6/internal/core" + "github.com/ionos-cloud/sdk-go-bundle/products/dbaas/inmemorydb/v2" + "github.com/ionos-cloud/sdk-go-bundle/shared" ) func List() *core.Command { @@ -20,13 +21,12 @@ func List() *core.Command { return nil }, CmdRun: func(c *core.CommandConfig) error { - ls, _, err := client.Must().InMemoryDBClient.SnapshotApi. - SnapshotsGet(context.Background()).Execute() - if err != nil { - return err - } - - return c.Printer(allCols).Prefix("items").Print(ls) + return c.ListAllLocations(allCols, func(cfg *shared.Configuration) (any, error) { + apiClient := inmemorydb.NewAPIClient(cfg) + ls, _, err := apiClient.SnapshotApi. + SnapshotsGet(context.Background()).Execute() + return ls, err + }) }, InitClient: true, }) diff --git a/commands/dbaas/mariadb/cluster/list.go b/commands/dbaas/mariadb/cluster/list.go index f70dabcf4..33fa9e7e2 100644 --- a/commands/dbaas/mariadb/cluster/list.go +++ b/commands/dbaas/mariadb/cluster/list.go @@ -5,6 +5,9 @@ import ( "github.com/ionos-cloud/ionosctl/v6/internal/constants" "github.com/ionos-cloud/ionosctl/v6/internal/core" + "github.com/ionos-cloud/sdk-go-bundle/products/dbaas/mariadb/v2" + "github.com/ionos-cloud/sdk-go-bundle/shared" + "github.com/spf13/viper" ) func List() *core.Command { @@ -20,12 +23,17 @@ func List() *core.Command { CmdRun: func(c *core.CommandConfig) error { c.Verbose("Getting Clusters...") - clusters, err := Clusters(FilterNameFlags(c)) - if err != nil { - return err - } + return c.ListAllLocations(allCols, func(cfg *shared.Configuration) (any, error) { + apiClient := mariadb.NewAPIClient(cfg) + req := apiClient.ClustersApi.ClustersGet(context.Background()) - return c.Printer(allCols).Prefix("items").Print(clusters) + if fn := core.GetFlagName(c.NS, constants.FlagName); viper.IsSet(fn) { + req = req.FilterName(viper.GetString(fn)) + } + + clusters, _, err := req.Execute() + return clusters, err + }) }, InitClient: true, }) diff --git a/commands/dbaas/postgres-v2/cluster/list.go b/commands/dbaas/postgres-v2/cluster/list.go index 73f7df90f..ec90952cd 100644 --- a/commands/dbaas/postgres-v2/cluster/list.go +++ b/commands/dbaas/postgres-v2/cluster/list.go @@ -3,11 +3,10 @@ package cluster import ( "context" - "github.com/ionos-cloud/ionosctl/v6/internal/client" "github.com/ionos-cloud/ionosctl/v6/internal/constants" "github.com/ionos-cloud/ionosctl/v6/internal/core" - "github.com/ionos-cloud/ionosctl/v6/internal/printer/table" psqlv2 "github.com/ionos-cloud/sdk-go-bundle/products/dbaas/psql/v3" + "github.com/ionos-cloud/sdk-go-bundle/shared" "github.com/spf13/cobra" "github.com/spf13/viper" ) @@ -37,27 +36,24 @@ func ClusterListCmd() *core.Command { } func RunClusterList(c *core.CommandConfig) error { - req := client.Must().PostgresClientV2.ClustersApi.ClustersGet(context.Background()) - - if fn := core.GetFlagName(c.NS, constants.FlagName); viper.IsSet(fn) { - req = req.FilterName(viper.GetString(fn)) - } - if fn := core.GetFlagName(c.NS, constants.FlagState); viper.IsSet(fn) { - req = req.FilterState(psqlv2.PostgresClusterStates(viper.GetString(fn))) - } - if fn := core.GetFlagName(c.NS, constants.FlagLimit); viper.IsSet(fn) { - req = req.Limit(viper.GetInt32(fn)) - } - if fn := core.GetFlagName(c.NS, constants.FlagOffset); viper.IsSet(fn) { - req = req.Offset(viper.GetInt32(fn)) - } - - clusters, _, err := req.Execute() - if err != nil { - return err - } - - cols, _ := c.Command.Command.Flags().GetStringSlice(constants.ArgCols) - - return c.Out(table.Sprint(clusterCols, clusters, cols, table.WithPrefix("items"))) + return c.ListAllLocations(clusterCols, func(cfg *shared.Configuration) (any, error) { + apiClient := psqlv2.NewAPIClient(cfg) + req := apiClient.ClustersApi.ClustersGet(context.Background()) + + if fn := core.GetFlagName(c.NS, constants.FlagName); viper.IsSet(fn) { + req = req.FilterName(viper.GetString(fn)) + } + if fn := core.GetFlagName(c.NS, constants.FlagState); viper.IsSet(fn) { + req = req.FilterState(psqlv2.PostgresClusterStates(viper.GetString(fn))) + } + if fn := core.GetFlagName(c.NS, constants.FlagLimit); viper.IsSet(fn) { + req = req.Limit(viper.GetInt32(fn)) + } + if fn := core.GetFlagName(c.NS, constants.FlagOffset); viper.IsSet(fn) { + req = req.Offset(viper.GetInt32(fn)) + } + + clusters, _, err := req.Execute() + return clusters, err + }) } diff --git a/commands/dns/reverse-record/list.go b/commands/dns/reverse-record/list.go index 41126282c..e11a4c0f5 100644 --- a/commands/dns/reverse-record/list.go +++ b/commands/dns/reverse-record/list.go @@ -2,11 +2,12 @@ package reverse_record import ( "context" - "fmt" "github.com/ionos-cloud/ionosctl/v6/internal/constants" "github.com/ionos-cloud/ionosctl/v6/internal/core" - "github.com/ionos-cloud/sdk-go-bundle/products/dns/v2" + dns "github.com/ionos-cloud/sdk-go-bundle/products/dns/v2" + "github.com/ionos-cloud/sdk-go-bundle/shared" + "github.com/spf13/viper" ) func List() *core.Command { @@ -18,17 +19,17 @@ func List() *core.Command { ShortDesc: "Retrieve all reverse records", Example: "ionosctl dns rr list", CmdRun: func(c *core.CommandConfig) error { - ls, err := Records(FilterRecordsByIp(c.NS)) - if err != nil { - return fmt.Errorf("failed listing records: %w", err) - } + return c.ListAllLocations(allCols, func(cfg *shared.Configuration) (any, error) { + dnsClient := dns.NewAPIClient(cfg) + req := dnsClient.ReverseRecordsApi.ReverserecordsGet(context.Background()) - items, ok := ls.GetItemsOk() - if !ok || items == nil { - return fmt.Errorf("could not retrieve Record items") - } + if fn := core.GetFlagName(c.NS, constants.FlagIps); viper.IsSet(fn) { + req = req.FilterRecordIp(viper.GetStringSlice(fn)) + } - return c.Printer(allCols).Prefix("items").Print(ls) + ls, _, err := req.Execute() + return ls, err + }) }, InitClient: true, }) diff --git a/commands/dns/secondary-zones/list.go b/commands/dns/secondary-zones/list.go index 44653c504..7c337a74e 100644 --- a/commands/dns/secondary-zones/list.go +++ b/commands/dns/secondary-zones/list.go @@ -5,12 +5,11 @@ import ( "fmt" "strings" - "github.com/ionos-cloud/ionosctl/v6/internal/client" "github.com/ionos-cloud/ionosctl/v6/internal/constants" "github.com/ionos-cloud/ionosctl/v6/internal/core" + dns "github.com/ionos-cloud/sdk-go-bundle/products/dns/v2" + "github.com/ionos-cloud/sdk-go-bundle/shared" "github.com/spf13/cobra" - - "github.com/ionos-cloud/sdk-go-bundle/products/dns/v2" ) func listCmd() *core.Command { @@ -22,25 +21,24 @@ func listCmd() *core.Command { Example: "ionosctl dns secondary-zone list", PreCmdRun: nil, CmdRun: func(c *core.CommandConfig) error { - req := client.Must().DnsClient.SecondaryZonesApi.SecondaryzonesGet(context.Background()) - - if c.Command.Command.Flags().Changed(constants.FlagName) { - name, _ := c.Command.Command.Flags().GetString(constants.FlagName) - req = req.FilterZoneName(name) - } - - if c.Command.Command.Flags().Changed(constants.FlagState) { - state, _ := c.Command.Command.Flags().GetString(constants.FlagState) - req = req.FilterState(dns.ProvisioningState(state)) - } - - secZones, _, err := req.Execute() - if err != nil { - return err - } - - return c.Printer(allCols).Prefix("items").Print(secZones) + return c.ListAllLocations(allCols, func(cfg *shared.Configuration) (any, error) { + dnsClient := dns.NewAPIClient(cfg) + req := dnsClient.SecondaryZonesApi.SecondaryzonesGet(context.Background()) + + if c.Command.Command.Flags().Changed(constants.FlagName) { + name, _ := c.Command.Command.Flags().GetString(constants.FlagName) + req = req.FilterZoneName(name) + } + if c.Command.Command.Flags().Changed(constants.FlagState) { + state, _ := c.Command.Command.Flags().GetString(constants.FlagState) + req = req.FilterState(dns.ProvisioningState(state)) + } + + ls, _, err := req.Execute() + return ls, err + }) }, + InitClient: true, }, ) diff --git a/commands/dns/zone/list.go b/commands/dns/zone/list.go index 7a1e7f0d1..73615e124 100644 --- a/commands/dns/zone/list.go +++ b/commands/dns/zone/list.go @@ -6,12 +6,11 @@ import ( "strings" "github.com/ionos-cloud/ionosctl/v6/internal/constants" + "github.com/ionos-cloud/ionosctl/v6/internal/core" dns "github.com/ionos-cloud/sdk-go-bundle/products/dns/v2" + "github.com/ionos-cloud/sdk-go-bundle/shared" "github.com/spf13/cobra" - - "github.com/ionos-cloud/ionosctl/v6/internal/client" - "github.com/ionos-cloud/ionosctl/v6/internal/core" "github.com/spf13/viper" ) @@ -27,21 +26,20 @@ func ZonesGetCmd() *core.Command { return nil }, CmdRun: func(c *core.CommandConfig) error { - req := client.Must().DnsClient.ZonesApi.ZonesGet(context.Background()) - - if fn := core.GetFlagName(c.NS, constants.FlagName); viper.IsSet(fn) { - req = req.FilterZoneName(viper.GetString(fn)) - } - if fn := core.GetFlagName(c.NS, constants.FlagState); viper.IsSet(fn) { - req = req.FilterState(dns.ProvisioningState(viper.GetString(fn))) - } - - ls, _, err := req.Execute() - if err != nil { - return err - } - - return c.Printer(allCols).Prefix("items").Print(ls) + return c.ListAllLocations(allCols, func(cfg *shared.Configuration) (any, error) { + dnsClient := dns.NewAPIClient(cfg) + req := dnsClient.ZonesApi.ZonesGet(context.Background()) + + if fn := core.GetFlagName(c.NS, constants.FlagName); viper.IsSet(fn) { + req = req.FilterZoneName(viper.GetString(fn)) + } + if fn := core.GetFlagName(c.NS, constants.FlagState); viper.IsSet(fn) { + req = req.FilterState(dns.ProvisioningState(viper.GetString(fn))) + } + + ls, _, err := req.Execute() + return ls, err + }) }, InitClient: true, }) diff --git a/commands/kafka/cluster/list.go b/commands/kafka/cluster/list.go index 387c8f078..3d56c0a40 100644 --- a/commands/kafka/cluster/list.go +++ b/commands/kafka/cluster/list.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/ionos-cloud/ionosctl/v6/commands/kafka/completer" "github.com/ionos-cloud/ionosctl/v6/internal/constants" "github.com/ionos-cloud/ionosctl/v6/internal/core" "github.com/ionos-cloud/sdk-go-bundle/products/kafka/v2" + "github.com/ionos-cloud/sdk-go-bundle/shared" "github.com/spf13/viper" ) @@ -19,16 +19,29 @@ func List() *core.Command { Verb: "list", Aliases: []string{"ls"}, ShortDesc: "Retrieve all clusters using pagination and optional filters", - Example: `ionosctl kafka c list --location de/txl`, + Example: `ionosctl kafka c list`, PreCmdRun: func(c *core.PreCommandConfig) error { - if err := core.CheckRequiredFlags(c.Command, c.NS, constants.FlagLocation); err != nil { - return err - } - return nil }, CmdRun: func(c *core.CommandConfig) error { - return listClusters(c) + return c.ListAllLocations(allCols, func(cfg *shared.Configuration) (any, error) { + client := kafka.NewAPIClient(cfg) + + req := client.ClustersApi.ClustersGet(context.Background()) + if fn := core.GetFlagName(c.NS, constants.FlagFilterState); viper.IsSet(fn) { + req = req.FilterState(viper.GetString(fn)) + } + if fn := core.GetFlagName(c.NS, constants.FlagFilterName); viper.IsSet(fn) { + req = req.FilterName(viper.GetString(fn)) + } + + ls, _, err := req.Execute() + if err != nil { + return nil, fmt.Errorf("failed listing kafka clusters: %w", err) + } + + return ls, nil + }) }, InitClient: true, }, @@ -42,22 +55,3 @@ func List() *core.Command { return cmd } - -func listClusters(c *core.CommandConfig) error { - ls, err := completer.Clusters( - func(req kafka.ApiClustersGetRequest) (kafka.ApiClustersGetRequest, error) { - if fn := core.GetFlagName(c.NS, constants.FlagFilterState); viper.IsSet(fn) { - req = req.FilterState(viper.GetString(fn)) - } - if fn := core.GetFlagName(c.NS, constants.FlagFilterName); viper.IsSet(fn) { - req = req.FilterName(viper.GetString(fn)) - } - return req, nil - }, - ) - if err != nil { - return fmt.Errorf("failed listing kafka clusters: %w", err) - } - - return c.Printer(allCols).Prefix("items").Print(ls) -} diff --git a/commands/kafka/topic/list.go b/commands/kafka/topic/list.go index 43089dd54..6001db44f 100644 --- a/commands/kafka/topic/list.go +++ b/commands/kafka/topic/list.go @@ -18,10 +18,10 @@ func listCmd() *core.Command { Resource: "topic", ShortDesc: "List all kafka topics", Aliases: []string{"ls"}, - Example: `ionosctl kafka topic list --location LOCATION + Example: `ionosctl kafka topic list --cluster-id CLUSTER_ID ionosctl kafka topic list --location LOCATION --cluster-id CLUSTER_ID`, PreCmdRun: func(cmd *core.PreCommandConfig) error { - return core.CheckRequiredFlags(cmd.Command, cmd.NS, constants.FlagLocation) + return nil }, CmdRun: func(cmd *core.CommandConfig) error { if !cmd.Command.Command.Flags().Changed(constants.FlagClusterId) { diff --git a/commands/logging-service/pipeline/list.go b/commands/logging-service/pipeline/list.go index baa433a49..5d64fa547 100644 --- a/commands/logging-service/pipeline/list.go +++ b/commands/logging-service/pipeline/list.go @@ -3,7 +3,9 @@ package pipeline import ( "context" - "github.com/ionos-cloud/ionosctl/v6/internal/client" + logging "github.com/ionos-cloud/sdk-go-bundle/products/logging/v2" + "github.com/ionos-cloud/sdk-go-bundle/shared" + "github.com/ionos-cloud/ionosctl/v6/internal/core" ) @@ -16,18 +18,16 @@ func PipelineListCmd() *core.Command { Aliases: []string{"ls"}, ShortDesc: "Retrieve logging pipelines", Example: "ionosctl logging-service pipeline list", - CmdRun: runListCmd, + CmdRun: func(c *core.CommandConfig) error { + return c.ListAllLocations(allCols, func(cfg *shared.Configuration) (any, error) { + loggingClient := logging.NewAPIClient(cfg) + ls, _, err := loggingClient.PipelinesApi.PipelinesGet(context.Background()).Execute() + return ls, err + }) + }, + InitClient: true, }, ) return cmd } - -func runListCmd(c *core.CommandConfig) error { - pipelines, _, err := client.Must().LoggingServiceClient.PipelinesApi.PipelinesGet(context.Background()).Execute() - if err != nil { - return err - } - - return c.Printer(allCols).Prefix("items").Print(pipelines) -} diff --git a/commands/monitoring/pipeline/list.go b/commands/monitoring/pipeline/list.go index 2347aa211..a68654939 100644 --- a/commands/monitoring/pipeline/list.go +++ b/commands/monitoring/pipeline/list.go @@ -3,10 +3,12 @@ package pipeline import ( "context" - "github.com/ionos-cloud/ionosctl/v6/internal/client" + "github.com/ionos-cloud/sdk-go-bundle/products/monitoring/v2" + "github.com/ionos-cloud/sdk-go-bundle/shared" + "github.com/spf13/viper" + "github.com/ionos-cloud/ionosctl/v6/internal/constants" "github.com/ionos-cloud/ionosctl/v6/internal/core" - "github.com/spf13/viper" ) func MonitoringListCmd() *core.Command { @@ -16,23 +18,22 @@ func MonitoringListCmd() *core.Command { Verb: "list", Aliases: []string{"ls"}, ShortDesc: "Retrieve pipelines", - Example: "ionosctl monitoring pipeline list --location de/txl", + Example: "ionosctl monitoring pipeline list\nionosctl monitoring pipeline list --location de/txl", PreCmdRun: func(c *core.PreCommandConfig) error { return nil }, CmdRun: func(c *core.CommandConfig) error { - req := client.Must().Monitoring.PipelinesApi.PipelinesGet(context.Background()) - - if fn := core.GetFlagName(c.NS, constants.FlagOrderBy); viper.IsSet(fn) { - req = req.OrderBy(viper.GetString(fn)) - } + return c.ListAllLocations(allCols, func(cfg *shared.Configuration) (any, error) { + monitoringClient := monitoring.NewAPIClient(cfg) + req := monitoringClient.PipelinesApi.PipelinesGet(context.Background()) - ls, _, err := req.Execute() - if err != nil { - return err - } + if fn := core.GetFlagName(c.NS, constants.FlagOrderBy); viper.IsSet(fn) { + req = req.OrderBy(viper.GetString(fn)) + } - return c.Printer(allCols).Prefix("items").Print(ls) + ls, _, err := req.Execute() + return ls, err + }) }, InitClient: true, }) diff --git a/commands/vpn/ipsec/gateway/list.go b/commands/vpn/ipsec/gateway/list.go index ea22ea294..4a06f977a 100644 --- a/commands/vpn/ipsec/gateway/list.go +++ b/commands/vpn/ipsec/gateway/list.go @@ -2,9 +2,9 @@ package gateway import ( "context" - "fmt" - "github.com/ionos-cloud/ionosctl/v6/commands/vpn/ipsec/completer" + vpn "github.com/ionos-cloud/sdk-go-bundle/products/vpn/v2" + "github.com/ionos-cloud/sdk-go-bundle/shared" "github.com/ionos-cloud/ionosctl/v6/internal/core" ) @@ -21,13 +21,13 @@ func List() *core.Command { return nil }, CmdRun: func(c *core.CommandConfig) error { - ls, err := completer.Gateways() - if err != nil { - return fmt.Errorf("failed listing gateways: %w", err) - } - - return c.Printer(allCols).Prefix("items").Print(ls) + return c.ListAllLocations(allCols, func(cfg *shared.Configuration) (any, error) { + vpnClient := vpn.NewAPIClient(cfg) + ls, _, err := vpnClient.IPSecGatewaysApi.IpsecgatewaysGet(context.Background()).Execute() + return ls, err + }) }, + InitClient: true, }) return cmd diff --git a/commands/vpn/wireguard/gateway/list.go b/commands/vpn/wireguard/gateway/list.go index 4aad4b037..cb58bab67 100644 --- a/commands/vpn/wireguard/gateway/list.go +++ b/commands/vpn/wireguard/gateway/list.go @@ -2,9 +2,9 @@ package gateway import ( "context" - "fmt" - "github.com/ionos-cloud/ionosctl/v6/commands/vpn/wireguard/completer" + vpn "github.com/ionos-cloud/sdk-go-bundle/products/vpn/v2" + "github.com/ionos-cloud/sdk-go-bundle/shared" "github.com/ionos-cloud/ionosctl/v6/internal/core" ) @@ -21,13 +21,13 @@ func List() *core.Command { return nil }, CmdRun: func(c *core.CommandConfig) error { - ls, err := completer.Gateways() - if err != nil { - return fmt.Errorf("failed listing gateways: %w", err) - } - - return c.Printer(allCols).Prefix("items").Print(ls) + return c.ListAllLocations(allCols, func(cfg *shared.Configuration) (any, error) { + vpnClient := vpn.NewAPIClient(cfg) + ls, _, err := vpnClient.WireguardGatewaysApi.WireguardgatewaysGet(context.Background()).Execute() + return ls, err + }) }, + InitClient: true, }) return cmd diff --git a/docs/subcommands/CDN/distribution/create.md b/docs/subcommands/CDN/distribution/create.md index beaee045b..27fe6cba9 100644 --- a/docs/subcommands/CDN/distribution/create.md +++ b/docs/subcommands/CDN/distribution/create.md @@ -42,7 +42,7 @@ Create a CDN distribution. Wiki: https://docs.ionos.com/cloud/network-services/c -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/CDN/distribution/delete.md b/docs/subcommands/CDN/distribution/delete.md index 3420a91ef..d9b0f9daa 100644 --- a/docs/subcommands/CDN/distribution/delete.md +++ b/docs/subcommands/CDN/distribution/delete.md @@ -42,7 +42,7 @@ Delete a distribution -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/CDN/distribution/get.md b/docs/subcommands/CDN/distribution/get.md index 2fd2c3efd..6d3031e87 100644 --- a/docs/subcommands/CDN/distribution/get.md +++ b/docs/subcommands/CDN/distribution/get.md @@ -41,7 +41,7 @@ Retrieve a distribution -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/CDN/distribution/list.md b/docs/subcommands/CDN/distribution/list.md index 97541559a..88aecb495 100644 --- a/docs/subcommands/CDN/distribution/list.md +++ b/docs/subcommands/CDN/distribution/list.md @@ -41,7 +41,7 @@ Retrieve all distributions using pagination and optional filters -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/CDN/distribution/routingrules/get.md b/docs/subcommands/CDN/distribution/routingrules/get.md index ffa7de19f..f31278e24 100644 --- a/docs/subcommands/CDN/distribution/routingrules/get.md +++ b/docs/subcommands/CDN/distribution/routingrules/get.md @@ -47,7 +47,7 @@ Retrieve a distribution routing rules -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/CDN/distribution/update.md b/docs/subcommands/CDN/distribution/update.md index ee73c52b9..2bf13df5d 100644 --- a/docs/subcommands/CDN/distribution/update.md +++ b/docs/subcommands/CDN/distribution/update.md @@ -43,7 +43,7 @@ Partially modify a distribution's properties. This command uses a combination of -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Certificate-Manager/autocertificate/create.md b/docs/subcommands/Certificate-Manager/autocertificate/create.md index ac9c908f6..fabf79f5a 100644 --- a/docs/subcommands/Certificate-Manager/autocertificate/create.md +++ b/docs/subcommands/Certificate-Manager/autocertificate/create.md @@ -48,7 +48,7 @@ Create an AutoCertificate. Requires an enabled DNS Zone with the same name as th -h, --help Print usage --key-algorithm string The key algorithm used to generate the certificate. (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") -n, --name string The name of the AutoCertificate --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Certificate-Manager/autocertificate/delete.md b/docs/subcommands/Certificate-Manager/autocertificate/delete.md index f1b07695e..73d37eb6a 100644 --- a/docs/subcommands/Certificate-Manager/autocertificate/delete.md +++ b/docs/subcommands/Certificate-Manager/autocertificate/delete.md @@ -48,7 +48,7 @@ Delete an AutoCertificate -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Certificate-Manager/autocertificate/get.md b/docs/subcommands/Certificate-Manager/autocertificate/get.md index 9c53e2a64..94d00ec60 100644 --- a/docs/subcommands/Certificate-Manager/autocertificate/get.md +++ b/docs/subcommands/Certificate-Manager/autocertificate/get.md @@ -47,7 +47,7 @@ Retrieve an AutoCertificate -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Certificate-Manager/autocertificate/list.md b/docs/subcommands/Certificate-Manager/autocertificate/list.md index 0707ba8da..002fc0d86 100644 --- a/docs/subcommands/Certificate-Manager/autocertificate/list.md +++ b/docs/subcommands/Certificate-Manager/autocertificate/list.md @@ -47,7 +47,7 @@ Retrieve AutoCertificate list -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Certificate-Manager/autocertificate/update.md b/docs/subcommands/Certificate-Manager/autocertificate/update.md index fdd5b8de7..664c5dea4 100644 --- a/docs/subcommands/Certificate-Manager/autocertificate/update.md +++ b/docs/subcommands/Certificate-Manager/autocertificate/update.md @@ -47,7 +47,7 @@ Update an AutoCertificate. -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") -n, --name string The new name of the AutoCertificate (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Certificate-Manager/certificate/create.md b/docs/subcommands/Certificate-Manager/certificate/create.md index 35d7d2ddd..ced505bf9 100644 --- a/docs/subcommands/Certificate-Manager/certificate/create.md +++ b/docs/subcommands/Certificate-Manager/certificate/create.md @@ -51,7 +51,7 @@ Use this command to add a Certificate. -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Certificate-Manager/certificate/delete.md b/docs/subcommands/Certificate-Manager/certificate/delete.md index 5e0b3f3b4..af2df3e37 100644 --- a/docs/subcommands/Certificate-Manager/certificate/delete.md +++ b/docs/subcommands/Certificate-Manager/certificate/delete.md @@ -48,7 +48,7 @@ Use this command to delete a Certificate by ID. -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Certificate-Manager/certificate/get.md b/docs/subcommands/Certificate-Manager/certificate/get.md index ebeb14984..2f84eec5b 100644 --- a/docs/subcommands/Certificate-Manager/certificate/get.md +++ b/docs/subcommands/Certificate-Manager/certificate/get.md @@ -49,7 +49,7 @@ Use this command to retrieve a Certificate by ID. -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Certificate-Manager/certificate/list.md b/docs/subcommands/Certificate-Manager/certificate/list.md index e9dc8774f..4b0592997 100644 --- a/docs/subcommands/Certificate-Manager/certificate/list.md +++ b/docs/subcommands/Certificate-Manager/certificate/list.md @@ -46,7 +46,7 @@ Use this command to retrieve all Certificates. -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Certificate-Manager/certificate/update.md b/docs/subcommands/Certificate-Manager/certificate/update.md index b72d23c37..bf53ed361 100644 --- a/docs/subcommands/Certificate-Manager/certificate/update.md +++ b/docs/subcommands/Certificate-Manager/certificate/update.md @@ -48,7 +48,7 @@ Use this change a certificate's name. -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Certificate-Manager/provider/create.md b/docs/subcommands/Certificate-Manager/provider/create.md index 34244548d..97205b804 100644 --- a/docs/subcommands/Certificate-Manager/provider/create.md +++ b/docs/subcommands/Certificate-Manager/provider/create.md @@ -49,7 +49,7 @@ Create an Provider --key-id string The key ID of the external account binding --key-secret string The key secret of the external account binding --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") -n, --name string The name of the certificate Provider --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Certificate-Manager/provider/delete.md b/docs/subcommands/Certificate-Manager/provider/delete.md index f4d45d237..8deb57325 100644 --- a/docs/subcommands/Certificate-Manager/provider/delete.md +++ b/docs/subcommands/Certificate-Manager/provider/delete.md @@ -47,7 +47,7 @@ Delete an Provider -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Certificate-Manager/provider/get.md b/docs/subcommands/Certificate-Manager/provider/get.md index 02e3953b5..d1b0fd25a 100644 --- a/docs/subcommands/Certificate-Manager/provider/get.md +++ b/docs/subcommands/Certificate-Manager/provider/get.md @@ -46,7 +46,7 @@ Retrieve a Provider -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Certificate-Manager/provider/list.md b/docs/subcommands/Certificate-Manager/provider/list.md index 2240ef67a..c0400c244 100644 --- a/docs/subcommands/Certificate-Manager/provider/list.md +++ b/docs/subcommands/Certificate-Manager/provider/list.md @@ -46,7 +46,7 @@ Retrieve Provider list -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Certificate-Manager/provider/update.md b/docs/subcommands/Certificate-Manager/provider/update.md index 358e4e003..a1d79f15c 100644 --- a/docs/subcommands/Certificate-Manager/provider/update.md +++ b/docs/subcommands/Certificate-Manager/provider/update.md @@ -46,7 +46,7 @@ Modify an Provider -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") -n, --name string The new name of the Provider (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Compute Engine/monitoring/central/disable.md b/docs/subcommands/Compute Engine/monitoring/central/disable.md index 9fd99b999..d2fd54e6b 100644 --- a/docs/subcommands/Compute Engine/monitoring/central/disable.md +++ b/docs/subcommands/Compute Engine/monitoring/central/disable.md @@ -40,7 +40,7 @@ Disable CentralMonitoring -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/bhx, gb/lhr, fr/par, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/bhx, gb/lhr, fr/par, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Compute Engine/monitoring/central/enable.md b/docs/subcommands/Compute Engine/monitoring/central/enable.md index bdcbafbc8..dfb70ec6a 100644 --- a/docs/subcommands/Compute Engine/monitoring/central/enable.md +++ b/docs/subcommands/Compute Engine/monitoring/central/enable.md @@ -40,7 +40,7 @@ Enable CentralMonitoring -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/bhx, gb/lhr, fr/par, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/bhx, gb/lhr, fr/par, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Compute Engine/monitoring/central/get.md b/docs/subcommands/Compute Engine/monitoring/central/get.md index 5278f59bb..3f7b2676f 100644 --- a/docs/subcommands/Compute Engine/monitoring/central/get.md +++ b/docs/subcommands/Compute Engine/monitoring/central/get.md @@ -40,7 +40,7 @@ Retrieve CentralMonitoring -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/bhx, gb/lhr, fr/par, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/bhx, gb/lhr, fr/par, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Compute Engine/monitoring/key/create.md b/docs/subcommands/Compute Engine/monitoring/key/create.md index 4f0af0ad7..01b75e2f3 100644 --- a/docs/subcommands/Compute Engine/monitoring/key/create.md +++ b/docs/subcommands/Compute Engine/monitoring/key/create.md @@ -38,7 +38,7 @@ Create a new key for a pipeline -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/bhx, gb/lhr, fr/par, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/bhx, gb/lhr, fr/par, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Compute Engine/monitoring/pipeline/create.md b/docs/subcommands/Compute Engine/monitoring/pipeline/create.md index 75f269bbc..75d6f5e5b 100644 --- a/docs/subcommands/Compute Engine/monitoring/pipeline/create.md +++ b/docs/subcommands/Compute Engine/monitoring/pipeline/create.md @@ -40,7 +40,7 @@ Create an pipeline -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/bhx, gb/lhr, fr/par, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/bhx, gb/lhr, fr/par, us/mci (default "de/fra") -n, --name string The name of the Monitoring pipeline --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Compute Engine/monitoring/pipeline/delete.md b/docs/subcommands/Compute Engine/monitoring/pipeline/delete.md index 4c4589d18..8a9fcf270 100644 --- a/docs/subcommands/Compute Engine/monitoring/pipeline/delete.md +++ b/docs/subcommands/Compute Engine/monitoring/pipeline/delete.md @@ -41,7 +41,7 @@ Delete a pipeline -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/bhx, gb/lhr, fr/par, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/bhx, gb/lhr, fr/par, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Compute Engine/monitoring/pipeline/get.md b/docs/subcommands/Compute Engine/monitoring/pipeline/get.md index 1f69d9539..b63fe497c 100644 --- a/docs/subcommands/Compute Engine/monitoring/pipeline/get.md +++ b/docs/subcommands/Compute Engine/monitoring/pipeline/get.md @@ -40,7 +40,7 @@ Retrieve a pipeline -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/bhx, gb/lhr, fr/par, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/bhx, gb/lhr, fr/par, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Compute Engine/monitoring/pipeline/list.md b/docs/subcommands/Compute Engine/monitoring/pipeline/list.md index 63dccfe76..2c4a6a4ec 100644 --- a/docs/subcommands/Compute Engine/monitoring/pipeline/list.md +++ b/docs/subcommands/Compute Engine/monitoring/pipeline/list.md @@ -40,7 +40,7 @@ Retrieve pipelines -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/bhx, gb/lhr, fr/par, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/bhx, gb/lhr, fr/par, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by @@ -55,6 +55,7 @@ Retrieve pipelines ## Examples ```text +ionosctl monitoring pipeline list ionosctl monitoring pipeline list --location de/txl ``` diff --git a/docs/subcommands/Compute Engine/monitoring/pipeline/update.md b/docs/subcommands/Compute Engine/monitoring/pipeline/update.md index bf6030f24..3569a6618 100644 --- a/docs/subcommands/Compute Engine/monitoring/pipeline/update.md +++ b/docs/subcommands/Compute Engine/monitoring/pipeline/update.md @@ -40,7 +40,7 @@ Partially modify a pipeline's properties. This command uses a combination of GET -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/bhx, gb/lhr, fr/par, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/bhx, gb/lhr, fr/par, us/mci (default "de/fra") -n, --name string The new name of the Monitoring Pipeline (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/DNS/dnssec/create.md b/docs/subcommands/DNS/dnssec/create.md index b098b51aa..bcf6c7a05 100644 --- a/docs/subcommands/DNS/dnssec/create.md +++ b/docs/subcommands/DNS/dnssec/create.md @@ -42,7 +42,7 @@ Enable DNSSEC keys and create associated DNSKEY records for your DNS zone -h, --help Print usage --ksk-bits int Key signing key length in bits. kskBits >= zskBits: [1024/2048/4096] (default 1024) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --nsec-mode string NSEC mode.. Can be one of: NSEC, NSEC3 (default "NSEC") --nsec3-iterations int Number of iterations for NSEC3. [0..50] diff --git a/docs/subcommands/DNS/dnssec/delete.md b/docs/subcommands/DNS/dnssec/delete.md index 9d6760d32..13785523b 100644 --- a/docs/subcommands/DNS/dnssec/delete.md +++ b/docs/subcommands/DNS/dnssec/delete.md @@ -40,7 +40,7 @@ Removes ALL associated DNSKEY records for your DNS zone and disables DNSSEC keys -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/DNS/dnssec/list.md b/docs/subcommands/DNS/dnssec/list.md index 965a96a97..c3030e392 100644 --- a/docs/subcommands/DNS/dnssec/list.md +++ b/docs/subcommands/DNS/dnssec/list.md @@ -40,7 +40,7 @@ Retrieve your zone's DNSSEC keys -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/DNS/quota/get.md b/docs/subcommands/DNS/quota/get.md index 315e0cc05..17d451ea4 100644 --- a/docs/subcommands/DNS/quota/get.md +++ b/docs/subcommands/DNS/quota/get.md @@ -40,7 +40,7 @@ Retrieve your quotas -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/DNS/record/create.md b/docs/subcommands/DNS/record/create.md index 92f035535..96cc03e3b 100644 --- a/docs/subcommands/DNS/record/create.md +++ b/docs/subcommands/DNS/record/create.md @@ -42,7 +42,7 @@ Create a record. Wiki: https://docs.ionos.com/cloud/network-services/cloud-dns/a -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") -n, --name \* The name of the DNS record. Provide a wildcard i.e. \* to match requests for non-existent names under your DNS Zone name. Note that some terminals require '*' to be escaped, e.g. '\*' (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/DNS/record/delete.md b/docs/subcommands/DNS/record/delete.md index 1ba7f12bd..a66a08e8f 100644 --- a/docs/subcommands/DNS/record/delete.md +++ b/docs/subcommands/DNS/record/delete.md @@ -51,7 +51,7 @@ Here, PARTIAL_NAME is a part of the name of the DNS record you want to delete. I -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/DNS/record/get.md b/docs/subcommands/DNS/record/get.md index 99742dcf4..8c2943a08 100644 --- a/docs/subcommands/DNS/record/get.md +++ b/docs/subcommands/DNS/record/get.md @@ -40,7 +40,7 @@ Retrieve a record -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/DNS/record/list.md b/docs/subcommands/DNS/record/list.md index 2c3974798..2bc85122f 100644 --- a/docs/subcommands/DNS/record/list.md +++ b/docs/subcommands/DNS/record/list.md @@ -41,7 +41,7 @@ Retrieve all records from either a primary or secondary zone -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") -n, --name string Filter used to fetch only the records that contain specified record name. NOTE: Only available for zone records. --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/DNS/record/update.md b/docs/subcommands/DNS/record/update.md index 5eff3ce1e..0bddf4923 100644 --- a/docs/subcommands/DNS/record/update.md +++ b/docs/subcommands/DNS/record/update.md @@ -42,7 +42,7 @@ Partially modify a record's properties. This command uses a combination of GET a -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") -n, --name \* The name of the DNS record. Provide a wildcard i.e. \* to match requests for non-existent names under your DNS Zone name. Note that some terminals require '*' to be escaped, e.g. '\*' (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/DNS/reverse/record/create.md b/docs/subcommands/DNS/reverse/record/create.md index 174bc0826..f16fdb893 100644 --- a/docs/subcommands/DNS/reverse/record/create.md +++ b/docs/subcommands/DNS/reverse/record/create.md @@ -42,7 +42,7 @@ Create a record. Wiki: https://docs.ionos.com/cloud/network-services/cloud-dns/a -h, --help Print usage --ip string [IPv4/IPv6] Specifies for which IP address the reverse record should be created. The IP addresses needs to be owned by the contract (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") -n, --name string The name of the DNS Reverse Record. (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/DNS/reverse/record/delete.md b/docs/subcommands/DNS/reverse/record/delete.md index 1c715ea7a..8a6ca9c8c 100644 --- a/docs/subcommands/DNS/reverse/record/delete.md +++ b/docs/subcommands/DNS/reverse/record/delete.md @@ -41,7 +41,7 @@ Delete a record -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/DNS/reverse/record/get.md b/docs/subcommands/DNS/reverse/record/get.md index 9c1ab9f83..6a208917b 100644 --- a/docs/subcommands/DNS/reverse/record/get.md +++ b/docs/subcommands/DNS/reverse/record/get.md @@ -40,7 +40,7 @@ Find a record by IP or ID -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/DNS/reverse/record/list.md b/docs/subcommands/DNS/reverse/record/list.md index 9281f850c..39a09c432 100644 --- a/docs/subcommands/DNS/reverse/record/list.md +++ b/docs/subcommands/DNS/reverse/record/list.md @@ -41,7 +41,7 @@ Retrieve all reverse records -h, --help Print usage -i, --ips string Optional filter for the IP address of the reverse record --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/DNS/reverse/record/update.md b/docs/subcommands/DNS/reverse/record/update.md index 392f48a8e..7b41bc425 100644 --- a/docs/subcommands/DNS/reverse/record/update.md +++ b/docs/subcommands/DNS/reverse/record/update.md @@ -42,7 +42,7 @@ Update a record -h, --help Print usage --ip string The new IP --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") -n, --name string The new record name --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/DNS/secondary/zone/create.md b/docs/subcommands/DNS/secondary/zone/create.md index 01a468727..7ed577690 100644 --- a/docs/subcommands/DNS/secondary/zone/create.md +++ b/docs/subcommands/DNS/secondary/zone/create.md @@ -44,7 +44,7 @@ IPv6: 2001:8d8:fe:53::5cd:25 -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") -n, --name string Name of the secondary zone --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/DNS/secondary/zone/delete.md b/docs/subcommands/DNS/secondary/zone/delete.md index f7885a37c..8a5cb8065 100644 --- a/docs/subcommands/DNS/secondary/zone/delete.md +++ b/docs/subcommands/DNS/secondary/zone/delete.md @@ -41,7 +41,7 @@ Delete a secondary zone -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/DNS/secondary/zone/get.md b/docs/subcommands/DNS/secondary/zone/get.md index 67625d657..cc40719d1 100644 --- a/docs/subcommands/DNS/secondary/zone/get.md +++ b/docs/subcommands/DNS/secondary/zone/get.md @@ -34,7 +34,7 @@ Retrieve a secondary zone by its ID or name -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/DNS/secondary/zone/list.md b/docs/subcommands/DNS/secondary/zone/list.md index ed84219b1..bb5e2c4ef 100644 --- a/docs/subcommands/DNS/secondary/zone/list.md +++ b/docs/subcommands/DNS/secondary/zone/list.md @@ -34,7 +34,7 @@ List all secondary zones. Default limit is the first 100 items. Use pagination q -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") -n, --name string Filter used to fetch only the zones that contain the specified zone name --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/DNS/secondary/zone/transfer/get.md b/docs/subcommands/DNS/secondary/zone/transfer/get.md index ee0c87cfd..8041d97cb 100644 --- a/docs/subcommands/DNS/secondary/zone/transfer/get.md +++ b/docs/subcommands/DNS/secondary/zone/transfer/get.md @@ -46,7 +46,7 @@ Get the transfer status for a secondary zone -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/DNS/secondary/zone/transfer/start.md b/docs/subcommands/DNS/secondary/zone/transfer/start.md index f447748a8..66cdb9fc3 100644 --- a/docs/subcommands/DNS/secondary/zone/transfer/start.md +++ b/docs/subcommands/DNS/secondary/zone/transfer/start.md @@ -46,7 +46,7 @@ Initiate zone transfer -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/DNS/secondary/zone/update.md b/docs/subcommands/DNS/secondary/zone/update.md index 8a1773ca1..c0651a2d2 100644 --- a/docs/subcommands/DNS/secondary/zone/update.md +++ b/docs/subcommands/DNS/secondary/zone/update.md @@ -35,7 +35,7 @@ Update or create a secondary zone -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/DNS/zone/create.md b/docs/subcommands/DNS/zone/create.md index 304d90dc0..8f0f86d32 100644 --- a/docs/subcommands/DNS/zone/create.md +++ b/docs/subcommands/DNS/zone/create.md @@ -42,7 +42,7 @@ Create a zone -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") -n, --name string The name of the DNS zone, e.g. foo.com --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/DNS/zone/delete.md b/docs/subcommands/DNS/zone/delete.md index 19fccadfd..ec6261388 100644 --- a/docs/subcommands/DNS/zone/delete.md +++ b/docs/subcommands/DNS/zone/delete.md @@ -41,7 +41,7 @@ Delete a zone -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/DNS/zone/file/get.md b/docs/subcommands/DNS/zone/file/get.md index ec392f966..529d7d4da 100644 --- a/docs/subcommands/DNS/zone/file/get.md +++ b/docs/subcommands/DNS/zone/file/get.md @@ -46,7 +46,7 @@ Get the exported zone file in BIND format (RFC 1035) -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/DNS/zone/file/update.md b/docs/subcommands/DNS/zone/file/update.md index 8876e2366..5c53bfd1b 100644 --- a/docs/subcommands/DNS/zone/file/update.md +++ b/docs/subcommands/DNS/zone/file/update.md @@ -40,7 +40,7 @@ Update a zone file -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/DNS/zone/get.md b/docs/subcommands/DNS/zone/get.md index f6fd3fcd9..4de1339ca 100644 --- a/docs/subcommands/DNS/zone/get.md +++ b/docs/subcommands/DNS/zone/get.md @@ -40,7 +40,7 @@ Retrieve a zone -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/DNS/zone/list.md b/docs/subcommands/DNS/zone/list.md index effcc6c5a..3796e4406 100644 --- a/docs/subcommands/DNS/zone/list.md +++ b/docs/subcommands/DNS/zone/list.md @@ -40,7 +40,7 @@ Retrieve zones -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") -n, --name string Filter used to fetch only the zones that contain the specified zone name --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/DNS/zone/update.md b/docs/subcommands/DNS/zone/update.md index 5db302ee6..da9f885ae 100644 --- a/docs/subcommands/DNS/zone/update.md +++ b/docs/subcommands/DNS/zone/update.md @@ -42,7 +42,7 @@ Partially modify a zone's properties. This command uses a combination of GET and -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra (default "de/fra") -n, --name string The new name of the DNS zone, e.g. foo.com --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Database-as-a-Service/In-Memory-DB/replicaset/create.md b/docs/subcommands/Database-as-a-Service/In-Memory-DB/replicaset/create.md index 2c1bc05ea..0c5eeabff 100644 --- a/docs/subcommands/Database-as-a-Service/In-Memory-DB/replicaset/create.md +++ b/docs/subcommands/Database-as-a-Service/In-Memory-DB/replicaset/create.md @@ -69,7 +69,7 @@ volatile-ttl: The key with the nearest time to live will be removed first, but o -h, --help Print usage --lan-id string The numeric Private LAN ID to connect your instance to (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/txl, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/txl, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") --maintenance-day string Day Of the Week for the MaintenanceWindows. The MaintenanceWindow is a weekly 4 hour-long windows, during which maintenance might occur. Defaults to a random day during Mon-Fri, during the hours 10:00-16:00 (default "Random (Mon-Fri 10:00-16:00)") --maintenance-time string Time for the MaintenanceWindows. The MaintenanceWindow is a weekly 4 hour-long windows, during which maintenance might occur. e.g.: 16:30:59. Defaults to a random day during Mon-Fri, during the hours 10:00-16:00 (default "Random (Mon-Fri 10:00-16:00)") -n, --name string The name of the Replica Set (required) diff --git a/docs/subcommands/Database-as-a-Service/In-Memory-DB/replicaset/delete.md b/docs/subcommands/Database-as-a-Service/In-Memory-DB/replicaset/delete.md index 7bb0410c8..c5341c4f3 100644 --- a/docs/subcommands/Database-as-a-Service/In-Memory-DB/replicaset/delete.md +++ b/docs/subcommands/Database-as-a-Service/In-Memory-DB/replicaset/delete.md @@ -47,7 +47,7 @@ Delete In-Memory DB Replica Sets -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/txl, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/txl, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Database-as-a-Service/In-Memory-DB/replicaset/get.md b/docs/subcommands/Database-as-a-Service/In-Memory-DB/replicaset/get.md index 1f43fea0c..167722550 100644 --- a/docs/subcommands/Database-as-a-Service/In-Memory-DB/replicaset/get.md +++ b/docs/subcommands/Database-as-a-Service/In-Memory-DB/replicaset/get.md @@ -46,7 +46,7 @@ Get an In-Memory DB Replica Set -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/txl, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/txl, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Database-as-a-Service/In-Memory-DB/replicaset/list.md b/docs/subcommands/Database-as-a-Service/In-Memory-DB/replicaset/list.md index 1b40581ae..d9afd349e 100644 --- a/docs/subcommands/Database-as-a-Service/In-Memory-DB/replicaset/list.md +++ b/docs/subcommands/Database-as-a-Service/In-Memory-DB/replicaset/list.md @@ -46,7 +46,7 @@ List In-Memory DB Replica Sets -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/txl, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/txl, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") -n, --name string You can filter the Replica Sets by name --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Database-as-a-Service/In-Memory-DB/snapshot/list.md b/docs/subcommands/Database-as-a-Service/In-Memory-DB/snapshot/list.md index 5962b68e9..7a579a3ef 100644 --- a/docs/subcommands/Database-as-a-Service/In-Memory-DB/snapshot/list.md +++ b/docs/subcommands/Database-as-a-Service/In-Memory-DB/snapshot/list.md @@ -46,7 +46,7 @@ List In-Memory DB Snapshots -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/txl, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/txl, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Database-as-a-Service/In-Memory-DB/snapshot/restore/create.md b/docs/subcommands/Database-as-a-Service/In-Memory-DB/snapshot/restore/create.md index 939af56ed..9abf96911 100644 --- a/docs/subcommands/Database-as-a-Service/In-Memory-DB/snapshot/restore/create.md +++ b/docs/subcommands/Database-as-a-Service/In-Memory-DB/snapshot/restore/create.md @@ -47,7 +47,7 @@ Create an In-Memory DB Restore -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/txl, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/txl, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") -n, --name string The human readable name of your snapshot --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Database-as-a-Service/In-Memory-DB/snapshot/restore/list.md b/docs/subcommands/Database-as-a-Service/In-Memory-DB/snapshot/restore/list.md index 1d1b02302..bb3d761f5 100644 --- a/docs/subcommands/Database-as-a-Service/In-Memory-DB/snapshot/restore/list.md +++ b/docs/subcommands/Database-as-a-Service/In-Memory-DB/snapshot/restore/list.md @@ -46,7 +46,7 @@ List In-Memory DB Restores -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/txl, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/txl, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Database-as-a-Service/mariadb/backup/get.md b/docs/subcommands/Database-as-a-Service/mariadb/backup/get.md index f5b238da9..a0e720a16 100644 --- a/docs/subcommands/Database-as-a-Service/mariadb/backup/get.md +++ b/docs/subcommands/Database-as-a-Service/mariadb/backup/get.md @@ -47,7 +47,7 @@ Get a MariaDB Backup -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, us/ewr, us/las, us/mci (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, us/ewr, us/las, us/mci (default "de/txl") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Database-as-a-Service/mariadb/backup/list.md b/docs/subcommands/Database-as-a-Service/mariadb/backup/list.md index 900753ac0..06c7a1377 100644 --- a/docs/subcommands/Database-as-a-Service/mariadb/backup/list.md +++ b/docs/subcommands/Database-as-a-Service/mariadb/backup/list.md @@ -47,7 +47,7 @@ List all MariaDB Backups, or optionally provide a Cluster ID to list those of a -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, us/ewr, us/las, us/mci (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, us/ewr, us/las, us/mci (default "de/txl") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Database-as-a-Service/mariadb/cluster/create.md b/docs/subcommands/Database-as-a-Service/mariadb/cluster/create.md index eabcbf59b..9708a17db 100644 --- a/docs/subcommands/Database-as-a-Service/mariadb/cluster/create.md +++ b/docs/subcommands/Database-as-a-Service/mariadb/cluster/create.md @@ -51,7 +51,7 @@ Create DBaaS MariaDB clusters --instances int32 The total number of instances of the cluster (one primary and n-1 secondaries) (default 1) --lan-id string The numeric LAN ID with which you connect your cluster (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, us/ewr, us/las, us/mci (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, us/ewr, us/las, us/mci (default "de/txl") --maintenance-day string Day Of the Week for the MaintenanceWindows. The MaintenanceWindow is a weekly 4 hour-long windows, during which maintenance might occur. Defaults to a random day during Mon-Fri, during the hours 10:00-16:00 (default "Random (Mon-Fri 10:00-16:00)") --maintenance-time string Time for the MaintenanceWindows. The MaintenanceWindow is a weekly 4 hour-long windows, during which maintenance might occur. e.g.: 16:30:59. Defaults to a random day during Mon-Fri, during the hours 10:00-16:00 (default "Random (Mon-Fri 10:00-16:00)") -n, --name string The name of your cluster (required) diff --git a/docs/subcommands/Database-as-a-Service/mariadb/cluster/delete.md b/docs/subcommands/Database-as-a-Service/mariadb/cluster/delete.md index 4f33faa15..666f875c2 100644 --- a/docs/subcommands/Database-as-a-Service/mariadb/cluster/delete.md +++ b/docs/subcommands/Database-as-a-Service/mariadb/cluster/delete.md @@ -48,7 +48,7 @@ Delete a MariaDB Cluster by ID -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, us/ewr, us/las, us/mci (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, us/ewr, us/las, us/mci (default "de/txl") -n, --name When deleting all clusters, filter the clusters by a name --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Database-as-a-Service/mariadb/cluster/get.md b/docs/subcommands/Database-as-a-Service/mariadb/cluster/get.md index 81e771923..86862c6de 100644 --- a/docs/subcommands/Database-as-a-Service/mariadb/cluster/get.md +++ b/docs/subcommands/Database-as-a-Service/mariadb/cluster/get.md @@ -47,7 +47,7 @@ Get a MariaDB Cluster by ID -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, us/ewr, us/las, us/mci (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, us/ewr, us/las, us/mci (default "de/txl") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Database-as-a-Service/mariadb/cluster/list.md b/docs/subcommands/Database-as-a-Service/mariadb/cluster/list.md index c6fcbaf25..6ae227d42 100644 --- a/docs/subcommands/Database-as-a-Service/mariadb/cluster/list.md +++ b/docs/subcommands/Database-as-a-Service/mariadb/cluster/list.md @@ -46,7 +46,7 @@ Use this command to retrieve a list of MariaDB Clusters provisioned under your a -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, us/ewr, us/las, us/mci (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, us/ewr, us/las, us/mci (default "de/txl") -n, --name string Response filter to list only the MariaDB Clusters that contain the specified name in the DisplayName field. The value is case insensitive --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Database-as-a-Service/mariadb/cluster/update.md b/docs/subcommands/Database-as-a-Service/mariadb/cluster/update.md index d86866937..74bbe2486 100644 --- a/docs/subcommands/Database-as-a-Service/mariadb/cluster/update.md +++ b/docs/subcommands/Database-as-a-Service/mariadb/cluster/update.md @@ -49,7 +49,7 @@ Update a MariaDB Cluster -h, --help Print usage --instances int32 The total number of instances of the cluster (one primary and n-1 secondaries). Instances can only be increased (3,5,7) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, us/ewr, us/las, us/mci (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, us/ewr, us/las, us/mci (default "de/txl") --maintenance-day string Day Of the Week for the MaintenanceWindows. e.g.: Monday. To change maintenance provide both --maintenance-day and --maintenance-time --maintenance-time string Time for the MaintenanceWindows. e.g.: 16:30:59. To change maintenance provide both --maintenance-day and --maintenance-time -n, --name string The name of your cluster diff --git a/docs/subcommands/Database-as-a-Service/postgres/v2/backup/get.md b/docs/subcommands/Database-as-a-Service/postgres/v2/backup/get.md index ac478c5d4..afa5e3440 100644 --- a/docs/subcommands/Database-as-a-Service/postgres/v2/backup/get.md +++ b/docs/subcommands/Database-as-a-Service/postgres/v2/backup/get.md @@ -51,7 +51,7 @@ Required values to run command: -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Database-as-a-Service/postgres/v2/backup/list.md b/docs/subcommands/Database-as-a-Service/postgres/v2/backup/list.md index f9b6a4907..f8d64b1f2 100644 --- a/docs/subcommands/Database-as-a-Service/postgres/v2/backup/list.md +++ b/docs/subcommands/Database-as-a-Service/postgres/v2/backup/list.md @@ -47,7 +47,7 @@ Use this command to retrieve a list of PostgreSQL Backups. -f, --force Force command to execute without user input -h, --help Print usage --limit int32 The limit of the number of items to return (default 100) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") --no-headers Don't print table headers when table output is used --offset int32 The offset of the listing --order-by string Property to order the results by diff --git a/docs/subcommands/Database-as-a-Service/postgres/v2/backup/location/get.md b/docs/subcommands/Database-as-a-Service/postgres/v2/backup/location/get.md index f260a4f44..4241996ad 100644 --- a/docs/subcommands/Database-as-a-Service/postgres/v2/backup/location/get.md +++ b/docs/subcommands/Database-as-a-Service/postgres/v2/backup/location/get.md @@ -51,7 +51,7 @@ Required values to run command: -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Database-as-a-Service/postgres/v2/backup/location/list.md b/docs/subcommands/Database-as-a-Service/postgres/v2/backup/location/list.md index 23f10ecd0..888cd690e 100644 --- a/docs/subcommands/Database-as-a-Service/postgres/v2/backup/location/list.md +++ b/docs/subcommands/Database-as-a-Service/postgres/v2/backup/location/list.md @@ -46,7 +46,7 @@ Use this command to retrieve a list of PostgreSQL Backup Locations. -f, --force Force command to execute without user input -h, --help Print usage --limit int32 The limit of the number of items to return (default 100) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") --no-headers Don't print table headers when table output is used --offset int32 The offset of the listing --order-by string Property to order the results by diff --git a/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/create.md b/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/create.md index b3c4ae1ad..8b0b3ae58 100644 --- a/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/create.md +++ b/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/create.md @@ -66,7 +66,7 @@ Required values to run command: -I, --instances int The number of instances in your cluster (one primary and n-1 standbys). Minimum: 1, Maximum: 5 (default 1) -L, --lan-id string The unique ID of the LAN to connect your cluster to (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") --logs-enabled Enable collection and reporting of logs for this cluster -d, --maintenance-day string Day of the week for the MaintenanceWindow. Defaults to a random day during Mon-Fri. Can be one of: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday (default "Random (Mon-Fri 10:00-16:00)") -T, --maintenance-time string Time for the MaintenanceWindow. The MaintenanceWindow is a weekly 4 hour-long window, during which maintenance might occur. e.g.: 16:30:59. Defaults to a random time during 10:00-16:00 (default "Random (Mon-Fri 10:00-16:00)") diff --git a/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/delete.md b/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/delete.md index b5a07aa5a..2dfc1f06f 100644 --- a/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/delete.md +++ b/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/delete.md @@ -52,7 +52,7 @@ Required values to run command: -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") -n, --name string Delete all Clusters after filtering based on name. It does not require an exact match. Can be used with --all flag --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/get.md b/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/get.md index 5d41ea106..484d1b446 100644 --- a/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/get.md +++ b/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/get.md @@ -51,7 +51,7 @@ Required values to run command: -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/list.md b/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/list.md index 9c5ebb666..68917011b 100644 --- a/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/list.md +++ b/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/list.md @@ -46,7 +46,7 @@ Use this command to retrieve a list of PostgreSQL Clusters provisioned under you -f, --force Force command to execute without user input -h, --help Print usage --limit int32 The maximum number of elements to return (default 100) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") -n, --name string Response filter to list only the PostgreSQL Clusters that contain the specified name in the DisplayName field. The value is case insensitive --no-headers Don't print table headers when table output is used --offset int32 The first element to return diff --git a/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/restore.md b/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/restore.md index b8f8e8369..74b2a2bbc 100644 --- a/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/restore.md +++ b/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/restore.md @@ -55,7 +55,7 @@ Required values to run command: -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/update.md b/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/update.md index 4c76f535f..b1d3f6008 100644 --- a/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/update.md +++ b/docs/subcommands/Database-as-a-Service/postgres/v2/cluster/update.md @@ -60,7 +60,7 @@ Required values to run command: -I, --instances int The number of instances in your cluster. Minimum: 1, Maximum: 5 -L, --lan-id string The unique ID of the LAN to connect your cluster to --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") --logs-enabled Enable collection and reporting of logs for this cluster -d, --maintenance-day string Day of the week for the MaintenanceWindow. Must be specified together with --maintenance-time. Can be one of: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday -T, --maintenance-time string Time for the MaintenanceWindow. The MaintenanceWindow is a weekly 4 hour-long window, during which maintenance might occur. e.g.: 16:30:59. Must be specified together with --maintenance-day diff --git a/docs/subcommands/Database-as-a-Service/postgres/v2/version/get.md b/docs/subcommands/Database-as-a-Service/postgres/v2/version/get.md index 9426d2e34..5d137bfe9 100644 --- a/docs/subcommands/Database-as-a-Service/postgres/v2/version/get.md +++ b/docs/subcommands/Database-as-a-Service/postgres/v2/version/get.md @@ -50,7 +50,7 @@ Required values to run command: -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Database-as-a-Service/postgres/v2/version/list.md b/docs/subcommands/Database-as-a-Service/postgres/v2/version/list.md index 0ac8013de..a880badfc 100644 --- a/docs/subcommands/Database-as-a-Service/postgres/v2/version/list.md +++ b/docs/subcommands/Database-as-a-Service/postgres/v2/version/list.md @@ -46,7 +46,7 @@ Use this command to retrieve a list of available PostgreSQL Versions. -f, --force Force command to execute without user input -h, --help Print usage --limit int32 The maximum number of elements to return (default 100) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/las, us/mci, us/ewr (default "de/txl") --no-headers Don't print table headers when table output is used --offset int32 The first element to return --order-by string Property to order the results by diff --git a/docs/subcommands/Kafka/cluster/create.md b/docs/subcommands/Kafka/cluster/create.md index 39d5cbb35..759ac9346 100644 --- a/docs/subcommands/Kafka/cluster/create.md +++ b/docs/subcommands/Kafka/cluster/create.md @@ -43,7 +43,7 @@ Create a kafka cluster. Wiki: https://docs.ionos.com/cloud/data-analytics/kafka/ -h, --help Print usage --lan-id string The ID of the LAN (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") -n, --name string The name of the kafka cluster (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Kafka/cluster/delete.md b/docs/subcommands/Kafka/cluster/delete.md index e46a8174e..3f83f3f5c 100644 --- a/docs/subcommands/Kafka/cluster/delete.md +++ b/docs/subcommands/Kafka/cluster/delete.md @@ -42,7 +42,7 @@ Delete a cluster -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Kafka/cluster/get.md b/docs/subcommands/Kafka/cluster/get.md index 0d0006522..5e97ffa15 100644 --- a/docs/subcommands/Kafka/cluster/get.md +++ b/docs/subcommands/Kafka/cluster/get.md @@ -41,7 +41,7 @@ Retrieve a cluster -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Kafka/cluster/list.md b/docs/subcommands/Kafka/cluster/list.md index af40272f1..93a037f28 100644 --- a/docs/subcommands/Kafka/cluster/list.md +++ b/docs/subcommands/Kafka/cluster/list.md @@ -40,7 +40,7 @@ Retrieve all clusters using pagination and optional filters -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") --name string Filter used to fetch only the records that contain specified name. --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results @@ -57,6 +57,6 @@ Retrieve all clusters using pagination and optional filters ## Examples ```text -ionosctl kafka c list --location de/txl +ionosctl kafka c list ``` diff --git a/docs/subcommands/Kafka/topic/create.md b/docs/subcommands/Kafka/topic/create.md index 4be0cef9c..536e1e939 100644 --- a/docs/subcommands/Kafka/topic/create.md +++ b/docs/subcommands/Kafka/topic/create.md @@ -41,7 +41,7 @@ Create a kafka topic -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") -n, --name string The name of the topic (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Kafka/topic/delete.md b/docs/subcommands/Kafka/topic/delete.md index f1316cf62..07e3553e4 100644 --- a/docs/subcommands/Kafka/topic/delete.md +++ b/docs/subcommands/Kafka/topic/delete.md @@ -42,7 +42,7 @@ Delete a kafka topic -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Kafka/topic/get.md b/docs/subcommands/Kafka/topic/get.md index aac2f05de..025f4b62e 100644 --- a/docs/subcommands/Kafka/topic/get.md +++ b/docs/subcommands/Kafka/topic/get.md @@ -41,7 +41,7 @@ Get a kafka topic -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Kafka/topic/list.md b/docs/subcommands/Kafka/topic/list.md index d6e2463f7..8d00c8600 100644 --- a/docs/subcommands/Kafka/topic/list.md +++ b/docs/subcommands/Kafka/topic/list.md @@ -41,7 +41,7 @@ List all kafka topics -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by @@ -56,7 +56,7 @@ List all kafka topics ## Examples ```text -ionosctl kafka topic list --location LOCATION +ionosctl kafka topic list --cluster-id CLUSTER_ID ionosctl kafka topic list --location LOCATION --cluster-id CLUSTER_ID ``` diff --git a/docs/subcommands/Kafka/user/get/access.md b/docs/subcommands/Kafka/user/get/access.md index 990df53e7..1645d8341 100644 --- a/docs/subcommands/Kafka/user/get/access.md +++ b/docs/subcommands/Kafka/user/get/access.md @@ -49,7 +49,7 @@ IMPORTANT: Keep these credentials secure. The private key should never be shared -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Kafka/user/list.md b/docs/subcommands/Kafka/user/list.md index ed71aa0bf..7570c5612 100644 --- a/docs/subcommands/Kafka/user/list.md +++ b/docs/subcommands/Kafka/user/list.md @@ -41,7 +41,7 @@ List a cluster's users -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, gb/lhr, gb/bhx, us/ewr, us/las, us/mci, fr/par (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Logging-Service/central/disable.md b/docs/subcommands/Logging-Service/central/disable.md index 1622368fd..b0faf1d14 100644 --- a/docs/subcommands/Logging-Service/central/disable.md +++ b/docs/subcommands/Logging-Service/central/disable.md @@ -44,7 +44,7 @@ Disable CentralLogging -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Logging-Service/central/enable.md b/docs/subcommands/Logging-Service/central/enable.md index 72928dfe4..7a26b775a 100644 --- a/docs/subcommands/Logging-Service/central/enable.md +++ b/docs/subcommands/Logging-Service/central/enable.md @@ -44,7 +44,7 @@ Enable CentralLogging -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Logging-Service/central/get.md b/docs/subcommands/Logging-Service/central/get.md index c0470a407..9e1067abb 100644 --- a/docs/subcommands/Logging-Service/central/get.md +++ b/docs/subcommands/Logging-Service/central/get.md @@ -44,7 +44,7 @@ Retrieve CentralLogging -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Logging-Service/logs/add.md b/docs/subcommands/Logging-Service/logs/add.md index 3ecffacee..a749ce871 100644 --- a/docs/subcommands/Logging-Service/logs/add.md +++ b/docs/subcommands/Logging-Service/logs/add.md @@ -26,7 +26,7 @@ Add a log to a logging pipeline -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") --log-labels strings Sets the labels for the pipeline log --log-protocol string Sets the protocol for the pipeline log. Can be one of: http, tcp (required) --log-retention-time string Sets the retention time in days for the pipeline log. Can be one of: 7, 14, 30 (default "30") diff --git a/docs/subcommands/Logging-Service/logs/get.md b/docs/subcommands/Logging-Service/logs/get.md index d802afe6e..cb80690b8 100644 --- a/docs/subcommands/Logging-Service/logs/get.md +++ b/docs/subcommands/Logging-Service/logs/get.md @@ -26,7 +26,7 @@ Retrieve a log from a logging pipeline -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") --log-tag string The tag of the pipeline log that you want to retrieve (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Logging-Service/logs/list.md b/docs/subcommands/Logging-Service/logs/list.md index de6a27783..cadf069ab 100644 --- a/docs/subcommands/Logging-Service/logs/list.md +++ b/docs/subcommands/Logging-Service/logs/list.md @@ -41,7 +41,7 @@ Retrieve logging pipeline logs -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Logging-Service/logs/remove.md b/docs/subcommands/Logging-Service/logs/remove.md index fc0971d42..d725705ab 100644 --- a/docs/subcommands/Logging-Service/logs/remove.md +++ b/docs/subcommands/Logging-Service/logs/remove.md @@ -26,7 +26,7 @@ Remove a log from a logging pipeline. NOTE:There needs to be at least one log in -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") --log-tag string The tag of the pipeline log that you want to delete (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Logging-Service/logs/update.md b/docs/subcommands/Logging-Service/logs/update.md index 5e3d85dc9..2192967f2 100644 --- a/docs/subcommands/Logging-Service/logs/update.md +++ b/docs/subcommands/Logging-Service/logs/update.md @@ -26,7 +26,7 @@ Update a log from a logging pipeline -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") --log-labels strings Sets the labels for the pipeline log --log-protocol string Sets the protocol for the pipeline log. Can be one of: http, tcp --log-retention-time string Sets the retention time in days for the pipeline log. Can be one of: 7, 14, 30 (default "30") diff --git a/docs/subcommands/Logging-Service/pipeline/create.md b/docs/subcommands/Logging-Service/pipeline/create.md index ba73dd4e4..3d2d541eb 100644 --- a/docs/subcommands/Logging-Service/pipeline/create.md +++ b/docs/subcommands/Logging-Service/pipeline/create.md @@ -42,7 +42,7 @@ Create a logging pipeline --json-properties string Path to a JSON file containing the desired properties. Overrides any other properties set. --json-properties-example If set, prints a complete JSON which could be used for --json-properties and exits. Hint: Pipe me to a .json file --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") --log-labels strings Sets the labels for the pipeline log --log-protocol string Sets the protocol for the pipeline log. Can be one of: http, tcp --log-retention-time string Sets the retention time in days for the pipeline log. Can be one of: 7, 14, 30 (default "30") diff --git a/docs/subcommands/Logging-Service/pipeline/delete.md b/docs/subcommands/Logging-Service/pipeline/delete.md index b9a8c1874..8c8db3761 100644 --- a/docs/subcommands/Logging-Service/pipeline/delete.md +++ b/docs/subcommands/Logging-Service/pipeline/delete.md @@ -41,7 +41,7 @@ Delete a logging pipeline using its ID -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Logging-Service/pipeline/get.md b/docs/subcommands/Logging-Service/pipeline/get.md index ce61a0005..4ae0c58a9 100644 --- a/docs/subcommands/Logging-Service/pipeline/get.md +++ b/docs/subcommands/Logging-Service/pipeline/get.md @@ -40,7 +40,7 @@ Retrieve a logging pipeline by ID -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Logging-Service/pipeline/key.md b/docs/subcommands/Logging-Service/pipeline/key.md index a5cc37ce1..c2c8292ce 100644 --- a/docs/subcommands/Logging-Service/pipeline/key.md +++ b/docs/subcommands/Logging-Service/pipeline/key.md @@ -40,7 +40,7 @@ Generate a new key for a logging pipeline, invalidating the old one. The key is -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Logging-Service/pipeline/list.md b/docs/subcommands/Logging-Service/pipeline/list.md index 1d4968b4f..eedb7f042 100644 --- a/docs/subcommands/Logging-Service/pipeline/list.md +++ b/docs/subcommands/Logging-Service/pipeline/list.md @@ -46,7 +46,7 @@ Retrieve logging pipelines -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Logging-Service/pipeline/update.md b/docs/subcommands/Logging-Service/pipeline/update.md index 7ae2f8ae6..591ef320e 100644 --- a/docs/subcommands/Logging-Service/pipeline/update.md +++ b/docs/subcommands/Logging-Service/pipeline/update.md @@ -42,7 +42,7 @@ Update a logging pipeline --json-properties string Path to a JSON file containing the desired properties. Overrides any other properties set. --json-properties-example If set, prints a complete JSON which could be used for --json-properties and exits. Hint: Pipe me to a .json file --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/txl, de/fra, gb/lhr, fr/par, es/vit, us/mci, gb/bhx (default "de/txl") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Object-Storage/bucket/cors/delete.md b/docs/subcommands/Object-Storage/bucket/cors/delete.md index 85d020085..9674e60ee 100644 --- a/docs/subcommands/Object-Storage/bucket/cors/delete.md +++ b/docs/subcommands/Object-Storage/bucket/cors/delete.md @@ -40,7 +40,7 @@ Delete the CORS configuration for a bucket -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/cors/get.md b/docs/subcommands/Object-Storage/bucket/cors/get.md index eb3a171ca..8dabe8bd0 100644 --- a/docs/subcommands/Object-Storage/bucket/cors/get.md +++ b/docs/subcommands/Object-Storage/bucket/cors/get.md @@ -40,7 +40,7 @@ Get the CORS configuration for a bucket -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/cors/put.md b/docs/subcommands/Object-Storage/bucket/cors/put.md index 05b9a0257..966537f29 100644 --- a/docs/subcommands/Object-Storage/bucket/cors/put.md +++ b/docs/subcommands/Object-Storage/bucket/cors/put.md @@ -42,7 +42,7 @@ Create or replace the CORS configuration for a bucket. The configuration must be --json-properties string Path to a JSON file containing the CORS configuration --json-properties-example Print an example CORS configuration JSON and exit --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/create.md b/docs/subcommands/Object-Storage/bucket/create.md index 8cceb9509..d49963024 100644 --- a/docs/subcommands/Object-Storage/bucket/create.md +++ b/docs/subcommands/Object-Storage/bucket/create.md @@ -46,7 +46,7 @@ Create a contract-owned bucket -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket to create (required) --no-headers Don't print table headers when table output is used --object-lock Enable Object Lock on the new bucket (cannot be changed after creation) diff --git a/docs/subcommands/Object-Storage/bucket/delete.md b/docs/subcommands/Object-Storage/bucket/delete.md index 5607ddb25..e44c84d28 100644 --- a/docs/subcommands/Object-Storage/bucket/delete.md +++ b/docs/subcommands/Object-Storage/bucket/delete.md @@ -47,7 +47,7 @@ Delete a contract-owned bucket, or all buckets using --all. The bucket must be e -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket to delete --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/encryption/delete.md b/docs/subcommands/Object-Storage/bucket/encryption/delete.md index 299daa9c7..d0f6277d9 100644 --- a/docs/subcommands/Object-Storage/bucket/encryption/delete.md +++ b/docs/subcommands/Object-Storage/bucket/encryption/delete.md @@ -46,7 +46,7 @@ Delete the default encryption configuration for a bucket -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/encryption/get.md b/docs/subcommands/Object-Storage/bucket/encryption/get.md index cb9231dfc..f640b41ce 100644 --- a/docs/subcommands/Object-Storage/bucket/encryption/get.md +++ b/docs/subcommands/Object-Storage/bucket/encryption/get.md @@ -46,7 +46,7 @@ Get the default encryption configuration for a bucket -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/encryption/put.md b/docs/subcommands/Object-Storage/bucket/encryption/put.md index a49a7d59a..c5a2f3fad 100644 --- a/docs/subcommands/Object-Storage/bucket/encryption/put.md +++ b/docs/subcommands/Object-Storage/bucket/encryption/put.md @@ -48,7 +48,7 @@ Create or replace the default encryption configuration for a bucket. The configu --json-properties string Path to a JSON file containing the encryption configuration --json-properties-example Print an example encryption configuration JSON and exit --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/get.md b/docs/subcommands/Object-Storage/bucket/get.md index 515738138..2e2a34d18 100644 --- a/docs/subcommands/Object-Storage/bucket/get.md +++ b/docs/subcommands/Object-Storage/bucket/get.md @@ -46,7 +46,7 @@ Get details of a contract-owned bucket -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket to retrieve (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/head.md b/docs/subcommands/Object-Storage/bucket/head.md index 2738a02df..6f04b66ee 100644 --- a/docs/subcommands/Object-Storage/bucket/head.md +++ b/docs/subcommands/Object-Storage/bucket/head.md @@ -46,7 +46,7 @@ Check if a bucket exists and you have access -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket to check (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/lifecycle/delete.md b/docs/subcommands/Object-Storage/bucket/lifecycle/delete.md index e77578a95..e7d88eddc 100644 --- a/docs/subcommands/Object-Storage/bucket/lifecycle/delete.md +++ b/docs/subcommands/Object-Storage/bucket/lifecycle/delete.md @@ -46,7 +46,7 @@ Delete the lifecycle configuration for a bucket -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/lifecycle/get.md b/docs/subcommands/Object-Storage/bucket/lifecycle/get.md index c20afe61c..d66321be2 100644 --- a/docs/subcommands/Object-Storage/bucket/lifecycle/get.md +++ b/docs/subcommands/Object-Storage/bucket/lifecycle/get.md @@ -46,7 +46,7 @@ Get the lifecycle configuration for a bucket -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/lifecycle/put.md b/docs/subcommands/Object-Storage/bucket/lifecycle/put.md index 3836921a6..02b55358c 100644 --- a/docs/subcommands/Object-Storage/bucket/lifecycle/put.md +++ b/docs/subcommands/Object-Storage/bucket/lifecycle/put.md @@ -48,7 +48,7 @@ Create or replace the lifecycle configuration for a bucket. The configuration mu --json-properties string Path to a JSON file containing the lifecycle configuration --json-properties-example Print an example lifecycle configuration JSON and exit --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/list.md b/docs/subcommands/Object-Storage/bucket/list.md index 92a410419..d8e3f79a9 100644 --- a/docs/subcommands/Object-Storage/bucket/list.md +++ b/docs/subcommands/Object-Storage/bucket/list.md @@ -46,7 +46,7 @@ List all contract-owned buckets -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/Object-Storage/bucket/object/lock/get.md b/docs/subcommands/Object-Storage/bucket/object/lock/get.md index 7b8137218..b5ab9179a 100644 --- a/docs/subcommands/Object-Storage/bucket/object/lock/get.md +++ b/docs/subcommands/Object-Storage/bucket/object/lock/get.md @@ -46,7 +46,7 @@ Get the Object Lock configuration for a bucket -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/object/lock/put.md b/docs/subcommands/Object-Storage/bucket/object/lock/put.md index 3b675a561..8888401c3 100644 --- a/docs/subcommands/Object-Storage/bucket/object/lock/put.md +++ b/docs/subcommands/Object-Storage/bucket/object/lock/put.md @@ -47,7 +47,7 @@ Apply an Object Lock configuration to a bucket. The bucket must have been create -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") --mode string Default retention mode: GOVERNANCE or COMPLIANCE (required) -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used diff --git a/docs/subcommands/Object-Storage/bucket/policy/delete.md b/docs/subcommands/Object-Storage/bucket/policy/delete.md index 4c38f5bf8..44d376005 100644 --- a/docs/subcommands/Object-Storage/bucket/policy/delete.md +++ b/docs/subcommands/Object-Storage/bucket/policy/delete.md @@ -46,7 +46,7 @@ Delete the bucket policy -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/policy/get.md b/docs/subcommands/Object-Storage/bucket/policy/get.md index b10d08c26..4a473e5a6 100644 --- a/docs/subcommands/Object-Storage/bucket/policy/get.md +++ b/docs/subcommands/Object-Storage/bucket/policy/get.md @@ -46,7 +46,7 @@ Get the bucket policy -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/policy/put.md b/docs/subcommands/Object-Storage/bucket/policy/put.md index b282cfb84..3e3a4500c 100644 --- a/docs/subcommands/Object-Storage/bucket/policy/put.md +++ b/docs/subcommands/Object-Storage/bucket/policy/put.md @@ -48,7 +48,7 @@ Create or replace the bucket policy. The policy must be provided as a path to a --json-properties string Path to a JSON file containing the bucket policy --json-properties-example Print an example bucket policy JSON and exit --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/policy/status.md b/docs/subcommands/Object-Storage/bucket/policy/status.md index 3d2cca056..e9364de00 100644 --- a/docs/subcommands/Object-Storage/bucket/policy/status.md +++ b/docs/subcommands/Object-Storage/bucket/policy/status.md @@ -46,7 +46,7 @@ Check if a bucket policy makes the bucket public -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/public/access/block/delete.md b/docs/subcommands/Object-Storage/bucket/public/access/block/delete.md index 137cdb486..23061944c 100644 --- a/docs/subcommands/Object-Storage/bucket/public/access/block/delete.md +++ b/docs/subcommands/Object-Storage/bucket/public/access/block/delete.md @@ -46,7 +46,7 @@ Delete the public access block configuration for a bucket -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/public/access/block/get.md b/docs/subcommands/Object-Storage/bucket/public/access/block/get.md index 72801e80b..e41b4298a 100644 --- a/docs/subcommands/Object-Storage/bucket/public/access/block/get.md +++ b/docs/subcommands/Object-Storage/bucket/public/access/block/get.md @@ -46,7 +46,7 @@ Get the public access block configuration for a bucket -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/public/access/block/put.md b/docs/subcommands/Object-Storage/bucket/public/access/block/put.md index 4a2d8ded0..865b08704 100644 --- a/docs/subcommands/Object-Storage/bucket/public/access/block/put.md +++ b/docs/subcommands/Object-Storage/bucket/public/access/block/put.md @@ -48,7 +48,7 @@ Create or replace the public access block configuration for a bucket. The config --json-properties string Path to a JSON file containing the public access block configuration --json-properties-example Print an example public access block configuration JSON and exit --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/tagging/delete.md b/docs/subcommands/Object-Storage/bucket/tagging/delete.md index c820de97c..a33da80c1 100644 --- a/docs/subcommands/Object-Storage/bucket/tagging/delete.md +++ b/docs/subcommands/Object-Storage/bucket/tagging/delete.md @@ -46,7 +46,7 @@ Delete the tagging configuration for a bucket -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/tagging/get.md b/docs/subcommands/Object-Storage/bucket/tagging/get.md index 2f49ce81f..1431fe32d 100644 --- a/docs/subcommands/Object-Storage/bucket/tagging/get.md +++ b/docs/subcommands/Object-Storage/bucket/tagging/get.md @@ -46,7 +46,7 @@ Get the tagging configuration for a bucket -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/tagging/put.md b/docs/subcommands/Object-Storage/bucket/tagging/put.md index 92668e7ff..8bd0cf8c0 100644 --- a/docs/subcommands/Object-Storage/bucket/tagging/put.md +++ b/docs/subcommands/Object-Storage/bucket/tagging/put.md @@ -48,7 +48,7 @@ Create or replace the tagging configuration for a bucket. The configuration must --json-properties string Path to a JSON file containing the tagging configuration --json-properties-example Print an example tagging configuration JSON and exit --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/versioning/get.md b/docs/subcommands/Object-Storage/bucket/versioning/get.md index 1ed9fab44..1a6d3b3db 100644 --- a/docs/subcommands/Object-Storage/bucket/versioning/get.md +++ b/docs/subcommands/Object-Storage/bucket/versioning/get.md @@ -46,7 +46,7 @@ Get the versioning state of a bucket -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/bucket/versioning/set.md b/docs/subcommands/Object-Storage/bucket/versioning/set.md index 9d90ef5db..47c9142d6 100644 --- a/docs/subcommands/Object-Storage/bucket/versioning/set.md +++ b/docs/subcommands/Object-Storage/bucket/versioning/set.md @@ -46,7 +46,7 @@ Enable or suspend versioning on a bucket -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/object/copy.md b/docs/subcommands/Object-Storage/object/copy.md index 5343d1d66..44ff7dd1b 100644 --- a/docs/subcommands/Object-Storage/object/copy.md +++ b/docs/subcommands/Object-Storage/object/copy.md @@ -48,7 +48,7 @@ Copy an object within or between buckets. The --copy-source must be in the forma -h, --help Print usage -k, --key string Destination object key (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Destination bucket name (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/object/delete.md b/docs/subcommands/Object-Storage/object/delete.md index 67eabeeab..1db5d711b 100644 --- a/docs/subcommands/Object-Storage/object/delete.md +++ b/docs/subcommands/Object-Storage/object/delete.md @@ -49,7 +49,7 @@ Delete a single object by key, or all objects (including versions and delete mar -h, --help Print usage -k, --key string Object key to delete --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/object/get.md b/docs/subcommands/Object-Storage/object/get.md index aab4f699c..dffe792c3 100644 --- a/docs/subcommands/Object-Storage/object/get.md +++ b/docs/subcommands/Object-Storage/object/get.md @@ -48,7 +48,7 @@ Download an object to a file -h, --help Print usage -k, --key string Object key to download (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/object/head.md b/docs/subcommands/Object-Storage/object/head.md index 7c6198aa6..d4938c0c8 100644 --- a/docs/subcommands/Object-Storage/object/head.md +++ b/docs/subcommands/Object-Storage/object/head.md @@ -47,7 +47,7 @@ Get object metadata -h, --help Print usage -k, --key string Object key (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/object/legal/hold/get.md b/docs/subcommands/Object-Storage/object/legal/hold/get.md index bde3d833e..c2a0f3d6b 100644 --- a/docs/subcommands/Object-Storage/object/legal/hold/get.md +++ b/docs/subcommands/Object-Storage/object/legal/hold/get.md @@ -47,7 +47,7 @@ Get the legal hold status of an object -h, --help Print usage -k, --key string Object key (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/object/legal/hold/put.md b/docs/subcommands/Object-Storage/object/legal/hold/put.md index ceccf7a03..6e4771dab 100644 --- a/docs/subcommands/Object-Storage/object/legal/hold/put.md +++ b/docs/subcommands/Object-Storage/object/legal/hold/put.md @@ -47,7 +47,7 @@ Apply or remove a legal hold configuration on an object. Requires the bucket to -h, --help Print usage -k, --key string Object key (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/object/list.md b/docs/subcommands/Object-Storage/object/list.md index 82d5d7901..ca4934421 100644 --- a/docs/subcommands/Object-Storage/object/list.md +++ b/docs/subcommands/Object-Storage/object/list.md @@ -46,7 +46,7 @@ List objects in a bucket -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") --max-keys int32 Maximum number of objects to return (0 for no limit) (default 1000) -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used diff --git a/docs/subcommands/Object-Storage/object/put.md b/docs/subcommands/Object-Storage/object/put.md index 155c4807f..fd3cfd1e0 100644 --- a/docs/subcommands/Object-Storage/object/put.md +++ b/docs/subcommands/Object-Storage/object/put.md @@ -48,7 +48,7 @@ Upload a file as an object -h, --help Print usage -k, --key string Object key (path in the bucket) (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/object/retention/get.md b/docs/subcommands/Object-Storage/object/retention/get.md index d268fe586..20474c93f 100644 --- a/docs/subcommands/Object-Storage/object/retention/get.md +++ b/docs/subcommands/Object-Storage/object/retention/get.md @@ -47,7 +47,7 @@ Get the Object Lock retention configuration for an object -h, --help Print usage -k, --key string Object key (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/object/retention/put.md b/docs/subcommands/Object-Storage/object/retention/put.md index 9cdc53819..93e85bf15 100644 --- a/docs/subcommands/Object-Storage/object/retention/put.md +++ b/docs/subcommands/Object-Storage/object/retention/put.md @@ -48,7 +48,7 @@ Place an Object Lock retention configuration on an object. Requires the bucket t -h, --help Print usage -k, --key string Object key (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") --mode string Retention mode: GOVERNANCE or COMPLIANCE (required) -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used diff --git a/docs/subcommands/Object-Storage/object/tagging/delete.md b/docs/subcommands/Object-Storage/object/tagging/delete.md index b0bf51511..3c3ff9fa8 100644 --- a/docs/subcommands/Object-Storage/object/tagging/delete.md +++ b/docs/subcommands/Object-Storage/object/tagging/delete.md @@ -47,7 +47,7 @@ Delete the tagging configuration for an object -h, --help Print usage -k, --key string Object key (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/object/tagging/get.md b/docs/subcommands/Object-Storage/object/tagging/get.md index b3a65a929..15e3551c5 100644 --- a/docs/subcommands/Object-Storage/object/tagging/get.md +++ b/docs/subcommands/Object-Storage/object/tagging/get.md @@ -47,7 +47,7 @@ Get the tagging configuration for an object -h, --help Print usage -k, --key string Object key (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/Object-Storage/object/tagging/put.md b/docs/subcommands/Object-Storage/object/tagging/put.md index 587af09b2..b47256efb 100644 --- a/docs/subcommands/Object-Storage/object/tagging/put.md +++ b/docs/subcommands/Object-Storage/object/tagging/put.md @@ -49,7 +49,7 @@ Create or replace the tagging configuration for an object. The configuration mus --json-properties-example Print an example tagging configuration JSON and exit -k, --key string Object key (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: eu-central-3, eu-central-4, us-central-1 (default "eu-central-3") -n, --name string Name of the bucket (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/VPN Gateway/ipsec/gateway/create.md b/docs/subcommands/VPN Gateway/ipsec/gateway/create.md index 3972fc946..42cd0a817 100644 --- a/docs/subcommands/VPN Gateway/ipsec/gateway/create.md +++ b/docs/subcommands/VPN Gateway/ipsec/gateway/create.md @@ -45,7 +45,7 @@ Create a IPSec Gateway -h, --help Print usage --lan-id string The numeric LAN ID to connect your VPN Gateway to (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") -n, --name string Name of the IPSec Gateway (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/VPN Gateway/ipsec/gateway/delete.md b/docs/subcommands/VPN Gateway/ipsec/gateway/delete.md index 050524c62..cf2931d53 100644 --- a/docs/subcommands/VPN Gateway/ipsec/gateway/delete.md +++ b/docs/subcommands/VPN Gateway/ipsec/gateway/delete.md @@ -42,7 +42,7 @@ Delete a gateway -i, --gateway-id string The ID of the IPSec Gateway (required) -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/VPN Gateway/ipsec/gateway/get.md b/docs/subcommands/VPN Gateway/ipsec/gateway/get.md index 38cfecbe1..d28f4cb38 100644 --- a/docs/subcommands/VPN Gateway/ipsec/gateway/get.md +++ b/docs/subcommands/VPN Gateway/ipsec/gateway/get.md @@ -41,7 +41,7 @@ Find a gateway by ID -i, --gateway-id string The ID of the IPSec Gateway (required) -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/VPN Gateway/ipsec/gateway/list.md b/docs/subcommands/VPN Gateway/ipsec/gateway/list.md index ed259ec72..dceb41457 100644 --- a/docs/subcommands/VPN Gateway/ipsec/gateway/list.md +++ b/docs/subcommands/VPN Gateway/ipsec/gateway/list.md @@ -40,7 +40,7 @@ List IPSec Gateways -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/VPN Gateway/ipsec/gateway/update.md b/docs/subcommands/VPN Gateway/ipsec/gateway/update.md index ad2042465..e8f4eb7da 100644 --- a/docs/subcommands/VPN Gateway/ipsec/gateway/update.md +++ b/docs/subcommands/VPN Gateway/ipsec/gateway/update.md @@ -46,7 +46,7 @@ Update a IPSec Gateway -h, --help Print usage --lan-id string The numeric LAN ID to connect your VPN Gateway to (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") -n, --name string Name of the IPSec Gateway (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/VPN Gateway/ipsec/tunnel/create.md b/docs/subcommands/VPN Gateway/ipsec/tunnel/create.md index 2730d1d33..a5299ebd4 100644 --- a/docs/subcommands/VPN Gateway/ipsec/tunnel/create.md +++ b/docs/subcommands/VPN Gateway/ipsec/tunnel/create.md @@ -55,7 +55,7 @@ Create IPSec tunnels --json-properties string Path to a JSON file containing the desired properties. Overrides any other properties set. --json-properties-example If set, prints a complete JSON which could be used for --json-properties and exits. Hint: Pipe me to a .json file --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") -n, --name string Name of the IPSec Tunnel (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/VPN Gateway/ipsec/tunnel/delete.md b/docs/subcommands/VPN Gateway/ipsec/tunnel/delete.md index d602d3bce..e987bda1f 100644 --- a/docs/subcommands/VPN Gateway/ipsec/tunnel/delete.md +++ b/docs/subcommands/VPN Gateway/ipsec/tunnel/delete.md @@ -42,7 +42,7 @@ Remove a IPSec Tunnel --gateway-id string The ID of the IPSec Gateway (required) -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/VPN Gateway/ipsec/tunnel/get.md b/docs/subcommands/VPN Gateway/ipsec/tunnel/get.md index d6ce565d0..80738d8e0 100644 --- a/docs/subcommands/VPN Gateway/ipsec/tunnel/get.md +++ b/docs/subcommands/VPN Gateway/ipsec/tunnel/get.md @@ -41,7 +41,7 @@ Find a tunnel by ID --gateway-id string The ID of the IPSec Gateway (required) -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/VPN Gateway/ipsec/tunnel/list.md b/docs/subcommands/VPN Gateway/ipsec/tunnel/list.md index 16707dd48..33a457544 100644 --- a/docs/subcommands/VPN Gateway/ipsec/tunnel/list.md +++ b/docs/subcommands/VPN Gateway/ipsec/tunnel/list.md @@ -41,7 +41,7 @@ List IPSec Tunnels -i, --gateway-id string The ID of the IPSec Gateway (required) -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/VPN Gateway/ipsec/tunnel/update.md b/docs/subcommands/VPN Gateway/ipsec/tunnel/update.md index 01fbbfdff..2f19f4eda 100644 --- a/docs/subcommands/VPN Gateway/ipsec/tunnel/update.md +++ b/docs/subcommands/VPN Gateway/ipsec/tunnel/update.md @@ -55,7 +55,7 @@ Update a IPSec Tunnel --json-properties string Path to a JSON file containing the desired properties. Overrides any other properties set. --json-properties-example If set, prints a complete JSON which could be used for --json-properties and exits. Hint: Pipe me to a .json file --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") -n, --name string Name of the IPSec Tunnel (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/VPN Gateway/wireguard/gateway/create.md b/docs/subcommands/VPN Gateway/wireguard/gateway/create.md index 4667274ac..f93542924 100644 --- a/docs/subcommands/VPN Gateway/wireguard/gateway/create.md +++ b/docs/subcommands/VPN Gateway/wireguard/gateway/create.md @@ -52,7 +52,7 @@ Create a WireGuard Gateway --interface-ip string The IPv4 or IPv6 address (with CIDR mask) to be assigned to the WireGuard interface (required) --lan-id string The numeric LAN ID to connect your VPN Gateway to (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") -n, --name string Name of the WireGuard Gateway (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/VPN Gateway/wireguard/gateway/delete.md b/docs/subcommands/VPN Gateway/wireguard/gateway/delete.md index 1302030ee..706156054 100644 --- a/docs/subcommands/VPN Gateway/wireguard/gateway/delete.md +++ b/docs/subcommands/VPN Gateway/wireguard/gateway/delete.md @@ -48,7 +48,7 @@ Delete a gateway -i, --gateway-id string The ID of the WireGuard Gateway (required) -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/VPN Gateway/wireguard/gateway/get.md b/docs/subcommands/VPN Gateway/wireguard/gateway/get.md index 0c66eb278..8d828f0d6 100644 --- a/docs/subcommands/VPN Gateway/wireguard/gateway/get.md +++ b/docs/subcommands/VPN Gateway/wireguard/gateway/get.md @@ -47,7 +47,7 @@ Find a gateway by ID -i, --gateway-id string The ID of the WireGuard Gateway (required) -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/VPN Gateway/wireguard/gateway/list.md b/docs/subcommands/VPN Gateway/wireguard/gateway/list.md index b333429fc..cb0d5f00c 100644 --- a/docs/subcommands/VPN Gateway/wireguard/gateway/list.md +++ b/docs/subcommands/VPN Gateway/wireguard/gateway/list.md @@ -46,7 +46,7 @@ List WireGuard Gateways -f, --force Force command to execute without user input -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/VPN Gateway/wireguard/gateway/update.md b/docs/subcommands/VPN Gateway/wireguard/gateway/update.md index 132d5ba75..1bf075c57 100644 --- a/docs/subcommands/VPN Gateway/wireguard/gateway/update.md +++ b/docs/subcommands/VPN Gateway/wireguard/gateway/update.md @@ -53,7 +53,7 @@ Update a WireGuard Gateway. Note: The private key MUST be provided again (or cha --interface-ip string The IPv4 or IPv6 address (with CIDR mask) to be assigned to the WireGuard interface (required) --lan-id string The numeric LAN ID to connect your VPN Gateway to (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") -n, --name string Name of the WireGuard Gateway (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/VPN Gateway/wireguard/peer/create.md b/docs/subcommands/VPN Gateway/wireguard/peer/create.md index 189831a55..144512f20 100644 --- a/docs/subcommands/VPN Gateway/wireguard/peer/create.md +++ b/docs/subcommands/VPN Gateway/wireguard/peer/create.md @@ -50,7 +50,7 @@ Create WireGuard Peers. There is a limit to the total number of peers. Please re --host string Hostname or IPV4 address that the WireGuard Server will connect to (required) --ips strings Comma separated subnets of CIDRs that are allowed to connect to the WireGuard Gateway. Specify "a.b.c.d/32" for an individual IP address. Specify "0.0.0.0/0" or "::/0" for all addresses (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") -n, --name string Name of the WireGuard Peer (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/docs/subcommands/VPN Gateway/wireguard/peer/delete.md b/docs/subcommands/VPN Gateway/wireguard/peer/delete.md index 66ff178d3..871e1a802 100644 --- a/docs/subcommands/VPN Gateway/wireguard/peer/delete.md +++ b/docs/subcommands/VPN Gateway/wireguard/peer/delete.md @@ -48,7 +48,7 @@ Remove a WireGuard Peer --gateway-id string The ID of the WireGuard Gateway (required) -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/VPN Gateway/wireguard/peer/get.md b/docs/subcommands/VPN Gateway/wireguard/peer/get.md index ba0f91be9..404102755 100644 --- a/docs/subcommands/VPN Gateway/wireguard/peer/get.md +++ b/docs/subcommands/VPN Gateway/wireguard/peer/get.md @@ -47,7 +47,7 @@ Find a peer by ID --gateway-id string The ID of the WireGuard Gateway (required) -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/VPN Gateway/wireguard/peer/list.md b/docs/subcommands/VPN Gateway/wireguard/peer/list.md index e96c078ef..7d06d67cf 100644 --- a/docs/subcommands/VPN Gateway/wireguard/peer/list.md +++ b/docs/subcommands/VPN Gateway/wireguard/peer/list.md @@ -47,7 +47,7 @@ List WireGuard Peers -i, --gateway-id string The ID of the Wireguard Gateway (required) -h, --help Print usage --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results --order-by string Property to order the results by diff --git a/docs/subcommands/VPN Gateway/wireguard/peer/update.md b/docs/subcommands/VPN Gateway/wireguard/peer/update.md index 02403d05f..c0b0098fe 100644 --- a/docs/subcommands/VPN Gateway/wireguard/peer/update.md +++ b/docs/subcommands/VPN Gateway/wireguard/peer/update.md @@ -50,7 +50,7 @@ Update a WireGuard Peer --host string Hostname or IPV4 address that the WireGuard Server will connect to (required) --ips strings Comma separated subnets of CIDRs that are allowed to connect to the WireGuard Gateway. Specify "a.b.c.d/32" for an individual IP address. Specify "0.0.0.0/0" or "::/0" for all addresses (required) --limit int Maximum number of items to return per request (default 50) - -l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") + -l, --location string Location of the resource to operate on. List commands query all locations when unset. Can be one of: de/fra, de/txl, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci (default "de/fra") -n, --name string Name of the WireGuard Peer (required) --no-headers Don't print table headers when table output is used --offset int Number of items to skip before starting to collect the results diff --git a/internal/client/regional.go b/internal/client/regional.go new file mode 100644 index 000000000..d771a0610 --- /dev/null +++ b/internal/client/regional.go @@ -0,0 +1,50 @@ +package client + +import ( + "net/http" + + "github.com/ionos-cloud/sdk-go-bundle/shared" + "github.com/spf13/viper" + + "github.com/ionos-cloud/ionosctl/v6/internal/constants" +) + +// NewRegionalConfig creates a shared.Configuration for a specific regional URL, +// reusing credentials from the existing client singleton. It applies the same +// user agent, query params, and filters as the main client builder. +// This is used by ListAllLocations to create standalone SDK clients per location, +// avoiding mutation of the global singleton. +func NewRegionalConfig(url string) *shared.Configuration { + cl := Must() + cloudCfg := cl.CloudClient.GetConfig() + + cfg := shared.NewConfiguration(cloudCfg.Username, cloudCfg.Password, cloudCfg.Token, url) + cfg.UserAgent = appendUserAgent(cfg.UserAgent) + cfg.HTTPClient = &http.Client{} + + // Apply log level (shared.SdkLogLevel is package-level, already set by main client init) + + // Apply query params (mirrors builder.go logic, including deprecated --max-results) + limit := viper.GetString(constants.FlagLimit) + if argsContainAny([]string{"--" + constants.DeprecatedFlagMaxResults, "-M"}) { + limit = viper.GetString(constants.DeprecatedFlagMaxResults) + } + + queryParams := map[string]string{ + "limit": limit, + "offset": viper.GetString(constants.FlagOffset), + "depth": viper.GetString(constants.FlagDepth), + "order-by": viper.GetString(constants.FlagOrderBy), + } + for k, v := range queryParams { + if v == "" { + delete(queryParams, k) + } + } + setQueryParams(cfg, queryParams) + + // Apply filters + setFilters(cfg, viper.GetStringSlice(constants.FlagFilters)) + + return cfg +} diff --git a/internal/core/config_integration.go b/internal/core/config_integration.go index 8b00b65d7..1502d6561 100644 --- a/internal/core/config_integration.go +++ b/internal/core/config_integration.go @@ -42,7 +42,8 @@ import ( // - If an unsupported location is provided, a warning is logged: // 'WARN: is an invalid location. Valid locations are: ' // - This also marks '--api-url' and '--location' flags as mutually exclusive. -// - The first location in 'allowedLocations' is used as the default URL if no location is provided. +// - The first location in 'allowedLocations' is used as the default for non-list commands. +// - List commands using [CommandConfig.ListAllLocations] query all locations when '--location' is not set. func WithRegionalConfigOverride(c *Command, productNames []string, templateFallbackURL string, allowedLocations []string) *Command { if len(productNames) == 0 { panic(fmt.Errorf("no productNames provided for %s", c.Command.Name())) @@ -51,6 +52,13 @@ func WithRegionalConfigOverride(c *Command, productNames []string, templateFallb panic(fmt.Errorf("no allowedLocations provided for %s", c.Command.Name())) } + // Store regional metadata for child commands (e.g., ListAllLocations) + if c.Command.Annotations == nil { + c.Command.Annotations = map[string]string{} + } + c.Command.Annotations[AnnotationLocations] = strings.Join(allowedLocations, ",") + c.Command.Annotations[AnnotationTemplateURL] = templateFallbackURL + // Add the server URL flag c.Command.PersistentFlags().StringP( constants.ArgServerUrl, constants.ArgServerUrlShort, templateFallbackURL, @@ -61,7 +69,7 @@ func WithRegionalConfigOverride(c *Command, productNames []string, templateFallb // Add the location flag c.Command.PersistentFlags().StringP( constants.FlagLocation, constants.FlagLocationShort, allowedLocations[0], - "Location of the resource to operate on. Can be one of: "+strings.Join(allowedLocations, ", "), + "Location of the resource to operate on. List commands query all locations when unset. Can be one of: "+strings.Join(allowedLocations, ", "), ) viper.BindPFlag(constants.FlagLocation, c.Command.PersistentFlags().Lookup(constants.FlagLocation)) c.Command.RegisterFlagCompletionFunc(constants.FlagLocation, diff --git a/internal/core/flag-option.go b/internal/core/flag-option.go index 9d424ea7c..9de7caa3b 100644 --- a/internal/core/flag-option.go +++ b/internal/core/flag-option.go @@ -65,21 +65,44 @@ func WithCompletionComplex( return completionFunc(passedCmd, args, toComplete) } - // Determine the location to use - location, _ := passedCmd.Flags().GetString(constants.FlagLocation) - if location == "" && len(locations) > 0 { - location = locations[0] + // If --location explicitly set, complete from that location only + if passedCmd.Flags().Changed(constants.FlagLocation) { + location, _ := passedCmd.Flags().GetString(constants.FlagLocation) + normalizedLoc := strings.ReplaceAll(location, "/", "-") + if strings.Contains(baseURL, "%s") { + viper.Set(constants.ArgServerUrl, fmt.Sprintf(baseURL, normalizedLoc)) + } else { + viper.Set(constants.ArgServerUrl, baseURL) + } + return completionFunc(passedCmd, args, toComplete) } - // Normalize the location and set the server URL - normalizedLoc := strings.ReplaceAll(location, "/", "-") - if strings.Contains(baseURL, "%s") { - viper.Set(constants.ArgServerUrl, fmt.Sprintf(baseURL, normalizedLoc)) - } else { + // No explicit --location: query all locations, merge with location hints + if !strings.Contains(baseURL, "%s") || len(locations) == 0 { viper.Set(constants.ArgServerUrl, baseURL) + return completionFunc(passedCmd, args, toComplete) } - return completionFunc(passedCmd, args, toComplete) + var allResults []string + mergedDirective := cobra.ShellCompDirectiveNoFileComp + for _, loc := range locations { + normalizedLoc := strings.ReplaceAll(loc, "/", "-") + viper.Set(constants.ArgServerUrl, fmt.Sprintf(baseURL, normalizedLoc)) + + results, directive := completionFunc(passedCmd, args, toComplete) + if directive == cobra.ShellCompDirectiveError { + continue // skip failed locations + } + mergedDirective |= directive + for _, r := range results { + if strings.Contains(r, "\t") { + allResults = append(allResults, r+" ("+loc+")") + } else { + allResults = append(allResults, r+"\t("+loc+")") + } + } + } + return allResults, mergedDirective }, ) } diff --git a/internal/core/regional_list.go b/internal/core/regional_list.go new file mode 100644 index 000000000..048e02007 --- /dev/null +++ b/internal/core/regional_list.go @@ -0,0 +1,248 @@ +package core + +import ( + "encoding/json" + "fmt" + "sort" + "strings" + "sync" + + "github.com/ionos-cloud/sdk-go-bundle/shared" + "github.com/spf13/cobra" + "github.com/spf13/viper" + + "github.com/ionos-cloud/ionosctl/v6/internal/client" + "github.com/ionos-cloud/ionosctl/v6/internal/constants" + "github.com/ionos-cloud/ionosctl/v6/internal/printer/table" +) + +const ( + // AnnotationLocations is set by WithRegionalConfigOverride on the service + // root command. It contains comma-separated allowed locations (e.g. "de/fra,de/txl"). + AnnotationLocations = "regional.locations" + + // AnnotationTemplateURL is the URL template with %s placeholder for location. + AnnotationTemplateURL = "regional.templateURL" +) + +type locResult struct { + location string + data any + err error +} + +// ListAllLocations queries all locations concurrently when --location is not +// explicitly set, merging results into a single table with a Location column. +// +// For text output: merged table with "Location" as the first column. +// For JSON/api-json output: array of untouched per-location API responses. +// When --location is explicitly set: single-location behavior (unchanged). +// +// The fetchFn receives a [shared.Configuration] for the target location URL. +// It must create its own SDK client from the config and execute the API call. +func (c *CommandConfig) ListAllLocations( + columns []table.Column, + fetchFn func(cfg *shared.Configuration) (any, error), +) error { + locations, templateURL, found := findRegionalConfig(c.Command.Command) + + // No regional config or --location explicitly set: single-location behavior + if !found || c.Command.Command.Flags().Changed(constants.FlagLocation) { + cfg := client.NewRegionalConfig(viper.GetString(constants.ArgServerUrl)) + data, err := fetchFn(cfg) + if err != nil { + return err + } + return c.Printer(columns).Prefix("items").Print(data) + } + + // Build all configs before spawning goroutines to avoid racing + // on client.Must() singleton (getters.go URL-change rebuild is not synchronized). + type locConfig struct { + location string + cfg *shared.Configuration + } + configs := make([]locConfig, len(locations)) + for i, loc := range locations { + normalizedLoc := strings.ReplaceAll(loc, "/", "-") + url := fmt.Sprintf(templateURL, normalizedLoc) + configs[i] = locConfig{location: loc, cfg: client.NewRegionalConfig(url)} + } + + // Query all locations concurrently + results := make([]locResult, len(locations)) + var wg sync.WaitGroup + + for i, lc := range configs { + wg.Add(1) + go func(i int, lc locConfig) { + defer wg.Done() + data, err := fetchFn(lc.cfg) + results[i] = locResult{location: lc.location, data: data, err: err} + }(i, lc) + } + wg.Wait() + + // Collect errors, deduplicate identical messages + var lastErr error + anySuccess := false + errCounts := map[string][]string{} // error message to list of locations + for _, r := range results { + if r.err != nil { + lastErr = r.err + msg := r.err.Error() + errCounts[msg] = append(errCounts[msg], r.location) + } else { + anySuccess = true + } + } + + if !anySuccess { + // All failed : return single error, no warnings + if len(errCounts) == 1 { + return fmt.Errorf("failed to list from all locations: %w", lastErr) + } + // Multiple distinct errors : join them (sorted for stable output) + var parts []string + for msg, locs := range errCounts { + sort.Strings(locs) + parts = append(parts, fmt.Sprintf("%s: %s", strings.Join(locs, ", "), msg)) + } + sort.Strings(parts) + return fmt.Errorf("failed to list from all locations:\n %s", strings.Join(parts, "\n ")) + } + + // Partial failure : warn only for failed locations (sorted for stable output) + if len(errCounts) > 0 && !viper.GetBool(constants.ArgQuiet) { + stderr := c.Command.Command.ErrOrStderr() + var warns []string + for msg, locs := range errCounts { + sort.Strings(locs) + warns = append(warns, fmt.Sprintf("WARN: failed to list from %s: %s", strings.Join(locs, ", "), msg)) + } + sort.Strings(warns) + for _, w := range warns { + fmt.Fprintln(stderr, w) + } + } + + // Determine output format + format := viper.GetString(constants.ArgOutput) + switch format { + case "json": + return c.regionalLegacyJSON(results) + case "api-json": + return c.regionalAPIJSON(results) + } + + return c.regionalText(results, columns) +} + +// regionalLegacyJSON merges items from all locations into {"items": [...]}. +// This matches the single-location -o json format (non-breaking). +func (c *CommandConfig) regionalLegacyJSON(results []locResult) error { + if viper.GetBool(constants.ArgQuiet) { + return nil + } + + allItems := make([]any, 0) + for _, r := range results { + if r.err != nil { + continue + } + b, err := json.Marshal(r.data) + if err != nil { + fmt.Fprintf(c.Command.Command.ErrOrStderr(), "WARN: failed to marshal response from %s: %v\n", r.location, err) + continue + } + var m map[string]any + if err := json.Unmarshal(b, &m); err != nil { + fmt.Fprintf(c.Command.Command.ErrOrStderr(), "WARN: failed to parse response from %s: %v\n", r.location, err) + continue + } + if items, ok := m["items"].([]any); ok { + allItems = append(allItems, items...) + } + } + + var data any = map[string]any{"items": allItems} + data, err := table.ApplyQueryFilter(data) + if err != nil { + return err + } + + out, err := json.MarshalIndent(data, "", " ") + if err != nil { + return err + } + return c.Out(string(out)+"\n", nil) +} + +// regionalAPIJSON outputs an array of per-location API responses. +// Each element is the raw, untouched API response for that location. +func (c *CommandConfig) regionalAPIJSON(results []locResult) error { + if viper.GetBool(constants.ArgQuiet) { + return nil + } + + var rawResponses []any + for _, r := range results { + if r.err == nil { + rawResponses = append(rawResponses, r.data) + } + } + + var data any = rawResponses + data, err := table.ApplyQueryFilter(data) + if err != nil { + return err + } + + out, err := json.MarshalIndent(data, "", " ") + if err != nil { + return err + } + return c.Out(string(out)+"\n", nil) +} + +// regionalText builds a merged table with Location as the first column. +func (c *CommandConfig) regionalText(results []locResult, columns []table.Column) error { + // Prepend Location column + allCols := append([]table.Column{{Name: "Location", Default: true}}, columns...) + t := table.New(allCols) + + for _, r := range results { + if r.err != nil { + continue + } + + // Extract rows from this location's response + locTable := table.New(columns, table.WithPrefix("items")) + if err := locTable.Extract(r.data); err != nil { + if !viper.GetBool(constants.ArgQuiet) { + fmt.Fprintf(c.Command.Command.ErrOrStderr(), "WARN: failed to parse response from %s: %v\n", r.location, err) + } + continue + } + + for _, row := range locTable.Rows() { + row["Location"] = r.location + t.AppendRow(row) + } + } + + return c.Out(t.Render(table.ResolveCols(allCols, c.Cols()))) +} + +// findRegionalConfig walks parent commands to find regional annotations +// set by [WithRegionalConfigOverride]. +func findRegionalConfig(cmd *cobra.Command) (locations []string, templateURL string, found bool) { + for c := cmd; c != nil; c = c.Parent() { + locs, hasLocs := c.Annotations[AnnotationLocations] + tmpl, hasTmpl := c.Annotations[AnnotationTemplateURL] + if hasLocs && hasTmpl { + return strings.Split(locs, ","), tmpl, true + } + } + return nil, "", false +} diff --git a/internal/core/regional_list_test.go b/internal/core/regional_list_test.go new file mode 100644 index 000000000..135a2f637 --- /dev/null +++ b/internal/core/regional_list_test.go @@ -0,0 +1,89 @@ +package core + +import ( + "strings" + "testing" + + "github.com/spf13/cobra" +) + +func TestFindRegionalConfig(t *testing.T) { + tests := []struct { + name string + setup func() *cobra.Command + wantLocs []string + wantURL string + wantFound bool + }{ + { + name: "annotations on direct command", + setup: func() *cobra.Command { + cmd := &cobra.Command{Use: "test"} + cmd.Annotations = map[string]string{ + AnnotationLocations: "de/fra,de/txl,es/vit", + AnnotationTemplateURL: "https://svc.%s.ionos.com", + } + return cmd + }, + wantLocs: []string{"de/fra", "de/txl", "es/vit"}, + wantURL: "https://svc.%s.ionos.com", + wantFound: true, + }, + { + name: "annotations on parent command", + setup: func() *cobra.Command { + parent := &cobra.Command{Use: "kafka"} + parent.Annotations = map[string]string{ + AnnotationLocations: "de/fra,us/las", + AnnotationTemplateURL: "https://kafka.%s.ionos.com", + } + child := &cobra.Command{Use: "cluster"} + leaf := &cobra.Command{Use: "list"} + child.AddCommand(leaf) + parent.AddCommand(child) + return leaf + }, + wantLocs: []string{"de/fra", "us/las"}, + wantURL: "https://kafka.%s.ionos.com", + wantFound: true, + }, + { + name: "no annotations", + setup: func() *cobra.Command { + return &cobra.Command{Use: "test"} + }, + wantFound: false, + }, + { + name: "partial annotations (missing URL)", + setup: func() *cobra.Command { + cmd := &cobra.Command{Use: "test"} + cmd.Annotations = map[string]string{ + AnnotationLocations: "de/fra", + } + return cmd + }, + wantFound: false, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + cmd := tt.setup() + locs, url, found := findRegionalConfig(cmd) + + if found != tt.wantFound { + t.Errorf("found = %v, want %v", found, tt.wantFound) + } + if !tt.wantFound { + return + } + if url != tt.wantURL { + t.Errorf("url = %q, want %q", url, tt.wantURL) + } + if strings.Join(locs, ",") != strings.Join(tt.wantLocs, ",") { + t.Errorf("locs = %v, want %v", locs, tt.wantLocs) + } + }) + } +} diff --git a/internal/printer/table/table.go b/internal/printer/table/table.go index 4b6027206..67bb1768d 100644 --- a/internal/printer/table/table.go +++ b/internal/printer/table/table.go @@ -163,6 +163,12 @@ func (t *Table) Raw() any { return t.raw } +// AppendRow adds a pre-built row to the table. +// Used by ListAllLocations to merge rows from different API calls. +func (t *Table) AppendRow(row map[string]any) { + t.rows = append(t.rows, row) +} + // SetCell sets a value for a specific column in a specific row. // Useful for post-extraction adjustments. func (t *Table) SetCell(row int, col string, value any) { @@ -466,6 +472,11 @@ func marshalJSON(data any) (string, error) { return string(out) + "\n", nil } +// ApplyQueryFilter applies the --query JMESPath filter to data, if set. +func ApplyQueryFilter(data any) (any, error) { + return applyQueryFilter(data) +} + func applyQueryFilter(data any) (any, error) { if !viper.IsSet(constants.FlagQuery) { return data, nil