Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetCmd = &cobra.Command{ Use: "get <virtual machine ID> <action ID>", Short: "Get action", Long: `This endpoint retrieves details of a specific action performed on a specified virtual machine. This endpoint allows you to view detailed information about a particular action, including the action name, timestamp, and status.`, Args: cobra.MatchAll(cobra.ExactArgs(2)), Run: func(cmd *cobra.Command, args []string) { r, err := api.Request().VPSGetActionV1WithResponse(context.TODO(), utils.StringToInt(args[0]), utils.StringToInt(args[1])) if err != nil { log.Fatal(err) } output.Format(cmd, r.Body, r.StatusCode()) }, }
View Source
var GroupCmd = &cobra.Command{
Use: "actions",
Short: "VM actions information",
Long: `Track and review operations performed on your virtual machines. These endpoints provide details about specific actions—such as start, stop, or restart—including timestamps and statuses.`,
}
View Source
var ListCmd = &cobra.Command{ Use: "list <virtual machine ID>", Short: "Get action list", Long: `Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying the machine. This endpoint allows you to view the history of these actions, providing details about each action, such as the action name, timestamp, and status.`, Args: cobra.MatchAll(cobra.ExactArgs(1)), Run: func(cmd *cobra.Command, args []string) { r, err := api.Request().VPSGetActionListV1WithResponse(context.TODO(), utils.StringToInt(args[0]), listRequestParameters(cmd)) if err != nil { log.Fatal(err) } output.Format(cmd, r.Body, r.StatusCode()) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.