Servers Interface

public interface Servers

Resource collection API of Servers.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new Server resource.

abstract void delete(String resourceGroupName, String serverName, Context context)

Deletes a server.

abstract void deleteById(String id)

Deletes a server.

abstract void deleteByIdWithResponse(String id, Context context)

Deletes a server.

abstract void deleteByResourceGroup(String resourceGroupName, String serverName)

Deletes a server.

abstract Server getById(String id)

Gets information about a server.

abstract Response<Server> getByIdWithResponse(String id, Context context)

Gets information about a server.

abstract Server getByResourceGroup(String resourceGroupName, String serverName)

Gets information about a server.

abstract Response<Server> getByResourceGroupWithResponse(String resourceGroupName, String serverName, Context context)

Gets information about a server.

abstract PagedIterable<Server> list()

List all the servers in a given subscription.

abstract PagedIterable<Server> list(Context context)

List all the servers in a given subscription.

abstract PagedIterable<Server> listByResourceGroup(String resourceGroupName)

List all the servers in a given resource group.

abstract PagedIterable<Server> listByResourceGroup(String resourceGroupName, Context context)

List all the servers in a given resource group.

abstract void restart(String resourceGroupName, String serverName)

Restarts a server.

abstract void restart(String resourceGroupName, String serverName, Context context)

Restarts a server.

abstract void start(String resourceGroupName, String serverName)

Starts a stopped server.

abstract void start(String resourceGroupName, String serverName, Context context)

Starts a stopped server.

abstract void stop(String resourceGroupName, String serverName)

Stops a running server.

abstract void stop(String resourceGroupName, String serverName, Context context)

Stops a running server.

abstract void upgrade(String resourceGroupName, String serverName, ServerUpgradeParameters parameters)

Upgrade server version.

abstract void upgrade(String resourceGroupName, String serverName, ServerUpgradeParameters parameters, Context context)

Upgrade server version.

Method Details

define

public abstract Server.DefinitionStages.Blank define(String name)

Begins definition for a new Server resource.

Parameters:

name - resource name.

Returns:

the first stage of the new Server definition.

delete

public abstract void delete(String resourceGroupName, String serverName, Context context)

Deletes a server.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
context - The context to associate with this operation.

deleteById

public abstract void deleteById(String id)

Deletes a server.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract void deleteByIdWithResponse(String id, Context context)

Deletes a server.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

deleteByResourceGroup

public abstract void deleteByResourceGroup(String resourceGroupName, String serverName)

Deletes a server.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.

getById

public abstract Server getById(String id)

Gets information about a server.

Parameters:

id - the resource ID.

Returns:

information about a server along with Response<T>.

getByIdWithResponse

public abstract Response<Server> getByIdWithResponse(String id, Context context)

Gets information about a server.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

information about a server along with Response<T>.

getByResourceGroup

public abstract Server getByResourceGroup(String resourceGroupName, String serverName)

Gets information about a server.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.

Returns:

information about a server.

getByResourceGroupWithResponse

public abstract Response<Server> getByResourceGroupWithResponse(String resourceGroupName, String serverName, Context context)

Gets information about a server.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
context - The context to associate with this operation.

Returns:

information about a server along with Response<T>.

list

public abstract PagedIterable<Server> list()

List all the servers in a given subscription.

Returns:

a list of servers.

list

public abstract PagedIterable<Server> list(Context context)

List all the servers in a given subscription.

Parameters:

context - The context to associate with this operation.

Returns:

a list of servers.

listByResourceGroup

public abstract PagedIterable<Server> listByResourceGroup(String resourceGroupName)

List all the servers in a given resource group.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.

Returns:

a list of servers.

listByResourceGroup

public abstract PagedIterable<Server> listByResourceGroup(String resourceGroupName, Context context)

List all the servers in a given resource group.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
context - The context to associate with this operation.

Returns:

a list of servers.

restart

public abstract void restart(String resourceGroupName, String serverName)

Restarts a server.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.

restart

public abstract void restart(String resourceGroupName, String serverName, Context context)

Restarts a server.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
context - The context to associate with this operation.

start

public abstract void start(String resourceGroupName, String serverName)

Starts a stopped server.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.

start

public abstract void start(String resourceGroupName, String serverName, Context context)

Starts a stopped server.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
context - The context to associate with this operation.

stop

public abstract void stop(String resourceGroupName, String serverName)

Stops a running server.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.

stop

public abstract void stop(String resourceGroupName, String serverName, Context context)

Stops a running server.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
context - The context to associate with this operation.

upgrade

public abstract void upgrade(String resourceGroupName, String serverName, ServerUpgradeParameters parameters)

Upgrade server version.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
parameters - The required parameters for updating a server.

upgrade

public abstract void upgrade(String resourceGroupName, String serverName, ServerUpgradeParameters parameters, Context context)

Upgrade server version.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
parameters - The required parameters for updating a server.
context - The context to associate with this operation.

Applies to