public interface Servers
| Modifier and Type | Method and Description |
|---|---|
Server.DefinitionStages.Blank |
define(String name)
Begins definition for a new Server resource.
|
void |
delete(String resourceGroupName,
String serverName,
com.azure.core.util.Context context)
Deletes a server.
|
void |
deleteById(String id)
Deletes a server.
|
void |
deleteByIdWithResponse(String id,
com.azure.core.util.Context context)
Deletes a server.
|
void |
deleteByResourceGroup(String resourceGroupName,
String serverName)
Deletes a server.
|
Server |
getById(String id)
Gets information about a server.
|
com.azure.core.http.rest.Response<Server> |
getByIdWithResponse(String id,
com.azure.core.util.Context context)
Gets information about a server.
|
Server |
getByResourceGroup(String resourceGroupName,
String serverName)
Gets information about a server.
|
com.azure.core.http.rest.Response<Server> |
getByResourceGroupWithResponse(String resourceGroupName,
String serverName,
com.azure.core.util.Context context)
Gets information about a server.
|
com.azure.core.http.rest.PagedIterable<Server> |
list()
List all the servers in a given subscription.
|
com.azure.core.http.rest.PagedIterable<Server> |
list(com.azure.core.util.Context context)
List all the servers in a given subscription.
|
com.azure.core.http.rest.PagedIterable<Server> |
listByResourceGroup(String resourceGroupName)
List all the servers in a given resource group.
|
com.azure.core.http.rest.PagedIterable<Server> |
listByResourceGroup(String resourceGroupName,
com.azure.core.util.Context context)
List all the servers in a given resource group.
|
void |
restart(String resourceGroupName,
String serverName)
Restarts a server.
|
void |
restart(String resourceGroupName,
String serverName,
RestartParameter parameters)
Restarts a server.
|
void |
restart(String resourceGroupName,
String serverName,
RestartParameter parameters,
com.azure.core.util.Context context)
Restarts a server.
|
void |
start(String resourceGroupName,
String serverName)
Starts a server.
|
void |
start(String resourceGroupName,
String serverName,
com.azure.core.util.Context context)
Starts a server.
|
void |
stop(String resourceGroupName,
String serverName)
Stops a server.
|
void |
stop(String resourceGroupName,
String serverName,
com.azure.core.util.Context context)
Stops a server.
|
void deleteByResourceGroup(String resourceGroupName, String serverName)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.void delete(String resourceGroupName, String serverName, com.azure.core.util.Context context)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Server getByResourceGroup(String resourceGroupName, String serverName)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<Server> getByResourceGroupWithResponse(String resourceGroupName, String serverName, com.azure.core.util.Context context)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<Server> listByResourceGroup(String resourceGroupName)
resourceGroupName - The name of the resource group. The name is case insensitive.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<Server> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group. The name is case insensitive.context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<Server> list()
com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<Server> list(com.azure.core.util.Context context)
context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.void restart(String resourceGroupName, String serverName, RestartParameter parameters)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.parameters - The parameters for restarting a server.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.void restart(String resourceGroupName, String serverName)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.void restart(String resourceGroupName, String serverName, RestartParameter parameters, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.parameters - The parameters for restarting a server.context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.void start(String resourceGroupName, String serverName)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.void start(String resourceGroupName, String serverName, com.azure.core.util.Context context)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.void stop(String resourceGroupName, String serverName)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.void stop(String resourceGroupName, String serverName, com.azure.core.util.Context context)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Server getById(String id)
id - the resource ID.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<Server> getByIdWithResponse(String id, com.azure.core.util.Context context)
id - the resource ID.context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.void deleteById(String id)
id - the resource ID.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
id - the resource ID.context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Server.DefinitionStages.Blank define(String name)
name - resource name.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.