@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api SqlVirtualMachineManagementClient
@base https://management.azure.com
@version 2017-03-01-preview
@auth OAuth2
@common_fields {api-version: any # API version to use for the request.}
@endpoints 18
@toc subscriptions(17), providers(1)

@group subscriptions
@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}
@desc Gets an availability group listener.
@required {resourceGroupName: any # Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal., sqlVirtualMachineGroupName: any # Name of the SQL virtual machine group., availabilityGroupListenerName: any # Name of the availability group listener., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully retrieved the availability group listener.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}
@desc Creates or updates an availability group listener.
@required {resourceGroupName: any # Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal., sqlVirtualMachineGroupName: any # Name of the SQL virtual machine group., availabilityGroupListenerName: any # Name of the availability group listener., parameters: map # The availability group listener., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully updated the availability group listener.
@returns(201) Successfully created the availability group listener.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}
@desc Deletes an availability group listener.
@required {resourceGroupName: any # Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal., sqlVirtualMachineGroupName: any # Name of the SQL virtual machine group., availabilityGroupListenerName: any # Name of the availability group listener., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully deleted the availability group listener.
@returns(202) Deleting the availability group listener.
@returns(204) The availability group listener does not exist.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners
@desc Lists all availability group listeners in a SQL virtual machine group.
@required {resourceGroupName: any # Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal., sqlVirtualMachineGroupName: any # Name of the SQL virtual machine group., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully retrieved all availability group listeners in a SQL virtual machine group.

@endgroup

@group providers
@endpoint GET /providers/Microsoft.SqlVirtualMachine/operations
@desc Lists all of the available SQL Rest API operations.
@returns(200) Successfully retrieved operations.

@endgroup

@group subscriptions
@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}
@desc Gets a SQL virtual machine group.
@required {resourceGroupName: any # Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal., sqlVirtualMachineGroupName: any # Name of the SQL virtual machine group., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully retrieved the SQL virtual machine group.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}
@desc Creates or updates a SQL virtual machine group.
@required {resourceGroupName: any # Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal., sqlVirtualMachineGroupName: any # Name of the SQL virtual machine group., parameters: map # The SQL virtual machine group., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully updated the SQL virtual machine group.
@returns(201) Successfully created the SQL virtual machine group.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}
@desc Deletes a SQL virtual machine group.
@required {resourceGroupName: any # Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal., sqlVirtualMachineGroupName: any # Name of the SQL virtual machine group., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully deleted the SQL virtual machine group.
@returns(202) Deleting the SQL virtual machine group.
@returns(204) The specified SQL virtual machine group does not exist.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}
@desc Updates SQL virtual machine group tags.
@required {resourceGroupName: any # Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal., sqlVirtualMachineGroupName: any # Name of the SQL virtual machine group., parameters: map # The SQL virtual machine group., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully updated the SQL virtual machine group.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups
@desc Gets all SQL virtual machine groups in a resource group.
@required {resourceGroupName: any # Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully retrieved all SQL virtual machine groups in the resource group.

@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups
@desc Gets all SQL virtual machine groups in a subscription.
@required {subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully retrieved all SQL virtual machine groups in the subscription.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/sqlVirtualMachines
@desc Gets the list of sql virtual machines in a SQL virtual machine group.
@required {resourceGroupName: any # Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal., sqlVirtualMachineGroupName: any # Name of the SQL virtual machine group., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully retrieved the list of sql virtual machines in a SQL virtual machine group.

@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines
@desc Gets all SQL virtual machines in a subscription.
@required {subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully retrieved all SQL virtual machines in the subscription.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}
@desc Gets a SQL virtual machine.
@required {resourceGroupName: any # Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal., sqlVirtualMachineName: any # Name of the SQL virtual machine., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@optional {$expand: any # The child resources to include in the response.}
@returns(200) Successfully retrieved the SQL virtual machine.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}
@desc Creates or updates a SQL virtual machine.
@required {resourceGroupName: any # Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal., sqlVirtualMachineName: any # Name of the SQL virtual machine., parameters: map # The SQL virtual machine., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully updated the SQL virtual machine.
@returns(201) Successfully created the SQL virtual machine.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}
@desc Deletes a SQL virtual machine.
@required {resourceGroupName: any # Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal., sqlVirtualMachineName: any # Name of the SQL virtual machine., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully deleted the SQL virtual machine.
@returns(202) Deleting the SQL virtual machine.
@returns(204) The specified SQL virtual machine does not exist.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}
@desc Updates a SQL virtual machine.
@required {resourceGroupName: any # Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal., sqlVirtualMachineName: any # Name of the SQL virtual machine., parameters: map # The SQL virtual machine., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully updated the SQL virtual machine.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines
@desc Gets all SQL virtual machines in a resource group.
@required {resourceGroupName: any # Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully retrieved all SQL virtual machines in the resource group.

@endgroup

@end
