data_centers

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GroupCmd = &cobra.Command{
	Use:   "data-centers",
	Short: "Data center information",
	Long:  `Access information on available data centers, including location details, so you can choose the optimal region for deploying your virtual machines.`,
}
View Source
var ListCmd = &cobra.Command{
	Use:   "list",
	Short: "Get data center list",
	Long:  `This endpoint retrieves a list of all data centers available.`,
	Run: func(cmd *cobra.Command, args []string) {
		r, err := api.Request().VPSGetDataCentersListV1WithResponse(context.TODO())
		if err != nil {
			log.Fatal(err)
		}

		output.Format(cmd, r.Body, r.StatusCode())
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL