Documentation
¶
Overview ¶
Autogenerated, do not edit directly
Index ¶
- Constants
- type AddBucketResponseMessage
- type AdminAccountPropertiesResponse
- type AdminEmailOptions
- type AdminResourceResponse
- type AdminSecurityOptions
- type AdminU2FRegistrationdeprecated
- type AdminUserPermissions
- type AdminWebAuthnRegistration
- type AllowedAdminUser
- type AmazonAWSVirtualStorageRoleSettings
- type AuthenticationRoleOptions
- type AutoRetentionLevel
- type AvailableDownload
- type AzureDestinationLocation
- type B2DestinationLocation
- type B2StorageExtraInfo
- type B2TransactionTotals
- type B2VirtualStorageRoleSettings
- type BackupJobAdvancedOptions
- type BackupJobDetail
- type BackupJobProgress
- type BackupRuleConfig
- type BackupRuleEventTriggers
- type BrandingOptions
- type BrandingProperties
- type BrowseDiskDrivesResponse
- type BrowseEDBResponse
- type BrowseHVResponse
- type BrowseOffice365ListVirtualAccountsResponse
- type BrowseOffice365ObjectsResponse
- type BrowseSQLServerResponse
- type BrowseVSSResponse
- type BucketProperties
- type BucketPropertyList
- type BucketUsageInfo
- type BucketUsageMap
- type ClientBrandingBuildMode
- type CometAPIClient
- func (this *CometAPIClient) AdminAccountProperties() (*AdminAccountPropertiesResponse, error)
- func (this *CometAPIClient) AdminAccountRegenerateTotp() (*TotpRegeneratedResponse, error)
- func (this *CometAPIClient) AdminAccountSessionRevoke() (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminAccountSessionStart(SelfAddress *string) (*SessionKeyRegeneratedResponse, error)
- func (this *CometAPIClient) AdminAccountSessionStartAsUser(TargetUser string) (*SessionKeyRegeneratedResponse, error)
- func (this *CometAPIClient) AdminAccountSetProperties(Security AdminSecurityOptions) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminAccountU2fRequestRegistrationChallenge(SelfAddress string) (*U2FRegistrationChallengeResponse, error)
- func (this *CometAPIClient) AdminAccountU2fSubmitChallengeResponse(U2FChallengeID string, U2FClientData string, U2FRegistrationData string, ...) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminAccountValidateTotp(TOTPCode string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminAccountWebauthnRequestRegistrationChallenge(SelfAddress string) (*WebAuthnRegistrationChallengeResponse, error)
- func (this *CometAPIClient) AdminAccountWebauthnSubmitChallengeResponse(SelfAddress string, ChallengeID string, Credential string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminAddUser(TargetUser string, TargetPassword string, StoreRecoveryCode *int, ...) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminAddUserFromProfile(TargetUser string, ProfileData UserProfileConfig, TargetOrganization *string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminAdminUserDelete(TargetUser string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminAdminUserList() ([]AllowedAdminUser, error)
- func (this *CometAPIClient) AdminAdminUserNew(TargetUser string, TargetPassword string, TargetOrgID *string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminBrandingAvailablePlatforms() (map[int]AvailableDownload, error)
- func (this *CometAPIClient) AdminBrandingGenerateClientByPlatform(Platform int, SelfAddress *string) ([]byte, error)
- func (this *CometAPIClient) AdminBrandingGenerateClientLinuxgeneric(SelfAddress *string) ([]byte, error)
- func (this *CometAPIClient) AdminBrandingGenerateClientMacosArm64(SelfAddress *string) ([]byte, error)
- func (this *CometAPIClient) AdminBrandingGenerateClientMacosX8664(SelfAddress *string) ([]byte, error)
- func (this *CometAPIClient) AdminBrandingGenerateClientSpkDsm6(SelfAddress *string) ([]byte, error)
- func (this *CometAPIClient) AdminBrandingGenerateClientSpkDsm7(SelfAddress *string) ([]byte, error)
- func (this *CometAPIClient) AdminBrandingGenerateClientTest(Platform int, SelfAddress *string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminBrandingGenerateClientWindowsAnycpuExe(SelfAddress *string) ([]byte, error)
- func (this *CometAPIClient) AdminBrandingGenerateClientWindowsAnycpuZip(SelfAddress *string) ([]byte, error)
- func (this *CometAPIClient) AdminBrandingGenerateClientWindowsX8632Exe(SelfAddress *string) ([]byte, error)
- func (this *CometAPIClient) AdminBrandingGenerateClientWindowsX8632Zip(SelfAddress *string) ([]byte, error)
- func (this *CometAPIClient) AdminBrandingGenerateClientWindowsX8664Exe(SelfAddress *string) ([]byte, error)
- func (this *CometAPIClient) AdminBrandingGenerateClientWindowsX8664Zip(SelfAddress *string) ([]byte, error)
- func (this *CometAPIClient) AdminBulletinSubmit(Subject string, Content string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminConstellationLastReport() (*ConstellationCheckReport, error)
- func (this *CometAPIClient) AdminConstellationNewReport() (*ConstellationCheckReport, error)
- func (this *CometAPIClient) AdminConstellationPruneNow() (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminConstellationStatus() (*ConstellationStatusAPIResponse, error)
- func (this *CometAPIClient) AdminCountJobsForCustomSearch(Query SearchClause) (*CountJobsResponse, error)
- func (this *CometAPIClient) AdminCreateInstallToken(TargetUser string, TargetPassword string, Server *string) (*InstallTokenResponse, error)
- func (this *CometAPIClient) AdminDeleteUser(TargetUser string, UninstallConfig *UninstallConfig) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDisableUserTotp(TargetUser string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDispatcherApplyRetentionRules(TargetID string, Destination string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDispatcherDeepverifyStorageVault(TargetID string, Destination string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDispatcherDeleteSnapshot(TargetID string, DestinationID string, SnapshotID string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDispatcherDeleteSnapshots(TargetID string, DestinationID string, SnapshotIDs []string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDispatcherDropConnection(TargetID string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDispatcherEmailPreview(TargetID string, Snapshot string, Destination string, Path string) (*EmailReportGeneratedPreview, error)
- func (this *CometAPIClient) AdminDispatcherGetDefaultLoginUrl(OrganizationID string) (*OrganizationLoginURLResponse, error)
- func (this *CometAPIClient) AdminDispatcherImportApply(TargetID string, ImportSourceID string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDispatcherKillProcess(TargetID string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDispatcherListActive(UserNameFilter *string) (LiveUserConnectionMap, error)
- func (this *CometAPIClient) AdminDispatcherOffice365ListVirtualAccounts(TargetID string, Credentials Office365Credential) (*BrowseOffice365ListVirtualAccountsResponse, error)
- func (this *CometAPIClient) AdminDispatcherPingDestination(TargetID string, ExtraData DestinationLocation) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDispatcherRefetchProfile(TargetID string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDispatcherRegisterOfficeApplicationBegin(TargetID string, EmailAddress string) (*RegisterOfficeApplicationBeginResponse, error)
- func (this *CometAPIClient) AdminDispatcherRegisterOfficeApplicationCheck(TargetID string, Continuation string) (*RegisterOfficeApplicationCheckResponse, error)
- func (this *CometAPIClient) AdminDispatcherReindexStorageVault(TargetID string, Destination string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDispatcherRequestBrowseDiskDrives(TargetID string) (*BrowseDiskDrivesResponse, error)
- func (this *CometAPIClient) AdminDispatcherRequestBrowseExchangeEdb(TargetID string) (*BrowseEDBResponse, error)
- func (this *CometAPIClient) AdminDispatcherRequestBrowseHyperv(TargetID string) (*BrowseHVResponse, error)
- func (this *CometAPIClient) AdminDispatcherRequestBrowseMongodb(TargetID string, Credentials MongoDBConnection) (*BrowseSQLServerResponse, error)
- func (this *CometAPIClient) AdminDispatcherRequestBrowseMssql(TargetID string, Credentials MSSQLConnection) (*BrowseSQLServerResponse, error)
- func (this *CometAPIClient) AdminDispatcherRequestBrowseMysql(TargetID string, Credentials MySQLConnection) (*BrowseSQLServerResponse, error)
- func (this *CometAPIClient) AdminDispatcherRequestBrowseVssAaw(TargetID string) (*BrowseVSSResponse, error)
- func (this *CometAPIClient) AdminDispatcherRequestFilesystemObjects(TargetID string, Path *string) (*DispatcherStoredObjectsResponse, error)
- func (this *CometAPIClient) AdminDispatcherRequestImportSources(TargetID string) (*DispatcherAdminSourcesResponse, error)
- func (this *CometAPIClient) AdminDispatcherRequestOffice365Accounts(TargetID string, Credentials Office365Credential) (*BrowseOffice365ObjectsResponse, error)
- func (this *CometAPIClient) AdminDispatcherRequestOffice365Sites(TargetID string, Credentials Office365Credential) (*BrowseOffice365ObjectsResponse, error)
- func (this *CometAPIClient) AdminDispatcherRequestStoredObjects(TargetID string, Destination string, SnapshotID string, TreeID *string, ...) (*DispatcherStoredObjectsResponse, error)
- func (this *CometAPIClient) AdminDispatcherRequestVaultSnapshots(TargetID string, Destination string) (*DispatcherVaultSnapshotsResponse, error)
- func (this *CometAPIClient) AdminDispatcherRequestWindiskSnapshot(TargetID string, Destination string, SnapshotID string) (*DispatcherWindiskSnapshotResponse, error)
- func (this *CometAPIClient) AdminDispatcherRunBackup(TargetID string, BackupRule string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDispatcherRunBackupCustom(TargetID string, Source string, Destination string, ...) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDispatcherRunRestore(TargetID string, Path string, Source string, Destination string, ...) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDispatcherRunRestoreCustom(TargetID string, Source string, Destination string, ...) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDispatcherSearchSnapshots(TargetID string, DestinationID string, SnapshotIDs []string, ...) (*SearchSnapshotsResponse, error)
- func (this *CometAPIClient) AdminDispatcherUninstallSoftware(TargetID string, RemoveConfigFile bool) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDispatcherUnlock(TargetID string, Destination string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDispatcherUpdateLoginUrl(TargetID string, NewURL string, Force *bool) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminDispatcherUpdateSoftware(TargetID string, SelfAddress *string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminGetJobLog(JobID string) ([]byte, error)
- func (this *CometAPIClient) AdminGetJobLogEntries(JobID string, MinSeverity *string, MessageContains *string) ([]JobEntry, error)
- func (this *CometAPIClient) AdminGetJobProperties(JobID string) (*BackupJobDetail, error)
- func (this *CometAPIClient) AdminGetJobsAll() ([]BackupJobDetail, error)
- func (this *CometAPIClient) AdminGetJobsForCustomSearch(Query SearchClause) ([]BackupJobDetail, error)
- func (this *CometAPIClient) AdminGetJobsForDateRange(Start int, End int) ([]BackupJobDetail, error)
- func (this *CometAPIClient) AdminGetJobsForUser(TargetUser string) ([]BackupJobDetail, error)
- func (this *CometAPIClient) AdminGetJobsRecent() ([]BackupJobDetail, error)
- func (this *CometAPIClient) AdminGetUserProfile(TargetUser string) (*UserProfileConfig, error)
- func (this *CometAPIClient) AdminGetUserProfileAndHash(TargetUser string) (*GetProfileAndHashResponseMessage, error)
- func (this *CometAPIClient) AdminGetUserProfileHash(TargetUser string) (*GetProfileHashResponseMessage, error)
- func (this *CometAPIClient) AdminJobCancel(TargetUser string, JobID string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminListUsers() ([]string, error)
- func (this *CometAPIClient) AdminListUsersFull() (map[string]UserProfileConfig, error)
- func (this *CometAPIClient) AdminMetaBrandingConfigGet() (*ServerConfigOptionsBrandingFragment, error)
- func (this *CometAPIClient) AdminMetaBrandingConfigSet(BrandingConfig BrandingOptions) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminMetaBuildConfigGet() (*ServerConfigOptionsSoftwareBuildRoleFragment, error)
- func (this *CometAPIClient) AdminMetaBuildConfigSet(SoftwareBuildRoleConfig SoftwareBuildRoleOptions) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminMetaConstellationConfigGet() (*ConstellationRoleOptions, error)
- func (this *CometAPIClient) AdminMetaConstellationConfigSet(ConstellationRoleOptions ConstellationRoleOptions) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminMetaEmailOptionsGet() (*EmailOptions, error)
- func (this *CometAPIClient) AdminMetaEmailOptionsSet(EmailOptions EmailOptions) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminMetaListAvailableLogDays() ([]LogDay, error)
- func (this *CometAPIClient) AdminMetaPsaConfigListGet() ([]PSAConfig, error)
- func (this *CometAPIClient) AdminMetaPsaConfigListSet(PSAConfigList []PSAConfig) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminMetaPsaConfigListSyncNow() (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminMetaReadAllLogs() ([]byte, error)
- func (this *CometAPIClient) AdminMetaReadLogs(Log int) ([]byte, error)
- func (this *CometAPIClient) AdminMetaRemoteStorageVaultGet() ([]RemoteStorageOption, error)
- func (this *CometAPIClient) AdminMetaRemoteStorageVaultSet(RemoteStorageOptions []RemoteStorageOption) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminMetaRemoteStorageVaultTest(TemplateOptions RemoteStorageOption) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminMetaResourceGet(Hash string) ([]byte, error)
- func (this *CometAPIClient) AdminMetaResourceNew(upload string) (*AdminResourceResponse, error)
- func (this *CometAPIClient) AdminMetaRestartService() (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminMetaSendTestEmail(EmailOptions EmailOptions, Recipient string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminMetaSendTestReport(EmailReportingOption EmailReportingOption) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminMetaServerConfigGet() (*ServerConfigOptions, error)
- func (this *CometAPIClient) AdminMetaServerConfigNetworkInterfaces() ([]string, error)
- func (this *CometAPIClient) AdminMetaServerConfigSet(Config ServerConfigOptions) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminMetaShutdownService() (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminMetaSoftwareUpdateNews() (*SoftwareUpdateNewsResponse, error)
- func (this *CometAPIClient) AdminMetaStats(Simple bool) (map[int64]StatResult, error)
- func (this *CometAPIClient) AdminMetaVersion() (*ServerMetaVersionInfo, error)
- func (this *CometAPIClient) AdminMetaWebhookOptionsGet() (map[string]WebhookOption, error)
- func (this *CometAPIClient) AdminMetaWebhookOptionsSet(WebhookOptions map[string]WebhookOption) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminNewsGetAll() (NewsEntries, error)
- func (this *CometAPIClient) AdminNewsRemove(NewsItem string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminNewsSubmit(NewsContent string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminOrganizationDelete(OrganizationID *string, UninstallConfig *UninstallConfig) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminOrganizationExport(Options SelfBackupExportOptions) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminOrganizationList() (map[string]Organization, error)
- func (this *CometAPIClient) AdminOrganizationSet(OrganizationID *string, Organization *Organization) (*OrganizationResponse, error)
- func (this *CometAPIClient) AdminPoliciesDelete(PolicyID string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminPoliciesGet(PolicyID string) (*GetGroupPolicyResponse, error)
- func (this *CometAPIClient) AdminPoliciesList(TargetOrganization *string) (map[string]string, error)
- func (this *CometAPIClient) AdminPoliciesListFull(TargetOrganization *string) (map[string]GroupPolicy, error)
- func (this *CometAPIClient) AdminPoliciesNew(Policy GroupPolicy) (*CreateGroupPolicyResponse, error)
- func (this *CometAPIClient) AdminPoliciesSet(PolicyID string, Policy GroupPolicy, CheckPolicyHash *string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminPreviewUserEmailReport(TargetUser string, EmailReportConfig EmailReportConfig, EmailAddress *string) (*EmailReportGeneratedPreview, error)
- func (this *CometAPIClient) AdminReplicationState() ([]ReplicatorStateAPIResponse, error)
- func (this *CometAPIClient) AdminRequestStorageVault(TargetUser string, StorageProvider string, SelfAddress *string) (*RequestStorageVaultResponseMessage, error)
- func (this *CometAPIClient) AdminRequestStorageVaultProviders(TargetOrganization *string) (map[string]string, error)
- func (this *CometAPIClient) AdminResetUserPassword(TargetUser string, NewPassword string, OldPassword *string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminRevokeDevice(TargetUser string, TargetDevice string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminSelfBackupStart() (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminSetUserProfile(TargetUser string, ProfileData UserProfileConfig) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminSetUserProfileHash(TargetUser string, ProfileData UserProfileConfig, RequireHash string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminStorageBucketProperties(BucketID string, AfterTimestamp *int) (*BucketProperties, error)
- func (this *CometAPIClient) AdminStorageDeleteBucket(BucketID string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminStorageFreeSpace(BucketID *string) (*StorageFreeSpaceInfo, error)
- func (this *CometAPIClient) AdminStorageListBuckets() (BucketPropertyList, error)
- func (this *CometAPIClient) AdminStoragePingDestination(ExtraData DestinationLocation) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminStorageRegisterBucket(SetBucketValue *string, SetKeyHashFormat *string, SetKeyHashValue *string, ...) (*AddBucketResponseMessage, error)
- func (this *CometAPIClient) AdminUpdateCampaignStart(Options UpdateCampaignOptions) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) AdminUpdateCampaignStatus() (*UpdateCampaignStatus, error)
- func (this *CometAPIClient) BrandingProps() (*ServerMetaBrandingProperties, error)
- func (this *CometAPIClient) HybridSessionStart() (*SessionKeyRegeneratedResponse, error)
- func (this *CometAPIClient) Request(contentType, method, path string, data map[string][]string) ([]byte, error)
- func (this *CometAPIClient) UserDispatcherEmailPreview(TargetID string, Snapshot string, Destination string, Path string) (*EmailReportGeneratedPreview, error)
- func (this *CometAPIClient) UserWebAccountRegenerateTotp(ProfileHash string) (*TotpRegeneratedResponse, error)
- func (this *CometAPIClient) UserWebAccountResetPassword(ProfileHash string, OldPassword string, NewPassword string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) UserWebAccountValidateTotp(ProfileHash string, TOTPCode string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) UserWebDispatcherDeleteSnapshot(TargetID string, DestinationID string, SnapshotID string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) UserWebDispatcherDeleteSnapshots(TargetID string, DestinationID string, SnapshotIDs []string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) UserWebDispatcherListActive() (LiveUserConnectionMap, error)
- func (this *CometAPIClient) UserWebDispatcherOffice365ListVirtualAccounts(TargetID string, Credentials Office365Credential) (*BrowseOffice365ListVirtualAccountsResponse, error)
- func (this *CometAPIClient) UserWebDispatcherPingDestination(TargetID string, ExtraData DestinationLocation) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) UserWebDispatcherRegisterOfficeApplicationBegin(TargetID string, EmailAddress string) (*RegisterOfficeApplicationBeginResponse, error)
- func (this *CometAPIClient) UserWebDispatcherRegisterOfficeApplicationCheck(TargetID string, Continuation string) (*RegisterOfficeApplicationCheckResponse, error)
- func (this *CometAPIClient) UserWebDispatcherRequestBrowseDiskDrives(TargetID string) (*BrowseDiskDrivesResponse, error)
- func (this *CometAPIClient) UserWebDispatcherRequestBrowseExchangeEdb(TargetID string) (*BrowseEDBResponse, error)
- func (this *CometAPIClient) UserWebDispatcherRequestBrowseHyperv(TargetID string) (*BrowseHVResponse, error)
- func (this *CometAPIClient) UserWebDispatcherRequestBrowseMongodb(TargetID string, Credentials MongoDBConnection) (*BrowseSQLServerResponse, error)
- func (this *CometAPIClient) UserWebDispatcherRequestBrowseMssql(TargetID string, Credentials MSSQLConnection) (*BrowseSQLServerResponse, error)
- func (this *CometAPIClient) UserWebDispatcherRequestBrowseMysql(TargetID string, Credentials MySQLConnection) (*BrowseSQLServerResponse, error)
- func (this *CometAPIClient) UserWebDispatcherRequestBrowseVssAaw(TargetID string) (*BrowseVSSResponse, error)
- func (this *CometAPIClient) UserWebDispatcherRequestOffice365Accounts(TargetID string, Credentials Office365Credential) (*BrowseOffice365ObjectsResponse, error)
- func (this *CometAPIClient) UserWebDispatcherRequestOffice365Sites(TargetID string, Credentials Office365Credential) (*BrowseOffice365ObjectsResponse, error)
- func (this *CometAPIClient) UserWebDispatcherRequestStoredObjects(TargetID string, Destination string, SnapshotID string, TreeID *string, ...) (*DispatcherStoredObjectsResponse, error)
- func (this *CometAPIClient) UserWebDispatcherRequestVaultSnapshots(TargetID string, Destination string) (*DispatcherVaultSnapshotsResponse, error)
- func (this *CometAPIClient) UserWebDispatcherRequestWindiskSnapshot(TargetID string, Destination string, SnapshotID string) (*DispatcherWindiskSnapshotResponse, error)
- func (this *CometAPIClient) UserWebDispatcherRunBackup(TargetID string, BackupRule string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) UserWebDispatcherRunBackupCustom(TargetID string, Source string, Destination string, ...) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) UserWebDispatcherRunRestore(TargetID string, Path string, Source string, Destination string, ...) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) UserWebDispatcherRunRestoreCustom(TargetID string, Source string, Destination string, ...) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) UserWebDispatcherSearchSnapshots(TargetID string, DestinationID string, SnapshotIDs []string, ...) (*SearchSnapshotsResponse, error)
- func (this *CometAPIClient) UserWebGetJobLog(JobID string) ([]byte, error)
- func (this *CometAPIClient) UserWebGetJobLogEntries(JobID string, MinSeverity *string, MessageContains *string) ([]JobEntry, error)
- func (this *CometAPIClient) UserWebGetJobProperties(JobID string) (*BackupJobDetail, error)
- func (this *CometAPIClient) UserWebGetJobs() ([]BackupJobDetail, error)
- func (this *CometAPIClient) UserWebGetJobsForCustomSearch() ([]BackupJobDetail, error)
- func (this *CometAPIClient) UserWebGetUserProfileAndHash() (*GetProfileAndHashResponseMessage, error)
- func (this *CometAPIClient) UserWebJobCancel(JobID string) (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) UserWebNewsGetAll() (NewsEntries, error)
- func (this *CometAPIClient) UserWebRequestFilesystemObjects(TargetID string, Path *string) (*DispatcherStoredObjectsResponse, error)
- func (this *CometAPIClient) UserWebRequestStorageVault(StorageProvider string, SelfAddress *string) (*RequestStorageVaultResponseMessage, error)
- func (this *CometAPIClient) UserWebRequestStorageVaultProviders() (map[string]string, error)
- func (this *CometAPIClient) UserWebSessionRevoke() (*CometAPIResponseMessage, error)
- func (this *CometAPIClient) UserWebSessionStart() (*SessionKeyRegeneratedResponse, error)
- func (this *CometAPIClient) UserWebSetProfileHash(ProfileData UserProfileConfig, ProfileHash string) (*CometAPIResponseMessage, error)
- type CometAPIResponseMessage
- type CometDestinationLocation
- type CompressMode
- type ConstellationCheckReport
- type ConstellationRoleOptions
- type ConstellationStats
- type ConstellationStatusAPIResponse
- type ContentMeasurement
- type ContentMeasurementComponent
- type CountJobsResponse
- type CreateGroupPolicyResponse
- type CustomRemoteBucketSettings
- type DaysOfWeekConfig
- type DefaultEmailReportPolicy
- type DefaultSettingMode
- type DefaultSourceOSRestriction
- type DefaultSourceWithOSRestriction
- type DestinationConfig
- type DestinationLocation
- type DestinationStatistics
- type DeviceConfig
- type DiskDrive
- type DispatcherAdminSourcesResponse
- type DispatcherStoredObjectsResponse
- type DispatcherVaultSnapshotsResponse
- type DispatcherWindiskSnapshotResponse
- type EDBFileInfo
- type EmailDeliveryType
- type EmailOptions
- type EmailReportConfig
- type EmailReportGeneratedPreview
- type EmailReportType
- type EmailReportingOption
- type ExternalAuthenticationSource
- type ExternalLDAPAuthenticationSourceServer
- type ExternalLDAPAuthenticationSourceSettings
- type ExtraFileExclusion
- type ExtraFileExclusionOSRestriction
- type FTPDestinationLocation
- type FileOption
- type FtpsModeType
- type GetGroupPolicyResponse
- type GetProfileAndHashResponseMessage
- type GetProfileHashResponseMessage
- type GlobalOverrideOptions
- type GroupPolicy
- type HTTPConnectorOptions
- type HourSchedConfig
- type HyperVMachineInfo
- type InstallCreds
- type InstallToken
- type InstallTokenResponse
- type JobClassification
- type JobEntry
- type JobStatus
- type LDAPSecurityMethod
- type LanguageCode
- type LicenseOptions
- type LiveUserConnection
- type LiveUserConnectionID
- type LiveUserConnectionMap
- type LocalDestinationLocation
- type LocalStorageDirectory
- type LogDay
- type MSSQLAuthMode
- type MSSQLConnection
- type MSSQLLoginArgs
- type MSSQLMethod
- type MSSQLRestoreOpt
- type MacOSCodeSignProperties
- type MacOSCodesignLevel
- type MongoDBConnection
- type MySQLConnection
- type NewBucketDetail
- type NewsEntries
- type NewsEntry
- type OSInfo
- type Office365Connection
- type Office365Credential
- type Office365CustomSetting
- type Office365CustomSettingV2
- type Office365MixedVirtualAccount
- type Office365ObjectInfo
- type Organization
- type OrganizationLoginURLResponse
- type OrganizationResponse
- type PSAConfig
- type PSAType
- type Partition
- type PrivateBrandingProperties
- type ProtectedItemEngineTypePolicy
- type PublicBrandingProperties
- type RatelimitOptions
- type RatelimitRule
- type RegisterOfficeApplicationBeginResponse
- type RegisterOfficeApplicationCheckResponse
- type RemoteServerAddress
- type RemoteServerType
- type RemoteStorageOption
- type ReplicaDeletionStrategy
- type ReplicaServer
- type ReplicatorDisplayClass
- type ReplicatorState
- type ReplicatorStateAPIResponse
- type RequestStorageVaultResponseMessage
- type RestoreArchiveFormat
- type RestoreJobAdvancedOptions
- type RestoreOffice365Credential
- type RestoreType
- type RetentionMode
- type RetentionPolicy
- type RetentionRange
- type RetentionRangeType
- type S3DestinationLocation
- type S3GenericVirtualStorageRole
- type SFTPDestinationLocation
- type SSHAuthMode
- type SSHConnection
- type ScheduleConfig
- type SearchClause
- type SearchClauseType
- type SearchOperatorType
- type SearchResultFileInfo
- type SearchSnapshotsResponse
- type SelfBackupExportOptions
- type SelfBackupOptions
- type SelfBackupStatistics
- type SelfBackupTarget
- type ServerConfigOptions
- type ServerConfigOptionsBrandingFragment
- type ServerConfigOptionsSoftwareBuildRoleFragment
- type ServerMetaBrandingProperties
- type ServerMetaVersionInfo
- type SessionKeyRegeneratedResponse
- type SessionOptions
- type Severity
- type SftpAuthMode
- type SingleFieldSource
- type SizeMeasurement
- type SoftwareBuildRoleOptions
- type SoftwareUpdateNewsResponse
- type SourceBasicInfo
- type SourceConfig
- type SourceIncludePattern
- type SourceStatistics
- type SpannedDestinationLocation
- type SpannedStorageExtraInfo
- type StatResult
- type StorageFreeSpaceInfo
- type StorageRoleOptions
- type StorageVaultProviderPolicy
- type StoredObject
- type StoredObjectType
- type StorjDestinationLocation
- type StorjVirtualStorageRoleSetting
- type StreamLevel
- type StreamableEvent
- type StreamableEventType
- type StreamerType
- type SwiftDestinationLocation
- type TestResponse
- type TimeSpan
- type TotpRegeneratedResponse
- type U2FRegisterRequestdeprecated
- type U2FRegisteredKeydeprecated
- type U2FRegistrationChallengeResponsedeprecated
- type U2FSignRequestdeprecated
- type U2FSignResponsedeprecated
- type UninstallConfig
- type UpdateCampaignDeviceStatus
- type UpdateCampaignOptions
- type UpdateCampaignProperties
- type UpdateCampaignStatus
- type UpdateCampaignStatusDeviceEntry
- type UpdateStatus
- type UserCustomEmailSettings
- type UserOnServer
- type UserPolicy
- type UserProfileConfig
- type UserProfileFragmentdeprecated
- type UserServerConfig
- type VMDKSnapshotViewOptions
- type VSSComponent
- type VSSWriterInfo
- type VaultSnapshot
- type WasabiVirtualStorageRoleSettings
- type WebAuthnAuthenticationExtensions
- type WebAuthnAuthenticatorSelection
- type WebAuthnCredential
- type WebAuthnCredentialAssertion
- type WebAuthnCredentialDescriptor
- type WebAuthnCredentialEntity
- type WebAuthnCredentialParameter
- type WebAuthnDeviceType
- type WebAuthnPublicKeyCredentialCreationOptions
- type WebAuthnPublicKeyCredentialRequestOptions
- type WebAuthnRegistrationChallengeResponse
- type WebAuthnRelyingPartyEntity
- type WebAuthnSignRequest
- type WebAuthnSignResponse
- type WebAuthnUserEntity
- type WebInterfaceBrandingProperties
- type WebhookOption
- type WinSMBAuth
- type WindowsCodeSignProperties
- type WindowsCodesignMethod
Constants ¶
const APPLICATION_VERSION string = "23.5.0"
const APPLICATION_VERSION_MAJOR int = 23
const APPLICATION_VERSION_MINOR int = 5
const APPLICATION_VERSION_REVISION int = 0
const BRANDINGSTYLETYPE_AUTO_LEGACY int = 0
If set, will be automatically replaced with one of the other BRANDINGSTYLETYPE_ constants after next server upgrade.
const BRANDINGSTYLETYPE_CUSTOM_LOGO int = 3
Use custom branding and colours, with a supplied image in the main logo area.
const BRANDINGSTYLETYPE_CUSTOM_TEXT int = 2
Use custom branding and colours, with text in the main logo area.
const BRANDINGSTYLETYPE_DEFAULT int = 1
Use Comet company branding and colours for all web interface branding
const DEFAULT_TIMEZONE string = "UTC"
const DESTINATIONTYPE_ALL uint64 = 1101
When defining a schedule via policy, use this option to create a schedule for each Storage Vault in the user's profile.
const DESTINATIONTYPE_AZUREBLOB uint64 = 1005
Azure Blob Storage
const DESTINATIONTYPE_B2 uint64 = 1008
Backblaze B2 (Native API)
const DESTINATIONTYPE_COMET uint64 = 1003
The Comet Server Storage Role protocol
const DESTINATIONTYPE_FTP uint64 = 1004
FTP protocol
const DESTINATIONTYPE_LATEST uint64 = 1100
When defining a schedule via policy, use this option to dynamically select the Storage Vault that was created most recently.
const DESTINATIONTYPE_LOCALCOPY uint64 = 1002
Local Path
const DESTINATIONTYPE_S3 uint64 = 1000
S3-compatible, or a specific S3 service such as AWS S3, Wasabi, or iDrive e2
const DESTINATIONTYPE_SFTP uint64 = 1001
SFTP protocol
const DESTINATIONTYPE_SPANNED uint64 = 1006
Spanned
const DESTINATIONTYPE_STORJ uint64 = 1009
Storj
const DESTINATIONTYPE_SWIFT uint64 = 1007
Openstack Swift
const DESTINATIONTYPE___INVALID uint64 = 0
const EMAIL_WORKER_STATE_CALCULATING int = 2
The Comet Server is currently searching through email report configuration, to determine when the next email report is due to be sent.
const EMAIL_WORKER_STATE_NOT_STARTED int = 0
The Comet Server is still starting up and has not yet checked whether any email reports are due to be sent.
const EMAIL_WORKER_STATE_SENDING int = 4
The Comet Server is currently sending a scheduled email report.
const EMAIL_WORKER_STATE_STARTED int = 1
The Comet Server is still starting up and has not yet checked whether any email reports are due to be sent.
const EMAIL_WORKER_STATE_WAITING int = 3
The Comet Server knows when the next scheduled email report is due to be sent, and is waiting until that time.
const ENCRYPTIONMETHOD_UNCONFIGURED uint64 = 0
const ENGINE_BUILTIN_EXCHANGEEDB string = "engine1/exchangeedb"
Microsoft Exchange Server
const ENGINE_BUILTIN_FILE string = "engine1/file"
Files and Folders
const ENGINE_BUILTIN_HYPERV string = "engine1/hyperv"
Microsoft Hyper-V
const ENGINE_BUILTIN_MONGODB string = "engine1/mongodb"
MongoDB
const ENGINE_BUILTIN_MSOFFICE string = "engine1/winmsofficemail"
Office 365
const ENGINE_BUILTIN_MSSQL string = "engine1/mssql"
Microsoft SQL Server
const ENGINE_BUILTIN_MYSQL string = "engine1/mysql"
MySQL
const ENGINE_BUILTIN_STDOUT string = "engine1/stdout"
Program Output
const ENGINE_BUILTIN_SYSTEMSTATE string = "engine1/systemstate"
Windows Server System State
const ENGINE_BUILTIN_VSSWRITER string = "engine1/vsswriter"
Application-Aware Writer
const ENGINE_BUILTIN_WINDISK string = "engine1/windisk"
Disk Image
const ENGINE_BUILTIN_WINDOWSSYSTEM string = "engine1/windowssystem"
Windows System Backup
const MIXED_VIRTUAL_ACCOUNT_TYPE_GROUP uint = 2
const MIXED_VIRTUAL_ACCOUNT_TYPE_SHAREPOINT_ONLY uint = 4
const MIXED_VIRTUAL_ACCOUNT_TYPE_TEAM_GROUP uint = 3
const MIXED_VIRTUAL_ACCOUNT_TYPE_USER uint = 1
const MONGODB_DEFAULT_PORT int = 27017
const OFFICE365_REGION_CHINA string = "ChinaCloud"
const OFFICE365_REGION_GERMANY string = "GermanCloud"
const OFFICE365_REGION_PUBLIC string = "GlobalPublicCloud"
const OFFICE365_REGION_US_DOD string = "USGovtGccDoDCloud"
const OFFICE365_REGION_US_GOVT string = "USGovtGccCloud"
const PASSWORD_FORMAT_PLAINTEXT int = 0
When resetting a password with the API, set the PasswordFormat to this value. The Comet Server will re-hash the credential automatically.
const RELEASE_CODENAME string = "Thebe"
const RETENTIONRANGE_MAXINT int = 1125899906842624
const SCHEDULE_FREQUENCY_DAILY uint64 = 8011
SecondsPast is the number of seconds past 00:00, in the device's local timezone.
const SCHEDULE_FREQUENCY_HIGHEST uint64 = 8015
const SCHEDULE_FREQUENCY_HOURLY uint64 = 8012
SecondsPast is the number of seconds past *:00, in the device's local timezone.
const SCHEDULE_FREQUENCY_LOWEST uint64 = 8010
const SCHEDULE_FREQUENCY_MONTHLY uint64 = 8014
SecondsPast is the number of seconds past 00:00 1st, in the device's local timezone.
const SCHEDULE_FREQUENCY_ONCEONLY uint64 = 8010
SecondsPast should be a Unix timestamp, in seconds
const SCHEDULE_FREQUENCY_PERIODIC uint64 = 8015
SecondsPast is the number of seconds per period. Offset: Shunt seconds after unix epoch
const SCHEDULE_FREQUENCY_WEEKLY uint64 = 8013
SecondsPast is the number of seconds past 00:00 Sunday, in the device's local timezone.
const SCHEDULE_MAXINT int = 1125899906842624
const SCHEDULE_MAX_RANDOM_DELAY_SECS int = 18000
Maximum random delay (5 hours)
const SEARCHOPERATOR_BOOL_IS string = "bool_is"
const SEARCHOPERATOR_BOOL_NIS string = "bool_nis"
const SEARCHOPERATOR_INT_EQ string = "int_eq"
const SEARCHOPERATOR_INT_GT string = "int_gt"
const SEARCHOPERATOR_INT_GTE string = "int_gte"
const SEARCHOPERATOR_INT_LT string = "int_lt"
const SEARCHOPERATOR_INT_LTE string = "int_lte"
const SEARCHOPERATOR_INT_NEQ string = "int_neq"
const SEARCHOPERATOR_STRING_CONTAINS string = "str_contains"
const SEARCHOPERATOR_STRING_CONTAINS_CI string = "str_contains_ci"
const SEARCHOPERATOR_STRING_ENDSWITH string = "str_endswith"
const SEARCHOPERATOR_STRING_ENDSWITH_CI string = "str_endswith_ci"
const SEARCHOPERATOR_STRING_EQ string = "str_eq"
const SEARCHOPERATOR_STRING_EQ_CI string = "str_eq_ci"
const SEARCHOPERATOR_STRING_NCONTAINS string = "str_ncontains"
const SEARCHOPERATOR_STRING_NCONTAINS_CI string = "str_ncontains_ci"
const SEARCHOPERATOR_STRING_NENDSWITH string = "str_nendswith"
const SEARCHOPERATOR_STRING_NENDSWITH_CI string = "str_nendswith_ci"
const SEARCHOPERATOR_STRING_NEQ string = "str_neq"
const SEARCHOPERATOR_STRING_NEQ_CI string = "str_neq_ci"
const SEARCHOPERATOR_STRING_NREGEXMATCH string = "str_nregexmatch"
const SEARCHOPERATOR_STRING_NSTARTSWITH string = "str_nstartswith"
const SEARCHOPERATOR_STRING_NSTARTSWITH_CI string = "str_nstartswith_ci"
const SEARCHOPERATOR_STRING_REGEXMATCH string = "str_regexmatch"
const SEARCHOPERATOR_STRING_STARTSWITH string = "str_startswith"
const SEARCHOPERATOR_STRING_STARTSWITH_CI string = "str_startswith_ci"
const SERVICE_CALENDAR uint = 1
0000 0001. If this value is present in the bitset, then the Calendar service is selected for backup.
const SERVICE_CONTACT uint = 2
0000 0010. If this value is present in the bitset, then the Contact service is selected for backup.
const SERVICE_MAIL uint = 4
0000 0100. If this value is present in the bitset, then the Mail service is selected for backup.
const SERVICE_ONEDRIVE uint = 16
0001 0000. If this value is present in the bitset, then the OneDrive service is selected for backup.
const SERVICE_SHAREPOINT uint = 8
0000 1000. If this value is present in the bitset, then the SharePoint service is selected for backup.
const TOTPRequiredError string = "ERR_TOTP_REQUIRED"
If an API response returns in failure, but it includes this value in the CometAPIResponseMessage->Message parameter, it indicates that your supplied authentication was insufficient, and you must supply additional two-factor authentication credentials.
const UnknownDeviceError string = "ERR_UNKNOWN_DEVICE"
If an API response returns in failure, but it includes this value in the CometAPIResponseMessage->Message parameter, it indicates that the specified Device ID was invalid or not found.
const UnsupportVhdxFileSystem string = "ERR_UNSUPPORT_VHDX_FILE_SYSTEM"
const UnsupportVmdkFileSystem string = "ERR_UNSUPPORT_VMDK_FILE_SYSTEM"
const VhdxPartitonReadErrMsg string = "ERR_VHDX_PARTITION"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminAccountPropertiesResponse ¶
type AdminAccountPropertiesResponse struct {
OrganizationID string
Permissions AdminUserPermissions
Security AdminSecurityOptions
}
type AdminEmailOptions ¶
type AdminResourceResponse ¶
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 AdminUserPermissions ¶
type AdminUserPermissions struct {
PreventEditServerSettings bool `json:",omitempty"`
PreventServerShutdown bool `json:",omitempty"`
PreventChangePassword bool `json:",omitempty"`
AllowEditBranding bool `json:",omitempty"`
AllowEditEmailOptions bool `json:",omitempty"`
AllowEditRemoteStorage bool `json:",omitempty"`
AllowEditWebhooks bool `json:",omitempty"`
DenyConstellationRole 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 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 AzureDestinationLocation ¶
type AzureDestinationLocation struct {
AZBAccountName string
AZBAccountKey string
AZBContainer string
// The base URL for the Azure Blob Storage service. Leave blank to use the global default URL.
AZBRealm string
AZBPrefix string
}
AzureDestinationLocation allows configuring connection settings for storage locations using the Azure Blob Storage API (DESTINATIONTYPE_AZURE).
type B2DestinationLocation ¶
type B2DestinationLocation struct {
// Key ID
AccountID string `json:",omitempty"`
// Application Key
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"`
// Hide files instead of deleting them. This can be used for ransomware protection if (A) the B2
// credentials have the hideFile permission but not the deleteFile permission, and (B) you use the
// Backblaze B2 server-side lifecycle policies to clean up old hidden files.
HideDeletedFiles bool `json:",omitempty"`
}
B2DestinationLocation allows configuring connection settings for storage locations using the Backblaze B2 native API (DESTINATIONTYPE_B2).
type B2StorageExtraInfo ¶
type B2StorageExtraInfo struct {
TotalTransactionsInTimeInterval map[int64]B2TransactionTotals
}
type B2TransactionTotals ¶
type BackupJobAdvancedOptions ¶
type BackupJobAdvancedOptions struct {
SkipAlreadyRunning bool
// If Zero: disabled
StopAfter int64
// If Zero: disabled
LimitVaultSpeedBps int64
// Default disabled
ReduceDiskConcurrency bool
// Default disabled
UseOnDiskIndexes bool
// Default disabled
AllowZeroFilesSuccess bool
// If Zero: default Automatic (BACKUPJOBAUTORETENTION_AUTOMATIC)
AutoRetentionLevel AutoRetentionLevel
}
BackupJobAdvancedOptions control additional advanced options for running a backup job. They can be specified as part of a schedule in the BackupRuleConfig type, or supplied immediately when running a job.
type BackupJobDetail ¶
type BackupJobDetail struct {
GUID string
Username string
Classification JobClassification
Status JobStatus
// Unix timestamp in seconds
StartTime int64
// Unix timestamp in seconds. Will be zero if the job is still running.
EndTime int64
// The Protected Item that this job is for
SourceGUID string
// The Storage Vault that this job is for
DestinationGUID string
DeviceID string
SnapshotID string `json:",omitempty"`
ClientVersion string
TotalDirectories int64
TotalFiles int64
TotalSize int64
TotalChunks int64
UploadSize int64
DownloadSize int64
// For Hyper-V and VMware backup jobs, the total number of virtual machines.
TotalVmCount int64 `json:",omitempty"`
// For Office 365 backup jobs, the total number of mailboxes.
TotalMailsCount int64 `json:",omitempty"`
// For Office 365 backup jobs, the total number of SharePoint sites.
TotalSitesCount int64 `json:",omitempty"`
// For Office 365 backup jobs, the calculated effective number of protected accounts.
TotalAccountsCount int64 `json:",omitempty"`
// For Office 365 backup jobs, the number of licensed mailboxes.
TotalLicensedMailsCount int64 `json:",omitempty"`
// For Office 365 backup jobs, the number of unlicensed mailboxes.
TotalUnlicensedMailsCount int64 `json:",omitempty"`
// If this field is present, it is possible to request cancellation of this job via the API.
CancellationID string `json:",omitempty"`
// If this backup job is still running, additional partial-progress information may be present in
// this field.
Progress BackupJobProgress `json:",omitempty"`
// The size of the Storage Vault, as measured at the start of the job.
DestinationSizeStart SizeMeasurement `json:",omitempty"`
// The size of the Storage Vault, as measured at the end of the job.
DestinationSizeEnd SizeMeasurement `json:",omitempty"`
}
type BackupJobProgress ¶
type BackupJobProgress struct {
// This field will always increase monotonically, exactly once, for every change to the
// BackupJobProgress for a given backup job.
Counter int64
// Unix timestamp in seconds
SentTime int64
// Unix timestamp in seconds. The typo is preserved for backwards-compatibility reasons.
RecievedTime int64
BytesDone int64
ItemsDone int64
}
type BackupRuleConfig ¶
type BackupRuleConfig struct {
Description string
// Unix timestamp in seconds
CreateTime int64
// Unix timestamp in seconds. The caller is responsible for updating this themselves.
ModifyTime int64
// Custom commands to run before the job
PreExec []string
// Custom commands to run after taking a disk snapshot
ThawExec []string
// Custom commands to run after the job
PostExec []string
// The source Protected Item ID to back up from, during this schedule
Source string
// The destination Storage Vault ID to back up to, during this schedule
Destination string
SkipAlreadyRunning bool
// If Zero: disabled
StopAfter int64
// If Zero: disabled
LimitVaultSpeedBps int64
// Default disabled
ReduceDiskConcurrency bool
// Default disabled
UseOnDiskIndexes bool
// Default disabled
AllowZeroFilesSuccess bool
// If Zero: default Automatic (BACKUPJOBAUTORETENTION_AUTOMATIC)
AutoRetentionLevel AutoRetentionLevel
// Scheduled start times
Schedules []ScheduleConfig
// Other events that will cause this scheduled job to start
EventTriggers BackupRuleEventTriggers
}
A backup rule connects one source Protected Item and one destination Storage Vault, with multiple time schedules or event triggers
type BackupRuleEventTriggers ¶
type BackupRuleEventTriggers struct {
// The "When PC Starts" option
OnPCBoot bool `json:",omitempty"`
// The "If the last job was Missed" option. In Comet 23.12.3 and later, this condition is evaluated
// when the PC starts and/or when the live connection is resumed.
OnPCBootIfLastJobMissed bool `json:",omitempty"`
}
type BrandingOptions ¶
type BrandingOptions struct {
// One of the BRANDINGSTYLETYPE_ constants
// This field is available in Comet 23.3.3 and later.
BrandingStyleType int
BrandName string
LogoImage string
TopColor string
AccentColor string
Favicon string
HideNewsArea bool
ProductName string
CompanyName string
HelpURL string
HelpIsPopup bool
DefaultLoginServerURL string
TileBackgroundColor string
AccountRegisterURL string
HideBackgroundLogo bool
BuildMode ClientBrandingBuildMode
PathIcoFile string
PathIcnsFile string
PathMenuBarIcnsFile string
PathEulaRtf string
PathTilePng string
PathHeaderImage string
PathAppIconImage string
PackageIdentifier string
WindowsCodeSignMethod WindowsCodesignMethod
WindowsCodeSignPKCS12FilePath string
WindowsCodeSignPKCS12PasswordFormat uint64
WindowsCodeSignPKCS12Password string
WindowsCodeSignPKCS11Engine string
WindowsCodeSignPKCS11Module string
// Deprecated: This member has been deprecated since Comet version 22.12.7
WindowsCodeSignPKCS11Certfile string
WindowsCodeSignPKCS11KeyID string
WindowsCodeSignPKCS11PasswordFormat uint64
WindowsCodeSignPKCS11Password string
WindowsCodeSignAzureVaultName string
WindowsCodeSignAzureCertName string
WindowsCodeSignAzureAppID string
WindowsCodeSignAzureAppSecretFormat uint64
WindowsCodeSignAzureAppSecret string
WindowsCodeSignAzureTenantID string
MacOSCodeSign MacOSCodeSignProperties
}
type BrandingProperties ¶
type BrandingProperties struct {
ProductName string
CompanyName string
HelpURL string
HelpIsPopup bool
DefaultLoginServerURL string
TileBackgroundColor string
AccountRegisterURL string
HideBackgroundLogo bool
BuildMode ClientBrandingBuildMode
PathIcoFile string
PathIcnsFile string
PathMenuBarIcnsFile string
PathEulaRtf string
PathTilePng string
PathHeaderImage string
PathAppIconImage string
PackageIdentifier string
WindowsCodeSignMethod WindowsCodesignMethod
WindowsCodeSignPKCS12FilePath string
WindowsCodeSignPKCS12PasswordFormat uint64
WindowsCodeSignPKCS12Password string
WindowsCodeSignPKCS11Engine string
WindowsCodeSignPKCS11Module string
// Deprecated: This member has been deprecated since Comet version 22.12.7
WindowsCodeSignPKCS11Certfile string
WindowsCodeSignPKCS11KeyID string
WindowsCodeSignPKCS11PasswordFormat uint64
WindowsCodeSignPKCS11Password string
WindowsCodeSignAzureVaultName string
WindowsCodeSignAzureCertName string
WindowsCodeSignAzureAppID string
WindowsCodeSignAzureAppSecretFormat uint64
WindowsCodeSignAzureAppSecret string
WindowsCodeSignAzureTenantID string
MacOSCodeSign MacOSCodeSignProperties
}
type BrowseEDBResponse ¶
type BrowseEDBResponse struct {
// If the operation was successful, the status will be in the 200-299 range.
Status int
Message string
Databases []EDBFileInfo
}
type BrowseHVResponse ¶
type BrowseHVResponse struct {
// If the operation was successful, the status will be in the 200-299 range.
Status int
Message string
VirtualMachines []HyperVMachineInfo
}
type BrowseOffice365ListVirtualAccountsResponse ¶
type BrowseOffice365ListVirtualAccountsResponse struct {
// If the operation was successful, the status will be in the 200-299 range.
Status int
Message string
Objects []Office365MixedVirtualAccount
}
type BrowseOffice365ObjectsResponse ¶
type BrowseOffice365ObjectsResponse struct {
// If the operation was successful, the status will be in the 200-299 range.
Status int
Message string
Objects []Office365ObjectInfo
}
type BrowseSQLServerResponse ¶
type BrowseVSSResponse ¶
type BrowseVSSResponse struct {
// If the operation was successful, the status will be in the 200-299 range.
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
// The servers where this bucket was found. The 0-based indexes here correspond to the entries
// inside ConstellationRoleOptions->Servers.
ExistsOnServers []int
InUseBy []UserOnServer
}
type BucketUsageMap ¶
type BucketUsageMap map[string]BucketUsageInfo
type ClientBrandingBuildMode ¶
type ClientBrandingBuildMode int
const CLIENTBRANDINGBUILD_CUSTOM ClientBrandingBuildMode = 0
ClientBrandingBuildMode: 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: A pre-built software client will be served, with Comet-branding, no server URL, and Comet codesigning.
type CometAPIClient ¶
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 top-level administrator accounts, not for Tenant administrator accounts.
- 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 top-level administrator accounts, not for Tenant administrator accounts.
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 top-level administrator accounts, not for Tenant administrator accounts.
- 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) AdminBrandingGenerateClientMacosArm64 ¶ added in v1.1.0
func (this *CometAPIClient) AdminBrandingGenerateClientMacosArm64(SelfAddress *string) ([]byte, error)
AdminBrandingGenerateClientMacosArm64: Download software (macOS arm64 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) 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 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 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 top-level administrator accounts, not for Tenant administrator accounts. 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 requires the Constellation Role to be enabled.
func (*CometAPIClient) AdminCountJobsForCustomSearch ¶ added in v1.2.0
func (this *CometAPIClient) AdminCountJobsForCustomSearch(Query SearchClause) (*CountJobsResponse, error)
AdminCountJobsForCustomSearch: Count jobs (for custom search)
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) 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) AdminDispatcherGetDefaultLoginUrl ¶ added in v1.1.0
func (this *CometAPIClient) AdminDispatcherGetDefaultLoginUrl(OrganizationID string) (*OrganizationLoginURLResponse, error)
AdminDispatcherGetDefaultLoginUrl: Get the default login URL for a tenant
You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled. This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
- Params OrganizationID: Target organization
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) AdminDispatcherSearchSnapshots ¶ added in v1.5.0
func (this *CometAPIClient) AdminDispatcherSearchSnapshots(TargetID string, DestinationID string, SnapshotIDs []string, Filter SearchClause) (*SearchSnapshotsResponse, error)
AdminDispatcherSearchSnapshots: Search storage vault snapshots
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: Snapshots to search Filter: The search filter
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, Force *bool) (*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 Force: (Optional) No checks will be done using previous URL
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, MinSeverity *string, MessageContains *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 MinSeverity: (Optional) Return only job log entries with equal or higher severity MessageContains: (Optional) Return only job log entries that contain exact string
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) AdminMetaConstellationConfigGet ¶ added in v1.0.1
func (this *CometAPIClient) AdminMetaConstellationConfigGet() (*ConstellationRoleOptions, error)
AdminMetaConstellationConfigGet: Get Constellation configuration for the current organization
You must supply administrator authentication credentials to use this API. This API requires the Constellation Role to be enabled.
func (*CometAPIClient) AdminMetaConstellationConfigSet ¶ added in v1.0.1
func (this *CometAPIClient) AdminMetaConstellationConfigSet(ConstellationRoleOptions ConstellationRoleOptions) (*CometAPIResponseMessage, error)
AdminMetaConstellationConfigSet: Set Constellation configuration for the current organization
You must supply administrator authentication credentials to use this API. This API requires the Constellation Role to be enabled.
- Params ConstellationRoleOptions: Constellation role options to set
func (*CometAPIClient) AdminMetaEmailOptionsGet ¶ added in v1.2.0
func (this *CometAPIClient) AdminMetaEmailOptionsGet() (*EmailOptions, error)
AdminMetaEmailOptionsGet: Get the email options
You must supply administrator authentication credentials to use this API. Access to this API may be prevented on a per-administrator basis.
func (*CometAPIClient) AdminMetaEmailOptionsSet ¶ added in v1.2.0
func (this *CometAPIClient) AdminMetaEmailOptionsSet(EmailOptions EmailOptions) (*CometAPIResponseMessage, error)
AdminMetaEmailOptionsSet: Set the email options
You must supply administrator authentication credentials to use this API. Access to this API may be prevented on a per-administrator basis.
- Params EmailOptions: The replacement email reporting options.
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 top-level administrator accounts, not for Tenant administrator accounts.
func (*CometAPIClient) AdminMetaPsaConfigListGet ¶ added in v1.1.0
func (this *CometAPIClient) AdminMetaPsaConfigListGet() ([]PSAConfig, error)
AdminMetaPsaConfigListGet: Get the server PSA configuration
You must supply administrator authentication credentials to use this API.
func (*CometAPIClient) AdminMetaPsaConfigListSet ¶ added in v1.1.0
func (this *CometAPIClient) AdminMetaPsaConfigListSet(PSAConfigList []PSAConfig) (*CometAPIResponseMessage, error)
AdminMetaPsaConfigListSet: Update the server PSA configuration
You must supply administrator authentication credentials to use this API.
- Params PSAConfigList: The replacement PSA configuration list
func (*CometAPIClient) AdminMetaPsaConfigListSyncNow ¶ added in v1.1.0
func (this *CometAPIClient) AdminMetaPsaConfigListSyncNow() (*CometAPIResponseMessage, error)
AdminMetaPsaConfigListSyncNow: Synchronize all PSA services now This API applies to the current Organization's PSAConfig's only.
You must supply administrator authentication credentials to use this API. This API requires the Auth Role to be enabled.
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 top-level administrator accounts, not for Tenant administrator accounts.
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 top-level administrator accounts, not for Tenant administrator accounts.
- 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) AdminMetaRemoteStorageVaultTest ¶ added in v1.5.0
func (this *CometAPIClient) AdminMetaRemoteStorageVaultTest(TemplateOptions RemoteStorageOption) (*CometAPIResponseMessage, error)
AdminMetaRemoteStorageVaultTest: Test the connection to the storage template
You must supply administrator authentication credentials to use this API. Access to this API may be prevented on a per-administrator basis.
- Params TemplateOptions: Storage Template Vault Options
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 top-level administrator accounts, not for Tenant administrator accounts. 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. 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) AdminMetaSendTestReport ¶ added in v1.2.0
func (this *CometAPIClient) AdminMetaSendTestReport(EmailReportingOption EmailReportingOption) (*CometAPIResponseMessage, error)
AdminMetaSendTestReport: Send a test admin email report This allows a user to send a test email report
You must supply administrator authentication credentials to use this API. Access to this API may be prevented on a per-administrator basis.
- Params EmailReportingOption: Test email reporting option for sending
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 top-level administrator accounts, not for Tenant administrator accounts.
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 top-level administrator accounts, not for Tenant administrator accounts.
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 top-level administrator accounts, not for Tenant administrator accounts.
- 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 top-level administrator accounts, not for Tenant administrator accounts. 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. Access to this API may be prevented on a per-administrator basis.
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. Access to this API may be prevented on a per-administrator basis.
- 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 top-level administrator accounts, not for Tenant administrator accounts.
- Params OrganizationID: (Optional) (No description available) UninstallConfig: (Optional) Uninstall software configuration
func (*CometAPIClient) AdminOrganizationExport ¶ added in v1.1.0
func (this *CometAPIClient) AdminOrganizationExport(Options SelfBackupExportOptions) (*CometAPIResponseMessage, error)
AdminOrganizationExport: Run self-backup for a specific tenant
You must supply administrator authentication credentials to use this API. This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
- Params Options: The export config options
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 top-level administrator accounts, not for Tenant administrator accounts.
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 top-level administrator accounts, not for Tenant administrator accounts.
- 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 top-level administrator accounts, not for Tenant administrator accounts.
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: (Optional) Old account password. Required if no recovery code is present for the user account.
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) AdminSelfBackupStart ¶ added in v1.1.0
func (this *CometAPIClient) AdminSelfBackupStart() (*CometAPIResponseMessage, error)
AdminSelfBackupStart: Run self-backup on all targets
You must supply administrator authentication credentials to use this API. This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
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 top-level administrator accounts, not for Tenant administrator accounts.
- 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 top-level administrator accounts, not for Tenant administrator accounts.
- 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 top-level administrator accounts, not for Tenant administrator accounts. 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 top-level administrator accounts, not for Tenant administrator accounts. 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: Retrieve 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) UserWebDispatcherSearchSnapshots ¶ added in v1.5.0
func (this *CometAPIClient) UserWebDispatcherSearchSnapshots(TargetID string, DestinationID string, SnapshotIDs []string, Filter SearchClause) (*SearchSnapshotsResponse, error)
UserWebDispatcherSearchSnapshots: Search storage vault snapshots
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: Snapshots to search Filter: The search filter
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, MinSeverity *string, MessageContains *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 MinSeverity: (Optional) Return only job log entries with equal or higher severity MessageContains: (Optional) Return only job log entries that contain exact string
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 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 {
// Unix timestamp in seconds
CheckStarted int64
// Unix timestamp in seconds
CheckCompleted int64
Usage BucketUsageMap
}
type ConstellationRoleOptions ¶
type ConstellationRoleOptions struct {
RoleEnabled bool
DeleteUnusedData bool
Servers []RemoteServerAddress
}
type ConstellationStats ¶
type ConstellationStatusAPIResponse ¶
type ConstellationStatusAPIResponse struct {
DeletionEnabled bool
Targets []string
// This field is available in Comet 18.6.2 and later.
TargetNames []string `json:",omitempty"`
Stats ConstellationStats
}
type ContentMeasurement ¶
type ContentMeasurement struct {
// Unix timestamp in seconds
MeasureStarted int64
// Unix timestamp in seconds
MeasureCompleted int64
Components []ContentMeasurementComponent
}
type ContentMeasurementComponent ¶
type ContentMeasurementComponent struct {
Bytes int64
// A list of strings describing which groups of snapshots rely on reaching this component of data.
// The strings may take the following formats:
// - source_id/CURRENT - this data is required by the most recent backup job snapshot for the
// listed Protected Item source.
// - source_id/HISTORIC - this data is required by an older backup job snapshot for the listed
// Protected Item source.
// - TRUNCATED/* - there are too many separate components to show, and this component represents
// data that is used by some other combination of components. If present, it will be the only entry
// in the UsedBy array.
// - the empty string - this amount of data is not currently referenced by any backup job
// snapshots. If that remains the case by the next retention pass, this much data will be deleted
// to free up space. If present, it will be the only entry in the UsedBy array.
UsedBy []string
}
type CountJobsResponse ¶ added in v1.2.0
type CountJobsResponse struct {
Count int64
}
type CustomRemoteBucketSettings ¶
type CustomRemoteBucketSettings struct {
URL string
}
type DaysOfWeekConfig ¶
type DefaultEmailReportPolicy ¶
type DefaultEmailReportPolicy struct {
// If true, the email reports will use the custom configuration that is defined in
// UserCustomEmailSettings / Reports fields.
// If false, the email reports will use configuration from the policy setting if present, or else
// from the built-in system default email report configuration.
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
// Unix timestamp in seconds
CreateTime int64
// Unix timestamp in seconds
ModifyTime int64
// Custom commands to run before the job
PreExec []string
// Custom commands to run after taking a disk snapshot
ThawExec []string
// Custom commands to run after the job
PostExec []string
// One of the DESTINATIONTYPE_ constants
DestinationType uint64
// The URL for the target Comet Server Storage Role, including http/https and trailing slash
CometServer string
CometBucket string
CometBucketKey string
S3Server string
S3UsesTLS bool
S3AccessKey string
S3SecretKey string
S3BucketName string
S3Subdir string
S3CustomRegion string
// If true, use legacy v2 signing. If false (default), use modern v4 signing
S3UsesV2Signing bool
S3RemoveDeleted bool
S3ObjectLockDays int
SFTPServer string
SFTPUsername string
// The directory on the SFTP server in which data is stored.
SFTPRemotePath string
// One of the DESTINATION_SFTP_AUTHMODE_ constants
SFTPAuthMode SftpAuthMode
// For use with DESTINATION_SFTP_AUTHMODE_PASSWORD only: the SSH password to connect with
SFTPPassword string
// For use with DESTINATION_SFTP_AUTHMODE_PRIVATEKEY only: the SSH private key to connect with, in
// OpenSSH format.
SFTPPrivateKey string
// If true, then the SFTPCustomAuth_KnownHostsFile will be used to verify the remote SSH server's
// host key, using Trust On First Use (TOFU).
SFTPCustomAuth_UseKnownHostsFile bool
// If SFTPCustomAuth_UseKnownHostFile is true, the path to the SSH known_hosts file.
SFTPCustomAuth_KnownHostsFile string
FTPServer string
FTPUsername string
FTPPassword string
// If true, store data in the default home directory given by the FTP server. If false, store data
// in the FTPCustomBaseDirectory path.
FTPBaseUseHomeDirectory bool
// If FTPBaseUseHomeDirectory is false, this field controls the path where data is stored.
FTPCustomBaseDirectory string
// Control whether this is plaintext FTP or secure FTPS by using one of the FTPS_MODE_ constants.
FTPSMode FtpsModeType
FTPPort int
// If set to zero, uses a system default value that is not unlimited.
FTPMaxConnections int
FTPAcceptInvalidSSL bool
AZBAccountName string
AZBAccountKey string
AZBContainer string
// The base URL for the Azure Blob Storage service. Leave blank to use the global default URL.
AZBRealm string
AZBPrefix string
LocalcopyPath string
// If logging in to a Windows network share (SMB/CIFS) is required, enter the username here.
LocalcopyWinSMBUsername string
// If logging in to a Windows network share (SMB/CIFS) is required, enter the password here. The
// password may be hashed as per the LocalcopyWinSMBPasswordFormat field.
LocalcopyWinSMBPassword string
// One of the PASSWORD_FORMAT_ constants. It controls the hash format of the
// LocalcopyWinSMBPassword field.
LocalcopyWinSMBPasswordFormat uint64
Swift SwiftDestinationLocation
B2 B2DestinationLocation
Storj StorjDestinationLocation
// A list of underlying destinations, that will be combined and presented as one.
SpanTargets []DestinationLocation
// If true, this Spanned destination will use a consistent hashing scheme
// to immediately find specific files on exactly one of the target destinations.
// In the Static Slots mode, the span targets cannot be moved or merged, and
// the files must always remain in their original location.
//
// If false, the Spanned destination system will search all targets to find
// the requested file. This is slightly slower, but allows you to freely merge,
// split, and reorder the underlying destination locations.
//
// The default option is false.
SpanUseStaticSlots bool
// One of the ENCRYPTIONMETHOD_ constants
EncryptionKeyEncryptionMethod uint64
EncryptedEncryptionKey string
// Unix timestamp in seconds. If zero, the Storage Vault has not yet been initialized for the first
// time.
RepoInitTimestamp int64
// Storage Vault quota
StorageLimitEnabled bool
// Storage Vault quota
StorageLimitBytes int64
Statistics DestinationStatistics `json:",omitempty"`
// Configure the retention policy for this Storage Vault. The rules will be applied to any snapshot
// inside this Storage Vault, unless that snapshot belongs to a Protected Item source that has an
// overriding retention policy.
DefaultRetention RetentionPolicy
// The "Prevent users from viewing the actual storage type" option
RebrandStorage bool
}
type DestinationLocation ¶
type DestinationLocation struct {
// One of the DESTINATIONTYPE_ constants
DestinationType uint64
// The URL for the target Comet Server Storage Role, including http/https and trailing slash
CometServer string
CometBucket string
CometBucketKey string
S3Server string
S3UsesTLS bool
S3AccessKey string
S3SecretKey string
S3BucketName string
S3Subdir string
S3CustomRegion string
// If true, use legacy v2 signing. If false (default), use modern v4 signing
S3UsesV2Signing bool
S3RemoveDeleted bool
S3ObjectLockDays int
SFTPServer string
SFTPUsername string
// The directory on the SFTP server in which data is stored.
SFTPRemotePath string
// One of the DESTINATION_SFTP_AUTHMODE_ constants
SFTPAuthMode SftpAuthMode
// For use with DESTINATION_SFTP_AUTHMODE_PASSWORD only: the SSH password to connect with
SFTPPassword string
// For use with DESTINATION_SFTP_AUTHMODE_PRIVATEKEY only: the SSH private key to connect with, in
// OpenSSH format.
SFTPPrivateKey string
// If true, then the SFTPCustomAuth_KnownHostsFile will be used to verify the remote SSH server's
// host key, using Trust On First Use (TOFU).
SFTPCustomAuth_UseKnownHostsFile bool
// If SFTPCustomAuth_UseKnownHostFile is true, the path to the SSH known_hosts file.
SFTPCustomAuth_KnownHostsFile string
FTPServer string
FTPUsername string
FTPPassword string
// If true, store data in the default home directory given by the FTP server. If false, store data
// in the FTPCustomBaseDirectory path.
FTPBaseUseHomeDirectory bool
// If FTPBaseUseHomeDirectory is false, this field controls the path where data is stored.
FTPCustomBaseDirectory string
// Control whether this is plaintext FTP or secure FTPS by using one of the FTPS_MODE_ constants.
FTPSMode FtpsModeType
FTPPort int
// If set to zero, uses a system default value that is not unlimited.
FTPMaxConnections int
FTPAcceptInvalidSSL bool
AZBAccountName string
AZBAccountKey string
AZBContainer string
// The base URL for the Azure Blob Storage service. Leave blank to use the global default URL.
AZBRealm string
AZBPrefix string
LocalcopyPath string
// If logging in to a Windows network share (SMB/CIFS) is required, enter the username here.
LocalcopyWinSMBUsername string
// If logging in to a Windows network share (SMB/CIFS) is required, enter the password here. The
// password may be hashed as per the LocalcopyWinSMBPasswordFormat field.
LocalcopyWinSMBPassword string
// One of the PASSWORD_FORMAT_ constants. It controls the hash format of the
// LocalcopyWinSMBPassword field.
LocalcopyWinSMBPasswordFormat uint64
Swift SwiftDestinationLocation
B2 B2DestinationLocation
Storj StorjDestinationLocation
// A list of underlying destinations, that will be combined and presented as one.
SpanTargets []DestinationLocation
// If true, this Spanned destination will use a consistent hashing scheme
// to immediately find specific files on exactly one of the target destinations.
// In the Static Slots mode, the span targets cannot be moved or merged, and
// the files must always remain in their original location.
//
// If false, the Spanned destination system will search all targets to find
// the requested file. This is slightly slower, but allows you to freely merge,
// split, and reorder the underlying destination locations.
//
// The default option is false.
SpanUseStaticSlots bool
}
DestinationLocation describes the underlying storage location for a Storage Vault. Prior to Comet 17.3.3 this was an embedded part of the DestinationConfig type. This struct is available in Comet 17.3.3 and later.
type DestinationStatistics ¶
type DestinationStatistics struct {
ClientProvidedSize SizeMeasurement
ClientProvidedContent ContentMeasurement
LastSuccessfulDeepVerify_GUID string `json:",omitempty"`
// Unix timestamp in seconds
LastSuccessfulDeepVerify_StartTime int64 `json:",omitempty"`
// Unix timestamp in seconds
LastSuccessfulDeepVerify_EndTime int64 `json:",omitempty"`
}
type DeviceConfig ¶
type DeviceConfig struct {
FriendlyName string
// Unix timestamp in seconds
RegistrationTime int64 `json:",omitempty"`
// The operating system that the device uses.
PlatformVersion OSInfo `json:",omitempty"`
// Minimal information about the device's private Protected Items, so that other devices can safely
// run retention passes on a shared Storage Vault.
Sources map[string]SourceBasicInfo `json:",omitempty"`
// The device's reported timezone in IANA format.
DeviceTimezone string `json:",omitempty"`
}
type DispatcherStoredObjectsResponse ¶
type DispatcherStoredObjectsResponse struct {
// If the operation was successful, the status will be in the 200-299 range.
Status int
Message string
StoredObjects []StoredObject
}
type DispatcherVaultSnapshotsResponse ¶
type DispatcherVaultSnapshotsResponse struct {
// If the operation was successful, the status will be in the 200-299 range.
Status int
Message string
Snapshots []VaultSnapshot
}
type EDBFileInfo ¶
type EmailDeliveryType ¶
type EmailDeliveryType string
const EMAIL_DELIVERY_BUILTIN EmailDeliveryType = EMAIL_DELIVERY_MX_DIRECT
EmailDeliveryType: Legacy alias for EMAIL_DELIVERY_MX_DIRECT
const EMAIL_DELIVERY_DISABLED EmailDeliveryType = "disabled"
EmailDeliveryType
const EMAIL_DELIVERY_INHERIT EmailDeliveryType = ""
EmailDeliveryType: If this is for the top-level Organization, email is disabled. If this is for an Organization, use the parent's email settings.
const EMAIL_DELIVERY_MX_DIRECT EmailDeliveryType = "builtin"
EmailDeliveryType
const EMAIL_DELIVERY_NONE EmailDeliveryType = EMAIL_DELIVERY_INHERIT
EmailDeliveryType: Legacy alias for EMAIL_DELIVERY_INHERIT Deprecated: This const has been deprecated since Comet version 22.12.1
const EMAIL_DELIVERY_SMTP EmailDeliveryType = "smtp"
EmailDeliveryType
const EMAIL_DELIVERY_SMTP_SSL EmailDeliveryType = "smtp-ssl"
EmailDeliveryType
type EmailOptions ¶
type EmailOptions struct {
FromEmail string
FromName string
// One of the EMAIL_DELIVERY_ constants
Mode EmailDeliveryType
EmailReportingOptions []EmailReportingOption `json:",omitempty"`
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 {
// One of the EMAILREPORTTYPE_ constants
ReportType EmailReportType
// Used as a list of scheduled times to send
SummaryFrequency []ScheduleConfig
// Used to the determine the time bounds of a report
TimeSpan TimeSpan `json:",omitempty"`
Filter SearchClause
}
type EmailReportType ¶
type EmailReportType int
const EMAILREPORTTYPE_GROUPED_STATUS EmailReportType = 2
EmailReportType
const EMAILREPORTTYPE_IMMEDIATE EmailReportType = 0
EmailReportType
const EMAILREPORTTYPE_RECENT_ACTIVITY EmailReportType = 3
EmailReportType
const EMAILREPORTTYPE_SUMMARY EmailReportType = 1
EmailReportType
type EmailReportingOption ¶ added in v1.2.0
type EmailReportingOption struct {
EmailReportConfig EmailReportConfig
LanguageCode LanguageCode
LocalTimezone string
Recipients []string
}
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"`
Storj StorjVirtualStorageRoleSetting `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 {
// The glob or regular expression to exclude from backup jobs
Exclude string
// Choose whether the 'Exclude' parameter will be treated as a regular expression (true) or a glob
// (false)
Regex bool
// Either OS_ANY or one of the OS_ONLY constants
RestrictOS ExtraFileExclusionOSRestriction
}
type ExtraFileExclusionOSRestriction ¶
type ExtraFileExclusionOSRestriction int
const OS_ANY ExtraFileExclusionOSRestriction = 0
ExtraFileExclusionOSRestriction: Applies to any device
const OS_ONLY_LINUX ExtraFileExclusionOSRestriction = 5
ExtraFileExclusionOSRestriction: Applies to Linux devices (including Synology DSM), regardless of CPU type
const OS_ONLY_MACOS ExtraFileExclusionOSRestriction = 4
ExtraFileExclusionOSRestriction: Applies to macOS devices, regardless of CPU type
const OS_ONLY_WINDOWS ExtraFileExclusionOSRestriction = 1
ExtraFileExclusionOSRestriction: Applies to all Windows devices, regardless of CPU type
const OS_ONLY_WINDOWS_X8632 ExtraFileExclusionOSRestriction = 2
ExtraFileExclusionOSRestriction: Applies to Windows devices with x86_32 CPU
const OS_ONLY_WINDOWS_X8664 ExtraFileExclusionOSRestriction = 3
ExtraFileExclusionOSRestriction: Applies to Windows devices with x86_64 CPU
type FTPDestinationLocation ¶
type FTPDestinationLocation struct {
FTPServer string
FTPUsername string
FTPPassword string
// If true, store data in the default home directory given by the FTP server. If false, store data
// in the FTPCustomBaseDirectory path.
FTPBaseUseHomeDirectory bool
// If FTPBaseUseHomeDirectory is false, this field controls the path where data is stored.
FTPCustomBaseDirectory string
// Control whether this is plaintext FTP or secure FTPS by using one of the FTPS_MODE_ constants.
FTPSMode FtpsModeType
FTPPort int
// If set to zero, uses a system default value that is not unlimited.
FTPMaxConnections int
FTPAcceptInvalidSSL bool
}
type FileOption ¶ added in v1.7.0
type FileOption struct {
// The prefix for the log filename. It will be stored in the same file location as the Comet Server
// log files
Filename string
// Configure a subset of allowed event types (see SEVT_ constants). If the array is empty, all
// events will be sent
AllowEventTypes []StreamableEventType `json:",omitempty"`
// One of the STREAM_LEVEL_ constants. This controls how much data is logged into the file
Level StreamLevel `json:",omitempty"`
// Enables pruning of log files
PruningEnabled bool `json:",omitempty"`
// Limit in days to keep log files when PruningEnabled is set to true. If not set or 0, uses
// server's PruneLogsAfterDays
PruningLimit int `json:",omitempty"`
}
FileOption defines the configuration for Comet Server to log live events to a file. See the SEVT_ constants for more information. This struct is available in Comet 23.3.7 and later.
type FtpsModeType ¶
type FtpsModeType int
const FTPS_MODE_EXPLICIT FtpsModeType = 2
FtpsModeType: Use explicit FTPS, first creating an insecure connection and then upgrading to SSL/TLS using AUTH TLS (like STARTTLS).
const FTPS_MODE_IMPLICIT FtpsModeType = 1
FtpsModeType: Use implicit FTPS, immediately creating a secure SSL/TLS channel before any data is sent. This usually requires a different port on the FTP server. It is generally advised to use explicit mode instead.
const FTPS_MODE_PLAINTEXT FtpsModeType = 0
FtpsModeType: Use plain FTP, do not use FTPS.
type GetGroupPolicyResponse ¶
type GetGroupPolicyResponse struct {
// If the operation was successful, the status will be in the 200-299 range.
Status int
Message string
Policy GroupPolicy
PolicyHash string
}
type GetProfileAndHashResponseMessage ¶
type GetProfileAndHashResponseMessage struct {
// If the operation was successful, the status will be in the 200-299 range.
Status int
Message string
// A hash identifier for the current state of the user's profile. If you supply this in the
// AdminSetUserProfileHash API, the server can safely reject your change if another change has
// happened concurrently. This allows you to retry the request.
ProfileHash string
Profile UserProfileConfig
}
type GlobalOverrideOptions ¶
type GlobalOverrideOptions struct {
RandomDelaySecs uint64 `json:",omitempty"`
}
type GroupPolicy ¶
type GroupPolicy struct {
Description string
OrganizationID string
Policy UserPolicy
// DefaultUserPolicy marks that this UserPolicy should be applied to all new users. The Comet
// Server will ensure that only one policy can be set as default.
DefaultUserPolicy bool
// Unix timestamp in seconds. May be zero for Policies created prior to Comet 23.3.3.
CreatedDate int64
// Unix timestamp in seconds. May be zero for Policies created prior to Comet 23.3.3.
ModifiedDate int64
}
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 HyperVMachineInfo ¶
type InstallCreds ¶
type InstallToken ¶
type InstallTokenResponse ¶
type InstallTokenResponse struct {
// If the operation was successful, the status will be in the 200-299 range.
Status int
Message string
InstallToken InstallToken
}
type JobClassification ¶
type JobClassification uint64
const JOB_CLASSIFICATION_BACKUP JobClassification = 4001
JobClassification: This is a backup job.
const JOB_CLASSIFICATION_DEEPVERIFY JobClassification = 4010
JobClassification: Deep Verify
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: Importing settings from another installed product
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: This is a restore job.
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: All BackupJobDetail.Classification fields will fall in the 4xxx range.
type JobEntry ¶
type JobEntry struct {
// Unix timestamp in seconds
Time int64
// One of the SEVERITY_ constants.
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: If the BackupJobDetail.Status field is a 7xxx code, the job has stopped for an unsuccessful reason.
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: If the BackupJobDetail.Status field is a 6xxx code, the job is still running.
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: If the BackupJobDetail.Status field is a 5xxx code, the job has stopped for a successful reason.
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 LiveUserConnection ¶
type LiveUserConnection struct {
Username string
DeviceID string
// The Comet Backup software version that this live-connected device reports that it is running. It
// takes the format "MAJOR.MINOR.PATCH", such as "23.2.0". See the APPLICATION_VERSION constant for
// more information.
ReportedVersion string
// The operating system of the device. It is one of the PLATFORM_ constants; then a forwardslash
// (/); then the device's GOARCH.
ReportedPlatform string
// The operating system of the device, in extended detail.
ReportedPlatformVersion OSInfo `json:",omitempty"`
// The reported timezone of the device, in IANA format.
DeviceTimeZone string `json:",omitempty"`
// The live-connected device's remote IP address, as seen from the Comet Server.
IPAddress string `json:",omitempty"`
// Unix timestamp, in seconds.
ConnectionTime int64
// The current state of the "Allow administrator to view my files" client-side option. If this
// option is refused, some live-connected actions will be refused by the device.
AllowsFilenames bool
}
type LiveUserConnectionID ¶
type LiveUserConnectionID string
type LiveUserConnectionMap ¶
type LiveUserConnectionMap map[LiveUserConnectionID]LiveUserConnection
type LocalDestinationLocation ¶
type LocalDestinationLocation struct {
LocalcopyPath string
// If logging in to a Windows network share (SMB/CIFS) is required, enter the username here.
LocalcopyWinSMBUsername string
// If logging in to a Windows network share (SMB/CIFS) is required, enter the password here. The
// password may be hashed as per the LocalcopyWinSMBPasswordFormat field.
LocalcopyWinSMBPassword string
// One of the PASSWORD_FORMAT_ constants. It controls the hash format of the
// LocalcopyWinSMBPassword field.
LocalcopyWinSMBPasswordFormat uint64
}
type LocalStorageDirectory ¶
type LocalStorageDirectory struct {
Path string
}
type MSSQLAuthMode ¶
type MSSQLAuthMode string
const MSSQL_AUTH_NATIVE MSSQLAuthMode = "native"
MSSQLAuthMode
const MSSQL_AUTH_WINDOWS MSSQLAuthMode = "windows"
MSSQLAuthMode
type MSSQLConnection ¶
type MSSQLLoginArgs ¶ added in v1.1.0
type MSSQLLoginArgs struct {
Instance string
AuthMode MSSQLAuthMode
Username string
Password string
MethodIsOledb32Bit bool
// If this MSSQLLoginArgs structure is used for a restore job (RestoreJobAdvancedOptions) using
// RESTORETYPE_MSSQL, then, this field controls the RECOVERY / NO RECOVERY option state.
RestoreNoRecovery bool
}
type MSSQLMethod ¶
type MSSQLMethod string
const MSSQL_METHOD_OLEDB_32 MSSQLMethod = "OLEDB_32"
MSSQLMethod: On Windows x86_64, use an x86_32 OLEDB driver.
const MSSQL_METHOD_OLEDB_NATIVE MSSQLMethod = "OLEDB_NATIVE"
MSSQLMethod: On Windows x86_64, use the native x86_64 driver.
type MSSQLRestoreOpt ¶ added in v1.1.0
type MSSQLRestoreOpt string
const MSSQL_RESTORE_NORECOVERY MSSQLRestoreOpt = "NO_RECOVERY"
MSSQLRestoreOpt
const MSSQL_RESTORE_RECOVERY MSSQLRestoreOpt = "RECOVERY"
MSSQLRestoreOpt
type MacOSCodeSignProperties ¶
type MacOSCodeSignProperties struct {
// One of the MACOSCODESIGN_LEVEL_ constants
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: Sign only
const MACOSCODESIGN_LEVEL_SIGN_NOTARISE MacOSCodesignLevel = 1
MacOSCodesignLevel: Sign and notarize
const MACOSCODESIGN_LEVEL_SIGN_NOTARISE_STAPLE MacOSCodesignLevel = 2
MacOSCodesignLevel: Sign, notarize, and staple
type MongoDBConnection ¶
type MongoDBConnection struct {
Server string
Port int
Username string
Password string
AuthenticationDB string
// Prior to Comet 22.12.3, must be a filesystem path to `mongo` (n.b. not `mongosh`). In Comet >=
// 22.12.3, not used.
// Deprecated: This member has been deprecated since Comet version 22.12.3
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 NewBucketDetail ¶
type NewsEntries ¶
type Office365Connection ¶
type Office365Connection struct {
FeatureFlag string
Credential Office365Credential
CustomSetting Office365CustomSetting
MailboxUniqueMembers []string
SiteUniqueMembers []string
CustomSettingV2 Office365CustomSettingV2
}
type Office365Credential ¶
type Office365CustomSetting ¶
type Office365CustomSetting struct {
MailboxStrategy string
SiteStrategy string
MailboxUserIDs []string
MailboxGroupIDs []string
SiteIDs []string
}
Office365CustomSetting is used in the EngineProps for an Office 365 Protected Item (see ENGINE_BUILTIN_MSOFFICE). If present, it will be automatically converted to the replacement Office365CustomSettingV2 type. Deprecated: This struct has been deprecated since Comet version 21.9.xx
type Office365CustomSettingV2 ¶
type Office365CustomSettingV2 struct {
// If true, then backup the entire Office 365 Tenant except the selected members. If false, backup
// the selected members only.
Organization bool
// Key can be the ID of user, group or SharePoint
// Value is a bitset of the SERVICE_ constants, to select which services to back up for this
// member.
BackupOptions map[string]uint `json:",omitempty"`
// Key must be a group ID
// Value is a bitset of the SERVICE_ constants, to select which services to back up for this
// member.
MemberBackupOptions map[string]uint `json:",omitempty"`
}
Office365CustomSettingV2 is used in the EngineProps for an Office 365 Protected Item (see ENGINE_BUILTIN_MSOFFICE). This struct is available in Comet 21.9.xx and later.
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 Organization ¶
type Organization struct {
AuditFileOptions map[string]FileOption
Branding BrandingOptions
ConstellationRole ConstellationRoleOptions
Email EmailOptions
ExperimentalOptions []string `json:",omitempty"`
Hosts []string
Name string
IsSuspended bool
PSAConfigs []PSAConfig
RemoteStorage []RemoteStorageOption
SoftwareBuildRole SoftwareBuildRoleOptions
WebhookOptions map[string]WebhookOption
}
type OrganizationLoginURLResponse ¶ added in v1.1.0
type OrganizationLoginURLResponse struct {
LoginURL string
}
type OrganizationResponse ¶
type OrganizationResponse struct {
Status int
Message string
ID string
Organization Organization
}
type PSAType ¶ added in v1.1.0
type PSAType int
const PSA_TYPE_GENERIC PSAType = 0
PSAType
const PSA_TYPE_GRADIENT PSAType = 1
PSAType
type PrivateBrandingProperties ¶
type PrivateBrandingProperties struct {
BuildMode ClientBrandingBuildMode
PathIcoFile string
PathIcnsFile string
PathMenuBarIcnsFile string
PathEulaRtf string
PathTilePng string
PathHeaderImage string
PathAppIconImage string
PackageIdentifier string
WindowsCodeSignMethod WindowsCodesignMethod
WindowsCodeSignPKCS12FilePath string
WindowsCodeSignPKCS12PasswordFormat uint64
WindowsCodeSignPKCS12Password string
WindowsCodeSignPKCS11Engine string
WindowsCodeSignPKCS11Module string
// Deprecated: This member has been deprecated since Comet version 22.12.7
WindowsCodeSignPKCS11Certfile string
WindowsCodeSignPKCS11KeyID string
WindowsCodeSignPKCS11PasswordFormat uint64
WindowsCodeSignPKCS11Password string
WindowsCodeSignAzureVaultName string
WindowsCodeSignAzureCertName string
WindowsCodeSignAzureAppID string
WindowsCodeSignAzureAppSecretFormat uint64
WindowsCodeSignAzureAppSecret string
WindowsCodeSignAzureTenantID string
MacOSCodeSign MacOSCodeSignProperties
}
type RatelimitOptions ¶
type RatelimitOptions struct {
Rules []RatelimitRule `json:",omitempty"`
}
type RatelimitRule ¶
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"`
Storj StorjVirtualStorageRoleSetting `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_STORJ RemoteServerType = "storj"
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"`
Storj StorjVirtualStorageRoleSetting `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"`
Storj StorjVirtualStorageRoleSetting `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 RestoreArchiveFormat ¶
type RestoreArchiveFormat int
const RESTOREARCHIVEFORMAT_SQFS RestoreArchiveFormat = 3
RestoreArchiveFormat: SquashFS container
const RESTOREARCHIVEFORMAT_TAR RestoreArchiveFormat = 0
RestoreArchiveFormat: Tar file format
const RESTOREARCHIVEFORMAT_TARGZ RestoreArchiveFormat = 1
RestoreArchiveFormat: Compressed Tar.gz (.tgz) file format
const RESTOREARCHIVEFORMAT_TARZSTD RestoreArchiveFormat = 4
RestoreArchiveFormat: Compressed Tar.zstd (.tzst) file format
const RESTOREARCHIVEFORMAT_ZIP RestoreArchiveFormat = 2
RestoreArchiveFormat: Zip file format
type RestoreJobAdvancedOptions ¶
type RestoreJobAdvancedOptions struct {
// One of the RESTORETYPE_ constants
Type RestoreType
// For RESTORETYPE_FILE
OverwriteExistingFiles bool
// For RESTORETYPE_FILE. If set, OverwriteExistingFiles must be true
OverwriteIfNewer bool
// For RESTORETYPE_FILE. If set, DestPath must be blank
DestIsOriginalLocation bool
// For RESTORETYPE_FILE or RESTORETYPE_PROCESS_xxx
DestPath string
// For RESTORETYPE_WINDISK only. Must have one entry for each selected restore path
ExactDestPaths []string
// For RESTORETYPE_FILE_ARCHIVE or RESTORETYPE_PROCESS_ARCHIVE. Default 0 is *.tar, for backward
// compatibility
ArchiveFormat RestoreArchiveFormat
// For RESTORETYPE_OFFICE365_CLOUD.
Office365Credential RestoreOffice365Credential `json:",omitempty"`
// For RESTORETYPE_MYSQL
Username string
// For RESTORETYPE_MYSQL
Password string
// For RESTORETYPE_MYSQL
Host string
// For RESTORETYPE_MYSQL
Port string
// For RESTORETYPE_MYSQL
UseSsl bool
// For RESTORETYPE_MYSQL i.e.: Self signed certs
SslAllowInvalid bool
// For RESTORETYPE_MYSQL
SslCaFile string
// For RESTORETYPE_MYSQL
SslCrtFile string
// For RESTORETYPE_MYSQL
SslKeyFile string
// For RESTORETYPE_MSSQL.
MsSqlConnection MSSQLLoginArgs `json:",omitempty"`
}
type RestoreOffice365Credential ¶
type RestoreOffice365Credential Office365Credential
type RestoreType ¶
type RestoreType int
const RESTORETYPE_FILE RestoreType = 0
RestoreType: Restore as files and folders
const RESTORETYPE_FILE_ARCHIVE RestoreType = 5
RestoreType: Restore selected files and folders as a single compressed archive
const RESTORETYPE_INVALID RestoreType = -1
RestoreType
const RESTORETYPE_MSSQL RestoreType = 11
RestoreType: Stream restore as T-SQL BACKUP output into a target Microsoft SQL Server
const RESTORETYPE_MYSQL RestoreType = 10
RestoreType: Stream restore as SQL statements into a target MySQL server
const RESTORETYPE_NULL RestoreType = 1
RestoreType: Download and reconstruct files, but do not save them (for test purposes)
const RESTORETYPE_OFFICE365_CLOUD RestoreType = 6
RestoreType: Restore selected Office 365 emails, contacts, calendars, and SharePoint/OneDrive data directly to the Office 365 cloud service
const RESTORETYPE_PROCESS_ARCHIVE RestoreType = 3
RestoreType: Stream an archive of each restored file into the target command stdin. The target command will be executed only once.
const RESTORETYPE_PROCESS_PERFILE RestoreType = 2
RestoreType: Stream each restored file into the target command stdin. The target command may be executed multiple times, once for each restored file.
const RESTORETYPE_PROCESS_TARBALL RestoreType = 3
RestoreType: Legacy name alias - Prefer to use RESTORETYPE_PROCESS_ARCHIVE since multiple archive file formats are supported within this single RESTORETYPE_
const RESTORETYPE_VMDK_FILE RestoreType = 7
RestoreType: Granular restore of single files from within a Disk Image or Hyper-V backup
const RESTORETYPE_VMDK_FILE_ARCHIVE RestoreType = 9
RestoreType: Granular restore of single files from within a Disk Image or Hyper-V backup, creating an archive file of all selected files
const RESTORETYPE_VMDK_FILE_NULL RestoreType = 8
RestoreType: Granular restore of single files from within a Disk Image or Hyper-V backup, downloading and reconstructing files, but without saving them (for test purposes)
const RESTORETYPE_WINDISK RestoreType = 4
RestoreType: Restore partitions back to the physical disk
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 {
// One of the RETENTIONMODE_ constants
Mode RetentionMode
Ranges []RetentionRange
}
type RetentionRange ¶
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 Deprecated: This const has been deprecated since Comet version 17.2.0
type S3DestinationLocation ¶
type S3DestinationLocation struct {
S3Server string
S3UsesTLS bool
S3AccessKey string
S3SecretKey string
S3BucketName string
S3Subdir string
S3CustomRegion string
// If true, use legacy v2 signing. If false (default), use modern v4 signing
S3UsesV2Signing bool
S3RemoveDeleted bool
S3ObjectLockDays int
}
type SFTPDestinationLocation ¶
type SFTPDestinationLocation struct {
SFTPServer string
SFTPUsername string
// The directory on the SFTP server in which data is stored.
SFTPRemotePath string
// One of the DESTINATION_SFTP_AUTHMODE_ constants
SFTPAuthMode SftpAuthMode
// For use with DESTINATION_SFTP_AUTHMODE_PASSWORD only: the SSH password to connect with
SFTPPassword string
// For use with DESTINATION_SFTP_AUTHMODE_PRIVATEKEY only: the SSH private key to connect with, in
// OpenSSH format.
SFTPPrivateKey string
// If true, then the SFTPCustomAuth_KnownHostsFile will be used to verify the remote SSH server's
// host key, using Trust On First Use (TOFU).
SFTPCustomAuth_UseKnownHostsFile bool
// If SFTPCustomAuth_UseKnownHostFile is true, the path to the SSH known_hosts file.
SFTPCustomAuth_KnownHostsFile string
}
type SSHAuthMode ¶
type SSHAuthMode uint64
const SSHCONNECTION_AUTHMODE_PASSWORD SSHAuthMode = 1
SSHAuthMode
const SSHCONNECTION_AUTHMODE_PRIVATEKEY SSHAuthMode = 2
SSHAuthMode
const SSHCONNECTION_AUTHMODE__INVALID SSHAuthMode = 0
SSHAuthMode
type SSHConnection ¶
type SSHConnection struct {
SSHServer string
SSHUsername string
// One of the SSHCONNECTION_AUTHMODE_ constants
SSHAuthMode SSHAuthMode
// For use with SSHCONNECTION_AUTHMODE_PASSWORD only: the SSH password to connect with
SSHPassword string
// For use with SSHCONNECTION_AUTHMODE_PRIVATEKEY only: the SSH private key to connect with, in
// OpenSSH format.
SSHPrivateKey string
// If true, then the SSHCustomAuth_KnownHostsFile will be used to verify the remote SSH server's
// host key, using Trust On First Use (TOFU).
SSHCustomAuth_UseKnownHostsFile bool
// If SSHCustomAuth_UseKnownHostsFile is true, the path to the SSH known_hosts file.
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 SearchResultFileInfo ¶ added in v1.5.0
type SearchResultFileInfo struct {
// Path to the file within the selected snapshot, using forwardslash (/) separators
Path string `json:"path"`
// Filename
Name string `json:"name"`
// One of the STOREDOBJECTTYPE_ constants
Type string `json:"type"`
Mode string `json:"mode,omitempty"`
// Timestamp in RFC3339 format with subsecond precision and time zone offset. See the Golang
// time.RFC3339Nano for more information.
ModTime string `json:"mtime,omitempty"`
// Timestamp in RFC3339 format with subsecond precision and time zone offset. See the Golang
// time.RFC3339Nano for more information.
AccessTime string `json:"atime,omitempty"`
// Timestamp in RFC3339 format with subsecond precision and time zone offset. See the Golang
// time.RFC3339Nano for more information.
ChangeTime string `json:"ctime,omitempty"`
// Bytes
Size uint64 `json:"size,omitempty"`
}
SearchResultFileInfo describes a single result entry when searching for files within a Storage Vault snapshot.
type SearchSnapshotsResponse ¶ added in v1.5.0
type SearchSnapshotsResponse struct {
// If the operation was successful, the status will be in the 200-299 range.
Status int
Message string
SnapshotFiles map[string][]SearchResultFileInfo
}
type SelfBackupExportOptions ¶ added in v1.1.0
type SelfBackupExportOptions struct {
Location DestinationLocation
EncryptionKey string
EncryptionKeyFormat uint64
// One of the COMPRESS_LVL_ constants
Compression CompressMode
// The jobs database is often the largest component of the Server Self-Backup archive. By excluding
// it, you could run the Server Self-Backup more often.
ExcludeJobsDB bool
IncludeServerLogs bool
RestrictToSingleOrgID string `json:",omitempty"`
Index int
}
type SelfBackupOptions ¶
type SelfBackupOptions struct {
Targets []SelfBackupTarget
}
type SelfBackupStatistics ¶
type SelfBackupTarget ¶
type SelfBackupTarget struct {
Schedule []ScheduleConfig
// Timezone in IANA format
ScheduleTimezone string
RetentionPolicy RetentionPolicy
Location DestinationLocation
EncryptionKey string
EncryptionKeyFormat uint64
// One of the COMPRESS_LVL_ constants
Compression CompressMode
// The jobs database is often the largest component of the Server Self-Backup archive. By excluding
// it, you could run the Server Self-Backup more often.
ExcludeJobsDB bool
IncludeServerLogs bool
RestrictToSingleOrgID string `json:",omitempty"`
Index int
}
type ServerConfigOptions ¶
type ServerConfigOptions struct {
AdminUsers []AllowedAdminUser
AuthenticationRole AuthenticationRoleOptions
Branding BrandingOptions
ConstellationRole ConstellationRoleOptions
// This field is defined for compatibility with 17.x.x versions of Comet Server. Do not rely on
// this field. In Comet 23.2.x, if this field is defined, it is imported into the replacement
// 'ConstellationRole' field under the assumption that you are upgrading this Comet Server from a
// 17.x.x version. In Comet 23.3.x and later, this field is ignored and will not be respected
// during the import process.
ConstellationRole_Legacy ConstellationRoleOptions `json:"OverseerRole,omitempty"`
Email EmailOptions
// An array of GUIDs that can enable additional early-access functionality
ExperimentalOptions []string `json:",omitempty"`
ExternalAdminUserSources map[string]ExternalAuthenticationSource
IPRateLimit RatelimitOptions
License LicenseOptions
// Configure ip, port, and SSL settings for this self-hosted Comet Server.
ListenAddresses []HTTPConnectorOptions
// Tenants
Organizations map[string]Organization
PSAConfigs []PSAConfig
// Automatically create backup zip files of this Comet Server's configuration
SelfBackup SelfBackupOptions
// Control how long admin accounts can remain logged in to the Comet Server web interface
SessionSettings SessionOptions
SoftwareBuildRole SoftwareBuildRoleOptions
StorageRole StorageRoleOptions
// If true, the X-Forwarded-For header will be trusted for the purposes of IP allowlisting. This
// should only be enabled when you explicitly configure Comet Server behind a reverse proxy,
// otherwise it could allow malicious users to bypass the IP allowlist.
TrustXForwardedFor bool
WebhookOptions map[string]WebhookOption
AuditFileOptions map[string]FileOption
}
type ServerConfigOptionsBrandingFragment ¶
type ServerConfigOptionsBrandingFragment struct {
Branding BrandingOptions
}
type ServerConfigOptionsSoftwareBuildRoleFragment ¶
type ServerConfigOptionsSoftwareBuildRoleFragment struct {
SoftwareBuildRole SoftwareBuildRoleOptions
}
type ServerMetaBrandingProperties ¶
type ServerMetaBrandingProperties struct {
BrandName string
ProductName string
// If true, this Comet Server has an image configured for its main logo. You can access it from the
// /gen/logo.img endpoint. If false, this Comet Server has text configured for its main logo.
HasImage bool
// A value that will change if the branding image (/gen/logo.img) changes. You can use this as a
// cache key.
ImageEtag string
TopColor string
AccentColor 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
// Deprecated: This member has been deprecated since Comet version 18.2.0 "Overseer Role" was the old name for the Constellation Role. This field is a duplicate of ConstellationRole for backward compatibility with earlier API consumers.
ConstellationRole_Legacy bool `json:"OverseerRole"`
ConstellationRole bool
ExperimentalOptions []string `json:",omitempty"`
// Unix timestamp, in seconds.
ServerStartTime int64
// A GUID that was randomly generated when this Comet Server started up. You can check this value
// to see if the Comet Server has restarted.
ServerStartHash string
// The current time on the Comet Server host machine. Unix timestamp, in seconds. You can check
// this value to see if clock drift is occuring.
CurrentTime int64
// A hash derived from the Comet Server's serial number. You can check this value to see if two
// Comet Server endpoints point to an identical server.
ServerLicenseHash string
ServerLicenseFeaturesAll bool
ServerLicenseFeatureSet uint32
LicenseValidUntil int64
EmailsSentSuccessfully int64
EmailsSentErrors int64
EmailsWaitingInQueue int64
ScheduledEmailThreadCurrentState int64
ScheduledEmailThreadLastCalculateDurationNanos int64
ScheduledEmailThreadWaitingUntil int64
ScheduledEmailThreadLastWakeTime int64
ScheduledEmailThreadLastWakeSentEmails bool
SelfBackup []SelfBackupStatistics
}
type SessionOptions ¶
type SessionOptions struct {
// The number of seconds, after which an administrator should be automatically logged out of the
// Comet Server web interface. If zero, will be replaced with DEFAULT_SESSIONTIMEOUT.
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 SingleFieldSource ¶ added in v1.3.0
type SizeMeasurement ¶
type SourceBasicInfo ¶
type SourceBasicInfo struct {
Description string
O365AccountCount int64
// Bytes
Size int64
OverrideDestinationRetention map[string]RetentionPolicy `json:",omitempty"`
}
type SourceConfig ¶
type SourceConfig struct {
// One of the ENGINE_BUILTIN_ constants
Engine string
Description string
OwnerDevice string
// Unix timestamp in seconds
CreateTime int64
// Unix timestamp in seconds
ModifyTime int64
// Custom commands to run before the job
PreExec []string
// Custom commands to run after taking a disk snapshot
ThawExec []string
// Custom commands to run after the job
PostExec []string
// Configuration for the selected Protected Item type. Each "Engine" supports
// different configuration options for the EngineProps values.
//
// For engine1/file, Comet understands the following EngineProp keys:
//
// - Any key starting with INCLUDE: A path that is included
// - Any key starting with EXCLUDE: An exclusion (glob format)
// - Any key starting with REXCLUDE: An exclusion (regular expression format)
// - Any key starting with PINCLUDE: A SourceIncludePattern type encoded in JSON format, describing
// an advanced inclusion in glob format
// - Any key starting with RINCLUDE: A SourceIncludePattern type encoded in JSON format, describing
// an advanced inclusion in regular expression format
// - Any key starting with SMBAUTH: A set of Windows network share credentials in WinSMBAuth JSON
// format
// - USE_WIN_VSS: If present, the 'Take filesystem snapshot' checkbox is checked
// - CONFIRM_EFS: If present, the 'Dismiss EFS warning' checkbox is checked
// - RESCAN_UNCHANGED: If present, the 'Rescan unchanged files' checkbox is checked
//
// For engine1/mssql, Comet understands the following EngineProp keys:
//
// - ALL_DATABASES: If present, include all databases with specified exclusions. If not present,
// only back up the specified inclusions
// - Any key starting with DATABASE- : A database that is included. Only valid if ALL_DATABASES is
// not present.
// - Any key starting with EXCEPT-DATABASE- : A database that is excluded. Only valid if
// ALL_DATABASES is present.
// - INSTANCE: The Microsoft SQL Server instance name
// - USERNAME: The username to connect to Microsoft SQL Server
// - PASSWORD: The password to connect to Microsoft SQL Server
// - AUTHMODE: Either "windows" or "native" (corresponding to the declared MSSQL_AUTH_WINDOWS and
// MSSQL_AUTH_NATIVE constant values). If not present, use native authentication if the USERNAME
// and/or PASSWORD fields are filled in, use windows authentication if they are blank
// - METHOD: Either "OLEDB_NATIVE" or "OLEDB_32" (corresponding to the declared
// MSSQL_METHOD_OLEDB_NATIVE and MSSQL_METHOD_OLEDB_32 constant values). If not present, defaults
// to Native
// - DIFFBASE: If present, take a "Full (base image)" backup job. Otherwise, take a "Full (copy
// only)" backup job.
// - DIFFERENTIAL: If present, take a "Differential increment" backup job. Otherwise, take a "Full
// (copy only)" backup job.
// - LOGTRUNC: If present, take a "Log (truncating)" backup job. Otherwise, take a "Full (copy
// only)" backup job.
// - LOGNOTRUNC: If present, take a "Log (no truncation)" backup job. Otherwise, take a "Full (copy
// only)" backup job.
//
EngineProps map[string]string
// By default, backup jobs from this Protected Item will be subject
// to the overall retention policy for the Storage Vault. You can override the policy
// for specific Storage Vaults by putting their destination ID as a key here.
OverrideDestinationRetention map[string]RetentionPolicy `json:",omitempty"`
Statistics SourceStatistics `json:",omitempty"`
}
type SourceIncludePattern ¶
type SourceIncludePattern struct {
// The filesystem path to search within, for matches
TopDirectory string
// The pattern (glob or regex format) to match
Value string
}
SourceIncludePattern is used for pattern inclusions for File and Folder Protected Items (ENGINE_BUILTIN_FILE). It should be marshalled as JSON and then stored in the PINCLUDE / RINCLUDE EngineProp keys.
type SourceStatistics ¶
type SourceStatistics struct {
LastBackupJob BackupJobDetail
LastSuccessfulBackupJob BackupJobDetail
}
type SpannedDestinationLocation ¶
type SpannedDestinationLocation struct {
// A list of underlying destinations, that will be combined and presented as one.
SpanTargets []DestinationLocation
// If true, this Spanned destination will use a consistent hashing scheme
// to immediately find specific files on exactly one of the target destinations.
// In the Static Slots mode, the span targets cannot be moved or merged, and
// the files must always remain in their original location.
//
// If false, the Spanned destination system will search all targets to find
// the requested file. This is slightly slower, but allows you to freely merge,
// split, and reorder the underlying destination locations.
//
// The default option is false.
SpanUseStaticSlots bool
}
type SpannedStorageExtraInfo ¶
type SpannedStorageExtraInfo struct {
Targets []StorageFreeSpaceInfo
}
type StatResult ¶
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 StoredObject ¶
type StoredObject struct {
// The name of the stored object. It is unique within this directory tree.
Name string `json:"name"`
// Unix timestamp in seconds
ModifyTime int64 `json:"mtime"`
// One of the STOREDOBJECTTYPE_... constant values
Type string `json:"type"`
// If this StoredObject represents a directory, this value can be used to recursively select the
// directory contents.
Subtree string `json:"subtree"`
// Bytes
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"`
// Unix timestamp in seconds
StartTime int64 `json:"stime,omitempty"`
// Unix timestamp in seconds
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
const STOREDOBJECTTYPE_EMAILMESSAGE StoredObjectType = "emailmessage"
StoredObjectType
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
const STOREDOBJECTTYPE_OFFICECALENDAREVENT StoredObjectType = "calendarevent"
StoredObjectType
const STOREDOBJECTTYPE_OFFICECONTACT StoredObjectType = "contact"
StoredObjectType
const STOREDOBJECTTYPE_OFFICECONTACTFOLDER StoredObjectType = "contactfolder"
StoredObjectType
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_VHDX_GPT_PARTITION StoredObjectType = "vhdxpartitiongpt"
StoredObjectType
const STOREDOBJECTTYPE_VHDX_MBR_PARTITION StoredObjectType = "vhdxpartitionmbr"
StoredObjectType
const STOREDOBJECTTYPE_VIRTUALIMAGE_DISK StoredObjectType = "virtualimagedisk"
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 StorjDestinationLocation ¶ added in v1.0.1
type StorjVirtualStorageRoleSetting ¶ added in v1.0.1
type StreamLevel ¶ added in v1.7.0
type StreamLevel string
const STREAM_LEVEL_FULL StreamLevel = "full"
StreamLevel: Event data contains full data types
const STREAM_LEVEL_NONE StreamLevel = "none"
StreamLevel: Event data contains nothing
type StreamableEvent ¶
type StreamableEventType ¶
type StreamableEventType int
const SEVT_ACCOUNT_ADMIN_LOGIN StreamableEventType = 4153
StreamableEventType: Admin authentication suceeded. Only emitted for non-session requests. Resource is the requested path
const SEVT_ACCOUNT_ADMIN_LOGIN_FAILED StreamableEventType = 4154
StreamableEventType: Admin authentication failed. Only emitted if the admin exists. Resource is the request path
const SEVT_ACCOUNT_ADMIN_NEW StreamableEventType = 4150
StreamableEventType: Admin created. Data is the profile object
const SEVT_ACCOUNT_ADMIN_REMOVED StreamableEventType = 4151
StreamableEventType: Admin deleted
const SEVT_ACCOUNT_ADMIN_SESSION_EXPIRE StreamableEventType = 4157
StreamableEventType: Admin session token expired
const SEVT_ACCOUNT_ADMIN_SESSION_REVOKE StreamableEventType = 4156
StreamableEventType: Admin session token deleted
const SEVT_ACCOUNT_ADMIN_SESSION_START StreamableEventType = 4155
StreamableEventType: Admin session token created. Data is the session object
const SEVT_ACCOUNT_ADMIN_UPDATED StreamableEventType = 4152
StreamableEventType: Admin updated
const SEVT_ACCOUNT_LOGIN StreamableEventType = 4103
StreamableEventType: User authentication succeeded. Only emitted for non-session requests. Resource is the requested path
const SEVT_ACCOUNT_LOGIN_FAILED StreamableEventType = 4104
StreamableEventType: User authentication failed. Only emitted if the user exists. Resource is the requested path
const SEVT_ACCOUNT_NEW StreamableEventType = 4100
StreamableEventType: User created. Data is the profile object
const SEVT_ACCOUNT_REMOVED StreamableEventType = 4101
StreamableEventType: User deleted
const SEVT_ACCOUNT_SESSION_EXPIRE StreamableEventType = 4107
StreamableEventType: User session token expired
const SEVT_ACCOUNT_SESSION_REVOKE StreamableEventType = 4106
StreamableEventType: User session token deleted
const SEVT_ACCOUNT_SESSION_START StreamableEventType = 4105
StreamableEventType: User session token created. Data is the session object
const SEVT_ACCOUNT_UPDATED StreamableEventType = 4102
StreamableEventType: User updated. Data is the profile object
const SEVT_BUCKET_NEW StreamableEventType = 4300
StreamableEventType: New bucket created
const SEVT_BUCKET_REMOVED StreamableEventType = 4301
StreamableEventType: Bucket deleted
const SEVT_DEVICE_LIVE_CONNECT StreamableEventType = 4702
StreamableEventType: Device live connection started
const SEVT_DEVICE_LIVE_DISCONNECT StreamableEventType = 4703
StreamableEventType: Device live connection ended
const SEVT_DEVICE_NEW StreamableEventType = 4700
StreamableEventType: Device created. Data is device object
const SEVT_DEVICE_REMOVED StreamableEventType = 4701
StreamableEventType: Device deleted
const SEVT_JOB_COMPLETED StreamableEventType = 4201
StreamableEventType: Backup job completed. Data is the job object
const SEVT_JOB_NEW StreamableEventType = 4200
StreamableEventType: New backup job started. Data is the job object
const SEVT_META_HELLO StreamableEventType = 4000
StreamableEventType: New websocket connection. Data is typically ServerMetaVersionInfo
const SEVT_POLICY_NEW StreamableEventType = 4600
StreamableEventType: Policy created. Data is the policy object
const SEVT_POLICY_REMOVED StreamableEventType = 4601
StreamableEventType: Policy deleted
const SEVT_POLICY_UPDATED StreamableEventType = 4602
StreamableEventType: Policy updated. Data is the policy object
const SEVT_SERVER_RESTARTED StreamableEventType = 4401
StreamableEventType: Server restarting (pending)
const SEVT_SERVER_SHUTDOWN StreamableEventType = 4402
StreamableEventType: Server shutting down (pending)
const SEVT_SERVER_STARTED StreamableEventType = 4400
StreamableEventType: Server started
const SEVT_SERVER_UPDATED StreamableEventType = 4403
StreamableEventType: Server configuration has been updated. Data is the server config object
const SEVT_TENANT_NEW StreamableEventType = 4500
StreamableEventType: Tenant created. Data is the tenant object
const SEVT_TENANT_REMOVED StreamableEventType = 4501
StreamableEventType: Tenant deleted
const SEVT_TENANT_UPDATED StreamableEventType = 4502
StreamableEventType: Tenant updated. Data is the tenant object
const SEVT__MAX StreamableEventType = 4999
StreamableEventType
const SEVT__MIN StreamableEventType = 4000
StreamableEventType
type StreamerType ¶ added in v1.7.0
type StreamerType string
const STREAMER_TYPE_FILE StreamerType = "file"
StreamerType
const STREAMER_TYPE_INTERNAL StreamerType = "internal"
StreamerType
const STREAMER_TYPE_WEBHOOK StreamerType = "webhook"
StreamerType
const STREAMER_TYPE_WEBSOCKET StreamerType = "websocket"
StreamerType
type SwiftDestinationLocation ¶
type SwiftDestinationLocation struct {
// Username or UserID or Application Credential name or Application Credential ID, or blank for
// token authentication
Username string `json:",omitempty"`
// User Password, or Application Credential Key, or token if the Username field is blank
APIKey string `json:",omitempty"`
Region string `json:",omitempty"`
// Mandatory
AuthURL string `json:",omitempty"`
Domain string `json:",omitempty"`
// Tenant name (v2) or Project name (v3)
Tenant string `json:",omitempty"`
// Project domain name (v3)
TenantDomain string `json:",omitempty"`
TenantID string `json:",omitempty"`
TrustID string `json:",omitempty"`
// Deprecated: This member has been deprecated since Comet version 17.8.0
AuthToken string `json:",omitempty"`
Prefix string `json:",omitempty"`
Container string `json:",omitempty"`
DefaultContainerPolicy string `json:",omitempty"`
}
type TestResponse ¶
type TotpRegeneratedResponse ¶
type U2FRegisterRequest
deprecated
type U2FRegisteredKey
deprecated
type U2FRegistrationChallengeResponse
deprecated
type U2FRegistrationChallengeResponse struct {
// If the operation was successful, the status will be in the 200-299 range.
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 UninstallConfig ¶
type UninstallConfig struct {
// If this option is true, the target device will receive a message asking it to uninstall the
// Comet Backup app.
UninstallFlag bool
// This controls the "Remove all user settings from this device" option.
RemoveConfigFile bool
}
UninstallConfig allows configuring whether the target device will be uninstalled or not.
type UpdateCampaignDeviceStatus ¶
type UpdateCampaignDeviceStatus struct {
Status UpdateStatus
}
type UpdateCampaignOptions ¶
type UpdateCampaignOptions struct {
Active bool
UpgradeOlder bool
ReinstallCurrentVer bool
DowngradeNewer bool
// Choose whether this bulk upgrade campaign is allowed to interrupt a running backup job.
ForceUpgradeRunning bool
// If true, then the UserFilter will be used to restrict which accounts and devices will be
// eligible for the software update. If false, all users and devices will be eligible for the
// software update.
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
// Choose whether this bulk upgrade campaign is allowed to interrupt a running backup job.
ForceUpgradeRunning bool
// If true, then the UserFilter will be used to restrict which accounts and devices will be
// eligible for the software update. If false, all users and devices will be eligible for the
// software update.
ApplyDeviceFilter bool
DeviceFilter SearchClause
StartTime int64
TargetVersion string
}
type UpdateCampaignStatus ¶
type UpdateCampaignStatus struct {
Active bool
UpgradeOlder bool
ReinstallCurrentVer bool
DowngradeNewer bool
// Choose whether this bulk upgrade campaign is allowed to interrupt a running backup job.
ForceUpgradeRunning bool
// If true, then the UserFilter will be used to restrict which accounts and devices will be
// eligible for the software update. If false, all users and devices will be eligible for the
// software update.
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: The selected device does not meet the filter criteria from the Bulk Update Campaign's configuration.
const UPDATESTATUS_NOT_SEEN UpdateStatus = 0
UpdateStatus
const UPDATESTATUS_PENDING UpdateStatus = 2
UpdateStatus
const UPDATESTATUS_REQUEST_MADE UpdateStatus = 3
UpdateStatus: The device has made a live connection and it meets the filter criteria. A live connection message has been sent asking it to perform the software upgrade.
const UPDATESTATUS_UPDATE_CONFIRMED UpdateStatus = 5
UpdateStatus: The device has successfully updated to the target version.
const UPDATESTATUS_UPDATE_FAILED UpdateStatus = 4
UpdateStatus: An update signal was sent to the device, but when it reconnected, it did not advertise the target software version. It's likely that the update failed - please check the device's Update log for more information.
type UserCustomEmailSettings ¶
type UserCustomEmailSettings struct {
Reports []EmailReportConfig
}
type UserOnServer ¶
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 {
// The name for this account. It uniquely identifies this UserProfileConfig across the entire Comet
// Server. It cannot be changed directly.
Username string
// A longer descriptive name for this account. It is not necessarily unique to the Comet Server.
// The end-user might be able to change it inside the Comet Backup desktop app.
AccountName string
// Timezone in IANA format. Individual devices may declare a more specific timezone in the Devices
// field.
LocalTimezone string
// One of the supported languages, such as en_US (DEFAULT_LANGUAGE).
LanguageCode string
// Tenant
OrganizationID string `json:",omitempty"`
// A list of email addresses to send reports to.
Emails []string
// By default, all the email addresses in the Emails field will receieve the policy-default or
// server-wide-default style of email report. Add an override for a specific email address in here
// to allow customizing the email report that will be received.
OverrideEmailSettings map[string]UserCustomEmailSettings
// This option can be used to control whether any email reports are sent.
SendEmailReports bool
// Storage Vaults
// The string keys can be any unique key. Using a GUID is recommended, but optional.
Destinations map[string]DestinationConfig
// Protected Items
// The string keys can be any unique key. Using a GUID is recommended, but optional.
Sources map[string]SourceConfig
// Schedules
// The string keys can be any unique key. Using a GUID is recommended, but optional.
BackupRules map[string]BackupRuleConfig
// Devices
// The string keys are the device's ID. The device ID is generated automatically based on a mix of
// hardware and software identifiers on the installed PC.
// To revoke a device, use the AdminRevokeDevice API instead of accessing these fields directly.
// This API can also remove associated Protected Items, uninstall the remote device, and disconnect
// its live connection.
Devices map[string]DeviceConfig
IsSuspended bool
// Unix timestamp in seconds. Zero if the device is not suspended.
LastSuspended int64 `json:",omitempty"`
// A limit on the total Size of all Protected Items in this account. The number of bytes should be
// configured in AllProtectedItemsQuotaBytes.
AllProtectedItemsQuotaEnabled bool
// A limit on the total Size of all Protected Items in this account. It is enforced if
// AllProtectedItemsQuotaEnabled is true.
AllProtectedItemsQuotaBytes int64
// A limit on the total number of devices registered in this account. Set to zero to allow
// unlimited devices.
MaximumDevices int64
// A limit on the total number of Office 365 Protected Accounts across all Office 365 Protected
// Items in this account. Set to zero to allow unlimited Office 365 Protected Accounts.
QuotaOffice365ProtectedAccounts 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
// The Policy field contains a read-only copy of the effective Policy that is applied to this user
// account.
Policy UserPolicy
// One of the PASSWORD_FORMAT_ constants
// 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
// If this field is empty, the "Allow administrator to reset my password" feature is turned off. If
// this field is filled, it contains a cryptographic root of trust that can decrypt and re-encrypt
// other secrets in this profile.
PasswordRecovery string `json:",omitempty"`
AllowPasswordLogin bool
// If true, then TOTP is required to open the desktop app or the Comet Server web interface with
// this user's credentials.
AllowPasswordAndTOTPLogin bool
// One of the ENCRYPTIONMETHOD_ constants
TOTPKeyEncryptionFormat int
TOTPKey string
// This field is available in Comet 20.3.4 and later.
RequirePasswordChange bool
// Unix timestamp in seconds
CreateTime int64
// A random GUID that is allocated when the user profile is created for the first time. You can use
// this to help disambiguate users with the same username across multiple Comet Servers.
CreationGUID string
// Additional server-wide settings that are enforced for this user profile
ServerConfig UserServerConfig `json:",omitempty"`
}
This is the main data structure for a user's profile.
type UserProfileFragment
deprecated
type UserProfileFragment struct {
Username string
}
Deprecated: This struct has been deprecated since Comet version 23.3.5
type UserServerConfig ¶
type UserServerConfig struct {
RandomDelaySecs uint64 `json:",omitempty"`
}
type VMDKSnapshotViewOptions ¶
type VMDKSnapshotViewOptions struct {
// Request a list of stored objects in vmdk file. It should be always true for restoring single
// files from vmdk file
Enabled bool
// The vmdk filename inside subdirectory of disk image, should be end with .vmdk
PartitionGUID string
// Browse objects' paths inside vmdk file
ListPath string
PartitionName string
}
type VSSComponent ¶
type VSSWriterInfo ¶
type VSSWriterInfo struct {
DisplayName string
Components []VSSComponent
}
type VaultSnapshot ¶
type WebAuthnAuthenticationExtensions ¶
type WebAuthnAuthenticationExtensions map[string]interface{}
type WebAuthnCredential ¶
type WebAuthnCredentialAssertion ¶
type WebAuthnCredentialAssertion struct {
Response WebAuthnPublicKeyCredentialRequestOptions `json:"publicKey"`
}
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 {
// If the operation was successful, the status will be in the 200-299 range.
Status int
Message string
ChallengeID string
CredentialCreationOptions WebAuthnPublicKeyCredentialCreationOptions
}
type WebAuthnSignRequest ¶
type WebAuthnSignRequest struct {
ChallengeID string
Assertion WebAuthnCredentialAssertion
}
type WebAuthnSignResponse ¶
type WebAuthnUserEntity ¶
type WebhookOption ¶
type WebhookOption struct {
// The target URL to POST the event data to
URL string
// CustomHeaders allows specifying custom headers which are added to the outgoing POST request
// from Comet Server. Custom headers are specified as (header name, header value) pairs. If a
// custom header conflicts with a header required by HTTP or the Comet tracing ID header
// (`x-Comet-Tracing-Id`), it will be ignored.
CustomHeaders map[string]string
// One of the STREAM_LEVEL_ constants. This controls how much data is sent in the webhook event.
Level StreamLevel
// Configure a subset of allowed event types (see SEVT_ constants). If the array is empty, all
// events will be sent
WhiteListedEventTypes []StreamableEventType
}
WebhookOption defines the configuration of a webhook target. The Comet Server will send a live HTTP POST event to the webhook URL when certain events happen.
type WinSMBAuth ¶
type WinSMBAuth struct {
SharePath string
// The username to log in to the Windows network share (SMB).
Username string
// The password might be hashed. To set this in cleartext, set PasswordFormat to 0
// (PASSWORD_FORMAT_PLAINTEXT).
Password string
// The hash algorithm that is used for the Password field. It is one of the PASSWORD_FORMAT_
// constants.
PasswordFormat uint64
}
type WindowsCodeSignProperties ¶
type WindowsCodeSignProperties struct {
WindowsCodeSignMethod WindowsCodesignMethod
WindowsCodeSignPKCS12FilePath string
WindowsCodeSignPKCS12PasswordFormat uint64
WindowsCodeSignPKCS12Password string
WindowsCodeSignPKCS11Engine string
WindowsCodeSignPKCS11Module string
// Deprecated: This member has been deprecated since Comet version 22.12.7
WindowsCodeSignPKCS11Certfile string
WindowsCodeSignPKCS11KeyID string
WindowsCodeSignPKCS11PasswordFormat uint64
WindowsCodeSignPKCS11Password string
WindowsCodeSignAzureVaultName string
WindowsCodeSignAzureCertName string
WindowsCodeSignAzureAppID string
WindowsCodeSignAzureAppSecretFormat uint64
WindowsCodeSignAzureAppSecret string
WindowsCodeSignAzureTenantID string
}
type WindowsCodesignMethod ¶ added in v1.4.0
type WindowsCodesignMethod int
const WINDOWSCODESIGN_METHOD_AUTO WindowsCodesignMethod = 0
WindowsCodesignMethod: When upgrading from a version of Comet Server prior to 22.12.7, this option will be automatically converted to a more specific type. Deprecated: This const has been deprecated since Comet version 22.12.7
const WINDOWSCODESIGN_METHOD_AZUREKEYVAULT WindowsCodesignMethod = 4
WindowsCodesignMethod: Use a configured Azure Key Vault for Authenticode codesigning
const WINDOWSCODESIGN_METHOD_DISABLED WindowsCodesignMethod = 1
WindowsCodesignMethod: Do not perform Authenticode codesigning
const WINDOWSCODESIGN_METHOD_PKCS11HSM WindowsCodesignMethod = 3
WindowsCodesignMethod: Use a configured PKCS#11 hardware security module (HSM) for Authenticode codesigning
const WINDOWSCODESIGN_METHOD_PKCS12FILE WindowsCodesignMethod = 2
WindowsCodesignMethod: Use a configured PKCS#12 key file for Authenticode codesigning