ServersOperations interface

Interface representing a Servers operations.

Properties

beginCreateOrUpdate
beginCreateOrUpdateAndWait
beginDelete
beginDeleteAndWait
beginImportDatabase
beginImportDatabaseAndWait
beginRefreshStatus
beginRefreshStatusAndWait
beginUpdate
beginUpdateAndWait
checkNameAvailability

Determines whether a resource can be created with the specified name.

createOrUpdate

Creates or updates a server.

delete

Deletes a server.

get

Gets a server.

importDatabase

Imports a bacpac into a new database.

list

Gets a list of all servers in the subscription.

listByResourceGroup

Gets a list of servers in a resource groups.

refreshStatus

Refresh external governance enablement status.

update

Updates a server.

Property Details

beginCreateOrUpdate

Warning

This API is now deprecated.

use createOrUpdate instead

beginCreateOrUpdate: (resourceGroupName: string, serverName: string, parameters: Server, options?: ServersCreateOrUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<Server>, Server>>

Property Value

(resourceGroupName: string, serverName: string, parameters: Server, options?: ServersCreateOrUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<Server>, Server>>

beginCreateOrUpdateAndWait

Warning

This API is now deprecated.

use createOrUpdate instead

beginCreateOrUpdateAndWait: (resourceGroupName: string, serverName: string, parameters: Server, options?: ServersCreateOrUpdateOptionalParams) => Promise<Server>

Property Value

(resourceGroupName: string, serverName: string, parameters: Server, options?: ServersCreateOrUpdateOptionalParams) => Promise<Server>

beginDelete

Warning

This API is now deprecated.

use delete instead

beginDelete: (resourceGroupName: string, serverName: string, options?: ServersDeleteOptionalParams) => Promise<SimplePollerLike<OperationState<void>, void>>

Property Value

(resourceGroupName: string, serverName: string, options?: ServersDeleteOptionalParams) => Promise<SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait

Warning

This API is now deprecated.

use delete instead

beginDeleteAndWait: (resourceGroupName: string, serverName: string, options?: ServersDeleteOptionalParams) => Promise<void>

Property Value

(resourceGroupName: string, serverName: string, options?: ServersDeleteOptionalParams) => Promise<void>

beginImportDatabase

Warning

This API is now deprecated.

use importDatabase instead

beginImportDatabase: (resourceGroupName: string, serverName: string, parameters: ImportNewDatabaseDefinition, options?: ServersImportDatabaseOptionalParams) => Promise<SimplePollerLike<OperationState<ImportExportOperationResult>, ImportExportOperationResult>>

Property Value

(resourceGroupName: string, serverName: string, parameters: ImportNewDatabaseDefinition, options?: ServersImportDatabaseOptionalParams) => Promise<SimplePollerLike<OperationState<ImportExportOperationResult>, ImportExportOperationResult>>

beginImportDatabaseAndWait

Warning

This API is now deprecated.

use importDatabase instead

beginImportDatabaseAndWait: (resourceGroupName: string, serverName: string, parameters: ImportNewDatabaseDefinition, options?: ServersImportDatabaseOptionalParams) => Promise<ImportExportOperationResult>

Property Value

(resourceGroupName: string, serverName: string, parameters: ImportNewDatabaseDefinition, options?: ServersImportDatabaseOptionalParams) => Promise<ImportExportOperationResult>

beginRefreshStatus

Warning

This API is now deprecated.

use refreshStatus instead

beginRefreshStatus: (resourceGroupName: string, serverName: string, options?: ServersRefreshStatusOptionalParams) => Promise<SimplePollerLike<OperationState<RefreshExternalGovernanceStatusOperationResult>, RefreshExternalGovernanceStatusOperationResult>>

Property Value

(resourceGroupName: string, serverName: string, options?: ServersRefreshStatusOptionalParams) => Promise<SimplePollerLike<OperationState<RefreshExternalGovernanceStatusOperationResult>, RefreshExternalGovernanceStatusOperationResult>>

beginRefreshStatusAndWait

Warning

This API is now deprecated.

use refreshStatus instead

beginRefreshStatusAndWait: (resourceGroupName: string, serverName: string, options?: ServersRefreshStatusOptionalParams) => Promise<RefreshExternalGovernanceStatusOperationResult>

Property Value

(resourceGroupName: string, serverName: string, options?: ServersRefreshStatusOptionalParams) => Promise<RefreshExternalGovernanceStatusOperationResult>

beginUpdate

Warning

This API is now deprecated.

use update instead

beginUpdate: (resourceGroupName: string, serverName: string, parameters: ServerUpdate, options?: ServersUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<Server>, Server>>

Property Value

(resourceGroupName: string, serverName: string, parameters: ServerUpdate, options?: ServersUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<Server>, Server>>

beginUpdateAndWait

Warning

This API is now deprecated.

use update instead

beginUpdateAndWait: (resourceGroupName: string, serverName: string, parameters: ServerUpdate, options?: ServersUpdateOptionalParams) => Promise<Server>

Property Value

(resourceGroupName: string, serverName: string, parameters: ServerUpdate, options?: ServersUpdateOptionalParams) => Promise<Server>

checkNameAvailability

Determines whether a resource can be created with the specified name.

checkNameAvailability: (parameters: CheckNameAvailabilityRequest, options?: ServersCheckNameAvailabilityOptionalParams) => Promise<CheckNameAvailabilityResponse>

Property Value

(parameters: CheckNameAvailabilityRequest, options?: ServersCheckNameAvailabilityOptionalParams) => Promise<CheckNameAvailabilityResponse>

createOrUpdate

Creates or updates a server.

createOrUpdate: (resourceGroupName: string, serverName: string, parameters: Server, options?: ServersCreateOrUpdateOptionalParams) => PollerLike<OperationState<Server>, Server>

Property Value

(resourceGroupName: string, serverName: string, parameters: Server, options?: ServersCreateOrUpdateOptionalParams) => PollerLike<OperationState<Server>, Server>

delete

Deletes a server.

delete: (resourceGroupName: string, serverName: string, options?: ServersDeleteOptionalParams) => PollerLike<OperationState<void>, void>

Property Value

(resourceGroupName: string, serverName: string, options?: ServersDeleteOptionalParams) => PollerLike<OperationState<void>, void>

get

Gets a server.

get: (resourceGroupName: string, serverName: string, options?: ServersGetOptionalParams) => Promise<Server>

Property Value

(resourceGroupName: string, serverName: string, options?: ServersGetOptionalParams) => Promise<Server>

importDatabase

Imports a bacpac into a new database.

importDatabase: (resourceGroupName: string, serverName: string, parameters: ImportNewDatabaseDefinition, options?: ServersImportDatabaseOptionalParams) => PollerLike<OperationState<ImportExportOperationResult>, ImportExportOperationResult>

Property Value

(resourceGroupName: string, serverName: string, parameters: ImportNewDatabaseDefinition, options?: ServersImportDatabaseOptionalParams) => PollerLike<OperationState<ImportExportOperationResult>, ImportExportOperationResult>

list

Gets a list of all servers in the subscription.

list: (options?: ServersListOptionalParams) => PagedAsyncIterableIterator<Server, Server[], PageSettings>

Property Value

(options?: ServersListOptionalParams) => PagedAsyncIterableIterator<Server, Server[], PageSettings>

listByResourceGroup

Gets a list of servers in a resource groups.

listByResourceGroup: (resourceGroupName: string, options?: ServersListByResourceGroupOptionalParams) => PagedAsyncIterableIterator<Server, Server[], PageSettings>

Property Value

(resourceGroupName: string, options?: ServersListByResourceGroupOptionalParams) => PagedAsyncIterableIterator<Server, Server[], PageSettings>

refreshStatus

Refresh external governance enablement status.

refreshStatus: (resourceGroupName: string, serverName: string, options?: ServersRefreshStatusOptionalParams) => PollerLike<OperationState<RefreshExternalGovernanceStatusOperationResult>, RefreshExternalGovernanceStatusOperationResult>

Property Value

(resourceGroupName: string, serverName: string, options?: ServersRefreshStatusOptionalParams) => PollerLike<OperationState<RefreshExternalGovernanceStatusOperationResult>, RefreshExternalGovernanceStatusOperationResult>

update

Updates a server.

update: (resourceGroupName: string, serverName: string, parameters: ServerUpdate, options?: ServersUpdateOptionalParams) => PollerLike<OperationState<Server>, Server>

Property Value

(resourceGroupName: string, serverName: string, parameters: ServerUpdate, options?: ServersUpdateOptionalParams) => PollerLike<OperationState<Server>, Server>