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.

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 as paginated response with PagedIterable<T>.

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 as paginated response with PagedIterable<T>.

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 as paginated response with PagedIterable<T>.

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 as paginated response with PagedIterable<T>.

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.

Applies to