cometsdk

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 8 Imported by: 1

README

Comet Go SDK

This project is a SDK and base client for Comet Server API using Golang.

Getting Started

  1. Import this repo into your Go program
  2. Run go mod tidy to download it (or let your IDE do it for you)
  3. You're ready to go!

Development environment

Read go.mod to see the latest Go version this SDK was built with

Releasing

  • Update the changelog
  • Run go mod tidy
  • Run go test ./...
  • Tag the release to the new version
  • Push to tag the hosted repo

Getting Help

Bug reports and pull requests are welcome on GitHub at https://github.com/CometBackup/comet-go-sdk.

You may also submit issues via the ticket system at cometbackup.com.

Documentation

Overview

Autogenerated, do not edit directly

Index

Constants

View Source
const APPLICATION_VERSION string = "22.6.9"
View Source
const APPLICATION_VERSION_MAJOR int = 22
View Source
const APPLICATION_VERSION_MINOR int = 6
View Source
const APPLICATION_VERSION_REVISION int = 9
View Source
const DEFAULT_TIMEZONE string = "UTC"
View Source
const DESTINATIONTYPE_ALL uint64 = 1101
View Source
const DESTINATIONTYPE_AZUREBLOB uint64 = 1005
View Source
const DESTINATIONTYPE_B2 uint64 = 1008
View Source
const DESTINATIONTYPE_COMET uint64 = 1003
View Source
const DESTINATIONTYPE_FTP uint64 = 1004
View Source
const DESTINATIONTYPE_LATEST uint64 = 1100
View Source
const DESTINATIONTYPE_LOCALCOPY uint64 = 1002
View Source
const DESTINATIONTYPE_S3 uint64 = 1000
View Source
const DESTINATIONTYPE_SFTP uint64 = 1001
View Source
const DESTINATIONTYPE_SPANNED uint64 = 1006
View Source
const DESTINATIONTYPE_SWIFT uint64 = 1007
View Source
const DESTINATIONTYPE___INVALID uint64 = 0
View Source
const EMAIL_WORKER_STATE_CALCULATING int = 2
View Source
const EMAIL_WORKER_STATE_NOT_STARTED int = 0
View Source
const EMAIL_WORKER_STATE_SENDING int = 4
View Source
const EMAIL_WORKER_STATE_STARTED int = 1
View Source
const EMAIL_WORKER_STATE_WAITING int = 3
View Source
const ENCRYPTIONMETHOD_UNCONFIGURED uint64 = 0
View Source
const ENGINE_BUILTIN_EXCHANGEEDB string = "engine1/exchangeedb"
View Source
const ENGINE_BUILTIN_FILE string = "engine1/file"
View Source
const ENGINE_BUILTIN_HYPERV string = "engine1/hyperv"
View Source
const ENGINE_BUILTIN_MONGODB string = "engine1/mongodb"
View Source
const ENGINE_BUILTIN_MSOFFICE string = "engine1/winmsofficemail"
View Source
const ENGINE_BUILTIN_MSSQL string = "engine1/mssql"
View Source
const ENGINE_BUILTIN_MYSQL string = "engine1/mysql"
View Source
const ENGINE_BUILTIN_STDOUT string = "engine1/stdout"
View Source
const ENGINE_BUILTIN_SYSTEMSTATE string = "engine1/systemstate"
View Source
const ENGINE_BUILTIN_VSSWRITER string = "engine1/vsswriter"
View Source
const ENGINE_BUILTIN_WINDISK string = "engine1/windisk"
View Source
const ENGINE_BUILTIN_WINDOWSSYSTEM string = "engine1/windowssystem"
View Source
const InstallerMetadataFile string = "installer.json"
View Source
const MIXED_VIRTUAL_ACCOUNT_TYPE_GROUP uint = 2
View Source
const MIXED_VIRTUAL_ACCOUNT_TYPE_SHAREPOINT_ONLY uint = 4
View Source
const MIXED_VIRTUAL_ACCOUNT_TYPE_TEAM_GROUP uint = 3
View Source
const MIXED_VIRTUAL_ACCOUNT_TYPE_USER uint = 1
View Source
const MONGODB_DEFAULT_PORT int = 27017
View Source
const OFFICE365_REGION_CHINA string = "ChinaCloud"
View Source
const OFFICE365_REGION_GERMANY string = "GermanCloud"
View Source
const OFFICE365_REGION_PUBLIC string = "GlobalPublicCloud"
View Source
const OFFICE365_REGION_US_DOD string = "USGovtGccDoDCloud"
View Source
const OFFICE365_REGION_US_GOVT string = "USGovtGccCloud"
View Source
const PASSWORD_FORMAT_PLAINTEXT int = 0
View Source
const RELEASE_CODENAME string = "Voyager"
View Source
const RETENTIONRANGE_MAXINT int = 1125899906842624
View Source
const SCHEDULE_FREQUENCY_DAILY uint64 = 8011

seconds past 00:00 local time

View Source
const SCHEDULE_FREQUENCY_HIGHEST uint64 = 8015
View Source
const SCHEDULE_FREQUENCY_HOURLY uint64 = 8012

seconds past *:00 local time

View Source
const SCHEDULE_FREQUENCY_LOWEST uint64 = 8010
View Source
const SCHEDULE_FREQUENCY_MONTHLY uint64 = 8014

seconds past 00:00 1st, local time

View Source
const SCHEDULE_FREQUENCY_ONCEONLY uint64 = 8010

epoch time

View Source
const SCHEDULE_FREQUENCY_PERIODIC uint64 = 8015

SecondsPast: number of seconds per period. Offset: Shunt seconds after unix epoch

View Source
const SCHEDULE_FREQUENCY_WEEKLY uint64 = 8013

seconds past 00:00 Sunday, local time

View Source
const SCHEDULE_MAXINT int = 1125899906842624

2^50 (1 << 50)

View Source
const SCHEDULE_MAX_RANDOM_DELAY_SECS int = 18000

Maximum random delay (5 hours)

View Source
const SEARCHOPERATOR_BOOL_IS string = "bool_is"
View Source
const SEARCHOPERATOR_BOOL_NIS string = "bool_nis"
View Source
const SEARCHOPERATOR_INT_EQ string = "int_eq"
View Source
const SEARCHOPERATOR_INT_GT string = "int_gt"
View Source
const SEARCHOPERATOR_INT_GTE string = "int_gte"
View Source
const SEARCHOPERATOR_INT_LT string = "int_lt"
View Source
const SEARCHOPERATOR_INT_LTE string = "int_lte"
View Source
const SEARCHOPERATOR_INT_NEQ string = "int_neq"
View Source
const SEARCHOPERATOR_STRING_CONTAINS string = "str_contains"
View Source
const SEARCHOPERATOR_STRING_CONTAINS_CI string = "str_contains_ci"
View Source
const SEARCHOPERATOR_STRING_ENDSWITH string = "str_endswith"
View Source
const SEARCHOPERATOR_STRING_ENDSWITH_CI string = "str_endswith_ci"
View Source
const SEARCHOPERATOR_STRING_EQ string = "str_eq"
View Source
const SEARCHOPERATOR_STRING_EQ_CI string = "str_eq_ci"
View Source
const SEARCHOPERATOR_STRING_NCONTAINS string = "str_ncontains"
View Source
const SEARCHOPERATOR_STRING_NCONTAINS_CI string = "str_ncontains_ci"
View Source
const SEARCHOPERATOR_STRING_NENDSWITH string = "str_nendswith"
View Source
const SEARCHOPERATOR_STRING_NENDSWITH_CI string = "str_nendswith_ci"
View Source
const SEARCHOPERATOR_STRING_NEQ string = "str_neq"
View Source
const SEARCHOPERATOR_STRING_NEQ_CI string = "str_neq_ci"
View Source
const SEARCHOPERATOR_STRING_NREGEXMATCH string = "str_nregexmatch"
View Source
const SEARCHOPERATOR_STRING_NSTARTSWITH string = "str_nstartswith"
View Source
const SEARCHOPERATOR_STRING_NSTARTSWITH_CI string = "str_nstartswith_ci"
View Source
const SEARCHOPERATOR_STRING_REGEXMATCH string = "str_regexmatch"
View Source
const SEARCHOPERATOR_STRING_STARTSWITH string = "str_startswith"
View Source
const SEARCHOPERATOR_STRING_STARTSWITH_CI string = "str_startswith_ci"
View Source
const SERVICE_CALENDAR uint = 1
View Source
const SERVICE_CONTACT uint = 2
View Source
const SERVICE_MAIL uint = 4
View Source
const SERVICE_ONEDRIVE uint = 16
View Source
const SERVICE_SHAREPOINT uint = 8
View Source
const TOTPRequiredError string = "ERR_TOTP_REQUIRED"
View Source
const UnknownDeviceError string = "ERR_UNKNOWN_DEVICE"
View Source
const UnsupportVmdkFileSystem string = "ERR_UNSUPPORT_VMDK_FILE_SYSTEM"

Variables

This section is empty.

Functions

This section is empty.

Types

type AddBucketResponseMessage

type AddBucketResponseMessage struct {
	Status       int
	Message      string
	NewBucketID  string
	NewBucketKey string
}

type AdminAccountPropertiesResponse

type AdminAccountPropertiesResponse struct {
	OrganizationID string
	Permissions    AdminUserPermissions
	Security       AdminSecurityOptions
}

type AdminEmailOptions

type AdminEmailOptions struct {
	FromEmail string
	FromName  string
}

type AdminResourceResponse

type AdminResourceResponse struct {
	Status       int
	Message      string
	ResourceHash string
}

type AdminSecurityOptions

type AdminSecurityOptions struct {
	PasswordFormat            int
	Password                  string
	AllowPasswordLogin        bool
	AllowPasswordAndTOTPLogin bool
	// Deprecated: This member has been deprecated since Comet version 21.12.0
	AllowPasswordAndU2FLogin      bool
	AllowPasswordAndWebAuthnLogin bool
	// Deprecated: This member has been deprecated since Comet version 21.12.0
	U2FRegistrations        []AdminU2FRegistration      `json:",omitempty"`
	WebAuthnRegistrations   []AdminWebAuthnRegistration `json:",omitempty"`
	TOTPKeyEncryptionFormat int                         `json:",omitempty"`
	TOTPKey                 string                      `json:",omitempty"`
	IPWhitelist             string                      `json:",omitempty"`
}

type AdminU2FRegistration deprecated

type AdminU2FRegistration struct {
	Description  string
	RegisterTime int64
	Registration []byte
}

Deprecated: This struct has been deprecated since Comet version 21.12.0

type AdminUserPermissions

type AdminUserPermissions struct {
	PreventEditServerSettings bool `json:",omitempty"`
	PreventServerShutdown     bool `json:",omitempty"`
	PreventChangePassword     bool `json:",omitempty"`
	AllowEditBranding         bool `json:",omitempty"`
	AllowEditRemoteStorage    bool `json:",omitempty"`
}

type AdminWebAuthnRegistration

type AdminWebAuthnRegistration struct {
	Description  string
	RegisterTime int64
	Type         WebAuthnDeviceType
	IsLegacyU2F  bool               `json:",omitempty"`
	ID           []byte             `json:",omitempty"`
	Credential   WebAuthnCredential `json:",omitempty"`
}

type AllowedAdminUser

type AllowedAdminUser struct {
	Username                     string
	OrganizationID               string
	ExternalAuthenticationSource string `json:",omitempty"`
	PasswordFormat               int
	Password                     string
	AllowPasswordLogin           bool
	AllowPasswordAndTOTPLogin    bool
	// Deprecated: This member has been deprecated since Comet version 21.12.0
	AllowPasswordAndU2FLogin      bool
	AllowPasswordAndWebAuthnLogin bool
	// Deprecated: This member has been deprecated since Comet version 21.12.0
	U2FRegistrations        []AdminU2FRegistration      `json:",omitempty"`
	WebAuthnRegistrations   []AdminWebAuthnRegistration `json:",omitempty"`
	TOTPKeyEncryptionFormat int                         `json:",omitempty"`
	TOTPKey                 string                      `json:",omitempty"`
	IPWhitelist             string                      `json:",omitempty"`
	Permissions             AdminUserPermissions
}

type AmazonAWSVirtualStorageRoleSettings

type AmazonAWSVirtualStorageRoleSettings struct {
	MasterBucket string
	AccessKey    string
	SecretKey    string
}

type AuthenticationRoleOptions

type AuthenticationRoleOptions struct {
	RoleEnabled                bool
	DatabaseCheckLevel         int
	GenerateMissedBackupEvents bool
	NoMissedBackupEventsBefore int64
	GenerateScheduledEmails    bool
	PruneLogsAfterDays         int
	RemoteStorage              []RemoteStorageOption
	ReplicateTo                []ReplicaServer
	GlobalOverrides            GlobalOverrideOptions `json:",omitempty"`
}

type AutoRetentionLevel

type AutoRetentionLevel int64
const BACKUPJOBAUTORETENTION_AUTOMATIC AutoRetentionLevel = 0

AutoRetentionLevel: The system will automatically choose how often to run an automatic Retention Pass after each backup job.

const BACKUPJOBAUTORETENTION_IMMEDIATE AutoRetentionLevel = 1

AutoRetentionLevel: The system will run a Retention Pass after every single backup job. This is more system-intensive, but is the most responsive at freeing storage space.

const BACKUPJOBAUTORETENTION_LESS_OFTEN AutoRetentionLevel = 3

AutoRetentionLevel: The system will follow the automatic ruleset for a 'Low Power' device.

const BACKUPJOBAUTORETENTION_MORE_OFTEN AutoRetentionLevel = 2

AutoRetentionLevel: The system will follow the automatic ruleset for a 'High Power' device.

type AvailableDownload

type AvailableDownload struct {
	Category    string
	Description string
	Recommended bool
}

type AzureDestinationLocation

type AzureDestinationLocation struct {
	AZBAccountName string
	AZBAccountKey  string
	AZBContainer   string
	AZBRealm       string
	AZBPrefix      string
}

type B2DestinationLocation

type B2DestinationLocation struct {
	AccountID string `json:",omitempty"`
	Key       string `json:",omitempty"`
	Bucket    string `json:",omitempty"`
	Prefix    string `json:",omitempty"`
	// Deprecated: This member has been deprecated since Comet version 21.9.7
	MaxConnections   int  `json:",omitempty"`
	HideDeletedFiles bool `json:",omitempty"`
}

type B2StorageExtraInfo

type B2StorageExtraInfo struct {
	TotalTransactionsInTimeInterval map[int64]B2TransactionTotals
}

type B2TransactionTotals

type B2TransactionTotals struct {
	ClassA int64
	ClassB int64
	ClassC int64
}

type B2VirtualStorageRoleSettings

type B2VirtualStorageRoleSettings struct {
	MasterBucket     string
	KeyID            string
	AppKey           string
	HideDeletedFiles bool
}

type BackupJobAdvancedOptions

type BackupJobAdvancedOptions struct {
	SkipAlreadyRunning    bool
	StopAfter             int64
	LimitVaultSpeedBps    int64
	ReduceDiskConcurrency bool
	UseOnDiskIndexes      bool
	AllowZeroFilesSuccess bool
	AutoRetentionLevel    AutoRetentionLevel
}

type BackupJobDetail

type BackupJobDetail struct {
	GUID                      string
	Username                  string
	Classification            JobClassification
	Status                    JobStatus
	StartTime                 int64
	EndTime                   int64
	SourceGUID                string
	DestinationGUID           string
	DeviceID                  string
	SnapshotID                string `json:",omitempty"`
	ClientVersion             string
	TotalDirectories          int64
	TotalFiles                int64
	TotalSize                 int64
	TotalChunks               int64
	UploadSize                int64
	DownloadSize              int64
	TotalVmCount              int64             `json:",omitempty"`
	TotalMailsCount           int64             `json:",omitempty"`
	TotalSitesCount           int64             `json:",omitempty"`
	TotalAccountsCount        int64             `json:",omitempty"`
	TotalLicensedMailsCount   int64             `json:",omitempty"`
	TotalUnlicensedMailsCount int64             `json:",omitempty"`
	CancellationID            string            `json:",omitempty"`
	Progress                  BackupJobProgress `json:",omitempty"`
	DestinationSizeStart      SizeMeasurement   `json:",omitempty"`
	DestinationSizeEnd        SizeMeasurement   `json:",omitempty"`
}

type BackupJobProgress

type BackupJobProgress struct {
	Counter      int64
	SentTime     int64
	RecievedTime int64
	BytesDone    int64
	ItemsDone    int64
}

type BackupRuleConfig

type BackupRuleConfig struct {
	Description           string
	CreateTime            int64
	ModifyTime            int64
	PreExec               []string
	ThawExec              []string
	PostExec              []string
	Source                string
	Destination           string
	SkipAlreadyRunning    bool
	StopAfter             int64
	LimitVaultSpeedBps    int64
	ReduceDiskConcurrency bool
	UseOnDiskIndexes      bool
	AllowZeroFilesSuccess bool
	AutoRetentionLevel    AutoRetentionLevel
	Schedules             []ScheduleConfig
	EventTriggers         BackupRuleEventTriggers
}

type BackupRuleEventTriggers

type BackupRuleEventTriggers struct {
	OnPCBoot                bool `json:",omitempty"`
	OnPCBootIfLastJobMissed bool `json:",omitempty"`
}

type BrandingOptions

type BrandingOptions struct {
	BrandName                           string
	LogoImage                           string
	TopColor                            string
	Favicon                             string
	HideNewsArea                        bool
	ProductName                         string
	CompanyName                         string
	HelpURL                             string
	HelpIsPopup                         bool
	DefaultLoginServerURL               string
	TileBackgroundColor                 string
	AccountRegisterURL                  string
	BuildMode                           ClientBrandingBuildMode
	PathIcoFile                         string
	PathIcnsFile                        string
	PathMenuBarIcnsFile                 string
	PathEulaRtf                         string
	PathTilePng                         string
	PathHeaderImage                     string
	PathAppIconImage                    string
	PackageIdentifier                   string
	WindowsCodeSignPKCS12FilePath       string
	WindowsCodeSignPKCS12PasswordFormat uint64
	WindowsCodeSignPKCS12Password       string
	WindowsCodeSignPKCS11Engine         string
	WindowsCodeSignPKCS11Module         string
	WindowsCodeSignPKCS11Certfile       string
	WindowsCodeSignPKCS11KeyID          string
	WindowsCodeSignPKCS11PasswordFormat uint64
	WindowsCodeSignPKCS11Password       string
	MacOSCodeSign                       MacOSCodeSignProperties
}

type BrandingProperties

type BrandingProperties struct {
	ProductName                         string
	CompanyName                         string
	HelpURL                             string
	HelpIsPopup                         bool
	DefaultLoginServerURL               string
	TileBackgroundColor                 string
	AccountRegisterURL                  string
	BuildMode                           ClientBrandingBuildMode
	PathIcoFile                         string
	PathIcnsFile                        string
	PathMenuBarIcnsFile                 string
	PathEulaRtf                         string
	PathTilePng                         string
	PathHeaderImage                     string
	PathAppIconImage                    string
	PackageIdentifier                   string
	WindowsCodeSignPKCS12FilePath       string
	WindowsCodeSignPKCS12PasswordFormat uint64
	WindowsCodeSignPKCS12Password       string
	WindowsCodeSignPKCS11Engine         string
	WindowsCodeSignPKCS11Module         string
	WindowsCodeSignPKCS11Certfile       string
	WindowsCodeSignPKCS11KeyID          string
	WindowsCodeSignPKCS11PasswordFormat uint64
	WindowsCodeSignPKCS11Password       string
	MacOSCodeSign                       MacOSCodeSignProperties
}

type BrowseDiskDrivesResponse

type BrowseDiskDrivesResponse struct {
	Status  int
	Message string
	Disks   []DiskDrive
}

type BrowseEDBResponse

type BrowseEDBResponse struct {
	Status    int
	Message   string
	Databases []EDBFileInfo
}

type BrowseHVResponse

type BrowseHVResponse struct {
	Status          int
	Message         string
	VirtualMachines []HyperVMachineInfo
}

type BrowseOffice365ListVirtualAccountsResponse

type BrowseOffice365ListVirtualAccountsResponse struct {
	Status  int
	Message string
	Objects []Office365MixedVirtualAccount
}

type BrowseOffice365ObjectsResponse

type BrowseOffice365ObjectsResponse struct {
	Status  int
	Message string
	Objects []Office365ObjectInfo
}

type BrowseSQLServerResponse

type BrowseSQLServerResponse struct {
	Status  int
	Message string
	Objects map[string]string
}

type BrowseVSSResponse

type BrowseVSSResponse struct {
	Status     int
	Message    string
	VSSWriters map[string]VSSWriterInfo
}

type BucketProperties

type BucketProperties struct {
	OrganizationID     string
	CreateTime         int64
	ReadWriteKeyFormat int
	ReadWriteKey       string
	Size               SizeMeasurement
}

type BucketPropertyList

type BucketPropertyList map[string]BucketProperties

type BucketUsageInfo

type BucketUsageInfo struct {
	AccessKey       string
	ExistsOnServers []int
	InUseBy         []UserOnServer
}

type BucketUsageMap

type BucketUsageMap map[string]BucketUsageInfo

type ClientBrandingBuildMode

type ClientBrandingBuildMode int
const CLIENTBRANDINGBUILD_CUSTOM ClientBrandingBuildMode = 0

ClientBrandingBuildMode: Public-Doc: The software client will be custom-built by this Comet Server, allowing custom branding, default server URL, and codesigning.

const CLIENTBRANDINGBUILD_PREBUILT ClientBrandingBuildMode = 1

ClientBrandingBuildMode: Public-Doc: A pre-built software client will be served, with Comet-branding, no server URL, and Comet codesigning.

type CometAPIClient

type CometAPIClient struct {
	ServerURL string
	Username  string
	Password  string
}

CometAPIClient is the base struct for all request methods

func NewCometAPIClient

func NewCometAPIClient(serverURL, username, password string) (*CometAPIClient, error)

NewCometAPIClient constructs and returns an instance of CometAPIClient

func (*CometAPIClient) AdminAccountProperties

func (this *CometAPIClient) AdminAccountProperties() (*AdminAccountPropertiesResponse, error)

AdminAccountProperties: Retrieve properties about the current admin account Some key parameters are obscured, but the obscured values are safely recognised by the corresponding AdminAccountSetProperties API.

You must supply administrator authentication credentials to use this API.

func (*CometAPIClient) AdminAccountRegenerateTotp

func (this *CometAPIClient) AdminAccountRegenerateTotp() (*TotpRegeneratedResponse, error)

AdminAccountRegenerateTotp: Generate a new TOTP secret The secret is returned as a `data-uri` image of a QR code. The new secret is immediately applied to the current admin account.

You must supply administrator authentication credentials to use this API.

func (*CometAPIClient) AdminAccountSessionRevoke

func (this *CometAPIClient) AdminAccountSessionRevoke() (*CometAPIResponseMessage, error)

AdminAccountSessionRevoke: Revoke a session key (log out)

You must supply administrator authentication credentials to use this API.

func (*CometAPIClient) AdminAccountSessionStart

func (this *CometAPIClient) AdminAccountSessionStart(SelfAddress *string) (*SessionKeyRegeneratedResponse, error)

AdminAccountSessionStart: Generate a session key (log in)

You must supply administrator authentication credentials to use this API.

- Params SelfAddress: (Optional) External URL of this server

func (*CometAPIClient) AdminAccountSessionStartAsUser

func (this *CometAPIClient) AdminAccountSessionStartAsUser(TargetUser string) (*SessionKeyRegeneratedResponse, error)

AdminAccountSessionStartAsUser: Generate a session key for an end-user (log in as end-user)

You must supply administrator authentication credentials to use this API.

- Params TargetUser: Target account username

func (*CometAPIClient) AdminAccountSetProperties

func (this *CometAPIClient) AdminAccountSetProperties(Security AdminSecurityOptions) (*CometAPIResponseMessage, error)

AdminAccountSetProperties: Update settings for your own admin account Updating your account password requires you to supply your current password. To set a new plaintext password, use a password format of 0 (PASSWORD_FORMAT_PLAINTEXT). This API does not currently allow you to modify your TOTP secret or IP whitelist.

You must supply administrator authentication credentials to use this API.

- Params Security: Updated account properties

func (*CometAPIClient) AdminAccountU2fRequestRegistrationChallenge

func (this *CometAPIClient) AdminAccountU2fRequestRegistrationChallenge(SelfAddress string) (*U2FRegistrationChallengeResponse, error)

AdminAccountU2fRequestRegistrationChallenge: Register a new FIDO U2F token Browser support for U2F is ending in February 2022. WebAuthn is backwards compatible with U2F keys, and Comet will automatically migrate existing U2F keys to allow their use with the WebAuthn endpoints.

You must supply administrator authentication credentials to use this API.

- Params SelfAddress: External URL of this server, used as U2F AppID and Facet

func (*CometAPIClient) AdminAccountU2fSubmitChallengeResponse

func (this *CometAPIClient) AdminAccountU2fSubmitChallengeResponse(U2FChallengeID string, U2FClientData string, U2FRegistrationData string, U2FVersion string, Description string) (*CometAPIResponseMessage, error)

AdminAccountU2fSubmitChallengeResponse: Register a new FIDO U2F token Browser support for U2F is ending in February 2022. WebAuthn is backwards compatible with U2F keys, and Comet will automatically migrate existing U2F keys to allow their use with the WebAuthn endpoints.

You must supply administrator authentication credentials to use this API.

- Params U2FChallengeID: Associated value from AdminAccountU2fRequestRegistrationChallenge API U2FClientData: U2F response data supplied by hardware token U2FRegistrationData: U2F response data supplied by hardware token U2FVersion: U2F response data supplied by hardware token Description: Optional description of the token

func (*CometAPIClient) AdminAccountValidateTotp

func (this *CometAPIClient) AdminAccountValidateTotp(TOTPCode string) (*CometAPIResponseMessage, error)

AdminAccountValidateTotp: Validate the TOTP code before turning 2fa(TOTP) on

You must supply administrator authentication credentials to use this API.

- Params TOTPCode: Six-digit code after scanning barcode image

func (*CometAPIClient) AdminAccountWebauthnRequestRegistrationChallenge

func (this *CometAPIClient) AdminAccountWebauthnRequestRegistrationChallenge(SelfAddress string) (*WebAuthnRegistrationChallengeResponse, error)

AdminAccountWebauthnRequestRegistrationChallenge: Register a new FIDO2 WebAuthn token

You must supply administrator authentication credentials to use this API.

- Params SelfAddress: External URL of this server, used as WebAuthn ID

func (*CometAPIClient) AdminAccountWebauthnSubmitChallengeResponse

func (this *CometAPIClient) AdminAccountWebauthnSubmitChallengeResponse(SelfAddress string, ChallengeID string, Credential string) (*CometAPIResponseMessage, error)

AdminAccountWebauthnSubmitChallengeResponse: Register a new FIDO2 WebAuthn token

You must supply administrator authentication credentials to use this API.

- Params SelfAddress: External URL of this server, used as WebAuthn ID ChallengeID: Associated value from AdminAccountWebAuthnRequestRegistrationChallenge API Credential: JSON-encoded credential

func (*CometAPIClient) AdminAddUser

func (this *CometAPIClient) AdminAddUser(TargetUser string, TargetPassword string, StoreRecoveryCode *int, RequirePasswordChange *int, TargetOrganization *string) (*CometAPIResponseMessage, error)

AdminAddUser: Add a new user account

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetUser: New account username TargetPassword: New account password StoreRecoveryCode: (Optional) If set to 1, store and keep a password recovery code for the generated user (>= 18.3.9) RequirePasswordChange: (Optional) If set to 1, require to reset password at the first login for the generated user (>= 20.3.4) TargetOrganization: (Optional) If present, create the user account on behalf of another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.3.7)

func (*CometAPIClient) AdminAddUserFromProfile

func (this *CometAPIClient) AdminAddUserFromProfile(TargetUser string, ProfileData UserProfileConfig, TargetOrganization *string) (*CometAPIResponseMessage, error)

AdminAddUserFromProfile: Add a new user account (with all information) This allows you to create a new account and set all its properties at once (e.g. during account replication). Developers creating a signup form may find it simpler to use the AdminAddUser and AdminGetUserProfile / AdminSetUserProfile APIs separately.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetUser: New account username ProfileData: New account profile TargetOrganization: (Optional) If present, create the user account on behalf of another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.3.7)

func (*CometAPIClient) AdminAdminUserDelete

func (this *CometAPIClient) AdminAdminUserDelete(TargetUser string) (*CometAPIResponseMessage, error)

AdminAdminUserDelete: Delete an administrator

You must supply administrator authentication credentials to use this API. Access to this API may be prevented on a per-administrator basis. This API is only available for administrator accounts in the top-level Organization, not in any other Organization.

- Params TargetUser: the username of the admin to be deleted

func (*CometAPIClient) AdminAdminUserList

func (this *CometAPIClient) AdminAdminUserList() ([]AllowedAdminUser, error)

AdminAdminUserList: List administrators

You must supply administrator authentication credentials to use this API. Access to this API may be prevented on a per-administrator basis. This API is only available for administrator accounts in the top-level Organization, not in any other Organization.

func (*CometAPIClient) AdminAdminUserNew

func (this *CometAPIClient) AdminAdminUserNew(TargetUser string, TargetPassword string, TargetOrgID *string) (*CometAPIResponseMessage, error)

AdminAdminUserNew: Add a new administrator

You must supply administrator authentication credentials to use this API. Access to this API may be prevented on a per-administrator basis. This API is only available for administrator accounts in the top-level Organization, not in any other Organization.

- Params TargetUser: the username for this new admin TargetPassword: the password for this new admin user TargetOrgID: (Optional) provide the organization ID for this user, it will default to the org of the authenticating user otherwise

func (*CometAPIClient) AdminBrandingAvailablePlatforms

func (this *CometAPIClient) AdminBrandingAvailablePlatforms() (map[int]AvailableDownload, error)

AdminBrandingAvailablePlatforms: List available software download platforms

This API requires administrator authentication credentials, unless the server is configured to allow unauthenticated software downloads. This API requires the Software Build Role to be enabled. This API requires the Auth Role to be enabled.

func (*CometAPIClient) AdminBrandingGenerateClientByPlatform

func (this *CometAPIClient) AdminBrandingGenerateClientByPlatform(Platform int, SelfAddress *string) ([]byte, error)

AdminBrandingGenerateClientByPlatform: Download software

This API requires administrator authentication credentials, unless the server is configured to allow unauthenticated software downloads. This API requires the Software Build Role to be enabled. This API requires the Auth Role to be enabled.

- Params Platform: The selected download platform, from the AdminBrandingAvailablePlatforms API SelfAddress: (Optional) The external URL of this server, used to resolve conflicts

func (*CometAPIClient) AdminBrandingGenerateClientLinuxgeneric

func (this *CometAPIClient) AdminBrandingGenerateClientLinuxgeneric(SelfAddress *string) ([]byte, error)

AdminBrandingGenerateClientLinuxgeneric: Download software (Linux Server .run)

This API requires administrator authentication credentials, unless the server is configured to allow unauthenticated software downloads. This API requires the Software Build Role to be enabled. This API requires the Auth Role to be enabled.

- Params SelfAddress: (Optional) The external URL of this server, used to resolve conflicts

func (*CometAPIClient) AdminBrandingGenerateClientMacosX8664

func (this *CometAPIClient) AdminBrandingGenerateClientMacosX8664(SelfAddress *string) ([]byte, error)

AdminBrandingGenerateClientMacosX8664: Download software (macOS x86_64 pkg)

This API requires administrator authentication credentials, unless the server is configured to allow unauthenticated software downloads. This API requires the Software Build Role to be enabled. This API requires the Auth Role to be enabled.

- Params SelfAddress: (Optional) The external URL of this server, used to resolve conflicts

func (*CometAPIClient) AdminBrandingGenerateClientSpkDsm6

func (this *CometAPIClient) AdminBrandingGenerateClientSpkDsm6(SelfAddress *string) ([]byte, error)

AdminBrandingGenerateClientSpkDsm6: Download software (Synology SPK for DSM 6)

This API requires administrator authentication credentials, unless the server is configured to allow unauthenticated software downloads. This API requires the Software Build Role to be enabled. This API requires the Auth Role to be enabled.

- Params SelfAddress: (Optional) The external URL of this server, used to resolve conflicts

func (*CometAPIClient) AdminBrandingGenerateClientSpkDsm7

func (this *CometAPIClient) AdminBrandingGenerateClientSpkDsm7(SelfAddress *string) ([]byte, error)

AdminBrandingGenerateClientSpkDsm7: Download software (Synology SPK for DSM 7)

This API requires administrator authentication credentials, unless the server is configured to allow unauthenticated software downloads. This API requires the Software Build Role to be enabled. This API requires the Auth Role to be enabled.

- Params SelfAddress: (Optional) The external URL of this server, used to resolve conflicts

func (*CometAPIClient) AdminBrandingGenerateClientTest

func (this *CometAPIClient) AdminBrandingGenerateClientTest(Platform int, SelfAddress *string) (*CometAPIResponseMessage, error)

AdminBrandingGenerateClientTest: Check if a software download is available

This API requires administrator authentication credentials, unless the server is configured to allow unauthenticated software downloads. This API requires the Software Build Role to be enabled. This API requires the Auth Role to be enabled.

- Params Platform: The selected download platform, from the AdminBrandingAvailablePlatforms API SelfAddress: (Optional) The external URL of this server, used to resolve conflicts

func (*CometAPIClient) AdminBrandingGenerateClientWindowsAnycpuExe

func (this *CometAPIClient) AdminBrandingGenerateClientWindowsAnycpuExe(SelfAddress *string) ([]byte, error)

AdminBrandingGenerateClientWindowsAnycpuExe: Download software update (Windows AnyCPU exe) The exe endpoints are not recommended for end-users, as they may not be able to provide a codesigned installer if no custom codesigning certificate is present.

This API requires administrator authentication credentials, unless the server is configured to allow unauthenticated software downloads. This API requires the Software Build Role to be enabled. This API requires the Auth Role to be enabled.

- Params SelfAddress: (Optional) The external URL of this server, used to resolve conflicts

func (*CometAPIClient) AdminBrandingGenerateClientWindowsAnycpuZip

func (this *CometAPIClient) AdminBrandingGenerateClientWindowsAnycpuZip(SelfAddress *string) ([]byte, error)

AdminBrandingGenerateClientWindowsAnycpuZip: Download software (Windows AnyCPU zip) The zip endpoints are recommended for end-users, as they may be able to provide a codesigned installer even when no custom codesigning certificate is present.

This API requires administrator authentication credentials, unless the server is configured to allow unauthenticated software downloads. This API requires the Software Build Role to be enabled. This API requires the Auth Role to be enabled.

- Params SelfAddress: (Optional) The external URL of this server, used to resolve conflicts

func (*CometAPIClient) AdminBrandingGenerateClientWindowsX8632Exe

func (this *CometAPIClient) AdminBrandingGenerateClientWindowsX8632Exe(SelfAddress *string) ([]byte, error)

AdminBrandingGenerateClientWindowsX8632Exe: Download software update (Windows x86_32 exe) The exe endpoints are not recommended for end-users, as they may not be able to provide a codesigned installer if no custom codesigning certificate is present.

This API requires administrator authentication credentials, unless the server is configured to allow unauthenticated software downloads. This API requires the Software Build Role to be enabled. This API requires the Auth Role to be enabled.

- Params SelfAddress: (Optional) The external URL of this server, used to resolve conflicts

func (*CometAPIClient) AdminBrandingGenerateClientWindowsX8632Zip

func (this *CometAPIClient) AdminBrandingGenerateClientWindowsX8632Zip(SelfAddress *string) ([]byte, error)

AdminBrandingGenerateClientWindowsX8632Zip: Download software (Windows x86_32 zip) The zip endpoints are recommended for end-users, as they may be able to provide a codesigned installer even when no custom codesigning certificate is present.

This API requires administrator authentication credentials, unless the server is configured to allow unauthenticated software downloads. This API requires the Software Build Role to be enabled. This API requires the Auth Role to be enabled.

- Params SelfAddress: (Optional) The external URL of this server, used to resolve conflicts

func (*CometAPIClient) AdminBrandingGenerateClientWindowsX8664Exe

func (this *CometAPIClient) AdminBrandingGenerateClientWindowsX8664Exe(SelfAddress *string) ([]byte, error)

AdminBrandingGenerateClientWindowsX8664Exe: Download software update (Windows x86_64 exe) The exe endpoints are not recommended for end-users, as they may not be able to provide a codesigned installer if no custom codesigning certificate is present.

This API requires administrator authentication credentials, unless the server is configured to allow unauthenticated software downloads. This API requires the Software Build Role to be enabled. This API requires the Auth Role to be enabled.

- Params SelfAddress: (Optional) The external URL of this server, used to resolve conflicts

func (*CometAPIClient) AdminBrandingGenerateClientWindowsX8664Zip

func (this *CometAPIClient) AdminBrandingGenerateClientWindowsX8664Zip(SelfAddress *string) ([]byte, error)

AdminBrandingGenerateClientWindowsX8664Zip: Download software (Windows x86_64 zip) The zip endpoints are recommended for end-users, as they may be able to provide a codesigned installer even when no custom codesigning certificate is present.

This API requires administrator authentication credentials, unless the server is configured to allow unauthenticated software downloads. This API requires the Software Build Role to be enabled. This API requires the Auth Role to be enabled.

- Params SelfAddress: (Optional) The external URL of this server, used to resolve conflicts

func (*CometAPIClient) AdminBulletinSubmit

func (this *CometAPIClient) AdminBulletinSubmit(Subject string, Content string) (*CometAPIResponseMessage, error)

AdminBulletinSubmit: Send an email bulletin to all users

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params Subject: Bulletin subject line Content: Bulletin message content

func (*CometAPIClient) AdminConstellationLastReport

func (this *CometAPIClient) AdminConstellationLastReport() (*ConstellationCheckReport, error)

AdminConstellationLastReport: Get Constellation bucket usage report (cached)

You must supply administrator authentication credentials to use this API. This API is only available for administrator accounts in the top-level Organization, not in any other Organization. This API requires the Constellation Role to be enabled.

func (*CometAPIClient) AdminConstellationNewReport

func (this *CometAPIClient) AdminConstellationNewReport() (*ConstellationCheckReport, error)

AdminConstellationNewReport: Get Constellation bucket usage report (regenerate)

You must supply administrator authentication credentials to use this API. This API is only available for administrator accounts in the top-level Organization, not in any other Organization. This API requires the Constellation Role to be enabled.

func (*CometAPIClient) AdminConstellationPruneNow

func (this *CometAPIClient) AdminConstellationPruneNow() (*CometAPIResponseMessage, error)

AdminConstellationPruneNow: Prune unused buckets

You must supply administrator authentication credentials to use this API. This API is only available for administrator accounts in the top-level Organization, not in any other Organization. This API requires the Constellation Role to be enabled.

func (*CometAPIClient) AdminConstellationStatus

func (this *CometAPIClient) AdminConstellationStatus() (*ConstellationStatusAPIResponse, error)

AdminConstellationStatus: Get Constellation status

You must supply administrator authentication credentials to use this API. This API is only available for administrator accounts in the top-level Organization, not in any other Organization. This API requires the Constellation Role to be enabled.

func (*CometAPIClient) AdminCreateInstallToken

func (this *CometAPIClient) AdminCreateInstallToken(TargetUser string, TargetPassword string, Server *string) (*InstallTokenResponse, error)

AdminCreateInstallToken: Create token for silent installation Currently only supported for Windows & macOS only Provide the installation token to silently install the client on windows `install.exe /TOKEN=<installtoken>` Provide the installation token to silently install the client on Mac OS `sudo launchctl setenv BACKUP_APP_TOKEN "installtoken" && sudo /usr/sbin/installer -allowUntrusted -pkg "Comet Backup.pkg" -target /`

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetUser: Selected account username TargetPassword: Selected account password Server: (Optional) External URL of the authentication server that is different from the current server

func (*CometAPIClient) AdminDeleteUser

func (this *CometAPIClient) AdminDeleteUser(TargetUser string, UninstallConfig *UninstallConfig) (*CometAPIResponseMessage, error)

AdminDeleteUser: Delete user account This does not remove any storage buckets. Unused storage buckets will be cleaned up by the Constellation Role. Any stored data can not be decrypted without the user profile. Misuse can cause data loss! This also allows to uninstall software from active devices under the user account This also removes all job history for the user account.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetUser: Selected account username UninstallConfig: (Optional) Uninstall software configuration (>= 20.3.5)

func (*CometAPIClient) AdminDisableUserTotp

func (this *CometAPIClient) AdminDisableUserTotp(TargetUser string) (*CometAPIResponseMessage, error)

AdminDisableUserTotp: Disable user account 2FA(TOTP) authentication

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetUser: Selected account username

func (*CometAPIClient) AdminDispatcherApplyRetentionRules

func (this *CometAPIClient) AdminDispatcherApplyRetentionRules(TargetID string, Destination string) (*CometAPIResponseMessage, error)

AdminDispatcherApplyRetentionRules: Instruct a live connected device to apply retention rules now This command is understood by Comet Backup 17.6.9 and newer.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Destination: The Storage Vault GUID

func (*CometAPIClient) AdminDispatcherDeepverifyStorageVault

func (this *CometAPIClient) AdminDispatcherDeepverifyStorageVault(TargetID string, Destination string) (*CometAPIResponseMessage, error)

AdminDispatcherDeepverifyStorageVault: Instruct a live connected device to deeply verify Storage Vault content This command is understood by Comet Backup 18.8.2 and newer.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Destination: The Storage Vault GUID

func (*CometAPIClient) AdminDispatcherDeleteSnapshot

func (this *CometAPIClient) AdminDispatcherDeleteSnapshot(TargetID string, DestinationID string, SnapshotID string) (*CometAPIResponseMessage, error)

AdminDispatcherDeleteSnapshot: Instruct a live connected device to delete a stored snapshot

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID DestinationID: The Storage Vault GUID SnapshotID: The backup job snapshot ID to delete

func (*CometAPIClient) AdminDispatcherDeleteSnapshots

func (this *CometAPIClient) AdminDispatcherDeleteSnapshots(TargetID string, DestinationID string, SnapshotIDs []string) (*CometAPIResponseMessage, error)

AdminDispatcherDeleteSnapshots: Instruct a live connected device to delete multiple stored snapshots The target device must be running Comet 20.9.10 or later.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID DestinationID: The Storage Vault GUID SnapshotIDs: The backup job snapshot IDs to delete

func (*CometAPIClient) AdminDispatcherDropConnection

func (this *CometAPIClient) AdminDispatcherDropConnection(TargetID string) (*CometAPIResponseMessage, error)

AdminDispatcherDropConnection: Disconnect a live connected device The device will almost certainly attempt to reconnect.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID

func (*CometAPIClient) AdminDispatcherEmailPreview

func (this *CometAPIClient) AdminDispatcherEmailPreview(TargetID string, Snapshot string, Destination string, Path string) (*EmailReportGeneratedPreview, error)

AdminDispatcherEmailPreview: Request HTML content of an email The remote device must have given consent for an MSP to browse their mail

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Snapshot: where the email belongs to Destination: The Storage Vault ID Path: of the email to view

func (*CometAPIClient) AdminDispatcherImportApply

func (this *CometAPIClient) AdminDispatcherImportApply(TargetID string, ImportSourceID string) (*CometAPIResponseMessage, error)

AdminDispatcherImportApply: Instruct a live connected device to import settings from an installed product This command is understood by Comet Backup 17.12.0 and newer.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID ImportSourceID: The selected import source, as found by the AdminDispatcherRequestImportSources API

func (*CometAPIClient) AdminDispatcherKillProcess

func (this *CometAPIClient) AdminDispatcherKillProcess(TargetID string) (*CometAPIResponseMessage, error)

AdminDispatcherKillProcess: Instruct a live connected device to disconnect The device will terminate its live-connection process and will not reconnect.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID

func (*CometAPIClient) AdminDispatcherListActive

func (this *CometAPIClient) AdminDispatcherListActive(UserNameFilter *string) (LiveUserConnectionMap, error)

AdminDispatcherListActive: List live connected devices

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params UserNameFilter: (Optional) User name filter string

func (*CometAPIClient) AdminDispatcherOffice365ListVirtualAccounts

func (this *CometAPIClient) AdminDispatcherOffice365ListVirtualAccounts(TargetID string, Credentials Office365Credential) (*BrowseOffice365ListVirtualAccountsResponse, error)

AdminDispatcherOffice365ListVirtualAccounts: Request a list of Office365 Resources (groups, sites, teams groups and users) The remote device must have given consent for an MSP to browse their files.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Credentials: The Office365 account credential

func (*CometAPIClient) AdminDispatcherPingDestination

func (this *CometAPIClient) AdminDispatcherPingDestination(TargetID string, ExtraData DestinationLocation) (*CometAPIResponseMessage, error)

AdminDispatcherPingDestination: Test the connection to the storage bucket

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID ExtraData: The destination location settings

func (*CometAPIClient) AdminDispatcherRefetchProfile

func (this *CometAPIClient) AdminDispatcherRefetchProfile(TargetID string) (*CometAPIResponseMessage, error)

AdminDispatcherRefetchProfile: Instruct a live connected device to refresh their profile This command is understood by Comet Backup 17.12.0 and newer.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID

func (*CometAPIClient) AdminDispatcherRegisterOfficeApplicationBegin

func (this *CometAPIClient) AdminDispatcherRegisterOfficeApplicationBegin(TargetID string, EmailAddress string) (*RegisterOfficeApplicationBeginResponse, error)

AdminDispatcherRegisterOfficeApplicationBegin: Begin the process of registering a new Azure AD application that can access Office 365 for backup After calling this API, you should supply the login details to the end-user, and then begin polling the AdminDispatcherRegisterOfficeApplicationCheck with the supplied "Continuation" parameter to check on the registration process.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID EmailAddress: The email address of the Azure AD administrator

func (*CometAPIClient) AdminDispatcherRegisterOfficeApplicationCheck

func (this *CometAPIClient) AdminDispatcherRegisterOfficeApplicationCheck(TargetID string, Continuation string) (*RegisterOfficeApplicationCheckResponse, error)

AdminDispatcherRegisterOfficeApplicationCheck: Check the process of registering a new Azure AD application that can access Office 365 for backup You should begin the process by calling AdminDispatcherRegisterOfficeApplicationBegin and asking the end-user to complete the Azure authentication steps.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Continuation: The ID returned from the AdminDispatcherRegisterOfficeApplicationBegin endpoint

func (*CometAPIClient) AdminDispatcherReindexStorageVault

func (this *CometAPIClient) AdminDispatcherReindexStorageVault(TargetID string, Destination string) (*CometAPIResponseMessage, error)

AdminDispatcherReindexStorageVault: Instruct a live connected device to rebuild Storage Vault indexes now This command is understood by Comet Backup 18.6.9 and newer.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Destination: The Storage Vault GUID

func (*CometAPIClient) AdminDispatcherRequestBrowseDiskDrives

func (this *CometAPIClient) AdminDispatcherRequestBrowseDiskDrives(TargetID string) (*BrowseDiskDrivesResponse, error)

AdminDispatcherRequestBrowseDiskDrives: Request a list of physical disk drive information from a live connected device

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID

func (*CometAPIClient) AdminDispatcherRequestBrowseExchangeEdb

func (this *CometAPIClient) AdminDispatcherRequestBrowseExchangeEdb(TargetID string) (*BrowseEDBResponse, error)

AdminDispatcherRequestBrowseExchangeEdb: Request a list of Exchange EDB databases from a live connected device

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID

func (*CometAPIClient) AdminDispatcherRequestBrowseHyperv

func (this *CometAPIClient) AdminDispatcherRequestBrowseHyperv(TargetID string) (*BrowseHVResponse, error)

AdminDispatcherRequestBrowseHyperv: Request a list of Hyper-V virtual machines from a live connected device

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID

func (*CometAPIClient) AdminDispatcherRequestBrowseMongodb

func (this *CometAPIClient) AdminDispatcherRequestBrowseMongodb(TargetID string, Credentials MongoDBConnection) (*BrowseSQLServerResponse, error)

AdminDispatcherRequestBrowseMongodb: Request a list of tables in MongoDB database The remote device must have given consent for an MSP to browse their files.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Credentials: The Mongo database authentication settings

func (*CometAPIClient) AdminDispatcherRequestBrowseMssql

func (this *CometAPIClient) AdminDispatcherRequestBrowseMssql(TargetID string, Credentials MSSQLConnection) (*BrowseSQLServerResponse, error)

AdminDispatcherRequestBrowseMssql: Request a list of tables in MSSQL database The remote device must have given consent for an MSP to browse their files.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Credentials: The MSSQL database authentication settings

func (*CometAPIClient) AdminDispatcherRequestBrowseMysql

func (this *CometAPIClient) AdminDispatcherRequestBrowseMysql(TargetID string, Credentials MySQLConnection) (*BrowseSQLServerResponse, error)

AdminDispatcherRequestBrowseMysql: Request a list of tables in MySQL database The remote device must have given consent for an MSP to browse their files.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Credentials: The MySQL database authentication settings

func (*CometAPIClient) AdminDispatcherRequestBrowseVssAaw

func (this *CometAPIClient) AdminDispatcherRequestBrowseVssAaw(TargetID string) (*BrowseVSSResponse, error)

AdminDispatcherRequestBrowseVssAaw: Request a list of installed VSS Writers (Application-Aware Writers) from a live connected device

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID

func (*CometAPIClient) AdminDispatcherRequestFilesystemObjects

func (this *CometAPIClient) AdminDispatcherRequestFilesystemObjects(TargetID string, Path *string) (*DispatcherStoredObjectsResponse, error)

AdminDispatcherRequestFilesystemObjects: Request a list of filesystem objects from a live connected device The device must have granted the administrator permission to view its filenames.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Path: (Optional) Browse objects inside this path. If empty or not present, returns the top-level device paths

func (*CometAPIClient) AdminDispatcherRequestImportSources

func (this *CometAPIClient) AdminDispatcherRequestImportSources(TargetID string) (*DispatcherAdminSourcesResponse, error)

AdminDispatcherRequestImportSources: Request a list of import sources from a live connected device

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID

func (*CometAPIClient) AdminDispatcherRequestOffice365Accounts

func (this *CometAPIClient) AdminDispatcherRequestOffice365Accounts(TargetID string, Credentials Office365Credential) (*BrowseOffice365ObjectsResponse, error)

AdminDispatcherRequestOffice365Accounts: Request a list of Office365 mailbox accounts The remote device must have given consent for an MSP to browse their files.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Credentials: The Office365 account credential

func (*CometAPIClient) AdminDispatcherRequestOffice365Sites

func (this *CometAPIClient) AdminDispatcherRequestOffice365Sites(TargetID string, Credentials Office365Credential) (*BrowseOffice365ObjectsResponse, error)

AdminDispatcherRequestOffice365Sites: Request a list of Office365 sites The remote device must have given consent for an MSP to browse their files.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Credentials: The Office365 account credential

func (*CometAPIClient) AdminDispatcherRequestStoredObjects

func (this *CometAPIClient) AdminDispatcherRequestStoredObjects(TargetID string, Destination string, SnapshotID string, TreeID *string, Options *VMDKSnapshotViewOptions) (*DispatcherStoredObjectsResponse, error)

AdminDispatcherRequestStoredObjects: Request a list of stored objects inside an existing backup job The remote device must have given consent for an MSP to browse their files. To service this request, the remote device must connect to the Storage Vault and load index data. There may be a small delay. If the remote device is running Comet 20.12.0 or later, the necessary index data is cached when this API is first called, for 15 minutes after the last repeated call. This can improve performance for interactively browsing an entire tree of stored objects.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Destination: The Storage Vault ID SnapshotID: The selected backup job snapshot TreeID: (Optional) Browse objects inside subdirectory of backup snapshot. If it is for VMDK single file restore, it should be the disk image's subtree ID. Options: (Optional) Request a list of stored objects in vmdk file

func (*CometAPIClient) AdminDispatcherRequestVaultSnapshots

func (this *CometAPIClient) AdminDispatcherRequestVaultSnapshots(TargetID string, Destination string) (*DispatcherVaultSnapshotsResponse, error)

AdminDispatcherRequestVaultSnapshots: Request a list of Storage Vault snapshots from a live connected device

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Destination: The Storage Vault ID

func (*CometAPIClient) AdminDispatcherRequestWindiskSnapshot

func (this *CometAPIClient) AdminDispatcherRequestWindiskSnapshot(TargetID string, Destination string, SnapshotID string) (*DispatcherWindiskSnapshotResponse, error)

AdminDispatcherRequestWindiskSnapshot: Request a Disk Image snapshot with the windiskbrowse-style from a live connected device

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Destination: The Storage Vault ID SnapshotID: The Snapshot ID

func (*CometAPIClient) AdminDispatcherRunBackup

func (this *CometAPIClient) AdminDispatcherRunBackup(TargetID string, BackupRule string) (*CometAPIResponseMessage, error)

AdminDispatcherRunBackup: Instruct a live connected device to run a scheduled backup

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID BackupRule: The schedule GUID

func (*CometAPIClient) AdminDispatcherRunBackupCustom

func (this *CometAPIClient) AdminDispatcherRunBackupCustom(TargetID string, Source string, Destination string, Options *BackupJobAdvancedOptions) (*CometAPIResponseMessage, error)

AdminDispatcherRunBackupCustom: Instruct a live connected device to run a backup

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Source: The Protected Item GUID Destination: The Storage Vault GUID Options: (Optional) Extra job parameters (>= 19.3.6)

func (*CometAPIClient) AdminDispatcherRunRestore

func (this *CometAPIClient) AdminDispatcherRunRestore(TargetID string, Path string, Source string, Destination string, Snapshot *string, Paths []string) (*CometAPIResponseMessage, error)

AdminDispatcherRunRestore: Instruct a live connected device to perform a local restore This command is understood by Comet Backup 17.9.3 and newer.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Path: The local path to restore to Source: The Protected Item ID Destination: The Storage Vault ID Snapshot: (Optional) If present, restore a specific snapshot. Otherwise, restore the latest snapshot for the selected Protected Item + Storage Vault pair Paths: (Optional) If present, restore these paths only. Otherwise, restore all data (>= 19.3.0)

func (*CometAPIClient) AdminDispatcherRunRestoreCustom

func (this *CometAPIClient) AdminDispatcherRunRestoreCustom(TargetID string, Source string, Destination string, Options RestoreJobAdvancedOptions, Snapshot *string, Paths []string) (*CometAPIResponseMessage, error)

AdminDispatcherRunRestoreCustom: Instruct a live connected device to perform a local restore This command is understood by Comet Backup 18.6.0 and newer.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Source: The Protected Item ID Destination: The Storage Vault ID Options: Restore targets Snapshot: (Optional) If present, restore a specific snapshot. Otherwise, restore the latest snapshot for the selected Protected Item + Storage Vault pair Paths: (Optional) If present, restore these paths only. Otherwise, restore all data

func (*CometAPIClient) AdminDispatcherUninstallSoftware

func (this *CometAPIClient) AdminDispatcherUninstallSoftware(TargetID string, RemoveConfigFile bool) (*CometAPIResponseMessage, error)

AdminDispatcherUninstallSoftware: Instruct a live connected device to self-uninstall the software

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID RemoveConfigFile: Determine if the config.dat file will be deleted at the same time

func (*CometAPIClient) AdminDispatcherUnlock

func (this *CometAPIClient) AdminDispatcherUnlock(TargetID string, Destination string) (*CometAPIResponseMessage, error)

AdminDispatcherUnlock: Instruct a live connected device to remove lock files from a Storage Vault Misuse can cause data loss! This command is understood by Comet Backup 17.9.4 and newer.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Destination: The Storage Vault GUID

func (*CometAPIClient) AdminDispatcherUpdateLoginUrl

func (this *CometAPIClient) AdminDispatcherUpdateLoginUrl(TargetID string, NewURL string) (*CometAPIResponseMessage, error)

AdminDispatcherUpdateLoginUrl: Instruct a live connected device to update its login server URL The device will attempt to connect to the new Auth Role Comet Server using its current username and password. If the test connection succeeds, the device migrates its saved connection settings and live connections to the new server. If the device is not registered on the new URL, or if the credentials are incorrect, the device remains on the current Auth Role server.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID NewURL: The new external URL of this server

func (*CometAPIClient) AdminDispatcherUpdateSoftware

func (this *CometAPIClient) AdminDispatcherUpdateSoftware(TargetID string, SelfAddress *string) (*CometAPIResponseMessage, error)

AdminDispatcherUpdateSoftware: Instruct a live connected device to download a software update

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled. This API requires the Software Build Role to be enabled.

- Params TargetID: The live connection GUID SelfAddress: (Optional) The external URL of this server, used to resolve conflicts (>= 19.3.11)

func (*CometAPIClient) AdminGetJobLog

func (this *CometAPIClient) AdminGetJobLog(JobID string) ([]byte, error)

AdminGetJobLog: Get the report log entries for a single job, in plaintext format

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params JobID: Selected job ID

func (*CometAPIClient) AdminGetJobLogEntries

func (this *CometAPIClient) AdminGetJobLogEntries(JobID string) ([]JobEntry, error)

AdminGetJobLogEntries: Get the report log entries for a single job

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params JobID: Selected job ID

func (*CometAPIClient) AdminGetJobProperties

func (this *CometAPIClient) AdminGetJobProperties(JobID string) (*BackupJobDetail, error)

AdminGetJobProperties: Get properties of a single job

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params JobID: Selected job ID

func (*CometAPIClient) AdminGetJobsAll

func (this *CometAPIClient) AdminGetJobsAll() ([]BackupJobDetail, error)

AdminGetJobsAll: Get jobs (All) The jobs are returned in an unspecified order.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

func (*CometAPIClient) AdminGetJobsForCustomSearch

func (this *CometAPIClient) AdminGetJobsForCustomSearch(Query SearchClause) ([]BackupJobDetail, error)

AdminGetJobsForCustomSearch: Get jobs (for custom search) The jobs are returned in an unspecified order.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params Query: (No description available)

func (*CometAPIClient) AdminGetJobsForDateRange

func (this *CometAPIClient) AdminGetJobsForDateRange(Start int, End int) ([]BackupJobDetail, error)

AdminGetJobsForDateRange: Get jobs (for date range) The jobs are returned in an unspecified order.

If the `Start` parameter is later than `End`, they will be swapped.

This API will return all jobs that either started or ended within the supplied range.

Incomplete jobs have an end time of `0`. You can use this API to find only incomplete jobs by setting both `Start` and `End` to `0`.

Prior to Comet Server 22.6.0, additional Incomplete jobs may have been returned if you specified non-zero arguments for both `Start` and `End`.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params Start: Timestamp (Unix) End: Timestamp (Unix)

func (*CometAPIClient) AdminGetJobsForUser

func (this *CometAPIClient) AdminGetJobsForUser(TargetUser string) ([]BackupJobDetail, error)

AdminGetJobsForUser: Get jobs (for user) The jobs are returned in an unspecified order.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetUser: Selected username

func (*CometAPIClient) AdminGetJobsRecent

func (this *CometAPIClient) AdminGetJobsRecent() ([]BackupJobDetail, error)

AdminGetJobsRecent: Get jobs (Recent and incomplete) The jobs are returned in an unspecified order.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

func (*CometAPIClient) AdminGetUserProfile

func (this *CometAPIClient) AdminGetUserProfile(TargetUser string) (*UserProfileConfig, error)

AdminGetUserProfile: Get user account profile

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetUser: Selected account username

func (*CometAPIClient) AdminGetUserProfileAndHash

func (this *CometAPIClient) AdminGetUserProfileAndHash(TargetUser string) (*GetProfileAndHashResponseMessage, error)

AdminGetUserProfileAndHash: Get user account profile (atomic) The resulting hash parameter can be passed to the corresponding update API, to atomically ensure that no changes occur between get/set operations. The hash format is not publicly documented and may change in a future server version. Use server APIs to retrieve current hash values.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetUser: Selected account username

func (*CometAPIClient) AdminGetUserProfileHash

func (this *CometAPIClient) AdminGetUserProfileHash(TargetUser string) (*GetProfileHashResponseMessage, error)

AdminGetUserProfileHash: Get user account profile (hash) The profile hash can be used to determine if a user account profile has changed. The hash format is not publicly documented and may change in a future server version. Use server APIs to retrieve current hash values.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetUser: Selected account username

func (*CometAPIClient) AdminJobCancel

func (this *CometAPIClient) AdminJobCancel(TargetUser string, JobID string) (*CometAPIResponseMessage, error)

AdminJobCancel: Cancel a running job A request is sent to the live-connected device, asking it to cancel the operation. This may fail if there is no live-connection. Only jobs from Comet 18.3.5 or newer can be cancelled. A job can only be cancelled if it has a non-empty CancellationID field in its properties. If the device is running Comet 21.9.5 or later, this API will wait up to ten seconds for a confirmation from the client.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetUser: Username JobID: Job ID

func (*CometAPIClient) AdminListUsers

func (this *CometAPIClient) AdminListUsers() ([]string, error)

AdminListUsers: List all user accounts

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

func (*CometAPIClient) AdminListUsersFull

func (this *CometAPIClient) AdminListUsersFull() (map[string]UserProfileConfig, error)

AdminListUsersFull: List all user account profiles

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

func (*CometAPIClient) AdminMetaBrandingConfigGet

func (this *CometAPIClient) AdminMetaBrandingConfigGet() (*ServerConfigOptionsBrandingFragment, error)

AdminMetaBrandingConfigGet: Get Branding configuration

You must supply administrator authentication credentials to use this API. Access to this API may be prevented on a per-administrator basis.

func (*CometAPIClient) AdminMetaBrandingConfigSet

func (this *CometAPIClient) AdminMetaBrandingConfigSet(BrandingConfig BrandingOptions) (*CometAPIResponseMessage, error)

AdminMetaBrandingConfigSet: Set Branding configuration Note that file resources must be provided using a resource URI I.E `"resource://05ba0b90ee66bda433169581188aba8d29faa938f9464cccd651a02fdf2e5b57"`. See AdminMetaResourceNew for the API documentation to create new file resources.

You must supply administrator authentication credentials to use this API. Access to this API may be prevented on a per-administrator basis.

- Params BrandingConfig: Updated configuration content

func (*CometAPIClient) AdminMetaBuildConfigGet

func (this *CometAPIClient) AdminMetaBuildConfigGet() (*ServerConfigOptionsSoftwareBuildRoleFragment, error)

AdminMetaBuildConfigGet: Get Software Build Role configuration

You must supply administrator authentication credentials to use this API. Access to this API may be prevented on a per-administrator basis.

func (*CometAPIClient) AdminMetaBuildConfigSet

func (this *CometAPIClient) AdminMetaBuildConfigSet(SoftwareBuildRoleConfig SoftwareBuildRoleOptions) (*CometAPIResponseMessage, error)

AdminMetaBuildConfigSet: Set Build Role configuration

You must supply administrator authentication credentials to use this API. Access to this API may be prevented on a per-administrator basis.

- Params SoftwareBuildRoleConfig: Updated configuration content

func (*CometAPIClient) AdminMetaListAvailableLogDays

func (this *CometAPIClient) AdminMetaListAvailableLogDays() ([]LogDay, error)

AdminMetaListAvailableLogDays: Get log files

You must supply administrator authentication credentials to use this API. This API is only available for administrator accounts in the top-level Organization, not in any other Organization.

func (*CometAPIClient) AdminMetaReadAllLogs

func (this *CometAPIClient) AdminMetaReadAllLogs() ([]byte, error)

AdminMetaReadAllLogs: Get a ZIP file of all of the server's log files On non-Windows platforms, log content uses LF line endings. On Windows, Comet changed from LF to CRLF line endings in 18.3.2. This API does not automatically convert line endings; around the 18.3.2 timeframe, log content may even contain mixed line-endings.

You must supply administrator authentication credentials to use this API. This API is only available for administrator accounts in the top-level Organization, not in any other Organization.

func (*CometAPIClient) AdminMetaReadLogs

func (this *CometAPIClient) AdminMetaReadLogs(Log int) ([]byte, error)

AdminMetaReadLogs: Get log file content On non-Windows platforms, log content uses LF line endings. On Windows, Comet changed from LF to CRLF line endings in 18.3.2. This API does not automatically convert line endings; around the 18.3.2 timeframe, log content may even contain mixed line-endings.

You must supply administrator authentication credentials to use this API. This API is only available for administrator accounts in the top-level Organization, not in any other Organization.

- Params Log: A log day, selected from the options returned by the Get Log Files API

func (*CometAPIClient) AdminMetaRemoteStorageVaultGet

func (this *CometAPIClient) AdminMetaRemoteStorageVaultGet() ([]RemoteStorageOption, error)

AdminMetaRemoteStorageVaultGet: Get Requesting Remote Storage Vault Config

You must supply administrator authentication credentials to use this API. Access to this API may be prevented on a per-administrator basis.

func (*CometAPIClient) AdminMetaRemoteStorageVaultSet

func (this *CometAPIClient) AdminMetaRemoteStorageVaultSet(RemoteStorageOptions []RemoteStorageOption) (*CometAPIResponseMessage, error)

AdminMetaRemoteStorageVaultSet: Set Storage template vault options

You must supply administrator authentication credentials to use this API. Access to this API may be prevented on a per-administrator basis.

- Params RemoteStorageOptions: Updated configuration content

func (*CometAPIClient) AdminMetaResourceGet

func (this *CometAPIClient) AdminMetaResourceGet(Hash string) ([]byte, error)

AdminMetaResourceGet: Get a resource file Resources are used to upload files within the server configuration.

You must supply administrator authentication credentials to use this API.

- Params Hash: The resource identifier

func (*CometAPIClient) AdminMetaResourceNew

func (this *CometAPIClient) AdminMetaResourceNew(upload string) (*AdminResourceResponse, error)

AdminMetaResourceNew: Upload a resource file Resources are used to upload files within the server configuration. The resulting resource ID is autogenerated. The lifespan of an uploaded resource is undefined. Resources may be deleted automatically, but it should remain available until the next call to AdminMetaServerConfigSet, and will remain available for as long as it is referenced by the server configuration.

You must supply administrator authentication credentials to use this API.

- Params upload: The uploaded file contents, as a multipart/form-data part.

func (*CometAPIClient) AdminMetaRestartService

func (this *CometAPIClient) AdminMetaRestartService() (*CometAPIResponseMessage, error)

AdminMetaRestartService: Restart server The Comet Server process will exit. The service manager should restart the server automatically.

Prior to 18.9.2, this API terminated the server immediately without returning a response. In 18.9.2 and later, it returns a successful response before shutting down.

You must supply administrator authentication credentials to use this API. This API is only available for administrator accounts in the top-level Organization, not in any other Organization. Access to this API may be prevented on a per-administrator basis.

func (*CometAPIClient) AdminMetaSendTestEmail

func (this *CometAPIClient) AdminMetaSendTestEmail(EmailOptions EmailOptions, Recipient string) (*CometAPIResponseMessage, error)

AdminMetaSendTestEmail: Send a test email message This allows the Comet Server web interface to support testing different email credentials during setup.

You must supply administrator authentication credentials to use this API. This API is only available for administrator accounts in the top-level Organization, not in any other Organization. Access to this API may be prevented on a per-administrator basis.

- Params EmailOptions: Updated configuration content Recipient: Target email address to send test email

func (*CometAPIClient) AdminMetaServerConfigGet

func (this *CometAPIClient) AdminMetaServerConfigGet() (*ServerConfigOptions, error)

AdminMetaServerConfigGet: Get server configuration

You must supply administrator authentication credentials to use this API. Access to this API may be prevented on a per-administrator basis. This API is only available for administrator accounts in the top-level Organization, not in any other Organization.

func (*CometAPIClient) AdminMetaServerConfigNetworkInterfaces

func (this *CometAPIClient) AdminMetaServerConfigNetworkInterfaces() ([]string, error)

AdminMetaServerConfigNetworkInterfaces: List the available network interfaces on the PC running Comet Server Any IPv6 addresses are listed in compressed form without square-brackets.

You must supply administrator authentication credentials to use this API. Access to this API may be prevented on a per-administrator basis. This API is only available for administrator accounts in the top-level Organization, not in any other Organization.

func (*CometAPIClient) AdminMetaServerConfigSet

func (this *CometAPIClient) AdminMetaServerConfigSet(Config ServerConfigOptions) (*CometAPIResponseMessage, error)

AdminMetaServerConfigSet: Set server configuration The Comet Server process will exit. The service manager should restart the server automatically.

Prior to 18.9.2, this API terminated the server immediately without returning a response. In 18.9.2 and later, it returns a successful response before shutting down.

You must supply administrator authentication credentials to use this API. Access to this API may be prevented on a per-administrator basis. This API is only available for administrator accounts in the top-level Organization, not in any other Organization.

- Params Config: Updated configuration content

func (*CometAPIClient) AdminMetaShutdownService

func (this *CometAPIClient) AdminMetaShutdownService() (*CometAPIResponseMessage, error)

AdminMetaShutdownService: Shut down server The Comet Server process will exit.

Prior to 18.9.2, this API terminated the server immediately without returning a response. In 18.9.2 and later, it returns a successful response before shutting down.

You must supply administrator authentication credentials to use this API. This API is only available for administrator accounts in the top-level Organization, not in any other Organization. Access to this API may be prevented on a per-administrator basis.

func (*CometAPIClient) AdminMetaSoftwareUpdateNews

func (this *CometAPIClient) AdminMetaSoftwareUpdateNews() (*SoftwareUpdateNewsResponse, error)

AdminMetaSoftwareUpdateNews: Get software update news from the software provider

You must supply administrator authentication credentials to use this API.

func (*CometAPIClient) AdminMetaStats

func (this *CometAPIClient) AdminMetaStats(Simple bool) (map[int64]StatResult, error)

AdminMetaStats: Get Comet Server historical statistics The returned key-value map is not necessarily ordered. Client-side code should sort the result before display.

You must supply administrator authentication credentials to use this API.

- Params Simple: Remove redundant statistics

func (*CometAPIClient) AdminMetaVersion

func (this *CometAPIClient) AdminMetaVersion() (*ServerMetaVersionInfo, error)

AdminMetaVersion: Get server properties Retrieve the version number and basic properties about the server.

You must supply administrator authentication credentials to use this API.

func (*CometAPIClient) AdminMetaWebhookOptionsGet

func (this *CometAPIClient) AdminMetaWebhookOptionsGet() (map[string]WebhookOption, error)

AdminMetaWebhookOptionsGet: Get the server webhook configuration

You must supply administrator authentication credentials to use this API.

func (*CometAPIClient) AdminMetaWebhookOptionsSet

func (this *CometAPIClient) AdminMetaWebhookOptionsSet(WebhookOptions map[string]WebhookOption) (*CometAPIResponseMessage, error)

AdminMetaWebhookOptionsSet: Update the server webhook configuration Calling this endpoint will interrupt any messages currently queued for existing webhook destinations.

You must supply administrator authentication credentials to use this API.

- Params WebhookOptions: The replacement webhook target options.

func (*CometAPIClient) AdminNewsGetAll

func (this *CometAPIClient) AdminNewsGetAll() (NewsEntries, error)

AdminNewsGetAll: Get News entries (Admin)

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

func (*CometAPIClient) AdminNewsRemove

func (this *CometAPIClient) AdminNewsRemove(NewsItem string) (*CometAPIResponseMessage, error)

AdminNewsRemove: Remove news item

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params NewsItem: Selected news item GUID

func (*CometAPIClient) AdminNewsSubmit

func (this *CometAPIClient) AdminNewsSubmit(NewsContent string) (*CometAPIResponseMessage, error)

AdminNewsSubmit: Submit news item

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params NewsContent: Content of news item

func (*CometAPIClient) AdminOrganizationDelete

func (this *CometAPIClient) AdminOrganizationDelete(OrganizationID *string, UninstallConfig *UninstallConfig) (*CometAPIResponseMessage, error)

AdminOrganizationDelete: Delete an organization and all related users

Prior to Comet 22.6.0, this API was documented as returning the OrganizationResponse type. However, it always has returned only a CometAPIResponseMessage.

You must supply administrator authentication credentials to use this API. This API is only available for administrator accounts in the top-level Organization, not in any other Organization.

- Params OrganizationID: (Optional) (No description available) UninstallConfig: (Optional) Uninstall software configuration

func (*CometAPIClient) AdminOrganizationList

func (this *CometAPIClient) AdminOrganizationList() (map[string]Organization, error)

AdminOrganizationList: List Organizations

You must supply administrator authentication credentials to use this API. This API is only available for administrator accounts in the top-level Organization, not in any other Organization.

func (*CometAPIClient) AdminOrganizationSet

func (this *CometAPIClient) AdminOrganizationSet(OrganizationID *string, Organization *Organization) (*OrganizationResponse, error)

AdminOrganizationSet: Create or Update an Organization

Prior to Comet 22.6.0, the 'ID' and 'Organization' fields were not present in the response.

You must supply administrator authentication credentials to use this API. This API is only available for administrator accounts in the top-level Organization, not in any other Organization.

- Params OrganizationID: (Optional) (No description available) Organization: (Optional) (No description available)

func (*CometAPIClient) AdminPoliciesDelete

func (this *CometAPIClient) AdminPoliciesDelete(PolicyID string) (*CometAPIResponseMessage, error)

AdminPoliciesDelete: Delete an existing policy object

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params PolicyID: The policy ID to update or create

func (*CometAPIClient) AdminPoliciesGet

func (this *CometAPIClient) AdminPoliciesGet(PolicyID string) (*GetGroupPolicyResponse, error)

AdminPoliciesGet: Retrieve a single policy object A hash is also returned, to allow atomic modification operations.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params PolicyID: The policy ID to retrieve

func (*CometAPIClient) AdminPoliciesList

func (this *CometAPIClient) AdminPoliciesList(TargetOrganization *string) (map[string]string, error)

AdminPoliciesList: List all policy object names For the top-level organization, the API result includes all policies for all organizations, unless the TargetOrganization parameter is present.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetOrganization: (Optional) If present, list the policies belonging to another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.3.7)

func (*CometAPIClient) AdminPoliciesListFull

func (this *CometAPIClient) AdminPoliciesListFull(TargetOrganization *string) (map[string]GroupPolicy, error)

AdminPoliciesListFull: Get all policy objects For the top-level organization, the API result includes all policies for all organizations, unless the TargetOrganization parameter is present.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetOrganization: (Optional) If present, list the policies belonging to another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.3.7)

func (*CometAPIClient) AdminPoliciesNew

func (this *CometAPIClient) AdminPoliciesNew(Policy GroupPolicy) (*CreateGroupPolicyResponse, error)

AdminPoliciesNew: Create a new policy object

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params Policy: The policy data

func (*CometAPIClient) AdminPoliciesSet

func (this *CometAPIClient) AdminPoliciesSet(PolicyID string, Policy GroupPolicy, CheckPolicyHash *string) (*CometAPIResponseMessage, error)

AdminPoliciesSet: Update an existing policy object An optional hash may be used, to ensure the modification was atomic. This API can also be used to create a new policy object with a specific hash.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params PolicyID: The policy ID to update or create Policy: The policy data CheckPolicyHash: (Optional) An atomic verification hash as supplied by the AdminPoliciesGet API

func (*CometAPIClient) AdminPreviewUserEmailReport

func (this *CometAPIClient) AdminPreviewUserEmailReport(TargetUser string, EmailReportConfig EmailReportConfig, EmailAddress *string) (*EmailReportGeneratedPreview, error)

AdminPreviewUserEmailReport: Preview an email report for a customer

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetUser: Selected account username EmailReportConfig: Email report configuration to preview EmailAddress: (Optional) Email address that may be included in the report body (>= 20.3.3)

func (*CometAPIClient) AdminReplicationState

func (this *CometAPIClient) AdminReplicationState() ([]ReplicatorStateAPIResponse, error)

AdminReplicationState: Get Replication status

You must supply administrator authentication credentials to use this API. This API is only available for administrator accounts in the top-level Organization, not in any other Organization.

func (*CometAPIClient) AdminRequestStorageVault

func (this *CometAPIClient) AdminRequestStorageVault(TargetUser string, StorageProvider string, SelfAddress *string) (*RequestStorageVaultResponseMessage, error)

AdminRequestStorageVault: Request a new Storage Vault on behalf of a user This action does not respect the "Prevent creating new Storage Vaults (via Request)" policy setting. New Storage Vaults can be requested regardless of the policy setting. Prior to Comet 19.8.0, the response type was CometAPIResponseMessage (i.e. no DestinationID field in response). The StorageProvider must exist for the target user account's organization.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetUser: The user to receive the new Storage Vault StorageProvider: ID for the storage template destination SelfAddress: (Optional) The external URL for this server. Used to resolve conflicts

func (*CometAPIClient) AdminRequestStorageVaultProviders

func (this *CometAPIClient) AdminRequestStorageVaultProviders(TargetOrganization *string) (map[string]string, error)

AdminRequestStorageVaultProviders: Get the available options for Requesting a Storage Vault

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetOrganization: (Optional) If present, list the storage template options belonging to another organization. Only allowed for administrator accounts in the top-level organization. (>= 22.3.7)

func (*CometAPIClient) AdminResetUserPassword

func (this *CometAPIClient) AdminResetUserPassword(TargetUser string, NewPassword string, OldPassword string) (*CometAPIResponseMessage, error)

AdminResetUserPassword: Reset user account password The user account must have a recovery code present. A new replacement recovery code will be generated automatically.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetUser: Selected account username NewPassword: New account password OldPassword: Old account password (optional)

func (*CometAPIClient) AdminRevokeDevice

func (this *CometAPIClient) AdminRevokeDevice(TargetUser string, TargetDevice string) (*CometAPIResponseMessage, error)

AdminRevokeDevice: Revoke device from user account It's possible to simply remove the Device section from the user's profile, however, using this dedicated API will also gracefully handle live connections.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetUser: Selected account username TargetDevice: Selected Device ID

func (*CometAPIClient) AdminSetUserProfile

func (this *CometAPIClient) AdminSetUserProfile(TargetUser string, ProfileData UserProfileConfig) (*CometAPIResponseMessage, error)

AdminSetUserProfile: Modify user account profile

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetUser: Selected account username ProfileData: Modified user profile

func (*CometAPIClient) AdminSetUserProfileHash

func (this *CometAPIClient) AdminSetUserProfileHash(TargetUser string, ProfileData UserProfileConfig, RequireHash string) (*CometAPIResponseMessage, error)

AdminSetUserProfileHash: Modify user account profile (atomic) The hash parameter can be determined from the corresponding API, to atomically ensure that no changes occur between get/set operations. The hash format is not publicly documented and may change in a future server version. Use server APIs to retrieve current hash values.

You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.

- Params TargetUser: Selected account username ProfileData: Modified user profile RequireHash: Previous hash parameter

func (*CometAPIClient) AdminStorageBucketProperties

func (this *CometAPIClient) AdminStorageBucketProperties(BucketID string, AfterTimestamp *int) (*BucketProperties, error)

AdminStorageBucketProperties: Retrieve properties for a single bucket This API can also be used to refresh the size measurement for a single bucket by passing a valid AfterTimestamp parameter.

You must supply administrator authentication credentials to use this API. This API requires the Storage Role to be enabled.

- Params BucketID: Bucket ID AfterTimestamp: (Optional) Allow a stale size measurement if it is at least as new as the supplied Unix timestamp. Timestamps in the future may produce a result clamped down to the Comet Server's current time. If not present, the size measurement may be arbitrarily stale.

func (*CometAPIClient) AdminStorageDeleteBucket

func (this *CometAPIClient) AdminStorageDeleteBucket(BucketID string) (*CometAPIResponseMessage, error)

AdminStorageDeleteBucket: Delete a bucket All data will be removed from the server. Misuse can cause data loss!

You must supply administrator authentication credentials to use this API. This API requires the Storage Role to be enabled.

- Params BucketID: Selected bucket name

func (*CometAPIClient) AdminStorageFreeSpace

func (this *CometAPIClient) AdminStorageFreeSpace(BucketID *string) (*StorageFreeSpaceInfo, error)

AdminStorageFreeSpace: Retrieve available space metrics

You must supply administrator authentication credentials to use this API. Access to this API may be prevented on a per-administrator basis. This API requires the Storage Role to be enabled. This API is only available for administrator accounts in the top-level Organization, not in any other Organization.

- Params BucketID: (Optional) (This parameter is not used)

func (*CometAPIClient) AdminStorageListBuckets

func (this *CometAPIClient) AdminStorageListBuckets() (BucketPropertyList, error)

AdminStorageListBuckets: List all buckets

You must supply administrator authentication credentials to use this API. This API requires the Storage Role to be enabled.

func (*CometAPIClient) AdminStoragePingDestination

func (this *CometAPIClient) AdminStoragePingDestination(ExtraData DestinationLocation) (*CometAPIResponseMessage, error)

AdminStoragePingDestination: Ping a storage destination

You must supply administrator authentication credentials to use this API. Access to this API may be prevented on a per-administrator basis. This API requires the Storage Role to be enabled. This API is only available for administrator accounts in the top-level Organization, not in any other Organization.

- Params ExtraData: The destination location settings

func (*CometAPIClient) AdminStorageRegisterBucket

func (this *CometAPIClient) AdminStorageRegisterBucket(SetBucketValue *string, SetKeyHashFormat *string, SetKeyHashValue *string, SetOrganizationID *string) (*AddBucketResponseMessage, error)

AdminStorageRegisterBucket: Create a new bucket Leave the Set* parameters blank to generate a bucket with random credentials, or, supply a pre-hashed password for zero-knowledge operations. Any auto-generated credentials are returned in the response message.

You must supply administrator authentication credentials to use this API. This API requires the Storage Role to be enabled.

- Params SetBucketValue: (Optional) Bucket ID SetKeyHashFormat: (Optional) Bucket key hashing format SetKeyHashValue: (Optional) Bucket key hash SetOrganizationID: (Optional) Target organization ID (>= 20.9.0)

func (*CometAPIClient) AdminUpdateCampaignStart

func (this *CometAPIClient) AdminUpdateCampaignStart(Options UpdateCampaignOptions) (*CometAPIResponseMessage, error)

AdminUpdateCampaignStart: Start a new software update campaign

You must supply administrator authentication credentials to use this API. This API is only available for administrator accounts in the top-level Organization, not in any other Organization. This API requires the Software Build Role to be enabled. This API requires the Auth Role to be enabled.

- Params Options: Configure targets for the software update campaign

func (*CometAPIClient) AdminUpdateCampaignStatus

func (this *CometAPIClient) AdminUpdateCampaignStatus() (*UpdateCampaignStatus, error)

AdminUpdateCampaignStatus: Get current campaign status

You must supply administrator authentication credentials to use this API. This API is only available for administrator accounts in the top-level Organization, not in any other Organization. This API requires the Software Build Role to be enabled. This API requires the Auth Role to be enabled.

func (*CometAPIClient) BrandingProps

func (this *CometAPIClient) BrandingProps() (*ServerMetaBrandingProperties, error)

BrandingProps: Retreve basic information about this Comet Server

func (*CometAPIClient) HybridSessionStart

func (this *CometAPIClient) HybridSessionStart() (*SessionKeyRegeneratedResponse, error)

HybridSessionStart: Generate a session key (log in) This hybrid API allows you to log in to the Comet Server as either an administrator or end-user account. This API behaves like either AdminAccountSessionStart or UserWebSessionStart, depending on what the supplied credentials were valid for.

func (*CometAPIClient) Request

func (this *CometAPIClient) Request(contentType, method, path string, data map[string][]string) ([]byte, error)

Request is a convenience method wrapping a basic http request

func (*CometAPIClient) UserDispatcherEmailPreview

func (this *CometAPIClient) UserDispatcherEmailPreview(TargetID string, Snapshot string, Destination string, Path string) (*EmailReportGeneratedPreview, error)

UserDispatcherEmailPreview: Request HTML content of an email The remote device must have given consent for an MSP to browse their mail

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Snapshot: where the email belongs to Destination: The Storage Vault ID Path: of the email to view

func (*CometAPIClient) UserWebAccountRegenerateTotp

func (this *CometAPIClient) UserWebAccountRegenerateTotp(ProfileHash string) (*TotpRegeneratedResponse, error)

UserWebAccountRegenerateTotp: Generate a new TOTP secret for user (web) The secret is returned as a `data-uri` image of a QR code. The new secret is immediately applied to the current admin account.

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params ProfileHash: Previous account profile hash

func (*CometAPIClient) UserWebAccountResetPassword

func (this *CometAPIClient) UserWebAccountResetPassword(ProfileHash string, OldPassword string, NewPassword string) (*CometAPIResponseMessage, error)

UserWebAccountResetPassword: Reset the password for your own user account (web) A new replacement recovery code will be generated if the present recovery code is not empty

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params ProfileHash: Previous account profile hash OldPassword: Current account password NewPassword: New account password

func (*CometAPIClient) UserWebAccountValidateTotp

func (this *CometAPIClient) UserWebAccountValidateTotp(ProfileHash string, TOTPCode string) (*CometAPIResponseMessage, error)

UserWebAccountValidateTotp: Validate the TOTP code before turning 2fa(TOTP) on

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params ProfileHash: Previous account profile hash TOTPCode: Six-digit code after scanning barcode image

func (*CometAPIClient) UserWebDispatcherDeleteSnapshot

func (this *CometAPIClient) UserWebDispatcherDeleteSnapshot(TargetID string, DestinationID string, SnapshotID string) (*CometAPIResponseMessage, error)

UserWebDispatcherDeleteSnapshot: Instruct a live connected device to delete a stored snapshot

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID DestinationID: The Storage Vault GUID SnapshotID: The backup job snapshot ID to delete

func (*CometAPIClient) UserWebDispatcherDeleteSnapshots

func (this *CometAPIClient) UserWebDispatcherDeleteSnapshots(TargetID string, DestinationID string, SnapshotIDs []string) (*CometAPIResponseMessage, error)

UserWebDispatcherDeleteSnapshots: Instruct a live connected device to delete multiple stored snapshots The target device must be running Comet 20.9.10 or later.

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID DestinationID: The Storage Vault GUID SnapshotIDs: The backup job snapshot IDs to delete

func (*CometAPIClient) UserWebDispatcherListActive

func (this *CometAPIClient) UserWebDispatcherListActive() (LiveUserConnectionMap, error)

UserWebDispatcherListActive: List live connected devices in my account

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

func (*CometAPIClient) UserWebDispatcherOffice365ListVirtualAccounts

func (this *CometAPIClient) UserWebDispatcherOffice365ListVirtualAccounts(TargetID string, Credentials Office365Credential) (*BrowseOffice365ListVirtualAccountsResponse, error)

UserWebDispatcherOffice365ListVirtualAccounts: Request a list of Office365 Resources (groups, sites, teams groups and users)

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Credentials: The Office365 account credential

func (*CometAPIClient) UserWebDispatcherPingDestination

func (this *CometAPIClient) UserWebDispatcherPingDestination(TargetID string, ExtraData DestinationLocation) (*CometAPIResponseMessage, error)

UserWebDispatcherPingDestination: Test the connection to the storage bucket

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID ExtraData: The destination location settings

func (*CometAPIClient) UserWebDispatcherRegisterOfficeApplicationBegin

func (this *CometAPIClient) UserWebDispatcherRegisterOfficeApplicationBegin(TargetID string, EmailAddress string) (*RegisterOfficeApplicationBeginResponse, error)

UserWebDispatcherRegisterOfficeApplicationBegin: Begin the process of registering a new Azure AD application that can access Office 365 for backup After calling this API, you should supply the login details to the end-user, and then begin polling the AdminDispatcherRegisterOfficeApplicationCheck with the supplied "Continuation" parameter to check on the registration process.

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID EmailAddress: The email address of the Azure AD administrator

func (*CometAPIClient) UserWebDispatcherRegisterOfficeApplicationCheck

func (this *CometAPIClient) UserWebDispatcherRegisterOfficeApplicationCheck(TargetID string, Continuation string) (*RegisterOfficeApplicationCheckResponse, error)

UserWebDispatcherRegisterOfficeApplicationCheck: Check the process of registering a new Azure AD application that can access Office 365 for backup You should begin the process by calling AdminDispatcherRegisterOfficeApplicationBegin and asking the end-user to complete the Azure authentication steps.

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Continuation: The ID returned from the AdminDispatcherRegisterOfficeApplicationBegin endpoint

func (*CometAPIClient) UserWebDispatcherRequestBrowseDiskDrives

func (this *CometAPIClient) UserWebDispatcherRequestBrowseDiskDrives(TargetID string) (*BrowseDiskDrivesResponse, error)

UserWebDispatcherRequestBrowseDiskDrives: Request a list of physical disk drive information from a live connected device

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID

func (*CometAPIClient) UserWebDispatcherRequestBrowseExchangeEdb

func (this *CometAPIClient) UserWebDispatcherRequestBrowseExchangeEdb(TargetID string) (*BrowseEDBResponse, error)

UserWebDispatcherRequestBrowseExchangeEdb: Request a list of Exchange EDB databases from a live connected device

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID

func (*CometAPIClient) UserWebDispatcherRequestBrowseHyperv

func (this *CometAPIClient) UserWebDispatcherRequestBrowseHyperv(TargetID string) (*BrowseHVResponse, error)

UserWebDispatcherRequestBrowseHyperv: Request a list of Hyper-V virtual machines from a live connected device

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID

func (*CometAPIClient) UserWebDispatcherRequestBrowseMongodb

func (this *CometAPIClient) UserWebDispatcherRequestBrowseMongodb(TargetID string, Credentials MongoDBConnection) (*BrowseSQLServerResponse, error)

UserWebDispatcherRequestBrowseMongodb: Request a list of tables in MongoDB database

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Credentials: The MongoDB database authentication settings

func (*CometAPIClient) UserWebDispatcherRequestBrowseMssql

func (this *CometAPIClient) UserWebDispatcherRequestBrowseMssql(TargetID string, Credentials MSSQLConnection) (*BrowseSQLServerResponse, error)

UserWebDispatcherRequestBrowseMssql: Request a list of tables in MSSQL database

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Credentials: The MSSQL database authentication settings

func (*CometAPIClient) UserWebDispatcherRequestBrowseMysql

func (this *CometAPIClient) UserWebDispatcherRequestBrowseMysql(TargetID string, Credentials MySQLConnection) (*BrowseSQLServerResponse, error)

UserWebDispatcherRequestBrowseMysql: Request a list of tables in MySQL database

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Credentials: The MySQL database authentication settings

func (*CometAPIClient) UserWebDispatcherRequestBrowseVssAaw

func (this *CometAPIClient) UserWebDispatcherRequestBrowseVssAaw(TargetID string) (*BrowseVSSResponse, error)

UserWebDispatcherRequestBrowseVssAaw: Request a list of installed VSS Writers (Application-Aware Writers) from a live connected device

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID

func (*CometAPIClient) UserWebDispatcherRequestOffice365Accounts

func (this *CometAPIClient) UserWebDispatcherRequestOffice365Accounts(TargetID string, Credentials Office365Credential) (*BrowseOffice365ObjectsResponse, error)

UserWebDispatcherRequestOffice365Accounts: Request a list of Office365 mailbox accounts

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Credentials: The Office365 account credential

func (*CometAPIClient) UserWebDispatcherRequestOffice365Sites

func (this *CometAPIClient) UserWebDispatcherRequestOffice365Sites(TargetID string, Credentials Office365Credential) (*BrowseOffice365ObjectsResponse, error)

UserWebDispatcherRequestOffice365Sites: Request a list of Office365 sites

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Credentials: The Office365 account credential

func (*CometAPIClient) UserWebDispatcherRequestStoredObjects

func (this *CometAPIClient) UserWebDispatcherRequestStoredObjects(TargetID string, Destination string, SnapshotID string, TreeID *string, Options *VMDKSnapshotViewOptions) (*DispatcherStoredObjectsResponse, error)

UserWebDispatcherRequestStoredObjects: Request a list of stored objects inside an existing backup job The remote device must have given consent for an MSP to browse their files.

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Destination: The Storage Vault ID SnapshotID: The selected backup job snapshot TreeID: (Optional) Browse objects inside subdirectory of backup snapshot. If it is for VMDK single file restore, it should be the disk image's subtree ID. Options: (Optional) Request a list of stored objects in vmdk file

func (*CometAPIClient) UserWebDispatcherRequestVaultSnapshots

func (this *CometAPIClient) UserWebDispatcherRequestVaultSnapshots(TargetID string, Destination string) (*DispatcherVaultSnapshotsResponse, error)

UserWebDispatcherRequestVaultSnapshots: Request a list of Storage Vault snapshots from a live connected device

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Destination: The Storage Vault ID

func (*CometAPIClient) UserWebDispatcherRequestWindiskSnapshot

func (this *CometAPIClient) UserWebDispatcherRequestWindiskSnapshot(TargetID string, Destination string, SnapshotID string) (*DispatcherWindiskSnapshotResponse, error)

UserWebDispatcherRequestWindiskSnapshot: Request a Disk Image snapshot with the windiskbrowse-style from a live connected device

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Destination: The Storage Vault ID SnapshotID: The Snapshot ID

func (*CometAPIClient) UserWebDispatcherRunBackup

func (this *CometAPIClient) UserWebDispatcherRunBackup(TargetID string, BackupRule string) (*CometAPIResponseMessage, error)

UserWebDispatcherRunBackup: Instruct a live connected device in my account to run a scheduled backup

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID BackupRule: The schedule GUID

func (*CometAPIClient) UserWebDispatcherRunBackupCustom

func (this *CometAPIClient) UserWebDispatcherRunBackupCustom(TargetID string, Source string, Destination string, Options *BackupJobAdvancedOptions) (*CometAPIResponseMessage, error)

UserWebDispatcherRunBackupCustom: Instruct a live connected device to run a backup

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Source: The Protected Item GUID Destination: The Storage Vault GUID Options: (Optional) Extra job parameters (>= 19.3.6)

func (*CometAPIClient) UserWebDispatcherRunRestore

func (this *CometAPIClient) UserWebDispatcherRunRestore(TargetID string, Path string, Source string, Destination string, Snapshot *string, Paths []string) (*CometAPIResponseMessage, error)

UserWebDispatcherRunRestore: Instruct a live connected device in my account to perform a local restore

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Path: The local path to restore to Source: The Protected Item ID Destination: The Storage Vault ID Snapshot: (Optional) If present, restore a specific snapshot. Otherwise, restore the latest snapshot for the selected Protected Item + Storage Vault pair Paths: (Optional) If present, restore these paths only. Otherwise, restore all data (>= 19.3.0)

func (*CometAPIClient) UserWebDispatcherRunRestoreCustom

func (this *CometAPIClient) UserWebDispatcherRunRestoreCustom(TargetID string, Source string, Destination string, Options RestoreJobAdvancedOptions, Snapshot *string, Paths []string) (*CometAPIResponseMessage, error)

UserWebDispatcherRunRestoreCustom: Instruct a live connected device in my account to perform a local restore This command is understood by Comet Backup 18.6.0 and newer.

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Source: The Protected Item ID Destination: The Storage Vault ID Options: Restore targets Snapshot: (Optional) If present, restore a specific snapshot. Otherwise, restore the latest snapshot for the selected Protected Item + Storage Vault pair Paths: (Optional) If present, restore these paths only. Otherwise, restore all data (>= 19.3.0)

func (*CometAPIClient) UserWebGetJobLog

func (this *CometAPIClient) UserWebGetJobLog(JobID string) ([]byte, error)

UserWebGetJobLog: Get backup job report log, in plaintext format (Web)

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params JobID: Selected job GUID

func (*CometAPIClient) UserWebGetJobLogEntries

func (this *CometAPIClient) UserWebGetJobLogEntries(JobID string) ([]JobEntry, error)

UserWebGetJobLogEntries: Get backup job report log (Web)

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params JobID: Selected job GUID

func (*CometAPIClient) UserWebGetJobProperties

func (this *CometAPIClient) UserWebGetJobProperties(JobID string) (*BackupJobDetail, error)

UserWebGetJobProperties: Get backup job properties (Web)

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params JobID: Selected job GUID

func (*CometAPIClient) UserWebGetJobs

func (this *CometAPIClient) UserWebGetJobs() ([]BackupJobDetail, error)

UserWebGetJobs: List all backup jobs (Web)

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

func (*CometAPIClient) UserWebGetJobsForCustomSearch

func (this *CometAPIClient) UserWebGetJobsForCustomSearch() ([]BackupJobDetail, error)

UserWebGetJobsForCustomSearch: List all backup jobs (Web)

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

func (*CometAPIClient) UserWebGetUserProfileAndHash

func (this *CometAPIClient) UserWebGetUserProfileAndHash() (*GetProfileAndHashResponseMessage, error)

UserWebGetUserProfileAndHash: Get user account profile (atomic) (Web interface version)

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

func (*CometAPIClient) UserWebJobCancel

func (this *CometAPIClient) UserWebJobCancel(JobID string) (*CometAPIResponseMessage, error)

UserWebJobCancel: Cancel a running job A request is sent to the live-connected device, asking it to cancel the operation. This may fail if there is no live-connection. Only jobs from Comet 18.3.5 or newer can be cancelled. A job can only be cancelled if it has a non-empty CancellationID field in its properties. If the device is running Comet 21.9.5 or later, this API will wait up to ten seconds for a confirmation from the client.

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params JobID: Job ID

func (*CometAPIClient) UserWebNewsGetAll

func (this *CometAPIClient) UserWebNewsGetAll() (NewsEntries, error)

UserWebNewsGetAll: Get News entries (Web)

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

func (*CometAPIClient) UserWebRequestFilesystemObjects

func (this *CometAPIClient) UserWebRequestFilesystemObjects(TargetID string, Path *string) (*DispatcherStoredObjectsResponse, error)

UserWebRequestFilesystemObjects: Request a list of filesystem objects from the device The device must have granted the administrator permission to view its filenames.

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params TargetID: The live connection GUID Path: (Optional) Browse objects inside this path. If empty or not present, returns the top-level device paths

func (*CometAPIClient) UserWebRequestStorageVault

func (this *CometAPIClient) UserWebRequestStorageVault(StorageProvider string, SelfAddress *string) (*RequestStorageVaultResponseMessage, error)

UserWebRequestStorageVault: Request a new Storage Vault (Web) This action can be prevented via policy. Prior to Comet 19.8.0, the response type was CometAPIResponseMessage (i.e. no DestinationID field in response). The StorageProvider must exist for the target user account's organization.

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params StorageProvider: ID for the storage template destination SelfAddress: (Optional) The external URL for this server. Used to resolve conflicts

func (*CometAPIClient) UserWebRequestStorageVaultProviders

func (this *CometAPIClient) UserWebRequestStorageVaultProviders() (map[string]string, error)

UserWebRequestStorageVaultProviders: Get the available options for Requesting a Storage Vault (User Web)

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

func (*CometAPIClient) UserWebSessionRevoke

func (this *CometAPIClient) UserWebSessionRevoke() (*CometAPIResponseMessage, error)

UserWebSessionRevoke: Revoke a session key (log out)

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

func (*CometAPIClient) UserWebSessionStart

func (this *CometAPIClient) UserWebSessionStart() (*SessionKeyRegeneratedResponse, error)

UserWebSessionStart: Generate a session key (log in)

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

func (*CometAPIClient) UserWebSetProfileHash

func (this *CometAPIClient) UserWebSetProfileHash(ProfileData UserProfileConfig, ProfileHash string) (*CometAPIResponseMessage, error)

UserWebSetProfileHash: Set account profile (atomic, web)

You must supply user authentication credentials to use this API, and the user account must be authorized for web access. This API requires the Auth Role to be enabled.

- Params ProfileData: Updated account profile ProfileHash: Previous account profile hash

type CometAPIResponseMessage

type CometAPIResponseMessage struct {
	Status  int
	Message string
}

type CometDestinationLocation

type CometDestinationLocation struct {
	CometServer    string
	CometBucket    string
	CometBucketKey string
}

type CompressMode

type CompressMode int
const COMPRESS_DEFAULT CompressMode = COMPRESS_LVL_4

CompressMode:

const COMPRESS_INVALID CompressMode = 0

CompressMode:

const COMPRESS_LVL_1 CompressMode = 1

CompressMode:

const COMPRESS_LVL_2 CompressMode = 2

CompressMode:

const COMPRESS_LVL_3 CompressMode = 3

CompressMode:

const COMPRESS_LVL_4 CompressMode = 4

CompressMode:

const COMPRESS_LVL_5 CompressMode = 5

CompressMode:

const COMPRESS_MAX CompressMode = COMPRESS_LVL_5

CompressMode:

type ConstellationCheckReport

type ConstellationCheckReport struct {
	CheckStarted   int64
	CheckCompleted int64
	Usage          BucketUsageMap
}

type ConstellationRoleOptions

type ConstellationRoleOptions struct {
	RoleEnabled      bool
	DeleteUnusedData bool
	Servers          []RemoteServerAddress
}

type ConstellationStats

type ConstellationStats struct {
	LastCheckStart        int64
	TotalChecksStarted    int64
	TotalBucketsDeleted   int64
	ChecksCurrentlyActive int64
}

type ConstellationStatusAPIResponse

type ConstellationStatusAPIResponse struct {
	DeletionEnabled bool
	Targets         []string
	TargetNames     []string `json:",omitempty"`
	Stats           ConstellationStats
}

type ContentMeasurement

type ContentMeasurement struct {
	MeasureStarted   int64
	MeasureCompleted int64
	Components       []ContentMeasurementComponent
}

type ContentMeasurementComponent

type ContentMeasurementComponent struct {
	Bytes  int64
	UsedBy []string
}

type CreateGroupPolicyResponse

type CreateGroupPolicyResponse struct {
	Status     int
	Message    string
	PolicyHash string
}

type CustomRemoteBucketSettings

type CustomRemoteBucketSettings struct {
	URL string
}

type DaysOfWeekConfig

type DaysOfWeekConfig struct {
	Sunday    bool
	Monday    bool
	Tuesday   bool
	Wednesday bool
	Thursday  bool
	Friday    bool
	Saturday  bool
}

type DefaultEmailReportPolicy

type DefaultEmailReportPolicy struct {
	ShouldOverrideDefaultReports bool
	Reports                      []EmailReportConfig
}

type DefaultSettingMode

type DefaultSettingMode int
const SETTING_ENFORCED_OFF DefaultSettingMode = 4

DefaultSettingMode:

const SETTING_ENFORCED_ON DefaultSettingMode = 3

DefaultSettingMode:

const SETTING_OPTIONAL_DEFAULT_OFF DefaultSettingMode = 2

DefaultSettingMode:

const SETTING_OPTIONAL_DEFAULT_ON DefaultSettingMode = 1

DefaultSettingMode:

const SETTING_SYSTEM_DEFAULT DefaultSettingMode = 0

DefaultSettingMode:

type DefaultSourceOSRestriction

type DefaultSourceOSRestriction int

type DefaultSourceWithOSRestriction

type DefaultSourceWithOSRestriction struct {
	SourceConfig SourceConfig
	RestrictOS   DefaultSourceOSRestriction
}

type DestinationConfig

type DestinationConfig struct {
	Description                      string
	CreateTime                       int64
	ModifyTime                       int64
	PreExec                          []string
	ThawExec                         []string
	PostExec                         []string
	DestinationType                  uint64
	CometServer                      string
	CometBucket                      string
	CometBucketKey                   string
	S3Server                         string
	S3UsesTLS                        bool
	S3AccessKey                      string
	S3SecretKey                      string
	S3BucketName                     string
	S3Subdir                         string
	S3CustomRegion                   string
	S3UsesV2Signing                  bool
	SFTPServer                       string
	SFTPUsername                     string
	SFTPRemotePath                   string
	SFTPAuthMode                     SftpAuthMode
	SFTPPassword                     string
	SFTPPrivateKey                   string
	SFTPCustomAuth_UseKnownHostsFile bool
	SFTPCustomAuth_KnownHostsFile    string
	FTPServer                        string
	FTPUsername                      string
	FTPPassword                      string
	FTPBaseUseHomeDirectory          bool
	FTPCustomBaseDirectory           string
	FTPSMode                         FtpsModeType
	FTPPort                          int
	FTPMaxConnections                int
	FTPAcceptInvalidSSL              bool
	AZBAccountName                   string
	AZBAccountKey                    string
	AZBContainer                     string
	AZBRealm                         string
	AZBPrefix                        string
	LocalcopyPath                    string
	LocalcopyWinSMBUsername          string
	LocalcopyWinSMBPassword          string
	LocalcopyWinSMBPasswordFormat    uint64
	Swift                            SwiftDestinationLocation
	B2                               B2DestinationLocation
	SpanTargets                      []DestinationLocation
	SpanUseStaticSlots               bool
	EncryptionKeyEncryptionMethod    uint64
	EncryptedEncryptionKey           string
	RepoInitTimestamp                int64
	StorageLimitEnabled              bool
	StorageLimitBytes                int64
	Statistics                       DestinationStatistics `json:",omitempty"`
	DefaultRetention                 RetentionPolicy
	RebrandStorage                   bool
}

type DestinationLocation

type DestinationLocation struct {
	DestinationType                  uint64
	CometServer                      string
	CometBucket                      string
	CometBucketKey                   string
	S3Server                         string
	S3UsesTLS                        bool
	S3AccessKey                      string
	S3SecretKey                      string
	S3BucketName                     string
	S3Subdir                         string
	S3CustomRegion                   string
	S3UsesV2Signing                  bool
	SFTPServer                       string
	SFTPUsername                     string
	SFTPRemotePath                   string
	SFTPAuthMode                     SftpAuthMode
	SFTPPassword                     string
	SFTPPrivateKey                   string
	SFTPCustomAuth_UseKnownHostsFile bool
	SFTPCustomAuth_KnownHostsFile    string
	FTPServer                        string
	FTPUsername                      string
	FTPPassword                      string
	FTPBaseUseHomeDirectory          bool
	FTPCustomBaseDirectory           string
	FTPSMode                         FtpsModeType
	FTPPort                          int
	FTPMaxConnections                int
	FTPAcceptInvalidSSL              bool
	AZBAccountName                   string
	AZBAccountKey                    string
	AZBContainer                     string
	AZBRealm                         string
	AZBPrefix                        string
	LocalcopyPath                    string
	LocalcopyWinSMBUsername          string
	LocalcopyWinSMBPassword          string
	LocalcopyWinSMBPasswordFormat    uint64
	Swift                            SwiftDestinationLocation
	B2                               B2DestinationLocation
	SpanTargets                      []DestinationLocation
	SpanUseStaticSlots               bool
}

type DestinationStatistics

type DestinationStatistics struct {
	ClientProvidedSize                 SizeMeasurement
	ClientProvidedContent              ContentMeasurement
	LastSuccessfulDeepVerify_GUID      string `json:",omitempty"`
	LastSuccessfulDeepVerify_StartTime int64  `json:",omitempty"`
	LastSuccessfulDeepVerify_EndTime   int64  `json:",omitempty"`
}

type DeviceConfig

type DeviceConfig struct {
	FriendlyName     string
	RegistrationTime int64                      `json:",omitempty"`
	PlatformVersion  OSInfo                     `json:",omitempty"`
	Sources          map[string]SourceBasicInfo `json:",omitempty"`
	DeviceTimezone   string                     `json:",omitempty"`
}

type DiskDrive

type DiskDrive struct {
	ID           string
	DeviceName   string
	Caption      string
	Model        string
	SerialNumber string
	Size         int64
	Partitions   []Partition
	Flags        int64
	Cylinders    int64
	Heads        int64
	Sectors      int64
	SectorSize   int64
}

type DispatcherAdminSourcesResponse

type DispatcherAdminSourcesResponse struct {
	Status        int
	Message       string
	ImportSources map[string]string
}

type DispatcherStoredObjectsResponse

type DispatcherStoredObjectsResponse struct {
	Status        int
	Message       string
	StoredObjects []StoredObject
}

type DispatcherVaultSnapshotsResponse

type DispatcherVaultSnapshotsResponse struct {
	Status    int
	Message   string
	Snapshots []VaultSnapshot
}

type DispatcherWindiskSnapshotResponse

type DispatcherWindiskSnapshotResponse struct {
	Status          int
	Message         string
	WindiskSnapshot []DiskDrive
}

type EDBFileInfo

type EDBFileInfo struct {
	Name                   string
	GUID                   string `json:"Guid"`
	ServerName             string
	CircularLoggingEnabled bool
}

type EmailDeliveryType

type EmailDeliveryType string
const EMAIL_DELIVERY_BUILTIN EmailDeliveryType = EMAIL_DELIVERY_MX_DIRECT

EmailDeliveryType: Legacy alias

const EMAIL_DELIVERY_MX_DIRECT EmailDeliveryType = "builtin"

EmailDeliveryType:

const EMAIL_DELIVERY_NONE EmailDeliveryType = ""

EmailDeliveryType:

const EMAIL_DELIVERY_SMTP EmailDeliveryType = "smtp"

EmailDeliveryType:

const EMAIL_DELIVERY_SMTP_SSL EmailDeliveryType = "smtp-ssl"

EmailDeliveryType:

type EmailOptions

type EmailOptions struct {
	Mode                        EmailDeliveryType
	FromEmail                   string
	FromName                    string
	SMTPHost                    string `json:",omitempty"`
	SMTPPort                    int    `json:",omitempty"`
	SMTPUsername                string `json:",omitempty"`
	SMTPPassword                string `json:",omitempty"`
	SMTPAllowInvalidCertificate bool   `json:",omitempty"`
	SMTPAllowUnencrypted        bool   `json:",omitempty"`
}

type EmailReportConfig

type EmailReportConfig struct {
	ReportType       EmailReportType
	SummaryFrequency []ScheduleConfig
	Filter           SearchClause
}

type EmailReportGeneratedPreview

type EmailReportGeneratedPreview struct {
	Status             int
	Message            string
	From               string
	To                 []string
	EmailSubject       string
	EmailBodyHTML      string
	EmailBodyPlaintext string
}

type EmailReportType

type EmailReportType int
const EMAILREPORTTYPE_IMMEDIATE EmailReportType = 0

EmailReportType:

const EMAILREPORTTYPE_SUMMARY EmailReportType = 1

EmailReportType:

type ExternalAuthenticationSource

type ExternalAuthenticationSource struct {
	Type          RemoteServerType
	Description   string
	RemoteAddress string                                   `json:",omitempty"`
	Username      string                                   `json:",omitempty"`
	Password      string                                   `json:",omitempty"`
	LDAP          ExternalLDAPAuthenticationSourceSettings `json:",omitempty"`
	B2            B2VirtualStorageRoleSettings             `json:",omitempty"`
	Wasabi        WasabiVirtualStorageRoleSettings         `json:",omitempty"`
	Custom        CustomRemoteBucketSettings               `json:",omitempty"`
	S3            S3GenericVirtualStorageRole              `json:",omitempty"`
	// Amazon AWS - Virtual Storage Role
	AWS                AmazonAWSVirtualStorageRoleSettings `json:",omitempty"`
	NewUserPermissions AdminUserPermissions
}

type ExternalLDAPAuthenticationSourceServer

type ExternalLDAPAuthenticationSourceServer struct {
	Hostname         string
	Port             int
	SecurityMethod   LDAPSecurityMethod
	AcceptInvalidSSL bool
}

type ExternalLDAPAuthenticationSourceSettings

type ExternalLDAPAuthenticationSourceSettings struct {
	Hostname         string
	Port             int
	SecurityMethod   LDAPSecurityMethod
	AcceptInvalidSSL bool
	FallbackServers  []ExternalLDAPAuthenticationSourceServer
	BindUser         string
	BindPassword     string
	SearchDN         string
	SearchFilter     string
}

type ExtraFileExclusion

type ExtraFileExclusion struct {
	Exclude    string
	Regex      bool
	RestrictOS ExtraFileExclusionOSRestriction
}

type ExtraFileExclusionOSRestriction

type ExtraFileExclusionOSRestriction int

ExtraFileExclusionOSRestriction:

const OS_ONLY_LINUX ExtraFileExclusionOSRestriction = 5

ExtraFileExclusionOSRestriction:

const OS_ONLY_MACOS ExtraFileExclusionOSRestriction = 4

ExtraFileExclusionOSRestriction:

const OS_ONLY_WINDOWS ExtraFileExclusionOSRestriction = 1

ExtraFileExclusionOSRestriction:

const OS_ONLY_WINDOWS_X8632 ExtraFileExclusionOSRestriction = 2

ExtraFileExclusionOSRestriction:

const OS_ONLY_WINDOWS_X8664 ExtraFileExclusionOSRestriction = 3

ExtraFileExclusionOSRestriction:

type FTPDestinationLocation

type FTPDestinationLocation struct {
	FTPServer               string
	FTPUsername             string
	FTPPassword             string
	FTPBaseUseHomeDirectory bool
	FTPCustomBaseDirectory  string
	FTPSMode                FtpsModeType
	FTPPort                 int
	FTPMaxConnections       int
	FTPAcceptInvalidSSL     bool
}

type FtpsModeType

type FtpsModeType int
const FTPS_MODE_EXPLICIT FtpsModeType = 2

FtpsModeType:

const FTPS_MODE_IMPLICIT FtpsModeType = 1

FtpsModeType:

const FTPS_MODE_PLAINTEXT FtpsModeType = 0

FtpsModeType:

type GetGroupPolicyResponse

type GetGroupPolicyResponse struct {
	Status     int
	Message    string
	Policy     GroupPolicy
	PolicyHash string
}

type GetProfileAndHashResponseMessage

type GetProfileAndHashResponseMessage struct {
	Status      int
	Message     string
	ProfileHash string
	Profile     UserProfileConfig
}

type GetProfileHashResponseMessage

type GetProfileHashResponseMessage struct {
	Status      int
	Message     string
	ProfileHash string
}

type GlobalOverrideOptions

type GlobalOverrideOptions struct {
	RandomDelaySecs uint64 `json:",omitempty"`
}

type GroupPolicy

type GroupPolicy struct {
	Description       string
	OrganizationID    string
	Policy            UserPolicy
	DefaultUserPolicy bool
}

type HTTPConnectorOptions

type HTTPConnectorOptions struct {
	ListenAddress__DONOTUSEDIRECTLY string `json:"ListenAddress"`
	SSLCertPath                     string `json:",omitempty"`
	SSLIntermediate                 string `json:",omitempty"`
	SSLCertKey                      string `json:",omitempty"`
	AutoSSLDomains                  string `json:",omitempty"`
	SSLPfxPath                      string `json:",omitempty"`
	SSLPfxPassword                  string `json:",omitempty"`
}

type HourSchedConfig

type HourSchedConfig struct {
	Hour    uint64
	Minutes uint64
}

type HyperVMachineInfo

type HyperVMachineInfo struct {
	ID          string
	DisplayName string `json:"Name"`
}

type InstallCreds

type InstallCreds struct {
	Username  string
	Password  string
	Server    string
	AutoLogin bool
}

type InstallToken

type InstallToken struct {
	Username   string
	Server     string
	Token      string
	CreateTime int64
	Used       bool
	ExpireTime int64
}

type InstallTokenResponse

type InstallTokenResponse struct {
	Status       int
	Message      string
	InstallToken InstallToken
}

type JobClassification

type JobClassification uint64
const JOB_CLASSIFICATION_BACKUP JobClassification = 4001

JobClassification:

const JOB_CLASSIFICATION_DEEPVERIFY JobClassification = 4010

JobClassification:

const JOB_CLASSIFICATION_DELETE_CUSTOM JobClassification = 4005

JobClassification: A specific snapshot has been deleted via the Restore wizard.

const JOB_CLASSIFICATION_IMPORT JobClassification = 4008

JobClassification:

const JOB_CLASSIFICATION_REINDEX JobClassification = 4009

JobClassification: Repair indexes

const JOB_CLASSIFICATION_REMEASURE JobClassification = 4006

JobClassification: Explicitly re-measuring the size of a Vault (right-click > Advanced menu).

const JOB_CLASSIFICATION_RESTORE JobClassification = 4002

JobClassification:

const JOB_CLASSIFICATION_RETENTION JobClassification = 4003

JobClassification: Automatic or manual retention cleaning pass.

const JOB_CLASSIFICATION_UNINSTALL JobClassification = 4011

JobClassification: Software uninstall

const JOB_CLASSIFICATION_UNKNOWN JobClassification = 4000

JobClassification:

const JOB_CLASSIFICATION_UNLOCK JobClassification = 4004

JobClassification: Another process needed exclusive Vault access (e.g. for retention) but the process died. This task cleans up exclusive lockfiles.

const JOB_CLASSIFICATION_UPDATE JobClassification = 4007

JobClassification: Software update

const JOB_CLASSIFICATION__MAX JobClassification = 4999

JobClassification:

const JOB_CLASSIFICATION__MIN JobClassification = 4000

JobClassification:

type JobEntry

type JobEntry struct {
	Time     int64
	Severity Severity
	Message  string
}

JobEntry is a single entry within a job report.

type JobStatus

type JobStatus uint64
const JOB_STATUS_FAILED_ABANDONED JobStatus = 7007

JobStatus:

const JOB_STATUS_FAILED_CANCELLED JobStatus = 7005

JobStatus:

const JOB_STATUS_FAILED_ERROR JobStatus = 7002

JobStatus:

const JOB_STATUS_FAILED_QUOTA JobStatus = 7003

JobStatus:

const JOB_STATUS_FAILED_SCHEDULEMISSED JobStatus = 7004

JobStatus:

const JOB_STATUS_FAILED_SKIPALREADYRUNNING JobStatus = 7006

JobStatus:

const JOB_STATUS_FAILED_TIMEOUT JobStatus = 7000

JobStatus:

const JOB_STATUS_FAILED_WARNING JobStatus = 7001

JobStatus:

const JOB_STATUS_FAILED__MAX JobStatus = 7999

JobStatus:

const JOB_STATUS_FAILED__MIN JobStatus = 7000

JobStatus:

const JOB_STATUS_RUNNING_ACTIVE JobStatus = 6001

JobStatus:

const JOB_STATUS_RUNNING_INDETERMINATE JobStatus = 6000

JobStatus: Unused

const JOB_STATUS_RUNNING_REVIVED JobStatus = 6002

JobStatus: A backup job that was marked as stopped or abandoned, but has somehow continued to run

const JOB_STATUS_RUNNING__MAX JobStatus = 6999

JobStatus:

const JOB_STATUS_RUNNING__MIN JobStatus = 6000

JobStatus:

const JOB_STATUS_STOP_SUCCESS JobStatus = 5000

JobStatus:

const JOB_STATUS_STOP_SUCCESS__MAX JobStatus = 5999

JobStatus:

const JOB_STATUS_STOP_SUCCESS__MIN JobStatus = 5000

JobStatus:

type LDAPSecurityMethod

type LDAPSecurityMethod string
const LDAPSECURITYMETHOD_LDAPS LDAPSecurityMethod = "ldaps"

LDAPSecurityMethod:

const LDAPSECURITYMETHOD_PLAIN LDAPSecurityMethod = "plain"

LDAPSecurityMethod:

const LDAPSECURITYMETHOD_STARTTLS LDAPSecurityMethod = "starttls"

LDAPSecurityMethod:

type LanguageCode

type LanguageCode string
const DEFAULT_LANGUAGE LanguageCode = "en_US"

LanguageCode:

type LicenseOptions

type LicenseOptions struct {
	Email        string `json:",omitempty"`
	SerialNumber string
}

type LiveUserConnection

type LiveUserConnection struct {
	Username                string
	DeviceID                string
	ReportedVersion         string
	ReportedPlatform        string
	ReportedPlatformVersion OSInfo `json:",omitempty"`
	DeviceTimeZone          string `json:",omitempty"`
	IPAddress               string `json:",omitempty"`
	ConnectionTime          int64
	AllowsFilenames         bool
}

type LiveUserConnectionID

type LiveUserConnectionID string

type LiveUserConnectionMap

type LiveUserConnectionMap map[LiveUserConnectionID]LiveUserConnection

type LocalDestinationLocation

type LocalDestinationLocation struct {
	LocalcopyPath                 string
	LocalcopyWinSMBUsername       string
	LocalcopyWinSMBPassword       string
	LocalcopyWinSMBPasswordFormat uint64
}

type LocalStorageDirectory

type LocalStorageDirectory struct {
	Path string
}

type LogDay

type LogDay int

type MSSQLAuthMode

type MSSQLAuthMode string
const MSSQL_AUTH_NATIVE MSSQLAuthMode = "native"

MSSQLAuthMode:

const MSSQL_AUTH_WINDOWS MSSQLAuthMode = "windows"

MSSQLAuthMode:

type MSSQLConnection

type MSSQLConnection struct {
	Type         string
	Username     string
	Password     string
	Hostname     string
	InstanceName string
	Method       string
}

type MSSQLMethod

type MSSQLMethod string
const MSSQL_METHOD_OLEDB_32 MSSQLMethod = "OLEDB_32"

MSSQLMethod:

const MSSQL_METHOD_OLEDB_NATIVE MSSQLMethod = "OLEDB_NATIVE"

MSSQLMethod:

type MacOSCodeSignProperties

type MacOSCodeSignProperties struct {
	Level                 MacOSCodesignLevel
	SignLocally           bool
	SSHServer             SSHConnection
	CertificateName       string
	AppCertificateName    string
	AppleID               string
	AppleIDPass           string
	AppleIDPassFormat     uint64
	CertificateFile       string
	AppCertificateFile    string
	PfxFilePassword       string
	PfxFilePasswordFormat uint64
	NotaryAPIIssuerID     string
	NotaryAPIKeyID        string
	NotaryAPIKeyFile      string
}

type MacOSCodesignLevel

type MacOSCodesignLevel int
const MACOSCODESIGN_LEVEL_SIGN MacOSCodesignLevel = 0

MacOSCodesignLevel:

const MACOSCODESIGN_LEVEL_SIGN_NOTARISE MacOSCodesignLevel = 1

MacOSCodesignLevel:

const MACOSCODESIGN_LEVEL_SIGN_NOTARISE_STAPLE MacOSCodesignLevel = 2

MacOSCodesignLevel:

type MongoDBConnection

type MongoDBConnection struct {
	Server                  string
	Port                    int
	Username                string
	Password                string
	AuthenticationDB        string
	MongoShellPath          string
	MongodumpPath           string
	ReadPreference          string
	UseReplica              bool
	ReplicaName             string
	ReplicaMembers          []string
	UseSSL                  bool
	ClientSSLPEMPath        string
	ServerSSLPEMPath        string
	SSLClientKeyPassword    string
	AllowInvalidCertificate bool
	AllowInvalidHostname    bool
	UseSSH                  bool
	SSHConnection           SSHConnection `json:",omitempty"`
}

type MySQLConnection

type MySQLConnection struct {
	Host                   string
	Port                   string
	Username               string
	Password               string
	UseTLS                 bool
	TLSSkipVerify          bool
	TLSCustomServerCAPath  string
	TLSCustomClientCrtPath string
	TLSCustomClientKeyPath string
}

type NewBucketDetail

type NewBucketDetail struct {
	NewBucketID  string
	NewBucketKey string
}

type NewsEntries

type NewsEntries map[string]NewsEntry

type NewsEntry

type NewsEntry struct {
	OrganizationID string
	DateTime       int64
	TextContent    string
}

type OSInfo

type OSInfo struct {
	Version      string `json:"version,omitempty"`
	Distribution string `json:"distribution,omitempty"`
	Build        string `json:"build,omitempty"`
}

type Office365Connection

type Office365Connection struct {
	FeatureFlag          string
	Credential           Office365Credential
	CustomSetting        Office365CustomSetting
	MailboxUniqueMembers []string
	SiteUniqueMembers    []string
	CustomSettingV2      Office365CustomSettingV2
}

type Office365Credential

type Office365Credential struct {
	AppID    string
	TenantID string
	Secret   string
	AppCert  string
	Region   string
}

type Office365CustomSetting deprecated

type Office365CustomSetting struct {
	MailboxStrategy string
	SiteStrategy    string
	MailboxUserIDs  []string
	MailboxGroupIDs []string
	SiteIDs         []string
}

Deprecated: This struct has been deprecated since Comet version 21.9.xx

type Office365CustomSettingV2

type Office365CustomSettingV2 struct {
	Organization        bool
	BackupOptions       map[string]uint `json:",omitempty"`
	MemberBackupOptions map[string]uint `json:",omitempty"`
}

type Office365MixedVirtualAccount

type Office365MixedVirtualAccount struct {
	ID                   string   `json:"id"`
	Type                 uint     `json:",omitempty"`
	DisplayName          string   `json:",omitempty"`
	Mail                 string   `json:",omitempty"`
	JobTitle             string   `json:",omitempty"`
	SiteID               string   `json:",omitempty"`
	WebID                string   `json:",omitempty"`
	WebURL               string   `json:",omitempty"`
	UserPrincipalName    string   `json:",omitempty"`
	EnabledServiceOption uint     `json:",omitempty"`
	Members              []string `json:",omitempty"`
	ServiceOptions       uint     `json:",omitempty"`
	MemberServiceOptions uint     `json:",omitempty"`
	HasLicense           bool     `json:"hasLicense,omitempty"`
}

type Office365ObjectInfo

type Office365ObjectInfo struct {
	GUID    string
	Name    string
	Type    string
	Value   string
	Members []string
}

type Organization

type Organization struct {
	Name              string
	Hosts             []string
	SoftwareBuildRole SoftwareBuildRoleOptions
	Branding          BrandingOptions
	RemoteStorage     []RemoteStorageOption
	WebhookOptions    map[string]WebhookOption
	Email             EmailOptions
	IsSuspended       bool
}

type OrganizationResponse

type OrganizationResponse struct {
	Status       int
	Message      string
	ID           string
	Organization Organization
}

type Partition

type Partition struct {
	DeviceName                string
	Filesystem                string
	VolumeName                string
	VolumeGuid                string
	VolumeSerial              string
	MountPoints               []string
	ReadOffset                int64
	Size                      int64
	UsedSize                  int64
	Flags                     int64
	BytesPerFilesystemCluster int64
}

type PrivateBrandingProperties

type PrivateBrandingProperties struct {
	BuildMode                           ClientBrandingBuildMode
	PathIcoFile                         string
	PathIcnsFile                        string
	PathMenuBarIcnsFile                 string
	PathEulaRtf                         string
	PathTilePng                         string
	PathHeaderImage                     string
	PathAppIconImage                    string
	PackageIdentifier                   string
	WindowsCodeSignPKCS12FilePath       string
	WindowsCodeSignPKCS12PasswordFormat uint64
	WindowsCodeSignPKCS12Password       string
	WindowsCodeSignPKCS11Engine         string
	WindowsCodeSignPKCS11Module         string
	WindowsCodeSignPKCS11Certfile       string
	WindowsCodeSignPKCS11KeyID          string
	WindowsCodeSignPKCS11PasswordFormat uint64
	WindowsCodeSignPKCS11Password       string
	MacOSCodeSign                       MacOSCodeSignProperties
}

type ProtectedItemEngineTypePolicy

type ProtectedItemEngineTypePolicy struct {
	ShouldRestrictEngineTypeList    bool
	AllowedEngineTypeWhenRestricted []string
}

type PublicBrandingProperties

type PublicBrandingProperties struct {
	ProductName           string
	CompanyName           string
	HelpURL               string
	HelpIsPopup           bool
	DefaultLoginServerURL string
	TileBackgroundColor   string
	AccountRegisterURL    string
}

type RatelimitOptions

type RatelimitOptions struct {
	Rules []RatelimitRule `json:",omitempty"`
}

type RatelimitRule

type RatelimitRule struct {
	MatchRegex     string
	BytesPerSecond uint64
}

type RegisterOfficeApplicationBeginResponse

type RegisterOfficeApplicationBeginResponse struct {
	Continuation    string
	VerificationURL string
	UserCode        string
}

type RegisterOfficeApplicationCheckResponse

type RegisterOfficeApplicationCheckResponse struct {
	Continuation string
	Completed    bool
	Error        string
	Result       Office365Credential `json:",omitempty"`
}

type RemoteServerAddress

type RemoteServerAddress struct {
	Type          RemoteServerType
	Description   string
	RemoteAddress string                                   `json:",omitempty"`
	Username      string                                   `json:",omitempty"`
	Password      string                                   `json:",omitempty"`
	LDAP          ExternalLDAPAuthenticationSourceSettings `json:",omitempty"`
	B2            B2VirtualStorageRoleSettings             `json:",omitempty"`
	Wasabi        WasabiVirtualStorageRoleSettings         `json:",omitempty"`
	Custom        CustomRemoteBucketSettings               `json:",omitempty"`
	S3            S3GenericVirtualStorageRole              `json:",omitempty"`
	// Amazon AWS - Virtual Storage Role
	AWS AmazonAWSVirtualStorageRoleSettings `json:",omitempty"`
}

type RemoteServerType

type RemoteServerType string
const REMOTESERVER_AWS RemoteServerType = "aws"

RemoteServerType:

const REMOTESERVER_B2 RemoteServerType = "b2"

RemoteServerType:

const REMOTESERVER_COMET RemoteServerType = "comet"

RemoteServerType:

const REMOTESERVER_CUSTOM RemoteServerType = "custom"

RemoteServerType:

const REMOTESERVER_IDRIVEE2 RemoteServerType = "idrivee2"

RemoteServerType:

const REMOTESERVER_LDAP RemoteServerType = "ldap"

RemoteServerType:

const REMOTESERVER_S3_GENERIC RemoteServerType = "s3"

RemoteServerType:

const REMOTESERVER_WASABI RemoteServerType = "wasabi"

RemoteServerType:

type RemoteStorageOption

type RemoteStorageOption struct {
	Type          RemoteServerType
	Description   string
	RemoteAddress string                                   `json:",omitempty"`
	Username      string                                   `json:",omitempty"`
	Password      string                                   `json:",omitempty"`
	LDAP          ExternalLDAPAuthenticationSourceSettings `json:",omitempty"`
	B2            B2VirtualStorageRoleSettings             `json:",omitempty"`
	Wasabi        WasabiVirtualStorageRoleSettings         `json:",omitempty"`
	Custom        CustomRemoteBucketSettings               `json:",omitempty"`
	S3            S3GenericVirtualStorageRole              `json:",omitempty"`
	// Amazon AWS - Virtual Storage Role
	AWS                 AmazonAWSVirtualStorageRoleSettings `json:",omitempty"`
	StorageLimitEnabled bool
	StorageLimitBytes   int64
	RebrandStorage      bool
}

type ReplicaDeletionStrategy

type ReplicaDeletionStrategy string

type ReplicaServer

type ReplicaServer struct {
	Type          RemoteServerType
	Description   string
	RemoteAddress string                                   `json:",omitempty"`
	Username      string                                   `json:",omitempty"`
	Password      string                                   `json:",omitempty"`
	LDAP          ExternalLDAPAuthenticationSourceSettings `json:",omitempty"`
	B2            B2VirtualStorageRoleSettings             `json:",omitempty"`
	Wasabi        WasabiVirtualStorageRoleSettings         `json:",omitempty"`
	Custom        CustomRemoteBucketSettings               `json:",omitempty"`
	S3            S3GenericVirtualStorageRole              `json:",omitempty"`
	// Amazon AWS - Virtual Storage Role
	AWS                     AmazonAWSVirtualStorageRoleSettings `json:",omitempty"`
	ReplicaDeletionStrategy ReplicaDeletionStrategy             `json:",omitempty"`
}

type ReplicatorDisplayClass

type ReplicatorDisplayClass int
const REPLICATOR_DISPLAYCLASS_STORAGE ReplicatorDisplayClass = 100

ReplicatorDisplayClass:

const REPLICATOR_DISPLAYCLASS_USER ReplicatorDisplayClass = 101

ReplicatorDisplayClass:

type ReplicatorState

type ReplicatorState int
const REPLICATOR_STATE_FILE_LIST_SYNC_FINISHED ReplicatorState = 4

ReplicatorState:

const REPLICATOR_STATE_FILE_LIST_SYNC_RUNNING ReplicatorState = 2

ReplicatorState:

const REPLICATOR_STATE_FILE_LIST_WORKER_STARTED ReplicatorState = 1

ReplicatorState:

const REPLICATOR_STATE_NONE ReplicatorState = 0

ReplicatorState:

const REPLICATOR_STATE_WORKERS_STARTED ReplicatorState = 8

ReplicatorState:

type ReplicatorStateAPIResponse

type ReplicatorStateAPIResponse struct {
	Description          string
	RemoteServerID       string
	DisplayClass         ReplicatorDisplayClass
	ActiveWorkers        int32
	TotalWorkers         int
	State                ReplicatorState
	ItemsQueued          int
	BytesQueued          int64
	LastWorkerSubmitTime int64
	CurrentTime          int64
	ItemsReplicated      int64
	BytesReplicated      int64
}

type RequestStorageVaultResponseMessage

type RequestStorageVaultResponseMessage struct {
	Status        int
	Message       string
	DestinationID string
}

type RestoreArchiveFormat

type RestoreArchiveFormat int
const RESTOREARCHIVEFORMAT_SQFS RestoreArchiveFormat = 3

RestoreArchiveFormat: SquashFS container

const RESTOREARCHIVEFORMAT_TAR RestoreArchiveFormat = 0

RestoreArchiveFormat:

const RESTOREARCHIVEFORMAT_TARGZ RestoreArchiveFormat = 1

RestoreArchiveFormat:

const RESTOREARCHIVEFORMAT_TARZSTD RestoreArchiveFormat = 4

RestoreArchiveFormat:

const RESTOREARCHIVEFORMAT_ZIP RestoreArchiveFormat = 2

RestoreArchiveFormat:

type RestoreJobAdvancedOptions

type RestoreJobAdvancedOptions struct {
	Type                   RestoreType
	OverwriteExistingFiles bool
	OverwriteIfNewer       bool
	DestIsOriginalLocation bool
	DestPath               string
	ExactDestPaths         []string
	ArchiveFormat          RestoreArchiveFormat
	Office365Credential    RestoreOffice365Credential `json:",omitempty"`
}

type RestoreOffice365Credential

type RestoreOffice365Credential Office365Credential

type RestoreType

type RestoreType int
const RESTORETYPE_FILE RestoreType = 0

RestoreType:

const RESTORETYPE_FILE_ARCHIVE RestoreType = 5

RestoreType:

const RESTORETYPE_INVALID RestoreType = -1

RestoreType:

const RESTORETYPE_NULL RestoreType = 1

RestoreType:

const RESTORETYPE_OFFICE365_CLOUD RestoreType = 6

RestoreType:

const RESTORETYPE_PROCESS_ARCHIVE RestoreType = 3

RestoreType:

const RESTORETYPE_PROCESS_PERFILE RestoreType = 2

RestoreType:

const RESTORETYPE_PROCESS_TARBALL RestoreType = 3

RestoreType: RESTORETYPE_PROCESS_ARCHIVE

const RESTORETYPE_VMDK_FILE RestoreType = 7

RestoreType:

const RESTORETYPE_VMDK_FILE_ARCHIVE RestoreType = 9

RestoreType:

const RESTORETYPE_VMDK_FILE_NULL RestoreType = 8

RestoreType:

const RESTORETYPE_WINDISK RestoreType = 4

RestoreType:

type RetentionMode

type RetentionMode int64
const RETENTIONMODE_DELETE_EXCEPT RetentionMode = 802

RetentionMode: Delete everything except for jobs matching the ranges in RetentionPolicy.Ranges.

const RETENTIONMODE_KEEP_EVERYTHING RetentionMode = 801

RetentionMode: If this mode is set in a RetentionPolicy, then RetentionPolicy.Ranges should be ignored.

type RetentionPolicy

type RetentionPolicy struct {
	Mode   RetentionMode
	Ranges []RetentionRange
}

type RetentionRange

type RetentionRange struct {
	Type        RetentionRangeType
	Timestamp   int64
	Jobs        int64
	Days        int64
	Weeks       int64
	Months      int64
	WeekOffset  int64
	MonthOffset int64
}

type RetentionRangeType

type RetentionRangeType int64
const RETENTIONRANGE_FIRST_JOB_FOR_EACH_LAST_X_DAYS RetentionRangeType = 903

RetentionRangeType: Uses Days

const RETENTIONRANGE_FIRST_JOB_FOR_LAST_X_MONTHS RetentionRangeType = 905

RetentionRangeType: Uses Months, MonthOffset

const RETENTIONRANGE_FIRST_JOB_FOR_LAST_X_WEEKS RetentionRangeType = 906

RetentionRangeType: Uses Weeks, WeekOffset

const RETENTIONRANGE_JOBS_SINCE RetentionRangeType = 902

RetentionRangeType: Uses Days, Weeks, Months

const RETENTIONRANGE_LAST_X_BACKUPS_ONE_FOR_EACH_DAY RetentionRangeType = 907

RetentionRangeType: Uses Jobs

const RETENTIONRANGE_LAST_X_BACKUPS_ONE_FOR_EACH_MONTH RetentionRangeType = 909

RetentionRangeType: Uses Jobs

const RETENTIONRANGE_LAST_X_BACKUPS_ONE_FOR_EACH_WEEK RetentionRangeType = 908

RetentionRangeType: Uses Jobs

const RETENTIONRANGE_MOST_RECENT_X_JOBS RetentionRangeType = 900

RetentionRangeType: Uses Jobs

const RETENTIONRANGE_NEWER_THAN_X RetentionRangeType = 901

RetentionRangeType: Uses Timestamp

const RETENTIONRANGE__HIGHEST RetentionRangeType = 909

RetentionRangeType:

const RETENTIONRANGE__LOWEST RetentionRangeType = 900

RetentionRangeType:

const RETENTIONRANGE__RESERVED904 RetentionRangeType = 904

RetentionRangeType: Removed

type S3DestinationLocation

type S3DestinationLocation struct {
	S3Server        string
	S3UsesTLS       bool
	S3AccessKey     string
	S3SecretKey     string
	S3BucketName    string
	S3Subdir        string
	S3CustomRegion  string
	S3UsesV2Signing bool
}

type S3GenericVirtualStorageRole

type S3GenericVirtualStorageRole struct {
	S3Endpoint   string
	IAMEndpoint  string
	MasterBucket string
	AccessKey    string
	SecretKey    string
}

type SFTPDestinationLocation

type SFTPDestinationLocation struct {
	SFTPServer                       string
	SFTPUsername                     string
	SFTPRemotePath                   string
	SFTPAuthMode                     SftpAuthMode
	SFTPPassword                     string
	SFTPPrivateKey                   string
	SFTPCustomAuth_UseKnownHostsFile bool
	SFTPCustomAuth_KnownHostsFile    string
}

type SSHAuthMode

type SSHAuthMode uint64
const SSHCONNECTION_AUTHMODE_PASSWORD SSHAuthMode = 1

SSHAuthMode:

const SSHCONNECTION_AUTHMODE_PRIVATEKEY SSHAuthMode = 2

SSHAuthMode: n.b. change values

const SSHCONNECTION_AUTHMODE__INVALID SSHAuthMode = 0

SSHAuthMode:

type SSHConnection

type SSHConnection struct {
	SSHServer                       string
	SSHUsername                     string
	SSHAuthMode                     SSHAuthMode
	SSHPassword                     string
	SSHPrivateKey                   string
	SSHCustomAuth_UseKnownHostsFile bool
	SSHCustomAuth_KnownHostsFile    string
}

type ScheduleConfig

type ScheduleConfig struct {
	FrequencyType   uint64
	SecondsPast     uint64
	Offset          int64 `json:",omitempty"`
	RestrictRuntime bool
	FromTime        HourSchedConfig
	ToTime          HourSchedConfig
	RestrictDays    bool
	DaysSelect      DaysOfWeekConfig
	RandomDelaySecs uint64 `json:",omitempty"`
}

type SearchClause

type SearchClause struct {
	ClauseType     SearchClauseType
	RuleField      string
	RuleOperator   SearchOperatorType
	RuleValue      string
	ClauseChildren []SearchClause `json:",omitempty"`
}

type SearchClauseType

type SearchClauseType string
const SEARCHCLAUSE_AND SearchClauseType = "and"

SearchClauseType:

const SEARCHCLAUSE_NOT_AND SearchClauseType = "not_and"

SearchClauseType:

const SEARCHCLAUSE_NOT_OR SearchClauseType = "not_or"

SearchClauseType:

const SEARCHCLAUSE_OR SearchClauseType = "or"

SearchClauseType:

const SEARCHCLAUSE_RULE SearchClauseType = ""

SearchClauseType:

type SearchOperatorType

type SearchOperatorType string

type SelfBackupOptions

type SelfBackupOptions struct {
	Targets []SelfBackupTarget
}

type SelfBackupStatistics

type SelfBackupStatistics struct {
	CurrentRunStart int64
	LastRunStart    int64
	LastRunEnd      int64
	LastRunSuccess  bool
	LastRunSize     int64
}

type SelfBackupTarget

type SelfBackupTarget struct {
	Location            DestinationLocation
	Schedule            []ScheduleConfig
	ScheduleTimezone    string
	RetentionPolicy     RetentionPolicy
	EncryptionKey       string
	EncryptionKeyFormat uint64
	Compression         CompressMode
	ExcludeJobsDB       bool
}

type ServerConfigOptions

type ServerConfigOptions struct {
	ExperimentalOptions      []string `json:",omitempty"`
	WebhookOptions           map[string]WebhookOption
	License                  LicenseOptions
	Branding                 BrandingOptions
	AdminUsers               []AllowedAdminUser
	Organizations            map[string]Organization
	ExternalAdminUserSources map[string]ExternalAuthenticationSource
	ListenAddresses          []HTTPConnectorOptions
	TrustXForwardedFor       bool
	IPRateLimit              RatelimitOptions
	Email                    EmailOptions
	AuthenticationRole       AuthenticationRoleOptions
	StorageRole              StorageRoleOptions
	SoftwareBuildRole        SoftwareBuildRoleOptions
	ConstellationRole        ConstellationRoleOptions
	ConstellationRole_Legacy ConstellationRoleOptions `json:"OverseerRole,omitempty"`
	SelfBackup               SelfBackupOptions
	SessionSettings          SessionOptions
}

type ServerConfigOptionsBrandingFragment

type ServerConfigOptionsBrandingFragment struct {
	Branding BrandingOptions
}

type ServerConfigOptionsSoftwareBuildRoleFragment

type ServerConfigOptionsSoftwareBuildRoleFragment struct {
	SoftwareBuildRole SoftwareBuildRoleOptions
}

type ServerMetaBrandingProperties

type ServerMetaBrandingProperties struct {
	BrandName                     string
	ProductName                   string
	HasImage                      bool
	ImageEtag                     string
	TopColor                      string
	HideNewsArea                  bool
	AllowUnauthenticatedDownloads bool
	AllowAuthenticatedDownloads   bool
	PruneLogsAfterDays            int64
	ExpiredInSeconds              int64
}

type ServerMetaVersionInfo

type ServerMetaVersionInfo struct {
	Version                                        string
	VersionCodename                                string
	StorageRole                                    bool
	AuthenticationRole                             bool
	SoftwareBuildRole                              bool
	ConstellationRole_Legacy                       bool `json:"OverseerRole"`
	ConstellationRole                              bool
	ExperimentalOptions                            []string `json:",omitempty"`
	ServerStartTime                                int64
	ServerStartHash                                string
	CurrentTime                                    int64
	ServerLicenseHash                              string
	LicenseValidUntil                              int64
	EmailsSentSuccessfully                         int64
	EmailsSentErrors                               int64
	EmailsWaitingInQueue                           int64
	ScheduledEmailThreadCurrentState               int64
	ScheduledEmailThreadLastCalculateDurationNanos int64
	ScheduledEmailThreadWaitingUntil               int64
	ScheduledEmailThreadLastWakeTime               int64
	ScheduledEmailThreadLastWakeSentEmails         bool
	SelfBackup                                     []SelfBackupStatistics
}

type SessionKeyRegeneratedResponse

type SessionKeyRegeneratedResponse struct {
	Status      int
	Message     string
	SessionKey  string
	SessionType string
}

type SessionOptions

type SessionOptions struct {
	ExpiredInSeconds uint64
}

type Severity

type Severity string
const SEVERITY_ERROR Severity = "E"

Severity:

const SEVERITY_INFO Severity = "I"

Severity:

const SEVERITY_WARNING Severity = "W"

Severity:

type SftpAuthMode

type SftpAuthMode uint64
const DESTINATION_SFTP_AUTHMODE_NATIVE SftpAuthMode = 0

SftpAuthMode:

const DESTINATION_SFTP_AUTHMODE_PASSWORD SftpAuthMode = 1

SftpAuthMode:

const DESTINATION_SFTP_AUTHMODE_PRIVATEKEY SftpAuthMode = 2

SftpAuthMode:

type SizeMeasurement

type SizeMeasurement struct {
	Size             int64
	MeasureStarted   int64
	MeasureCompleted int64
}

type SoftwareBuildRoleOptions

type SoftwareBuildRoleOptions struct {
	RoleEnabled                   bool
	AllowUnauthenticatedDownloads bool
}

type SoftwareUpdateNewsResponse

type SoftwareUpdateNewsResponse struct {
	LatestStable     string   `json:"latest_stable"`
	LatestPrerelease string   `json:"latest_prerelease"`
	DownloadsURL     string   `json:"downloads_url"`
	WhatsNew         []string `json:"updates_info"`
}

type SourceBasicInfo

type SourceBasicInfo struct {
	Description                  string
	Size                         int64
	OverrideDestinationRetention map[string]RetentionPolicy `json:",omitempty"`
}

type SourceConfig

type SourceConfig struct {
	Engine                       string
	Description                  string
	OwnerDevice                  string
	CreateTime                   int64
	ModifyTime                   int64
	PreExec                      []string
	ThawExec                     []string
	PostExec                     []string
	EngineProps                  map[string]string
	OverrideDestinationRetention map[string]RetentionPolicy `json:",omitempty"`
	Statistics                   SourceStatistics           `json:",omitempty"`
}

type SourceIncludePattern

type SourceIncludePattern struct {
	TopDirectory string
	Value        string
}

type SourceStatistics

type SourceStatistics struct {
	LastBackupJob           BackupJobDetail
	LastSuccessfulBackupJob BackupJobDetail
}

type SpannedDestinationLocation

type SpannedDestinationLocation struct {
	SpanTargets        []DestinationLocation
	SpanUseStaticSlots bool
}

type SpannedStorageExtraInfo

type SpannedStorageExtraInfo struct {
	Targets []StorageFreeSpaceInfo
}

type StatResult

type StatResult struct {
	Buckets        int64
	Users          int64
	Devices        int64
	Boosters       int64
	NetworkDevices int64
}

type StorageFreeSpaceInfo

type StorageFreeSpaceInfo struct {
	Unlimited      bool
	UsedPercent    float32
	AvailableBytes uint64
	Spanned        SpannedStorageExtraInfo `json:",omitempty"`
	B2             B2StorageExtraInfo      `json:",omitempty"`
}

type StorageRoleOptions

type StorageRoleOptions struct {
	RoleEnabled         bool
	Storage             DestinationLocation
	LocalStorage_Legacy []LocalStorageDirectory `json:"LocalStorage,omitempty"`
	ReplicateTo         []ReplicaServer
}

type StorageVaultProviderPolicy

type StorageVaultProviderPolicy struct {
	ShouldRestrictProviderList     bool
	AllowedProvidersWhenRestricted []uint64
}

type StoredObject

type StoredObject struct {
	Name       string `json:"name"`
	ModifyTime int64  `json:"mtime"`
	// One of the STOREDOBJECTTYPE_... constant values
	Type                string `json:"type"`
	Subtree             string `json:"subtree"`
	Size                uint64 `json:"size"`
	DisplayName         string `json:"dname,omitempty"`
	ItemClass           string `json:"itemClass,omitempty"`
	From                string `json:"from,omitempty"`
	To                  string `json:"to,omitempty"`
	ReceivedDateTime    int64  `json:"rtime,omitempty"`
	HasAttachments      bool   `json:"has_attachments,omitempty"`
	StartTime           int64  `json:"stime,omitempty"`
	EndTime             int64  `json:"etime,omitempty"`
	RecursiveCountKnown bool   `json:"r,omitempty"`
	RecursiveFiles      uint64 `json:"f,omitempty"`
	RecursiveBytes      uint64 `json:"b,omitempty"`
	RecursiveFolders    uint64 `json:"d,omitempty"`
}

type StoredObjectType

type StoredObjectType string
const STOREDOBJECTTYPE_DIRECTORY StoredObjectType = "dir"

StoredObjectType:

const STOREDOBJECTTYPE_EMAILFOLDER StoredObjectType = "mailfolder"

StoredObjectType: "dir"

const STOREDOBJECTTYPE_EMAILMESSAGE StoredObjectType = "emailmessage"

StoredObjectType: "file"

const STOREDOBJECTTYPE_FILE StoredObjectType = "file"

StoredObjectType:

const STOREDOBJECTTYPE_MSSITE StoredObjectType = "mssite"

StoredObjectType:

const STOREDOBJECTTYPE_MSSITEITEMENTITY StoredObjectType = "mssiteitementity"

StoredObjectType:

const STOREDOBJECTTYPE_MSSITELISTDRIVEENTITY StoredObjectType = "mssitelistdriveentity"

StoredObjectType:

const STOREDOBJECTTYPE_MSSITELISTENTITY StoredObjectType = "mssitelistentity"

StoredObjectType:

const STOREDOBJECTTYPE_MSSITE_TEAM StoredObjectType = "mssiteteam"

StoredObjectType:

const STOREDOBJECTTYPE_OFFICECALENDAR StoredObjectType = "calendar"

StoredObjectType: "dir"

const STOREDOBJECTTYPE_OFFICECALENDAREVENT StoredObjectType = "calendarevent"

StoredObjectType: "file"

const STOREDOBJECTTYPE_OFFICECONTACT StoredObjectType = "contact"

StoredObjectType: "file"

const STOREDOBJECTTYPE_OFFICECONTACTFOLDER StoredObjectType = "contactfolder"

StoredObjectType: "dir"

const STOREDOBJECTTYPE_SYMLINK StoredObjectType = "symlink"

StoredObjectType:

const STOREDOBJECTTYPE_UNIXBLOCKDEVICE StoredObjectType = "dev"

StoredObjectType:

const STOREDOBJECTTYPE_UNIXCHARDEVICE StoredObjectType = "chardev"

StoredObjectType:

const STOREDOBJECTTYPE_UNIXFIFO StoredObjectType = "fifo"

StoredObjectType:

const STOREDOBJECTTYPE_UNIXSOCKET StoredObjectType = "socket"

StoredObjectType:

const STOREDOBJECTTYPE_VMDK_DIRECTORY StoredObjectType = "vmdkdir"

StoredObjectType:

const STOREDOBJECTTYPE_VMDK_FILE StoredObjectType = "vmdkfile"

StoredObjectType:

const STOREDOBJECTTYPE_VMDK_SYMLINK StoredObjectType = "vmdksymlink"

StoredObjectType:

const STOREDOBJECTTYPE_VMDK_WINEFS StoredObjectType = "vmdkwinefs"

StoredObjectType:

const STOREDOBJECTTYPE_WINEFS StoredObjectType = "winefs"

StoredObjectType:

type StreamableEvent

type StreamableEvent struct {
	OwnerOrganizationID string
	Type                StreamableEventType
	Data                interface{} `json:",omitempty"`
}

type StreamableEventType

type StreamableEventType int
const SEVT_ACCOUNT_NEW StreamableEventType = 4100

StreamableEventType: Data is the profile object

const SEVT_ACCOUNT_REMOVED StreamableEventType = 4101

StreamableEventType: Data is the username

const SEVT_ACCOUNT_UPDATED StreamableEventType = 4102

StreamableEventType: Data is the profile object

const SEVT_BUCKET_NEW StreamableEventType = 4300

StreamableEventType: Data is the string bucket ref

const SEVT_JOB_COMPLETED StreamableEventType = 4201

StreamableEventType:

const SEVT_JOB_NEW StreamableEventType = 4200

StreamableEventType:

const SEVT_META_HELLO StreamableEventType = 4000

StreamableEventType: Event is emitted when the webhook is registered, or when the server starts up. The Data associated is ServerMetaVersionInfo

const SEVT__MAX StreamableEventType = 4999

StreamableEventType:

const SEVT__MIN StreamableEventType = 4000

StreamableEventType:

type SwiftDestinationLocation

type SwiftDestinationLocation struct {
	Username               string `json:",omitempty"`
	APIKey                 string `json:",omitempty"`
	Region                 string `json:",omitempty"`
	AuthURL                string `json:",omitempty"`
	Domain                 string `json:",omitempty"`
	Tenant                 string `json:",omitempty"`
	TenantDomain           string `json:",omitempty"`
	TenantID               string `json:",omitempty"`
	TrustID                string `json:",omitempty"`
	AuthToken              string `json:",omitempty"`
	Prefix                 string `json:",omitempty"`
	Container              string `json:",omitempty"`
	DefaultContainerPolicy string `json:",omitempty"`
}

type TestResponse

type TestResponse struct {
	Status  int
	Message string
	Exists  bool
}

type TotpRegeneratedResponse

type TotpRegeneratedResponse struct {
	Status      int
	Message     string
	Image       string
	URL         string
	ProfileHash string
}

type U2FRegisterRequest deprecated

type U2FRegisterRequest struct {
	Challenge string
	Version   string
}

Deprecated: This struct has been deprecated since Comet version 21.12.0

type U2FRegisteredKey deprecated

type U2FRegisteredKey struct {
	AppID     string
	KeyHandle string
	Version   string
}

Deprecated: This struct has been deprecated since Comet version 21.12.0

type U2FRegistrationChallengeResponse deprecated

type U2FRegistrationChallengeResponse struct {
	Status           int
	Message          string
	ChallengeID      string
	AppID            string
	RegisteredKeys   []U2FRegisteredKey
	RegisterRequests []U2FRegisterRequest
}

Deprecated: This struct has been deprecated since Comet version 21.12.0

type U2FSignRequest deprecated

type U2FSignRequest struct {
	ChallengeID    string
	ChallengeData  string
	AppID          string
	RegisteredKeys []U2FRegisteredKey
}

Deprecated: This struct has been deprecated since Comet version 21.12.0

type U2FSignResponse deprecated

type U2FSignResponse struct {
	ChallengeID string
	KeyHandle   string
	Signature   string
	ClientData  string
}

Deprecated: This struct has been deprecated since Comet version 21.12.0

type UninstallConfig

type UninstallConfig struct {
	UninstallFlag    bool
	RemoveConfigFile bool
}

type UpdateCampaignDeviceStatus

type UpdateCampaignDeviceStatus struct {
	Status UpdateStatus
}

type UpdateCampaignOptions

type UpdateCampaignOptions struct {
	Active              bool
	UpgradeOlder        bool
	ReinstallCurrentVer bool
	DowngradeNewer      bool
	ForceUpgradeRunning bool
	ApplyDeviceFilter   bool
	DeviceFilter        SearchClause
}

This data structure describes which devices should receive a remote software upgrade. Both the target version criteria (UpgradeOlder/ReinstallCurrentVer/DowngradeNewer) and the target device criteria (ApplyDeviceFilter/DeviceFilter) must be met in order for the remote upgrade to be applied.

type UpdateCampaignProperties

type UpdateCampaignProperties struct {
	Active              bool
	UpgradeOlder        bool
	ReinstallCurrentVer bool
	DowngradeNewer      bool
	ForceUpgradeRunning bool
	ApplyDeviceFilter   bool
	DeviceFilter        SearchClause
	StartTime           int64
	TargetVersion       string
}

type UpdateCampaignStatus

type UpdateCampaignStatus struct {
	Active              bool
	UpgradeOlder        bool
	ReinstallCurrentVer bool
	DowngradeNewer      bool
	ForceUpgradeRunning bool
	ApplyDeviceFilter   bool
	DeviceFilter        SearchClause
	StartTime           int64
	TargetVersion       string
	Devices             []UpdateCampaignStatusDeviceEntry
}

type UpdateCampaignStatusDeviceEntry

type UpdateCampaignStatusDeviceEntry struct {
	Username string
	DeviceID string
	Status   UpdateStatus
}

type UpdateStatus

type UpdateStatus int
const UPDATESTATUS_INELIGIBLE UpdateStatus = 1

UpdateStatus:

const UPDATESTATUS_NOT_SEEN UpdateStatus = 0

UpdateStatus:

const UPDATESTATUS_PENDING UpdateStatus = 2

UpdateStatus:

const UPDATESTATUS_REQUEST_MADE UpdateStatus = 3

UpdateStatus:

const UPDATESTATUS_UPDATE_CONFIRMED UpdateStatus = 5

UpdateStatus:

const UPDATESTATUS_UPDATE_FAILED UpdateStatus = 4

UpdateStatus: Device reconnected with bad version

type UserCustomEmailSettings

type UserCustomEmailSettings struct {
	Reports []EmailReportConfig
}

type UserOnServer

type UserOnServer struct {
	ServerID int
	Username string
}

type UserPolicy

type UserPolicy struct {
	PreventRequestStorageVault       bool
	PreventAddCustomStorageVault     bool
	PreventEditStorageVault          bool
	HideCloudStorageBranding         bool
	PreventDeleteStorageVault        bool
	StorageVaultProviders            StorageVaultProviderPolicy
	PreventNewProtectedItem          bool
	PreventEditProtectedItem         bool
	PreventDeleteProtectedItem       bool
	ProtectedItemEngineTypes         ProtectedItemEngineTypePolicy
	FileAndFolderMandatoryExclusions []ExtraFileExclusion `json:",omitempty"`
	ModeScheduleSkipAlreadyRunning   DefaultSettingMode   `json:",omitempty"`
	ModeAdminResetPassword           DefaultSettingMode   `json:",omitempty"`
	ModeAdminViewFilenames           DefaultSettingMode   `json:",omitempty"`
	ModeRequireUserResetPassword     DefaultSettingMode   `json:",omitempty"`
	PreventDeleteSingleSnapshots     bool
	PreventChangeAccountPassword     bool
	PreventChangeEmailSettings       bool
	PreventChangeAccountName         bool
	PreventOpenAppUI                 bool
	RequirePasswordOpenAppUI         bool
	HideAppImport                    bool
	HideAppVersion                   bool
	PreventOpenWebUI                 bool
	PreventViewDeviceNames           bool
	DefaultEmailReports              DefaultEmailReportPolicy
	DefaultStorageVaultRetention     RetentionPolicy
	EnforceStorageVaultRetention     bool
	PreventProtectedItemRetention    bool
	DefaultSources                   map[string]SourceConfig
	DefaultSourcesBackupRules        map[string]BackupRuleConfig
	DefaultSourcesWithOSRestriction  map[string]DefaultSourceWithOSRestriction
	DefaultBackupRules               map[string]BackupRuleConfig
	RandomDelaySecs                  uint64 `json:",omitempty"`
}

type UserProfileConfig

type UserProfileConfig struct {
	Username      string
	AccountName   string
	LocalTimezone string
	LanguageCode  string
	// Tenant
	OrganizationID        string `json:",omitempty"`
	Emails                []string
	OverrideEmailSettings map[string]UserCustomEmailSettings
	SendEmailReports      bool
	// Storage Vaults
	Destinations map[string]DestinationConfig
	// Protected Items
	Sources                       map[string]SourceConfig
	BackupRules                   map[string]BackupRuleConfig
	Devices                       map[string]DeviceConfig
	IsSuspended                   bool
	AllProtectedItemsQuotaEnabled bool
	AllProtectedItemsQuotaBytes   int64
	MaximumDevices                int64
	// If the PolicyID field is set to a non-empty string, the Comet Server will enforce the contents
	// of the Policy field based on the matching server's policy. Otherwise if the PolicyID field is
	// set to an empty string, the administrator may configure any custom values in the Policy field.
	PolicyID string
	Policy   UserPolicy
	// To change the user's password, use the AdminResetUserPassword API instead of accessing these
	// fields directly. Otherwise, other encrypted fields in the user profile may become corrupted.
	PasswordFormat            int
	PasswordHash              string
	PasswordRecovery          string `json:",omitempty"`
	AllowPasswordLogin        bool
	AllowPasswordAndTOTPLogin bool
	TOTPKeyEncryptionFormat   int
	TOTPKey                   string
	RequirePasswordChange     bool
	CreateTime                int64
	CreationGUID              string
	ServerConfig              UserServerConfig `json:",omitempty"`
}

This is the main data structure for a user's profile.

type UserProfileFragment

type UserProfileFragment struct {
	Username string
}

type UserServerConfig

type UserServerConfig struct {
	RandomDelaySecs uint64 `json:",omitempty"`
}

type VMDKSnapshotViewOptions

type VMDKSnapshotViewOptions struct {
	Enabled       bool
	PartitionGUID string
	ListPath      string
}

type VSSComponent

type VSSComponent struct {
	Path       string
	Name       string
	CType      string
	Selectable bool
}

type VSSWriterInfo

type VSSWriterInfo struct {
	DisplayName string
	Components  []VSSComponent
}

type VaultSnapshot

type VaultSnapshot struct {
	Snapshot            string
	Source              string
	CreateTime          int64
	HasOriginalPathInfo bool
}

type WasabiVirtualStorageRoleSettings

type WasabiVirtualStorageRoleSettings struct {
	MasterBucket string
	AccessKey    string
	SecretKey    string
}

type WebAuthnAuthenticationExtensions

type WebAuthnAuthenticationExtensions map[string]interface{}

type WebAuthnAuthenticatorSelection

type WebAuthnAuthenticatorSelection struct {
	AuthenticatorAttachment string `json:"authenticatorAttachment,omitempty"`
	RequireResidentKey      bool   `json:"requireResidentKey,omitempty"`
	UserVerification        string `json:"userVerification,omitempty"`
}

type WebAuthnCredential

type WebAuthnCredential struct {
	PublicKey       []byte
	AttestationType string
	AAGUID          []byte
	SignCount       uint32
	CloneWarning    bool
}

type WebAuthnCredentialAssertion

type WebAuthnCredentialAssertion struct {
	Response WebAuthnPublicKeyCredentialRequestOptions `json:"publicKey"`
}

type WebAuthnCredentialDescriptor

type WebAuthnCredentialDescriptor struct {
	Type         string   `json:"type"`
	CredentialID []byte   `json:"id"`
	Transport    []string `json:"transports,omitempty"`
}

type WebAuthnCredentialEntity

type WebAuthnCredentialEntity struct {
	Name string `json:"name"`
	Icon string `json:"icon,omitempty"`
}

type WebAuthnCredentialParameter

type WebAuthnCredentialParameter struct {
	Type      string `json:"type"`
	Algorithm int    `json:"alg"`
}

type WebAuthnDeviceType

type WebAuthnDeviceType int
const WEBAUTHN_DEVICE_TYPE__ANDROID WebAuthnDeviceType = 2

WebAuthnDeviceType:

const WEBAUTHN_DEVICE_TYPE__APPLE WebAuthnDeviceType = 3

WebAuthnDeviceType:

const WEBAUTHN_DEVICE_TYPE__HARDWARE_TOKEN WebAuthnDeviceType = 1

WebAuthnDeviceType:

const WEBAUTHN_DEVICE_TYPE__TPM_GENERIC WebAuthnDeviceType = 4

WebAuthnDeviceType:

const WEBAUTHN_DEVICE_TYPE__TPM_LINUX WebAuthnDeviceType = 6

WebAuthnDeviceType:

const WEBAUTHN_DEVICE_TYPE__TPM_WINDOWS WebAuthnDeviceType = 5

WebAuthnDeviceType:

const WEBAUTHN_DEVICE_TYPE__UNKNOWN WebAuthnDeviceType = 0

WebAuthnDeviceType:

type WebAuthnPublicKeyCredentialCreationOptions

type WebAuthnPublicKeyCredentialCreationOptions struct {
	Challenge              []byte                           `json:"challenge"`
	RelyingParty           WebAuthnRelyingPartyEntity       `json:"rp"`
	User                   WebAuthnUserEntity               `json:"user"`
	Parameters             []WebAuthnCredentialParameter    `json:"pubKeyCredParams,omitempty"`
	AuthenticatorSelection WebAuthnAuthenticatorSelection   `json:"authenticatorSelection,omitempty"`
	Timeout                int                              `json:"timeout,omitempty"`
	CredentialExcludeList  []WebAuthnCredentialDescriptor   `json:"excludeCredentials,omitempty"`
	Extensions             WebAuthnAuthenticationExtensions `json:"extensions,omitempty"`
	Attestation            string                           `json:"attestation,omitempty"`
}

type WebAuthnPublicKeyCredentialRequestOptions

type WebAuthnPublicKeyCredentialRequestOptions struct {
	Challenge          []byte                           `json:"challenge"`
	Timeout            int                              `json:"timeout,omitempty"`
	RelyingPartyID     string                           `json:"rpId,omitempty"`
	AllowedCredentials []WebAuthnCredentialDescriptor   `json:"allowCredentials,omitempty"`
	UserVerification   string                           `json:"userVerification,omitempty"`
	Extensions         WebAuthnAuthenticationExtensions `json:"extensions,omitempty"`
}

type WebAuthnRegistrationChallengeResponse

type WebAuthnRegistrationChallengeResponse struct {
	Status                    int
	Message                   string
	ChallengeID               string
	CredentialCreationOptions WebAuthnPublicKeyCredentialCreationOptions
}

type WebAuthnRelyingPartyEntity

type WebAuthnRelyingPartyEntity struct {
	Name string `json:"name"`
	Icon string `json:"icon,omitempty"`
	ID   string `json:"id"`
}

type WebAuthnSignRequest

type WebAuthnSignRequest struct {
	ChallengeID string
	Assertion   WebAuthnCredentialAssertion
}

type WebAuthnSignResponse

type WebAuthnSignResponse struct {
	ChallengeID    string
	CredentialJSON string
}

type WebAuthnUserEntity

type WebAuthnUserEntity struct {
	Name        string `json:"name"`
	Icon        string `json:"icon,omitempty"`
	DisplayName string `json:"displayName,omitempty"`
	ID          []byte `json:"id"`
}

type WebInterfaceBrandingProperties

type WebInterfaceBrandingProperties struct {
	BrandName    string
	LogoImage    string
	TopColor     string
	Favicon      string
	HideNewsArea bool
}

type WebhookOption

type WebhookOption struct {
	URL                   string
	WhiteListedEventTypes []StreamableEventType
	CustomHeaders         map[string]string
}

type WinSMBAuth

type WinSMBAuth struct {
	SharePath      string
	Username       string
	Password       string
	PasswordFormat uint64
}

type WindowsCodeSignProperties

type WindowsCodeSignProperties struct {
	WindowsCodeSignPKCS12FilePath       string
	WindowsCodeSignPKCS12PasswordFormat uint64
	WindowsCodeSignPKCS12Password       string
	WindowsCodeSignPKCS11Engine         string
	WindowsCodeSignPKCS11Module         string
	WindowsCodeSignPKCS11Certfile       string
	WindowsCodeSignPKCS11KeyID          string
	WindowsCodeSignPKCS11PasswordFormat uint64
	WindowsCodeSignPKCS11Password       string
}

Directories

Path Synopsis
examples
admin command
user command

Jump to

Keyboard shortcuts

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