Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetCmd = &cobra.Command{ Use: "get <virtual-machine-id> <action-id>", Short: "Get action details", Long: "Retrieve detailed information about a specific action performed on a specified virtual machine.\n\nUse this endpoint to monitor specific VPS operation status and details.", Args: cobra.MatchAll(cobra.ExactArgs(2)), Run: func(cmd *cobra.Command, args []string) { r, err := api.Request().VPSGetActionDetailsV1WithResponse(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: "Actions commands",
}
View Source
var ListCmd = &cobra.Command{ Use: "list <virtual-machine-id>", Short: "Get actions", Long: "Retrieve actions performed on a specified virtual machine.\n\nActions are operations or events that have been executed on the virtual\nmachine, such as starting, stopping, or modifying the machine. This endpoint\nallows you to view the history of these actions, providing details about\neach action, such as the action name, timestamp, and status.\n\nUse this endpoint to view VPS operation history and troubleshoot issues.", Args: cobra.MatchAll(cobra.ExactArgs(1)), Run: func(cmd *cobra.Command, args []string) { r, err := api.Request().VPSGetActionsV1WithResponse(context.TODO(), utils.StringToInt(args[0]), listParams(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.