public interface Databases
| Modifier and Type | Method and Description |
|---|---|
Database.DefinitionStages.Blank |
define(String name)
Begins definition for a new Database resource.
|
void |
delete(String resourceGroupName,
String serverName,
String databaseName)
Deletes a database.
|
void |
delete(String resourceGroupName,
String serverName,
String databaseName,
com.azure.core.util.Context context)
Deletes a database.
|
void |
deleteById(String id)
Deletes a database.
|
void |
deleteByIdWithResponse(String id,
com.azure.core.util.Context context)
Deletes a database.
|
Database |
get(String resourceGroupName,
String serverName,
String databaseName)
Gets information about a database.
|
Database |
getById(String id)
Gets information about a database.
|
com.azure.core.http.rest.Response<Database> |
getByIdWithResponse(String id,
com.azure.core.util.Context context)
Gets information about a database.
|
com.azure.core.http.rest.Response<Database> |
getWithResponse(String resourceGroupName,
String serverName,
String databaseName,
com.azure.core.util.Context context)
Gets information about a database.
|
com.azure.core.http.rest.PagedIterable<Database> |
listByServer(String resourceGroupName,
String serverName)
List all the databases in a given server.
|
com.azure.core.http.rest.PagedIterable<Database> |
listByServer(String resourceGroupName,
String serverName,
com.azure.core.util.Context context)
List all the databases in a given server.
|
void delete(String resourceGroupName, String serverName, String databaseName)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.databaseName - The name of the database.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, String databaseName, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.databaseName - The name of the database.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.Database get(String resourceGroupName, String serverName, String databaseName)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.databaseName - The name of the database.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<Database> getWithResponse(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.databaseName - The name of the database.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<Database> listByServer(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.PagedIterable<Database> listByServer(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.Database 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<Database> 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.Database.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.