@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api SqlManagementClient
@base https://management.azure.com
@version 2017-10-01-preview
@auth OAuth2
@common_fields {resourceGroupName: any # The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal., locationName: any # The name of the region where the resource is located., subscriptionId: any # The subscription ID that identifies an Azure subscription., api-version: any # The API version to use for the request.}
@endpoints 6
@toc subscriptions(6)

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}
@desc Gets a failover group.
@required {failoverGroupName: any # The name of the failover group.}
@returns(200) Successfully retrieved the specified failover group.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}
@desc Creates or updates a failover group.
@required {failoverGroupName: any # The name of the failover group., parameters: map # The failover group parameters.}
@returns(200) Successfully updated the failover group.
@returns(201) Successfully created the failover group.
@returns(202) Accepted

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}
@desc Deletes a failover group.
@required {failoverGroupName: any # The name of the failover group.}
@returns(200) Successfully deleted the failover group.
@returns(202) Accepted
@returns(204) The specified failover group does not exist.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups
@desc Lists the failover groups in a location.
@returns(200) Successfully retrieved the failover groups.

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}/failover
@desc Fails over from the current primary managed instance to this managed instance.
@required {failoverGroupName: any # The name of the failover group.}
@returns(200) Successfully failed over.
@returns(202) Accepted

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}/forceFailoverAllowDataLoss
@desc Fails over from the current primary managed instance to this managed instance. This operation might result in data loss.
@required {failoverGroupName: any # The name of the failover group.}
@returns(200) Successfully failed over.
@returns(202) Accepted

@end
