Servers interface
Interface representing a Servers.
Methods
Method Details
beginCreate(string, string, ServerForCreate, ServersCreateOptionalParams)
Creates a new server, or will overwrite an existing server.
function beginCreate(resourceGroupName: string, serverName: string, parameters: ServerForCreate, options?: ServersCreateOptionalParams): Promise<PollerLike<PollOperationState<Server>, Server>>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serverName
-
string
The name of the server.
- parameters
- ServerForCreate
The required parameters for creating or updating a server.
- options
- ServersCreateOptionalParams
The options parameters.
Returns
Promise<PollerLike<@azure/core-lro.PollOperationState<Server>, Server>>
beginCreateAndWait(string, string, ServerForCreate, ServersCreateOptionalParams)
Creates a new server, or will overwrite an existing server.
function beginCreateAndWait(resourceGroupName: string, serverName: string, parameters: ServerForCreate, options?: ServersCreateOptionalParams): Promise<Server>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serverName
-
string
The name of the server.
- parameters
- ServerForCreate
The required parameters for creating or updating a server.
- options
- ServersCreateOptionalParams
The options parameters.
Returns
Promise<Server>
beginDelete(string, string, ServersDeleteOptionalParams)
Deletes a server.
function beginDelete(resourceGroupName: string, serverName: string, options?: ServersDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serverName
-
string
The name of the server.
- options
- ServersDeleteOptionalParams
The options parameters.
Returns
Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>
beginDeleteAndWait(string, string, ServersDeleteOptionalParams)
Deletes a server.
function beginDeleteAndWait(resourceGroupName: string, serverName: string, options?: ServersDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serverName
-
string
The name of the server.
- options
- ServersDeleteOptionalParams
The options parameters.
Returns
Promise<void>
beginRestart(string, string, ServersRestartOptionalParams)
Restarts a server.
function beginRestart(resourceGroupName: string, serverName: string, options?: ServersRestartOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serverName
-
string
The name of the server.
- options
- ServersRestartOptionalParams
The options parameters.
Returns
Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>
beginRestartAndWait(string, string, ServersRestartOptionalParams)
Restarts a server.
function beginRestartAndWait(resourceGroupName: string, serverName: string, options?: ServersRestartOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serverName
-
string
The name of the server.
- options
- ServersRestartOptionalParams
The options parameters.
Returns
Promise<void>
beginUpdate(string, string, ServerUpdateParameters, ServersUpdateOptionalParams)
Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.
function beginUpdate(resourceGroupName: string, serverName: string, parameters: ServerUpdateParameters, options?: ServersUpdateOptionalParams): Promise<PollerLike<PollOperationState<Server>, Server>>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serverName
-
string
The name of the server.
- parameters
- ServerUpdateParameters
The required parameters for updating a server.
- options
- ServersUpdateOptionalParams
The options parameters.
Returns
Promise<PollerLike<@azure/core-lro.PollOperationState<Server>, Server>>
beginUpdateAndWait(string, string, ServerUpdateParameters, ServersUpdateOptionalParams)
Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.
function beginUpdateAndWait(resourceGroupName: string, serverName: string, parameters: ServerUpdateParameters, options?: ServersUpdateOptionalParams): Promise<Server>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serverName
-
string
The name of the server.
- parameters
- ServerUpdateParameters
The required parameters for updating a server.
- options
- ServersUpdateOptionalParams
The options parameters.
Returns
Promise<Server>
get(string, string, ServersGetOptionalParams)
Gets information about a server.
function get(resourceGroupName: string, serverName: string, options?: ServersGetOptionalParams): Promise<Server>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serverName
-
string
The name of the server.
- options
- ServersGetOptionalParams
The options parameters.
Returns
Promise<Server>
list(ServersListOptionalParams)
List all the servers in a given subscription.
function list(options?: ServersListOptionalParams): PagedAsyncIterableIterator<Server, Server[], PageSettings>
Parameters
- options
- ServersListOptionalParams
The options parameters.
Returns
listByResourceGroup(string, ServersListByResourceGroupOptionalParams)
List all the servers in a given resource group.
function listByResourceGroup(resourceGroupName: string, options?: ServersListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Server, Server[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
The options parameters.