Interface Services
-
Method Summary
Modifier and TypeMethodDescriptioncheckNameAvailability
(String location, NameAvailabilityRequest parameters) Check name validity and availabilitycom.azure.core.http.rest.Response<NameAvailabilityResponse>
checkNameAvailabilityWithResponse
(String location, NameAvailabilityRequest parameters, com.azure.core.util.Context context) Check name validity and availabilitycheckStatus
(String groupName, String serviceName) Check service health statuscom.azure.core.http.rest.Response<DataMigrationServiceStatusResponse>
checkStatusWithResponse
(String groupName, String serviceName, com.azure.core.util.Context context) Check service health statusBegins definition for a new DataMigrationService resource.void
Delete DMS Service Instancevoid
delete
(String groupName, String serviceName, Boolean deleteRunningTasks, com.azure.core.util.Context context) Delete DMS Service Instancevoid
deleteById
(String id) Delete DMS Service Instancevoid
deleteByIdWithResponse
(String id, Boolean deleteRunningTasks, com.azure.core.util.Context context) Delete DMS Service InstanceGet DMS Service Instancecom.azure.core.http.rest.Response<DataMigrationService>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get DMS Service InstancegetByResourceGroup
(String groupName, String serviceName) Get DMS Service Instancecom.azure.core.http.rest.Response<DataMigrationService>
getByResourceGroupWithResponse
(String groupName, String serviceName, com.azure.core.util.Context context) Get DMS Service Instancecom.azure.core.http.rest.PagedIterable<DataMigrationService>
list()
Get services in subscriptioncom.azure.core.http.rest.PagedIterable<DataMigrationService>
list
(com.azure.core.util.Context context) Get services in subscriptioncom.azure.core.http.rest.PagedIterable<DataMigrationService>
listByResourceGroup
(String groupName) Get services in resource groupcom.azure.core.http.rest.PagedIterable<DataMigrationService>
listByResourceGroup
(String groupName, com.azure.core.util.Context context) Get services in resource groupcom.azure.core.http.rest.PagedIterable<AvailableServiceSku>
Get compatible SKUscom.azure.core.http.rest.PagedIterable<AvailableServiceSku>
Get compatible SKUsnestedCheckNameAvailability
(String groupName, String serviceName, NameAvailabilityRequest parameters) Check nested resource name validity and availabilitycom.azure.core.http.rest.Response<NameAvailabilityResponse>
nestedCheckNameAvailabilityWithResponse
(String groupName, String serviceName, NameAvailabilityRequest parameters, com.azure.core.util.Context context) Check nested resource name validity and availabilityvoid
Start servicevoid
Start servicevoid
Stop servicevoid
Stop service
-
Method Details
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<DataMigrationService> getByResourceGroupWithResponse(String groupName, String serviceName, com.azure.core.util.Context context) Get DMS Service InstanceThe services resource is the top-level resource that represents the Database Migration Service. The GET method retrieves information about a service instance.
- Parameters:
groupName
- Name of the resource group.serviceName
- Name of the service.context
- The context to associate with this operation.- Returns:
- a Database Migration Service resource along with
Response
. - Throws:
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.
-
getByResourceGroup
Get DMS Service InstanceThe services resource is the top-level resource that represents the Database Migration Service. The GET method retrieves information about a service instance.
- Parameters:
groupName
- Name of the resource group.serviceName
- Name of the service.- Returns:
- a Database Migration Service resource.
- Throws:
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.
-
delete
Delete DMS Service InstanceThe services resource is the top-level resource that represents the Database Migration Service. The DELETE method deletes a service. Any running tasks will be canceled.
- Parameters:
groupName
- Name of the resource group.serviceName
- Name of the service.- Throws:
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.
-
delete
void delete(String groupName, String serviceName, Boolean deleteRunningTasks, com.azure.core.util.Context context) Delete DMS Service InstanceThe services resource is the top-level resource that represents the Database Migration Service. The DELETE method deletes a service. Any running tasks will be canceled.
- Parameters:
groupName
- Name of the resource group.serviceName
- Name of the service.deleteRunningTasks
- Delete the resource even if it contains running tasks.context
- The context to associate with this operation.- Throws:
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.
-
checkStatusWithResponse
com.azure.core.http.rest.Response<DataMigrationServiceStatusResponse> checkStatusWithResponse(String groupName, String serviceName, com.azure.core.util.Context context) Check service health statusThe services resource is the top-level resource that represents the Database Migration Service. This action performs a health check and returns the status of the service and virtual machine size.
- Parameters:
groupName
- Name of the resource group.serviceName
- Name of the service.context
- The context to associate with this operation.- Returns:
- service health status along with
Response
. - Throws:
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.
-
checkStatus
Check service health statusThe services resource is the top-level resource that represents the Database Migration Service. This action performs a health check and returns the status of the service and virtual machine size.
- Parameters:
groupName
- Name of the resource group.serviceName
- Name of the service.- Returns:
- service health status.
- Throws:
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.
-
start
Start serviceThe services resource is the top-level resource that represents the Database Migration Service. This action starts the service and the service can be used for data migration.
- Parameters:
groupName
- Name of the resource group.serviceName
- Name of the service.- Throws:
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.
-
start
Start serviceThe services resource is the top-level resource that represents the Database Migration Service. This action starts the service and the service can be used for data migration.
- Parameters:
groupName
- Name of the resource group.serviceName
- Name of the service.context
- The context to associate with this operation.- Throws:
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.
-
stop
Stop serviceThe services resource is the top-level resource that represents the Database Migration Service. This action stops the service and the service cannot be used for data migration. The service owner won't be billed when the service is stopped.
- Parameters:
groupName
- Name of the resource group.serviceName
- Name of the service.- Throws:
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.
-
stop
Stop serviceThe services resource is the top-level resource that represents the Database Migration Service. This action stops the service and the service cannot be used for data migration. The service owner won't be billed when the service is stopped.
- Parameters:
groupName
- Name of the resource group.serviceName
- Name of the service.context
- The context to associate with this operation.- Throws:
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.
-
listSkus
com.azure.core.http.rest.PagedIterable<AvailableServiceSku> listSkus(String groupName, String serviceName) Get compatible SKUsThe services resource is the top-level resource that represents the Database Migration Service. The skus action returns the list of SKUs that a service resource can be updated to.
- Parameters:
groupName
- Name of the resource group.serviceName
- Name of the service.- Returns:
- oData page of available SKUs as paginated response with
PagedIterable
. - Throws:
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.
-
listSkus
com.azure.core.http.rest.PagedIterable<AvailableServiceSku> listSkus(String groupName, String serviceName, com.azure.core.util.Context context) Get compatible SKUsThe services resource is the top-level resource that represents the Database Migration Service. The skus action returns the list of SKUs that a service resource can be updated to.
- Parameters:
groupName
- Name of the resource group.serviceName
- Name of the service.context
- The context to associate with this operation.- Returns:
- oData page of available SKUs as paginated response with
PagedIterable
. - Throws:
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.
-
nestedCheckNameAvailabilityWithResponse
com.azure.core.http.rest.Response<NameAvailabilityResponse> nestedCheckNameAvailabilityWithResponse(String groupName, String serviceName, NameAvailabilityRequest parameters, com.azure.core.util.Context context) Check nested resource name validity and availabilityThis method checks whether a proposed nested resource name is valid and available.
- Parameters:
groupName
- Name of the resource group.serviceName
- Name of the service.parameters
- Requested name to validate.context
- The context to associate with this operation.- Returns:
- indicates whether a proposed resource name is available along with
Response
. - Throws:
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.
-
nestedCheckNameAvailability
NameAvailabilityResponse nestedCheckNameAvailability(String groupName, String serviceName, NameAvailabilityRequest parameters) Check nested resource name validity and availabilityThis method checks whether a proposed nested resource name is valid and available.
- Parameters:
groupName
- Name of the resource group.serviceName
- Name of the service.parameters
- Requested name to validate.- Returns:
- indicates whether a proposed resource name is available.
- Throws:
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.
-
listByResourceGroup
Get services in resource groupThe Services resource is the top-level resource that represents the Database Migration Service. This method returns a list of service resources in a resource group.
- Parameters:
groupName
- Name of the resource group.- Returns:
- oData page of service objects as paginated response with
PagedIterable
. - Throws:
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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<DataMigrationService> listByResourceGroup(String groupName, com.azure.core.util.Context context) Get services in resource groupThe Services resource is the top-level resource that represents the Database Migration Service. This method returns a list of service resources in a resource group.
- Parameters:
groupName
- Name of the resource group.context
- The context to associate with this operation.- Returns:
- oData page of service objects as paginated response with
PagedIterable
. - Throws:
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.
-
list
com.azure.core.http.rest.PagedIterable<DataMigrationService> list()Get services in subscriptionThe services resource is the top-level resource that represents the Database Migration Service. This method returns a list of service resources in a subscription.
- Returns:
- oData page of service objects as paginated response with
PagedIterable
. - Throws:
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.
-
list
com.azure.core.http.rest.PagedIterable<DataMigrationService> list(com.azure.core.util.Context context) Get services in subscriptionThe services resource is the top-level resource that represents the Database Migration Service. This method returns a list of service resources in a subscription.
- Parameters:
context
- The context to associate with this operation.- Returns:
- oData page of service objects as paginated response with
PagedIterable
. - Throws:
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.
-
checkNameAvailabilityWithResponse
com.azure.core.http.rest.Response<NameAvailabilityResponse> checkNameAvailabilityWithResponse(String location, NameAvailabilityRequest parameters, com.azure.core.util.Context context) Check name validity and availabilityThis method checks whether a proposed top-level resource name is valid and available.
- Parameters:
location
- The Azure region of the operation.parameters
- Requested name to validate.context
- The context to associate with this operation.- Returns:
- indicates whether a proposed resource name is available along with
Response
. - Throws:
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.
-
checkNameAvailability
Check name validity and availabilityThis method checks whether a proposed top-level resource name is valid and available.
- Parameters:
location
- The Azure region of the operation.parameters
- Requested name to validate.- Returns:
- indicates whether a proposed resource name is available.
- Throws:
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.
-
getById
Get DMS Service InstanceThe services resource is the top-level resource that represents the Database Migration Service. The GET method retrieves information about a service instance.
- Parameters:
id
- the resource ID.- Returns:
- a Database Migration Service resource along with
Response
. - Throws:
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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<DataMigrationService> getByIdWithResponse(String id, com.azure.core.util.Context context) Get DMS Service InstanceThe services resource is the top-level resource that represents the Database Migration Service. The GET method retrieves information about a service instance.
- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a Database Migration Service resource along with
Response
. - Throws:
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.
-
deleteById
Delete DMS Service InstanceThe services resource is the top-level resource that represents the Database Migration Service. The DELETE method deletes a service. Any running tasks will be canceled.
- Parameters:
id
- the resource ID.- Throws:
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.
-
deleteByIdWithResponse
void deleteByIdWithResponse(String id, Boolean deleteRunningTasks, com.azure.core.util.Context context) Delete DMS Service InstanceThe services resource is the top-level resource that represents the Database Migration Service. The DELETE method deletes a service. Any running tasks will be canceled.
- Parameters:
id
- the resource ID.deleteRunningTasks
- Delete the resource even if it contains running tasks.context
- The context to associate with this operation.- Throws:
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.
-
define
Begins definition for a new DataMigrationService resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new DataMigrationService definition.
-