Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetCmd = &cobra.Command{ Use: "get <domain> <snapshot ID>", Short: "Get DNS snapshot", Long: `This endpoint retrieves a specific DNS zone snapshot for a domain, including its zone records.`, Args: cobra.MatchAll(cobra.ExactArgs(2)), Run: func(cmd *cobra.Command, args []string) { r, err := api.Request().DNSGetDNSSnapshotV1WithResponse(context.TODO(), 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: "snapshots",
Short: "DNS zone snapshot management",
Long: ``,
}
View Source
var ListCmd = &cobra.Command{ Use: "list <domain>", Short: "Get DNS snapshot list", Long: `This endpoint retrieves a list of DNS zone snapshots for a specific domain.`, Args: cobra.MatchAll(cobra.ExactArgs(1)), Run: func(cmd *cobra.Command, args []string) { r, err := api.Request().DNSGetDNSSnapshotListV1WithResponse(context.TODO(), args[0]) if err != nil { log.Fatal(err) } output.Format(cmd, r.Body, r.StatusCode()) }, }
View Source
var RestoreCmd = &cobra.Command{ Use: "restore <domain> <snapshot ID>", Short: "Restore DNS snapshot", Long: `This endpoint restores DNS zone records of a domain to a specific snapshot.`, Args: cobra.MatchAll(cobra.ExactArgs(2)), Run: func(cmd *cobra.Command, args []string) { r, err := api.Request().DNSRestoreDNSSnapshotV1WithResponse(context.TODO(), args[0], utils.StringToInt(args[1])) 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.