@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api AzureDataManagementClient
@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 11
@toc providers(1), subscriptions(10)

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

@endgroup

@group subscriptions
@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations/{sqlServerRegistrationName}
@desc Gets a SQL Server registration.
@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., sqlServerRegistrationName: any # Name of the SQL Server registration., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully retrieved the SQL Server registration.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations/{sqlServerRegistrationName}
@desc Creates or updates a SQL Server registration.
@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., sqlServerRegistrationName: any # Name of the SQL Server registration., parameters: map # The SQL Server registration to be created or updated., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully updated the SQL Server registration.
@returns(201) Successfully created the SQL Server registration.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations/{sqlServerRegistrationName}
@desc Deletes a SQL Server registration.
@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., sqlServerRegistrationName: any # Name of the SQL Server registration., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully deleted the SQL Server registration.
@returns(204) The specified SQL Server registration does not exist.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations/{sqlServerRegistrationName}
@desc Updates SQL Server Registration 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., sqlServerRegistrationName: any # Name of the SQL Server registration., parameters: map # The SQL Server Registration., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully updated the SQL Server Registration.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations
@desc Gets all SQL Server registrations 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 Server registrations in the resource group.

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

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations/{sqlServerRegistrationName}/sqlServers/{sqlServerName}
@desc Gets a SQL Server.
@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., sqlServerRegistrationName: any # Name of the SQL Server registration., sqlServerName: any # Name of the SQL Server., 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 Server.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations/{sqlServerRegistrationName}/sqlServers/{sqlServerName}
@desc Creates or updates a SQL Server.
@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., sqlServerRegistrationName: any # Name of the SQL Server registration., sqlServerName: any # Name of the SQL Server., parameters: map # The SQL Server to be created or updated., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully updated the SQL Server.
@returns(201) Successfully created the SQL Server.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations/{sqlServerRegistrationName}/sqlServers/{sqlServerName}
@desc Deletes a SQL Server.
@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., sqlServerRegistrationName: any # Name of the SQL Server registration., sqlServerName: any # Name of the SQL Server., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@returns(200) Successfully deleted the SQL Server.
@returns(204) The specified SQL Server does not exist.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations/{sqlServerRegistrationName}/sqlServers
@desc Gets all SQL Servers in a SQL Server Registration.
@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., sqlServerRegistrationName: any # Name of the SQL Server registration., subscriptionId: any # Subscription ID that identifies an Azure subscription.}
@optional {$expand: any # The child resources to include in the response.}
@returns(200) Successfully retrieved all SQL Servers in the SQL Server Registration.

@endgroup

@end
