profiles

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DomainDnsStatusCmd = &cobra.Command{
	Use:   "domain-dns-status <profile-uuid>",
	Short: "Get profile domain DNS status",
	Long:  "Retrieve the DNS configuration status for a profile's domain.\n\nThis endpoint reports the state of MX, SPF, DKIM and DMARC records, including the\nactual records found and the suggested records required for correct email delivery.",
	Args:  cobra.MatchAll(cobra.ExactArgs(1)),
	Run: func(cmd *cobra.Command, args []string) {
		r, err := api.Request().ReachGetProfileDomainDNSStatusV1WithResponse(context.TODO(), args[0])
		if err != nil {
			log.Fatal(err)
		}

		output.Format(cmd, r.Body, r.StatusCode())
	},
}
View Source
var GroupCmd = &cobra.Command{
	Use:   "profiles",
	Short: "Profiles commands",
}
View Source
var ListCmd = &cobra.Command{
	Use:   "list",
	Short: "List Profiles",
	Long:  "This endpoint returns all profiles available to the client, including their basic information.",
	Run: func(cmd *cobra.Command, args []string) {
		r, err := api.Request().ReachListProfilesV1WithResponse(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