api

package
v4.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Api classes for files's golang SDK

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyticsApi

type AnalyticsApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewAnalyticsApi

func NewAnalyticsApi(apiClient *client.ApiClient) *AnalyticsApi

func (*AnalyticsApi) GetAntivirusServerStats

func (api *AnalyticsApi) GetAntivirusServerStats(fileServerExtId *string, extId *string, startTime_ *time.Time, endTime_ *time.Time, samplingInterval_ *int, statType_ *import1.DownSamplingOperator, select_ *string, args ...map[string]interface{}) (*import2.AntivirusServerStatsApiResponse, error)

Get the antivirus server statistics for the given external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and identifier of the antivirus server (`extId`) and comma-separated list of metrics in `$select`. The user can also specify `$startTime` and `$endTime` in query parameters. `$samplingInterval` should be either empty, 300(default) or 600. `$statType` is not supported for this API. Following are some valid GET antivirus statistics query examples: ``` - ?$select=scannedFileCount,threatCount - ?$select=scannedFileCount,threatCount&$startTime=2023-01-09T07:23:45.678&$endTime=2023-01-09T18:23:45.678 ```

func (*AnalyticsApi) GetFileServerStats

func (api *AnalyticsApi) GetFileServerStats(extId *string, startTime_ *time.Time, endTime_ *time.Time, samplingInterval_ *int, statType_ *import1.DownSamplingOperator, select_ *string, args ...map[string]interface{}) (*import2.FileServerStatsApiResponse, error)

Get the file server statistics for the specified file server. Specify a comma-separated list of metrics in `$select`. Users can also specify `$startTime` and `$endTime` in query parameters. `$samplingInterval` should be either empty, 300(default) or 600. `$statType` is not supported for this API. Following are some valid GET file server statistics query examples: ``` - ?$select=numberOfFiles,numberOfConnections - ?$select=numberOfFiles,numberOfConnections&$startTime=2023-01-09T07:23:45.678&$endTime=2023-01-09T18:23:45.678 ```

func (*AnalyticsApi) GetMountTargetStats

func (api *AnalyticsApi) GetMountTargetStats(fileServerExtId *string, extId *string, startTime_ *time.Time, endTime_ *time.Time, samplingInterval_ *int, statType_ *import1.DownSamplingOperator, select_ *string, args ...map[string]interface{}) (*import2.MountTargetStatsApiResponse, error)

Get the mount target statistics for the mount target with the given external identifier. Specify a valid file server identifier (`fileServerExtId`) and a mount target identifier (`extId`) and comma-separated list of metrics in `$select`. The user can also specify `$startTime` and `$endTime` in query parameters. `$samplingInterval` should be either empty, 300(default) or 600. `$statType` is not supported for this API. Following are some valid GET mount target statistics examples: ``` - ?$select=averageLatencyMs,numberOfFiles - ?$select=averageLatencyMs,numberOfFiles&$startTime=2023-01-09T07:23:45.678&$endTime=2023-01-09T18:23:45.678 ```

type AntivirusServersApi

type AntivirusServersApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewAntivirusServersApi

func NewAntivirusServersApi(apiClient *client.ApiClient) *AntivirusServersApi

func (*AntivirusServersApi) CreateAntivirusServer

func (api *AntivirusServersApi) CreateAntivirusServer(fileServerExtId *string, body *import3.AntivirusServer, args ...map[string]interface{}) (*import3.CreateAntivirusServerApiResponse, error)

Create a new antivirus server. Please refer model section to get more details about fields.

func (*AntivirusServersApi) DeleteAntivirusServerById

func (api *AntivirusServersApi) DeleteAntivirusServerById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteAntivirusServerApiResponse, error)

Delete the antivirus server with the given external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and of the antivirus server (`extId`).

func (*AntivirusServersApi) GetAntivirusServerById

func (api *AntivirusServersApi) GetAntivirusServerById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetAntivirusServerApiResponse, error)

Get antivirus server for the provided external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and of the antivirus server (`extId`).

func (*AntivirusServersApi) ListAntivirusServers

func (api *AntivirusServersApi) ListAntivirusServers(fileServerExtId *string, page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import3.ListAntivirusServersApiResponse, error)

Get a paginated list of antivirus servers.

func (*AntivirusServersApi) TestConnectionAntivirusServer

func (api *AntivirusServersApi) TestConnectionAntivirusServer(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.TestConnectionAntivirusServerApiResponse, error)

Test antivirus server connection with the given external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and of the antivirus server(`extId`) for which the connection needs to be tested.

func (*AntivirusServersApi) UpdateAntivirusServerById

func (api *AntivirusServersApi) UpdateAntivirusServerById(fileServerExtId *string, extId *string, body *import3.AntivirusServer, args ...map[string]interface{}) (*import3.UpdateAntivirusServerApiResponse, error)

Update antivirus server by using the provided request body. Specify a valid identifier (`fileServerExtId`) of the file server and (`extId`) of the antivirus server to be updated. It is always recommended to perform a GET request on a resource before requesting an UPDATE call.

type DnsApi

type DnsApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewDnsApi

func NewDnsApi(apiClient *client.ApiClient) *DnsApi

func (*DnsApi) ListDnsRecords

func (api *DnsApi) ListDnsRecords(fileServerExtId *string, page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import3.ListDnsRecordsApiResponse, error)

Get a paginated list of DNS server records.

func (*DnsApi) ReviseDnsRecords

func (api *DnsApi) ReviseDnsRecords(extId *string, body *import3.DnsRecordSpec, args ...map[string]interface{}) (*import3.ReviseDnsRecordsApiResponse, error)

Add or remove DNS records of the file server in the DNS server.

func (*DnsApi) VerifyDnsRecords

func (api *DnsApi) VerifyDnsRecords(extId *string, body *import3.DnsRecordSpec, args ...map[string]interface{}) (*import3.VerifyDnsRecordsApiResponse, error)

Validate DNS records on the DNS server using the given request body.

type FileServersApi

type FileServersApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewFileServersApi

func NewFileServersApi(apiClient *client.ApiClient) *FileServersApi

func (*FileServersApi) GetFileServerById

func (api *FileServersApi) GetFileServerById(extId *string, args ...map[string]interface{}) (*import3.GetFileServerApiResponse, error)

Fetches file server details by the given external identifier.

func (*FileServersApi) ListFileServers

func (api *FileServersApi) ListFileServers(page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import3.ListFileServersApiResponse, error)

Get the paginated list of file servers.

type InfectedFilesApi

type InfectedFilesApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewInfectedFilesApi

func NewInfectedFilesApi(apiClient *client.ApiClient) *InfectedFilesApi

func (*InfectedFilesApi) DeleteInfectedFileById

func (api *InfectedFilesApi) DeleteInfectedFileById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteInfectedFileApiResponse, error)

Deletes the infected file with the given external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and of the infected file (`extId`).

func (*InfectedFilesApi) FixInfectedFile

func (api *InfectedFilesApi) FixInfectedFile(fileServerExtId *string, extId *string, body *import3.InfectedFileFixSpec, args ...map[string]interface{}) (*import3.FixInfectedFileApiResponse, error)

Performs security action provided in the request body on the infected file.

func (*InfectedFilesApi) GetInfectedFileById

func (api *InfectedFilesApi) GetInfectedFileById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetInfectedFileApiResponse, error)

Fetches infected files with the given external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and of the infected file (`extId`).

func (*InfectedFilesApi) ListInfectedFiles

func (api *InfectedFilesApi) ListInfectedFiles(fileServerExtId *string, page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import3.ListInfectedFilesApiResponse, error)

Get a paginated list of infected files.

type MountTargetsApi

type MountTargetsApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewMountTargetsApi

func NewMountTargetsApi(apiClient *client.ApiClient) *MountTargetsApi

func (*MountTargetsApi) CloneMountTarget

func (api *MountTargetsApi) CloneMountTarget(fileServerExtId *string, extId *string, body *import3.MountTargetCloneSpec, args ...map[string]interface{}) (*import3.CloneMountTargetApiResponse, error)

Clone mount target from a specified snapshot or from live mount-target.

func (*MountTargetsApi) CreateMountTarget

func (api *MountTargetsApi) CreateMountTarget(fileServerExtId *string, body *import3.MountTarget, dryrun_ *bool, args ...map[string]interface{}) (*import3.CreateMountTargetApiResponse, error)

Create a mount target by using the provided request body. Specify `name` and `type` of the mount target which needs to be created. User can also specify `maxSizeGiByte`, `path`, `secondaryProtocol`, `state` etc of the mount target. Use dry-run workflow with same payload to validate the request. Normal workflow won't validate values like `userOrGroupName` in share ACLs before task creation.

func (*MountTargetsApi) DeleteMountTargetById

func (api *MountTargetsApi) DeleteMountTargetById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteMountTargetApiResponse, error)

Deletes a mount target with the given external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and of the mount target (`extId`). Users can also specify the `force` flag to delete the mount target forcefully.

func (*MountTargetsApi) DisableWormLegalHold

func (api *MountTargetsApi) DisableWormLegalHold(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.DisableWormLegalHoldApiResponse, error)

Disable WORM (write once and read many) legal hold. Applicable only for WORM compliant mount targets. It is always recommended to perform a GET request on a resource before disabling WORM legal hold operation.

func (*MountTargetsApi) EnableWormCompliance

func (api *MountTargetsApi) EnableWormCompliance(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.EnableWormComplianceApiResponse, error)

Enable WORM (write once and read many) compliance. Applicable only for WORM enterprise mount targets. It is always recommended to perform a GET request on a resource before enabling WORM compliance operation.

func (*MountTargetsApi) EnableWormLegalHold

func (api *MountTargetsApi) EnableWormLegalHold(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.EnableWormLegalHoldApiResponse, error)

Enable WORM (write once and read many) legal hold. Applicable only for WORM compliant mount targets. It is always recommended to perform a GET request on a resource before enabling WORM legal hold operation.

func (*MountTargetsApi) GetMountTargetById

func (api *MountTargetsApi) GetMountTargetById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetMountTargetApiResponse, error)

Fetches the mount target details with the given external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and of the mount target (`extId`).

func (*MountTargetsApi) ListMountTargets

func (api *MountTargetsApi) ListMountTargets(fileServerExtId *string, page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import3.ListMountTargetsApiResponse, error)

Get a paginated list of mount targets.

func (*MountTargetsApi) UpdateMountTargetById

func (api *MountTargetsApi) UpdateMountTargetById(fileServerExtId *string, extId *string, body *import3.MountTarget, dryrun_ *bool, args ...map[string]interface{}) (*import3.UpdateMountTargetApiResponse, error)

Update a mount target with the given external identifier by using the provided request body. Specify a valid identifier of the file server (`fileServerExtId`) and of the mount target (`extId`). It is always recommended to perform a GET request on a resource before requesting an UPDATE call. Use dry-run workflow with same payload to validate the request. Normal workflow won't validate values like `userOrGroupName` in share ACLs before task creation.

type NotificationPoliciesApi

type NotificationPoliciesApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewNotificationPoliciesApi

func NewNotificationPoliciesApi(apiClient *client.ApiClient) *NotificationPoliciesApi

func (*NotificationPoliciesApi) CreateNotificationPolicy

func (api *NotificationPoliciesApi) CreateNotificationPolicy(fileServerExtId *string, body *import3.NotificationPolicy, args ...map[string]interface{}) (*import3.CreateNotificationPolicyApiResponse, error)

Create a new notification policy based on the input parameters. Provide the list of mount target external identifiers if shouldIncludeAllMountTargets flag is false

func (*NotificationPoliciesApi) DeleteNotificationPolicyById

func (api *NotificationPoliciesApi) DeleteNotificationPolicyById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteNotificationPolicyApiResponse, error)

Delete a notification policy identified by its external identifier.

func (*NotificationPoliciesApi) GetNotificationPolicyById

func (api *NotificationPoliciesApi) GetNotificationPolicyById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetNotificationPolicyApiResponse, error)

Fetches a notification policy details identified by its external identifier.

func (*NotificationPoliciesApi) ListNotificationPolicies

func (api *NotificationPoliciesApi) ListNotificationPolicies(fileServerExtId *string, page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import3.ListNotificationPoliciesApiResponse, error)

Fetches a list of notification policies.

func (*NotificationPoliciesApi) UpdateNotificationPolicyById

func (api *NotificationPoliciesApi) UpdateNotificationPolicyById(fileServerExtId *string, extId *string, body *import3.NotificationPolicy, args ...map[string]interface{}) (*import3.UpdateNotificationPolicyApiResponse, error)

Updates a notification policy by using the provided request body.

type PartnerServersApi

type PartnerServersApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewPartnerServersApi

func NewPartnerServersApi(apiClient *client.ApiClient) *PartnerServersApi

func (*PartnerServersApi) CreatePartnerServer

func (api *PartnerServersApi) CreatePartnerServer(fileServerExtId *string, body *import3.PartnerServer, args ...map[string]interface{}) (*import3.CreatePartnerServerApiResponse, error)

Create partner server by using the provided request body.

func (*PartnerServersApi) DeletePartnerServerById

func (api *PartnerServersApi) DeletePartnerServerById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeletePartnerServerApiResponse, error)

Delete the partner server with the given external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and of the partner server (`extId`).

func (*PartnerServersApi) GetPartnerServerById

func (api *PartnerServersApi) GetPartnerServerById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetPartnerServerApiResponse, error)

Get partner server for the provided external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and of the partner server (`extId`) to be fetched.

func (*PartnerServersApi) ListPartnerServers

func (api *PartnerServersApi) ListPartnerServers(fileServerExtId *string, page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import3.ListPartnerServersApiResponse, error)

Get a paginated list of partner servers.

func (*PartnerServersApi) UpdatePartnerServerById

func (api *PartnerServersApi) UpdatePartnerServerById(fileServerExtId *string, extId *string, body *import3.PartnerServer, args ...map[string]interface{}) (*import3.UpdatePartnerServerApiResponse, error)

Update partner server by using the provided request body. Specify a valid identifier of the file server (`fileServerExtId`) and of the partner server (`extId`). It is always recommended to perform a GET request on a resource before requesting an UPDATE call.

type QuotaPoliciesApi

type QuotaPoliciesApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewQuotaPoliciesApi

func NewQuotaPoliciesApi(apiClient *client.ApiClient) *QuotaPoliciesApi

func (*QuotaPoliciesApi) CreateQuotaPolicy

func (api *QuotaPoliciesApi) CreateQuotaPolicy(fileServerExtId *string, mountTargetExtId *string, body *import3.QuotaPolicy, dryrun_ *bool, args ...map[string]interface{}) (*import3.CreateQuotaPolicyApiResponse, error)

Create a quota policy by using the provided request body. Specify a valid identifier of the mount target for which quota policy needs to be created. Users can specify `enforcementType`, `principalName`, `principalType`, `sizeInGb` as part of the request body. Use dry-run workflow with same payload to validate the request. Normal workflow won't validate `principalName` and `principalType` before task creation.

func (*QuotaPoliciesApi) DeleteQuotaPolicyById

func (api *QuotaPoliciesApi) DeleteQuotaPolicyById(fileServerExtId *string, mountTargetExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteQuotaPolicyApiResponse, error)

Deletes a quota policy with the provided external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and the mount target (`mountTargetExtId`) to which the quota policy belongs and a valid external identifier (`extId`) of the quota policy to be deleted.

func (*QuotaPoliciesApi) GetEmailConfig

func (api *QuotaPoliciesApi) GetEmailConfig(fileServerExtId *string, args ...map[string]interface{}) (*import3.GetEmailConfigApiResponse, error)

Get details of email configuration for the quota policy. User can have single email configuration for file server.

func (*QuotaPoliciesApi) GetQuotaPolicyById

func (api *QuotaPoliciesApi) GetQuotaPolicyById(fileServerExtId *string, mountTargetExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetQuotaPolicyApiResponse, error)

Get a quota policy with the given external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and the mount target (`mountTargetExtId`) to which the quota policy belongs and a valid external identifier (`extId`) of the quota policy to be fetched.

func (*QuotaPoliciesApi) ListQuotaPolicies

func (api *QuotaPoliciesApi) ListQuotaPolicies(fileServerExtId *string, mountTargetExtId *string, page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import3.ListQuotaPoliciesApiResponse, error)

Get a paginated list of quota policies for specified mount target.

func (*QuotaPoliciesApi) UpdateEmailConfig

func (api *QuotaPoliciesApi) UpdateEmailConfig(fileServerExtId *string, body *import3.EmailConfig, args ...map[string]interface{}) (*import3.UpdateEmailConfigApiResponse, error)

Updates the quota policy email configuration. Specify (`content`) and (`subject`) to update the quota policy email configuration.

func (*QuotaPoliciesApi) UpdateQuotaPolicyById

func (api *QuotaPoliciesApi) UpdateQuotaPolicyById(fileServerExtId *string, mountTargetExtId *string, extId *string, body *import3.QuotaPolicy, dryrun_ *bool, args ...map[string]interface{}) (*import3.UpdateQuotaPolicyApiResponse, error)

Updates quota policy with the provided parameters. Specify a valid identifier of the file server (`fileServerExtId`) and the mount target (`mountTargetExtId`) to which the quota policy belongs and a valid external identifier (`extId`) of the quota policy to be updated. It is always recommended to perform a GET request on a resource before requesting an UPDATE call. `principalType` field is non-updatable field. Use dry-run workflow with same payload to validate the request. Normal workflow won't validate `principalName` and `principalType` before task creation.

type RansomwareConfigsApi

type RansomwareConfigsApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewRansomwareConfigsApi

func NewRansomwareConfigsApi(apiClient *client.ApiClient) *RansomwareConfigsApi

func (*RansomwareConfigsApi) CreateRansomwareConfig

func (api *RansomwareConfigsApi) CreateRansomwareConfig(fileServerExtId *string, body *import3.RansomwareConfig, args ...map[string]interface{}) (*import3.CreateRansomwareConfigApiResponse, error)

Creates a new ransomware configuration for the current file server by using the request body. It can contain values for fields like `patterns`, `excludedMountTargetExtIds`.

func (*RansomwareConfigsApi) DeleteRansomwareConfigById

func (api *RansomwareConfigsApi) DeleteRansomwareConfigById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteRansomwareConfigApiResponse, error)

Delete ransomware configuration for the current file server using external identifier of the ransomware configuration in the path parameter.\"

func (*RansomwareConfigsApi) GetRansomwareConfigById

func (api *RansomwareConfigsApi) GetRansomwareConfigById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetRansomwareConfigApiResponse, error)

Get ransomware configuration by external identifier for a file server.

func (*RansomwareConfigsApi) ListRansomwareConfigs

func (api *RansomwareConfigsApi) ListRansomwareConfigs(fileServerExtId *string, page_ *int, limit_ *int, filter_ *string, select_ *string, args ...map[string]interface{}) (*import3.ListRansomwareConfigsApiResponse, error)

Fetches a paginated list of ransomware configuration for file server.

func (*RansomwareConfigsApi) UpdateRansomwareConfigById

func (api *RansomwareConfigsApi) UpdateRansomwareConfigById(fileServerExtId *string, extId *string, body *import3.RansomwareConfig, args ...map[string]interface{}) (*import3.UpdateRansomwareConfigApiResponse, error)

Update the ransomware configuration for the current file server by using the request body and external identifier of the ransomware configuration. It can contain updated values for fields like `patterns`, `excludedMountTargetExtIds`.

type RecommendationsApi

type RecommendationsApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewRecommendationsApi

func NewRecommendationsApi(apiClient *client.ApiClient) *RecommendationsApi

func (*RecommendationsApi) DeleteRecommendationById

func (api *RecommendationsApi) DeleteRecommendationById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteRecommendationApiResponse, error)

Delete the recommendation identified with the given external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and of the recommendation (`extId`).

func (*RecommendationsApi) GetRecommendationById

func (api *RecommendationsApi) GetRecommendationById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetRecommendationApiResponse, error)

Fetches a specific recommendation detail identified by the external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and of the recommendation (`extId`).

func (*RecommendationsApi) ListRecommendations

func (api *RecommendationsApi) ListRecommendations(fileServerExtId *string, page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import3.ListRecommendationsApiResponse, error)

Get the paginated list of recommendations for a file server.

type ReplicationJobsApi

type ReplicationJobsApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewReplicationJobsApi

func NewReplicationJobsApi(apiClient *client.ApiClient) *ReplicationJobsApi

func (*ReplicationJobsApi) GetReplicationJobById

func (api *ReplicationJobsApi) GetReplicationJobById(extId *string, args ...map[string]interface{}) (*import4.GetReplicationJobApiResponse, error)

Fetches details of a replication job identified by its external identifier.

func (*ReplicationJobsApi) ListReplicationJobs

func (api *ReplicationJobsApi) ListReplicationJobs(page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import4.ListReplicationJobsApiResponse, error)

Fetches the list of all replication jobs available in the system.

type ReplicationPoliciesApi

type ReplicationPoliciesApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewReplicationPoliciesApi

func NewReplicationPoliciesApi(apiClient *client.ApiClient) *ReplicationPoliciesApi

func (*ReplicationPoliciesApi) AdDnsFailover

func (api *ReplicationPoliciesApi) AdDnsFailover(body *import4.FailoverSpec, args ...map[string]interface{}) (*import4.AdDnsFailoverApiResponse, error)

This API is used for AD-DNS failover. The AD-DNS failover action is used to configure the AD(Active Directory) and DNS settings on the failed-over site. It is essential for ensuring users can access the shares on the failed-over site using the same credentials and permissions, and also the DNS resolution works correctly on the failed-over site as before the failover. ``` Note: AD and DNS settings are optional for many customers. Review your infrastructure settings and configure them as needed. ``` If this configuration is not provided during the failover or failback process, the operation will still succeed. However, the shares may remain inaccessible or DNS resolution issues may occur until an explicit `ad-dns-failover` action is performed to reconfigure the AD and DNS settings accordingly.

func (*ReplicationPoliciesApi) CreateReplicationPolicy

func (api *ReplicationPoliciesApi) CreateReplicationPolicy(body *import3.ReplicationPolicy, dryrun_ *bool, args ...map[string]interface{}) (*import3.CreateReplicationPolicyApiResponse, error)

Creates a new replication policy between a file server pair(s) by using the provided request body. The users need to specify the `name` and `type` of the replication along with replication configuration details inside the request body. The user also needs to provide at least one replication configuration inside the request body, which contains `primaryfileServerExtId`, `replicationEntities`, an array of `pathOfPrimaryFileServerMountTarget` strings, and replication `schedule`. All schedules, and status should be consistent across all replicationConfigurations. For example, if one replicationConfiguration is enabled, all replicationConfigurations should be enabled. Use dry-run workflow with same payload to validate the request. Normal workflow won't validate mount target paths, file servers reachability, fs version compatibility, etc before task creation.

func (*ReplicationPoliciesApi) DeleteReplicationPolicyById

func (api *ReplicationPoliciesApi) DeleteReplicationPolicyById(extId *string, args ...map[string]interface{}) (*import3.DeleteReplicationPolicyApiResponse, error)

Deletes the replication policy with the given external identifier. Specify a valid identifier of the replication policy (`extId`).

func (*ReplicationPoliciesApi) Failover

func (api *ReplicationPoliciesApi) Failover(body *import4.FailoverSpec, args ...map[string]interface{}) (*import4.FailoverApiResponse, error)

This API is used to perform failover(planned or unplanned) or failback of the share level replication. In a failback, the cluster is restored to its original state after a failover. Note: The failover/failback action is supported only for file servers with share level replication(SmartDR) enabled. AD(Active Directory) and DNS are optional for many customers. File server's AD server configuration and primary DNS configuration are essential for ensuring that users can access the shares on the failed-over site using the same credentials and permissions and also the DNS resolution works correctly on the failed-over site as before the failover. If this configuration is not provided during the failover/failback process, the operation will still succeed. However, the shares may remain inaccessible or DNS resolution issues may occur until an explicit `ad-dns-failover` action is performed to reconfigure the AD and DNS settings accordingly.

func (*ReplicationPoliciesApi) GetReplicationPolicyById

func (api *ReplicationPoliciesApi) GetReplicationPolicyById(extId *string, args ...map[string]interface{}) (*import3.GetReplicationPolicyApiResponse, error)

Fetches a replication policy identified by the external identifier of the file server and replication policy. Specify a valid identifier of the replication policy (`extId`).

func (*ReplicationPoliciesApi) GetVdiUserSessionById

func (api *ReplicationPoliciesApi) GetVdiUserSessionById(fileServerExtId *string, replicationPolicyExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetVdiUserSessionApiResponse, error)

Get a VDI synchronization user session by external identifier. Impacted users are users that have authorization issues during login. Each user object contains username, owner file server external identifier, user conflict information, and login events. Each login event contains the login and logoff time, the login status, and the number of login attempts on the file server.

func (*ReplicationPoliciesApi) ListReplicationPolicies

func (api *ReplicationPoliciesApi) ListReplicationPolicies(page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import3.ListReplicationPoliciesApiResponse, error)

Fetches a paginated list of replication policies.

func (*ReplicationPoliciesApi) ListVdiUserSessions

func (api *ReplicationPoliciesApi) ListVdiUserSessions(fileServerExtId *string, replicationPolicyExtId *string, page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import3.ListVdiUserSessionsApiResponse, error)

Get a paginated list of VDI synchronization user sessions. Impacted users are users that have authorization issues during login. Each user session object contains username, owner file server external identifier, user conflict information, and login events. Each login event contains the login and logoff time, the login status, and the number of login attempts on the file server. If the admin user does not specify any search query parameters, a list of root level VDI synchronization users is returned.

func (*ReplicationPoliciesApi) ResumeReplication

func (api *ReplicationPoliciesApi) ResumeReplication(body *import4.ResumeReplicationSpec, args ...map[string]interface{}) (*import4.ResumeReplicationApiResponse, error)

This API is used for resuming share level replication between primary and secondary file servers.

func (*ReplicationPoliciesApi) UpdateReplicationPolicyById

func (api *ReplicationPoliciesApi) UpdateReplicationPolicyById(extId *string, body *import3.ReplicationPolicy, dryrun_ *bool, args ...map[string]interface{}) (*import3.UpdateReplicationPolicyApiResponse, error)

Updates the replication policy with the given external identifier by using the provided request body. For `DATA_SYNC` replication the fields `pathOfSecondaryFileServerMountTarget` and `secondaryFileServerExtId` are immutable and user needs to provide inside the request body (otherwise a 400 error code will be returned). This api can also be used to change the status(ENABLED or DISABLED) of the replication policy which is independent of any other attributes. Partial enable is not supported. Making `DISABLED` state also supports an optional boolean parameter named as `shouldCancelOngoingReplicationJobs` to abort all the ongoing replication jobs for this configuration. All schedules, and status should be consistent across all replicationConfigurations. Use dry-run workflow with same payload to validate the request. Normal workflow won't validate mount target paths, file servers reachability, fs version compatibility, etc before task creation.

func (*ReplicationPoliciesApi) UpdateVdiUserSessionById

func (api *ReplicationPoliciesApi) UpdateVdiUserSessionById(fileServerExtId *string, replicationPolicyExtId *string, extId *string, body *import3.VdiUserSession, args ...map[string]interface{}) (*import3.UpdateVdiUserSessionApiResponse, error)

Updates primary file server for VDI synchronization user's owner file server. Specify a valid identifier of the VDI synchronization policy (`replicationPolicyId`) and of the user session (`extId`). User also needs to provide a request body containing `ownerFileServerExtId` for performing the update.

type SnapshotChangedContentsApi

type SnapshotChangedContentsApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewSnapshotChangedContentsApi

func NewSnapshotChangedContentsApi(apiClient *client.ApiClient) *SnapshotChangedContentsApi

func (*SnapshotChangedContentsApi) ComputeSnapshotChange

func (api *SnapshotChangedContentsApi) ComputeSnapshotChange(fileServerExtId *string, mountTargetExtId *string, body *import3.ComputeSnapshotChangeSpec, args ...map[string]interface{}) (*import3.ComputeSnapshotChangeApiResponse, error)

Compute mount target snapshots change content. Once this API is issued, change file tracking process would start in background. This process can take few minutes to complete depending on number of objects changed between given snapshots. For full backups - using SMB clients which do not support DFS referral protocol, the base snapshot uuid should be passed as NULL. This will help the clients to get the object to file server VM mapping. For incremental backups, both the base snapshot uuid and current snapshot uuid must be provided. For SMB clients which do not support DFS referral protocol. API returns snapshot changed content details in the response with data[0].argumentsMap, which contains extId and link which user need to use to get changed content details.

func (*SnapshotChangedContentsApi) GetSnapshotChangedContentById

func (api *SnapshotChangedContentsApi) GetSnapshotChangedContentById(fileServerExtId *string, mountTargetExtId *string, extId *string, xNextPageToken *string, args ...map[string]interface{}) (*import3.GetSnapshotChangedContentApiResponse, error)

Get a mount target snapshots changed content with the given external identifier. The process of computing snapshot content change may take some time to complete depending on the size of the snapshots. This may not be the complete response if the process is still running in the background. The attribute `hasMoreContent` specifies if it is a complete response or there is more data.

func (*SnapshotChangedContentsApi) ListSnapshotChangedContents

func (api *SnapshotChangedContentsApi) ListSnapshotChangedContents(fileServerExtId *string, mountTargetExtId *string, page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import3.ListSnapshotChangedContentsApiResponse, error)

Get a list of mount target snapshots changed contents. The list API contains only the basic attributes and not the details of the changed content between two snapshots.

type SnapshotSchedulesApi

type SnapshotSchedulesApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewSnapshotSchedulesApi

func NewSnapshotSchedulesApi(apiClient *client.ApiClient) *SnapshotSchedulesApi

func (*SnapshotSchedulesApi) CreateSnapshotSchedule

func (api *SnapshotSchedulesApi) CreateSnapshotSchedule(fileServerExtId *string, body *import3.SnapshotSchedule, args ...map[string]interface{}) (*import3.CreateSnapshotScheduleApiResponse, error)

Creates a new snapshot schedule by using the provided request body. Self service restore (SSR) lets you restore a previous version of a file or share. With SSR, Files takes snapshots of share data in intervals defined by a snapshot schedule. You can enable SSR during or after share creation as the feature is disabled by default. The user needs to specify the `maxRetentionCount` and `type` of the schedule to be created. User can also provide `daysOfWeek`, `daysOfMonth`, `frequency` and the objectType for these shecdules is `files.v4.config.WeeklySchedule`, `files.v4.config.MonthlySchedule`, `files.v4.config.DailySchedule` respectively.

func (*SnapshotSchedulesApi) DeleteSnapshotScheduleById

func (api *SnapshotSchedulesApi) DeleteSnapshotScheduleById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteSnapshotScheduleApiResponse, error)

Deletes a snapshot schedule identified by the given external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and the schedule (`extId`).

func (*SnapshotSchedulesApi) GetSnapshotScheduleById

func (api *SnapshotSchedulesApi) GetSnapshotScheduleById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetSnapshotScheduleApiResponse, error)

Get a snapshot schedule identified by the given external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and the schedule (`extId`).

func (*SnapshotSchedulesApi) ListSnapshotSchedules

func (api *SnapshotSchedulesApi) ListSnapshotSchedules(fileServerExtId *string, page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import3.ListSnapshotSchedulesApiResponse, error)

Get a paginated list of snapshot schedules.

func (*SnapshotSchedulesApi) UpdateSnapshotScheduleById

func (api *SnapshotSchedulesApi) UpdateSnapshotScheduleById(fileServerExtId *string, extId *string, body *import3.SnapshotSchedule, args ...map[string]interface{}) (*import3.UpdateSnapshotScheduleApiResponse, error)

Update a snapshot schedule identified by the given external identifier by using the provided request body. Specify a valid identifier of the file server (`fileServerExtId`) and the schedule(`extId`). It is always recommended to perform a GET request on a resource before requesting an UPDATE call.

type SnapshotsApi

type SnapshotsApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewSnapshotsApi

func NewSnapshotsApi(apiClient *client.ApiClient) *SnapshotsApi

func (*SnapshotsApi) CreateMountTargetSnapshot

func (api *SnapshotsApi) CreateMountTargetSnapshot(fileServerExtId *string, mountTargetExtId *string, body *import3.Snapshot, args ...map[string]interface{}) (*import3.CreateMountTargetSnapshotApiResponse, error)

Create a mount target snapshot by using the provided request body. Specify a valid external identifier of the file server (`fileServerExtId`) and the mount target (`mountTargetExtId`). User created snapshot will always be of type `USER_SNAPSHOT`.

func (*SnapshotsApi) DeleteMountTargetSnapshotById

func (api *SnapshotsApi) DeleteMountTargetSnapshotById(fileServerExtId *string, mountTargetExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteMountTargetSnapshotApiResponse, error)

Delete a mount target snapshot with the given external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and the mount target (`mountTargetExtId`) to which the snapshot belongs and a valid external identifier of the snapshot (`extId`).

func (*SnapshotsApi) GetMountTargetSnapshotById

func (api *SnapshotsApi) GetMountTargetSnapshotById(fileServerExtId *string, mountTargetExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetMountTargetSnapshotApiResponse, error)

Get mount target snapshot with the given external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and the mount target (`mountTargetExtId`) to which the snapshot belongs and a valid external identifier of the snapshot (`extId`).

func (*SnapshotsApi) ListMountTargetSnapshots

func (api *SnapshotsApi) ListMountTargetSnapshots(fileServerExtId *string, mountTargetExtId *string, page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import3.ListMountTargetSnapshotsApiResponse, error)

Get a paginated list of mount target snapshots.

func (*SnapshotsApi) RestoreMountTarget

func (api *SnapshotsApi) RestoreMountTarget(fileServerExtId *string, mountTargetExtId *string, extId *string, args ...map[string]interface{}) (*import3.RestoreMountTargetApiResponse, error)

Restores a mount target from a specified snapshot. This request requires etag of the mount target entity.

type TierApi

type TierApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewTierApi

func NewTierApi(apiClient *client.ApiClient) *TierApi

func (*TierApi) CreateObjectStoreProfile

func (api *TierApi) CreateObjectStoreProfile(fileServerExtId *string, body *import3.ObjectStoreProfile, args ...map[string]interface{}) (*import3.CreateObjectStoreProfileApiResponse, error)

Creates an object store for a provided file server.

func (*TierApi) CreateTieringConfiguration

func (api *TierApi) CreateTieringConfiguration(fileServerExtId *string, body *import3.TierConfiguration, args ...map[string]interface{}) (*import3.CreateTieringConfigurationApiResponse, error)

Creates the tiering configuration for the file server.

func (*TierApi) DeleteTieringConfigurationById

func (api *TierApi) DeleteTieringConfigurationById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteTieringConfigurationApiResponse, error)

Deletes the tiering configuration with the given external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and the tiering configuration (`extId`). Automatic tiering will be disabled after deleting the tiering configuration.

func (*TierApi) GetObjectStoreProfileById

func (api *TierApi) GetObjectStoreProfileById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetObjectStoreProfileApiResponse, error)

Fetches a single object store profile details identified by its external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and the object store profile (`extId`).

func (*TierApi) GetTieringConfigurationById

func (api *TierApi) GetTieringConfigurationById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetTieringConfigurationApiResponse, error)

Get a tiering configuration with the given external identifier. Specify a valid identifier of the file server (`fileServerExtId`) and the tiering configuration (`extId`).

func (*TierApi) ListObjectStoreProfiles

func (api *TierApi) ListObjectStoreProfiles(fileServerExtId *string, page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import3.ListObjectStoreProfilesApiResponse, error)

Get a paginated list of object store profiles of a file server identified by the external identifier.

func (*TierApi) ListTieringConfigurations

func (api *TierApi) ListTieringConfigurations(fileServerExtId *string, page_ *int, limit_ *int, filter_ *string, orderby_ *string, args ...map[string]interface{}) (*import3.ListTieringConfigurationsApiResponse, error)

Get the paginated list of the tiering configuration.

func (*TierApi) RecalculateColdData

func (api *TierApi) RecalculateColdData(extId *string, args ...map[string]interface{}) (*import3.RecalculateColdDataApiResponse, error)

Calculates the storage size of the tier cold data.

func (*TierApi) RecallTieredFiles

func (api *TierApi) RecallTieredFiles(extId *string, body *import3.FilesSpec, args ...map[string]interface{}) (*import3.RecallTieredFilesApiResponse, error)

Recall the specified files from a file server. To recall, users can specify a file or list of files of specific share.

func (*TierApi) TierData

func (api *TierApi) TierData(extId *string, body *import3.TierDataSpec, args ...map[string]interface{}) (*import3.TierDataApiResponse, error)

Initiate the process of tiering data. For manual tiering filesSpec field is not required. Users needs to provide durationSeconds field with time(in seconds). Tiering starts immediately and will run for the specified duration. If no duration is provided, then the tiering will run until the file server storage usage reaches the threshold capacity value.

func (*TierApi) UpdateObjectStoreProfileById

func (api *TierApi) UpdateObjectStoreProfileById(fileServerExtId *string, extId *string, body *import3.ObjectStoreProfile, args ...map[string]interface{}) (*import3.UpdateObjectStoreProfileApiResponse, error)

Update attributes of the object store profile with the given external identifier using the provided request body. Specify a valid identifier of the file server (`fileServerExtId`) and the profile (`extId`). It is always recommended to perform a GET request on a resource before doing an UPDATE.

func (*TierApi) UpdateTieringConfigurationById

func (api *TierApi) UpdateTieringConfigurationById(fileServerExtId *string, extId *string, body *import3.TierConfiguration, args ...map[string]interface{}) (*import3.UpdateTieringConfigurationApiResponse, error)

Update the tiering configuration with the given external identifier by using the provided request body. Specify a valid identifier of the file server (`fileServerExtId`) and of the tiering configuration (`extId`). It is always recommended to perform a GET request on a resource before requesting an UPDATE call.

type UnifiedNamespacesApi

type UnifiedNamespacesApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewUnifiedNamespacesApi

func NewUnifiedNamespacesApi(apiClient *client.ApiClient) *UnifiedNamespacesApi

func (*UnifiedNamespacesApi) CreateUnifiedNamespace

func (api *UnifiedNamespacesApi) CreateUnifiedNamespace(body *import3.UnifiedNamespace, args ...map[string]interface{}) (*import3.CreateUnifiedNamespaceApiResponse, error)

Creates a new unified namespace with multiple member file servers and single core member. The users need to specify the list of member file servers and a single core member to be part of unified namespace inside the request body.

func (*UnifiedNamespacesApi) DeleteUnifiedNamespaceById

func (api *UnifiedNamespacesApi) DeleteUnifiedNamespaceById(extId *string, args ...map[string]interface{}) (*import3.DeleteUnifiedNamespaceApiResponse, error)

Delete the unified namespace identified by external identifier.

func (*UnifiedNamespacesApi) GetUnifiedNamespaceById

func (api *UnifiedNamespacesApi) GetUnifiedNamespaceById(extId *string, args ...map[string]interface{}) (*import3.GetUnifiedNamespaceApiResponse, error)

Get a unified namespace with the given external identifier. Specify a valid identifier (`extId`) of the unified namespace to be fetched.

func (*UnifiedNamespacesApi) ListUnifiedNamespaces

func (api *UnifiedNamespacesApi) ListUnifiedNamespaces(page_ *int, limit_ *int, filter_ *string, orderby_ *string, args ...map[string]interface{}) (*import3.ListUnifiedNamespacesApiResponse, error)

Get a paginated list of unified namespaces. Each unified namespace contains list of unified namespace member configurations. Each unified namespace member configuration contains a member file server and a flag to indicate whether it is a core member. 1. Paginate the returned unified namespaces list ``` /api/files/v4.0.b1/config/unified-namespaces?$page=0&$limit=1 ``` If the user doesn't specify any search query parameters, a list of root level unified namespaces are returned.

func (*UnifiedNamespacesApi) UpdateUnifiedNamespaceById

func (api *UnifiedNamespacesApi) UpdateUnifiedNamespaceById(extId *string, body *import3.UnifiedNamespace, args ...map[string]interface{}) (*import3.UpdateUnifiedNamespaceApiResponse, error)

Updates the unified namespace with the given external identifier using the provided request body. Specify a valid identifier (`extId`) of the unified namespace to be updated. They also need to provide a request body for performing the update. They need to specify the `extId` of the unified namespace to be updated and its other parameters like `namespaceMemberConfigs` inside the request body. User can either add or delete the member file server(which is non core member) during update and cannot delete or change the core member. It is always recommended to do a GET on a resource before doing an UPDATE.

type UserMappingsApi

type UserMappingsApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewUserMappingsApi

func NewUserMappingsApi(apiClient *client.ApiClient) *UserMappingsApi

func (*UserMappingsApi) DownloadUserMappings

func (api *UserMappingsApi) DownloadUserMappings(fileServerExtId *string, args ...map[string]interface{}) (*import3.DownloadUserMappingsApiResponse, error)

Download user mapping to CSV file.

func (*UserMappingsApi) UploadUserMappings

func (api *UserMappingsApi) UploadUserMappings(fileServerExtId *string, path *string, args ...map[string]interface{}) (*import3.UploadUserMappingsApiResponse, error)

Upload user mappings using CSV file. Examples of Various types of mappings 1. Explicit mapping - One-to-one mapping. Add mapping between SMB and NFS users or groups smbName,nfsId,userOrGroup,mappingType child4\\\\u11,1,User,OneToOne 2. Explicit mapping - Wildcard-based mapping. Add mapping between SMB and NFS users or groups. Priority of the mapping will be decided based on the order of the entries. child4\\\\*,4,Group,WildCard 3. Explicit mapping - Deny Smb users/group child4\\\\u13,,User,Deny 4. Explicit mapping - Deny NFS users/groups ,1000,Group,Deny 5. Rule based mapping. Add this entry to enable template mapping. ,,,Template 6. Default mapping - Deny SMB users/Groups with no NFS mapping ,-,User,Default ,-,Group,Default 7. Default mapping - Deny NFS users/Groups with no SMB mapping -,,User,Default -,,Group,Default

type VirusScanPoliciesApi

type VirusScanPoliciesApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewVirusScanPoliciesApi

func NewVirusScanPoliciesApi(apiClient *client.ApiClient) *VirusScanPoliciesApi

func (*VirusScanPoliciesApi) CreateVirusScanPolicy

func (api *VirusScanPoliciesApi) CreateVirusScanPolicy(fileServerExtId *string, body *import3.VirusScanPolicy, args ...map[string]interface{}) (*import3.CreateVirusScanPolicyApiResponse, error)

Creates a new virus scan policy. Users can create a virus scan policy at the file-server level for all shares or an individual mount target. When no mountTargetReference is passed in the request body, a policy will be created for the file server. When mountTargetReference is passed in the body, the policy will be created for that specific mount target.

func (*VirusScanPoliciesApi) DeleteVirusScanPolicyById

func (api *VirusScanPoliciesApi) DeleteVirusScanPolicyById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.DeleteVirusScanPolicyApiResponse, error)

Deletes a virus scan policy for a mount target that is identified by the mountTargetExtId in the request body. The option to delete file-server level policy is not supported.

func (*VirusScanPoliciesApi) GetVirusScanPolicyById

func (api *VirusScanPoliciesApi) GetVirusScanPolicyById(fileServerExtId *string, extId *string, args ...map[string]interface{}) (*import3.GetVirusScanPolicyApiResponse, error)

Fetch details of a virus scan policy identified by external identifier.

func (*VirusScanPoliciesApi) ListVirusScanPolicies

func (api *VirusScanPoliciesApi) ListVirusScanPolicies(fileServerExtId *string, page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import3.ListVirusScanPoliciesApiResponse, error)

List virus scan policies for a file server.

func (*VirusScanPoliciesApi) UpdateVirusScanPolicyById

func (api *VirusScanPoliciesApi) UpdateVirusScanPolicyById(fileServerExtId *string, extId *string, body *import3.VirusScanPolicy, args ...map[string]interface{}) (*import3.UpdateVirusScanPolicyApiResponse, error)

Updated a virus scan policy for file server identified by the external identifier.

Jump to

Keyboard shortcuts

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