diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/Databases.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/databases.json similarity index 100% rename from specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/Databases.json rename to specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/databases.json diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json new file mode 100644 index 000000000000..67e700ca1247 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json @@ -0,0 +1,190 @@ +{ + "swagger":"2.0", + "info":{ + "title":"Azure SQL Database", + "description":"Provides create, read, update and delete functionality for Azure SQL Database resources including servers, databases, elastic pools, recommendations, and operations.", + "version":"2014-04-01" + }, + "host":"management.azure.com", + "schemes":[ + "https" + ], + "consumes":[ + "application/json" + ], + "produces":[ + "application/json" + ], + "paths":{ + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/checkNameAvailability":{ + "post":{ + "tags":[ + "Servers" + ], + "operationId":"Servers_CheckNameAvailability", + "description":"Determines whether a resource can be created with the specified name.", + "x-ms-examples":{ + "Check for a server name that is available":{ + "$ref":"./examples/CheckNameAvailabilityServerAvailable.json" + }, + "Check for a server name that already exists":{ + "$ref":"./examples/CheckNameAvailabilityServerAlreadyExists.json" + }, + "Check for a server name that is invalid":{ + "$ref":"./examples/CheckNameAvailabilityServerInvalid.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "name":"parameters", + "in":"body", + "required":true, + "schema":{ + "$ref":"#/definitions/CheckNameAvailabilityRequest" + }, + "description":"The parameters to request for name availability." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/CheckNameAvailabilityResponse" + } + } + } + } + } + }, + "definitions":{ + "CheckNameAvailabilityRequest":{ + "properties":{ + "name":{ + "type":"string", + "description":"The name whose availability is to be checked." + }, + "type":{ + "type":"string", + "description":"The type of resource that is used as the scope of the availability check.", + "enum":[ + "Microsoft.Sql/servers" + ], + "x-ms-enum":{ + "name":"CheckNameAvailabilityResourceType", + "modelAsString":false + } + } + }, + "required":[ + "name", + "type" + ], + "description":"A request to check whether the specified name for a resource is available." + }, + "CheckNameAvailabilityResponse":{ + "properties":{ + "available":{ + "type":"boolean", + "description":"True if the name is available, otherwise false.", + "readOnly":true + }, + "message":{ + "type":"string", + "description":"A message explaining why the name is unavailable. Will be null if the name is available.", + "readOnly":true + }, + "name":{ + "type":"string", + "description":"The name whose availability was checked.", + "readOnly":true + }, + "reason":{ + "type":"string", + "description":"The reason code explaining why the name is unavailable. Will be null if the name is available.", + "enum":[ + "Invalid", + "AlreadyExists" + ], + "x-ms-enum":{ + "name":"CheckNameAvailabilityReason", + "modelAsString":false + }, + "readOnly":true + } + }, + "description":"A response indicating whether the specified name for a resource is available." + } + }, + "parameters":{ + "SubscriptionIdParameter":{ + "name":"subscriptionId", + "in":"path", + "required":true, + "type":"string", + "description":"The subscription ID that identifies an Azure subscription." + }, + "ApiVersionParameter":{ + "name":"api-version", + "in":"query", + "required":true, + "type":"string", + "description":"The API version to use for the request." + }, + "ResourceGroupParameter":{ + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", + "x-ms-parameter-location":"method" + }, + "ServerNameParameter":{ + "name":"serverName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the server.", + "x-ms-parameter-location":"method" + }, + "DatabaseExpandParameter":{ + "name":"$expand", + "in":"query", + "required":false, + "type":"string", + "description":"A comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.", + "x-ms-parameter-location":"method" + }, + "TransparentDataEncryptionNameParameter":{ + "name":"transparentDataEncryptionName", + "in":"path", + "required":true, + "type":"string", + "enum":[ + "current" + ], + "description":"The name of the transparent data encryption configuration.", + "x-ms-enum":{ + "modelAsString":true, + "name":"TransparentDataEncryptionName" + }, + "x-ms-parameter-location":"method" + } + }, + "securityDefinitions":{ + "azure_auth":{ + "type":"oauth2", + "description":"Azure Active Directory OAuth2 Flow", + "flow":"implicit", + "authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize", + "scopes":{ + "user_impersonation":"impersonate your user account" + } + } + } +} \ No newline at end of file diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/databases.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/databases.json new file mode 100644 index 000000000000..4f4aec4ad8a3 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/databases.json @@ -0,0 +1,1115 @@ +{ + "swagger":"2.0", + "info":{ + "title":"Azure SQL Database", + "description":"Provides create, read, update and delete functionality for Azure SQL Databases.", + "version":"2014-04-01" + }, + "host":"management.azure.com", + "schemes":[ + "https" + ], + "consumes":[ + "application/json" + ], + "produces":[ + "application/json" + ], + "paths":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause":{ + "post":{ + "tags":[ + "DatabaseActivation" + ], + "operationId":"Databases_Pause", + "description":"Pauses a data warehouse.", + "x-ms-examples":{ + "Pause a data warehouse":{ + "$ref":"./examples/DatabasePause.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"databaseName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the data warehouse to pause." + } + ], + "responses":{ + "200":{ + "description":"OK" + }, + "202":{ + "description":"Accepted" + } + }, + "x-ms-long-running-operation":true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume":{ + "post":{ + "tags":[ + "DatabaseActivation" + ], + "operationId":"Databases_Resume", + "description":"Resumes a data warehouse.", + "x-ms-examples":{ + "Resume a data warehouse":{ + "$ref":"./examples/DatabaseResume.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"databaseName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the data warehouse to resume." + } + ], + "responses":{ + "202":{ + "description":"Accepted" + }, + "200":{ + "description":"OK" + } + }, + "x-ms-long-running-operation":true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}":{ + "put":{ + "tags":[ + "Databases" + ], + "operationId":"Databases_CreateOrUpdate", + "description":"Creates a new database or updates an existing database.", + "x-ms-examples":{ + "Create a database min":{ + "$ref":"./examples/DatabaseCreateOrUpdateMin.json" + }, + "Create a database max":{ + "$ref":"./examples/DatabaseCreateMax.json" + }, + "Create a database as a copy":{ + "$ref":"./examples/DatabaseCreateCopy.json" + }, + "Create a database as an online secondary":{ + "$ref":"./examples/DatabaseCreateOnlineSecondary.json" + }, + "Create a database as a non-readable secondary":{ + "$ref":"./examples/DatabaseCreateNonReadableSecondary.json" + }, + "Create a database as a point in time restore":{ + "$ref":"./examples/DatabaseCreatePointInTimeRestore.json" + }, + "Create a database as a dropped database restore to deletion time":{ + "$ref":"./examples/DatabaseCreateDroppedDatabaseRestore.json" + }, + "Create a database as a dropped database restore to a specific point in time":{ + "$ref":"./examples/DatabaseCreateDroppedDatabaseRestoreToPointInTime.json" + }, + "Create a database as a geo restore":{ + "$ref":"./examples/DatabaseCreateGeoRestore.json" + }, + "Create a database from a long term retention backup":{ + "$ref":"./examples/DatabaseCreateLongTermRetentionRestore.json" + }, + "Update a database's elastic pool'":{ + "$ref":"./examples/DatabaseUpdateElasticPool.json" + }, + "Update a database max":{ + "$ref":"./examples/DatabaseUpdateMaxPut.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"databaseName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the database to be operated on (updated or created)." + }, + { + "name":"parameters", + "in":"body", + "required":true, + "schema":{ + "$ref":"#/definitions/Database" + }, + "description":"The required parameters for creating or updating a database." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Database" + } + }, + "201":{ + "description":"Created", + "schema":{ + "$ref":"#/definitions/Database" + } + }, + "202":{ + "description":"Accepted" + } + }, + "x-ms-long-running-operation":true + }, + "patch":{ + "tags":[ + "Databases" + ], + "operationId":"Databases_Update", + "description":"Updates an existing database.", + "x-ms-examples":{ + "Update a database max":{ + "$ref":"./examples/DatabaseUpdateMaxPatch.json" + }, + "Update a database min":{ + "$ref":"./examples/DatabaseUpdateMin.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"databaseName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the database to be updated." + }, + { + "name":"parameters", + "in":"body", + "required":true, + "schema":{ + "$ref":"#/definitions/DatabaseUpdate" + }, + "description":"The required parameters for updating a database." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Database" + } + }, + "202":{ + "description":"Accepted" + } + }, + "x-ms-long-running-operation":true + }, + "delete":{ + "tags":[ + "Databases" + ], + "operationId":"Databases_Delete", + "description":"Deletes a database.", + "x-ms-examples":{ + "Delete a database":{ + "$ref":"./examples/DatabaseDelete.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"databaseName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the database to be deleted." + } + ], + "responses":{ + "200":{ + "description":"OK" + }, + "204":{ + "description":"NoContent" + } + } + }, + "get":{ + "tags":[ + "Databases" + ], + "operationId":"Databases_Get", + "description":"Gets a database.", + "x-ms-examples":{ + "Get a database":{ + "$ref":"./examples/DatabaseGet.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"databaseName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the database to be retrieved." + }, + { + "$ref":"#/parameters/DatabaseExpandParameter" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Database" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases":{ + "get":{ + "tags":[ + "Databases" + ], + "operationId":"Databases_ListByServer", + "description":"Returns a list of databases in a server.", + "x-ms-examples":{ + "List databases by server":{ + "$ref":"./examples/DatabaseList.json" + }, + "List databases by server with filter":{ + "$ref":"./examples/DatabaseListWithFilter.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "$ref":"#/parameters/DatabaseExpandParameter" + }, + { + "name":"$filter", + "in":"query", + "required":false, + "type":"string", + "description":"An OData filter expression that describes a subset of databases to return." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/DatabaseListResult" + } + } + }, + "x-ms-pageable":{ + "nextLinkName":null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases/{databaseName}":{ + "get":{ + "tags":[ + "ElasticPools" + ], + "operationId":"Databases_GetByElasticPool", + "description":"Gets a database inside of an elastic pool.", + "x-ms-examples":{ + "Get a database in an elastic pool":{ + "$ref":"./examples/DatabaseGetByElasticPool.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"elasticPoolName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the elastic pool to be retrieved." + }, + { + "name":"databaseName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the database to be retrieved." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Database" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases":{ + "get":{ + "tags":[ + "Databases" + ], + "operationId":"Databases_ListByElasticPool", + "description":"Returns a list of databases in an elastic pool.", + "x-ms-examples":{ + "Gets databases in an elastic pool":{ + "$ref":"./examples/DatabaseListByElasticPool.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"elasticPoolName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the elastic pool to be retrieved." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/DatabaseListResult" + } + } + }, + "x-ms-pageable":{ + "nextLinkName":null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/databases/{databaseName}":{ + "get":{ + "tags":[ + "Databases" + ], + "operationId":"Databases_GetByRecommendedElasticPool", + "description":"Gets a database inside of a recommented elastic pool.", + "x-ms-examples":{ + "Get a database in a recommended elastic pool":{ + "$ref":"./examples/DatabaseGetByRecommendedElasticPool.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"recommendedElasticPoolName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the elastic pool to be retrieved." + }, + { + "name":"databaseName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the database to be retrieved." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Database" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/databases":{ + "get":{ + "tags":[ + "Databases" + ], + "operationId":"Databases_ListByRecommendedElasticPool", + "description":"Returns a list of databases inside a recommented elastic pool.", + "x-ms-examples":{ + "Gets databases in an elastic pool":{ + "$ref":"./examples/DatabaseListByRecommendedElasticPool.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"recommendedElasticPoolName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the recommended elastic pool to be retrieved." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/DatabaseListResult" + } + } + }, + "x-ms-pageable":{ + "nextLinkName":null + } + } + } + }, + "definitions":{ + "Resource":{ + "description":"ARM resource.", + "properties":{ + "id":{ + "readOnly":true, + "type":"string", + "description":"Resource ID." + }, + "name":{ + "readOnly":true, + "type":"string", + "description":"Resource name." + }, + "type":{ + "readOnly":true, + "type":"string", + "description":"Resource type." + } + }, + "x-ms-azure-resource":true + }, + "TrackedResource":{ + "description":"ARM tracked top level resource.", + "properties":{ + "tags":{ + "type":"object", + "additionalProperties":{ + "type":"string" + }, + "x-ms-mutability":[ + "read", + "create", + "update" + ], + "description":"Resource tags." + }, + "location":{ + "type":"string", + "x-ms-mutability":[ + "read", + "create" + ], + "description":"Resource location." + } + }, + "required":[ + "location" + ], + "allOf":[ + { + "$ref":"#/definitions/Resource" + } + ] + }, + "DatabaseProperties":{ + "properties":{ + "collation":{ + "type":"string", + "description":"The collation of the database. If createMode is not Default, this value is ignored.", + "x-ms-mutability":[ + "create", + "read" + ] + }, + "creationDate":{ + "readOnly":true, + "type":"string", + "format":"date-time", + "description":"The creation date of the database (ISO8601 format)." + }, + "containmentState":{ + "readOnly":true, + "type":"integer", + "format":"int64", + "description":"The containment state of the database." + }, + "currentServiceObjectiveId":{ + "readOnly":true, + "type":"string", + "format":"uuid", + "description":"The current service level objective ID of the database. This is the ID of the service level objective that is currently active." + }, + "databaseId":{ + "readOnly":true, + "type":"string", + "format":"uuid", + "description":"The ID of the database." + }, + "earliestRestoreDate":{ + "readOnly":true, + "type":"string", + "format":"date-time", + "description":"This records the earliest start date and time that restore is available for this database (ISO8601 format)." + }, + "createMode":{ + "type":"string", + "description":"Specifies the mode of database creation.\n\nDefault: regular database creation.\n\nCopy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database.\n\nOnlineSecondary/NonReadableSecondary: creates a database as a (readable or nonreadable) secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database.\n\nPointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified.\n\nRecovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore.\n\nRestore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time.\n\nRestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID.\n\nCopy, NonReadableSecondary, OnlineSecondary and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition.", + "enum":[ + "Copy", + "Default", + "NonReadableSecondary", + "OnlineSecondary", + "PointInTimeRestore", + "Recovery", + "Restore", + "RestoreLongTermRetentionBackup" + ], + "x-ms-enum":{ + "name":"CreateMode", + "modelAsString":true + }, + "x-ms-mutability":[ + "create" + ] + }, + "sourceDatabaseId":{ + "type":"string", + "description":"Conditional. If createMode is Copy, NonReadableSecondary, OnlineSecondary, PointInTimeRestore, Recovery, or Restore, then this value is required. Specifies the resource ID of the source database. If createMode is NonReadableSecondary or OnlineSecondary, the name of the source database must be the same as the new database being created.", + "x-ms-mutability":[ + "create" + ] + }, + "sourceDatabaseDeletionDate":{ + "type":"string", + "format":"date-time", + "description":"Conditional. If createMode is Restore and sourceDatabaseId is the deleted database's original resource id when it existed (as opposed to its current restorable dropped database id), then this value is required. Specifies the time that the database was deleted.", + "x-ms-mutability":[ + "create" + ] + }, + "restorePointInTime":{ + "type":"string", + "format":"date-time", + "description":"Conditional. If createMode is PointInTimeRestore, this value is required. If createMode is Restore, this value is optional. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. Must be greater than or equal to the source database's earliestRestoreDate value.", + "x-ms-mutability":[ + "create" + ] + }, + "recoveryServicesRecoveryPointResourceId":{ + "type":"string", + "description":"Conditional. If createMode is RestoreLongTermRetentionBackup, then this value is required. Specifies the resource ID of the recovery point to restore from.", + "x-ms-mutability":[ + "create" + ] + }, + "edition":{ + "type":"string", + "description":"The edition of the database. The DatabaseEditions enumeration contains all the valid editions. If createMode is NonReadableSecondary or OnlineSecondary, this value is ignored. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\" or use the Azure CLI command `az sql db list-editions -l westus --query [].name` .", + "enum":[ + "Web", + "Business", + "Basic", + "Standard", + "Premium", + "PremiumRS", + "Free", + "Stretch", + "DataWarehouse", + "System", + "System2" + ], + "x-ms-enum":{ + "name":"DatabaseEdition", + "modelAsString":true + } + }, + "maxSizeBytes":{ + "type":"string", + "description":"The max size of the database expressed in bytes. If createMode is not Default, this value is ignored. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\"" + }, + "requestedServiceObjectiveId":{ + "type":"string", + "format":"uuid", + "description":"The configured service level objective ID of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of currentServiceObjectiveId property. If requestedServiceObjectiveId and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveId overrides the value of requestedServiceObjectiveName. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\" or use the Azure CLI command `az sql db list-editions --location --query [].supportedServiceLevelObjectives[].name` ." + }, + "requestedServiceObjectiveName":{ + "type":"string", + "enum":[ + "System", + "System0", + "System1", + "System2", + "System3", + "System4", + "System2L", + "System3L", + "System4L", + "Free", + "Basic", + "S0", + "S1", + "S2", + "S3", + "S4", + "S6", + "S7", + "S9", + "S12", + "P1", + "P2", + "P3", + "P4", + "P6", + "P11", + "P15", + "PRS1", + "PRS2", + "PRS4", + "PRS6", + "DW100", + "DW200", + "DW300", + "DW400", + "DW500", + "DW600", + "DW1000", + "DW1200", + "DW1000c", + "DW1500", + "DW1500c", + "DW2000", + "DW2000c", + "DW3000", + "DW2500c", + "DW3000c", + "DW6000", + "DW5000c", + "DW6000c", + "DW7500c", + "DW10000c", + "DW15000c", + "DW30000c", + "DS100", + "DS200", + "DS300", + "DS400", + "DS500", + "DS600", + "DS1000", + "DS1200", + "DS1500", + "DS2000", + "ElasticPool" + ], + "x-ms-enum":{ + "modelAsString":true, + "name":"ServiceObjectiveName" + }, + "description":"The name of the configured service level objective of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of serviceLevelObjective property. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\" or use the Azure CLI command `az sql db list-editions --location --query [].supportedServiceLevelObjectives[].name` ." + }, + "serviceLevelObjective":{ + "readOnly":true, + "type":"string", + "enum":[ + "System", + "System0", + "System1", + "System2", + "System3", + "System4", + "System2L", + "System3L", + "System4L", + "Free", + "Basic", + "S0", + "S1", + "S2", + "S3", + "S4", + "S6", + "S7", + "S9", + "S12", + "P1", + "P2", + "P3", + "P4", + "P6", + "P11", + "P15", + "PRS1", + "PRS2", + "PRS4", + "PRS6", + "DW100", + "DW200", + "DW300", + "DW400", + "DW500", + "DW600", + "DW1000", + "DW1200", + "DW1000c", + "DW1500", + "DW1500c", + "DW2000", + "DW2000c", + "DW3000", + "DW2500c", + "DW3000c", + "DW6000", + "DW5000c", + "DW6000c", + "DW7500c", + "DW10000c", + "DW15000c", + "DW30000c", + "DS100", + "DS200", + "DS300", + "DS400", + "DS500", + "DS600", + "DS1000", + "DS1200", + "DS1500", + "DS2000", + "ElasticPool" + ], + "x-ms-enum":{ + "modelAsString":true, + "name":"ServiceObjectiveName" + }, + "description":"The current service level objective of the database." + }, + "status":{ + "readOnly":true, + "type":"string", + "description":"The status of the database." + }, + "elasticPoolName":{ + "type":"string", + "description":"The name of the elastic pool the database is in. If elasticPoolName and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveName is ignored. Not supported for DataWarehouse edition." + }, + "defaultSecondaryLocation":{ + "readOnly":true, + "type":"string", + "description":"The default secondary region for this database." + }, + "serviceTierAdvisors":{ + "readOnly":true, + "type":"array", + "items":{ + "$ref":"./sql.core.json#/definitions/ServiceTierAdvisor" + }, + "description":"The list of service tier advisors for this database. Expanded property" + }, + "transparentDataEncryption":{ + "readOnly":true, + "type":"array", + "items":{ + "$ref":"./sql.core.json#/definitions/TransparentDataEncryption" + }, + "description":"The transparent data encryption info for this database." + }, + "recommendedIndex":{ + "readOnly":true, + "type":"array", + "items":{ + "$ref":"./sql.core.json#/definitions/RecommendedIndex" + }, + "description":"The recommended indices for this database." + }, + "failoverGroupId":{ + "readOnly":true, + "type":"string", + "description":"The resource identifier of the failover group containing this database." + }, + "readScale":{ + "type":"string", + "enum":[ + "Enabled", + "Disabled" + ], + "description":"Conditional. If the database is a geo-secondary, readScale indicates whether read-only connections are allowed to this database or not. Not supported for DataWarehouse edition.", + "x-ms-enum":{ + "name":"ReadScale" + } + }, + "sampleName":{ + "type":"string", + "enum":[ + "AdventureWorksLT" + ], + "description":"Indicates the name of the sample schema to apply when creating this database. If createMode is not Default, this value is ignored. Not supported for DataWarehouse edition.", + "x-ms-enum":{ + "modelAsString":true, + "name":"SampleName" + }, + "x-ms-mutability":[ + "create" + ] + }, + "zoneRedundant":{ + "description":"Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.", + "type":"boolean" + } + }, + "description":"Represents the properties of a database." + }, + "Database":{ + "properties":{ + "kind":{ + "readOnly":true, + "type":"string", + "description":"Kind of database. This is metadata used for the Azure portal experience." + }, + "properties":{ + "$ref":"#/definitions/DatabaseProperties", + "description":"The properties representing the resource.", + "x-ms-client-flatten":true + } + }, + "allOf":[ + { + "$ref":"#/definitions/TrackedResource" + } + ], + "description":"Represents a database." + }, + "DatabaseUpdate":{ + "properties":{ + "tags":{ + "type":"object", + "additionalProperties":{ + "type":"string" + }, + "description":"Resource tags." + }, + "properties":{ + "$ref":"#/definitions/DatabaseProperties", + "description":"The properties representing the resource.", + "x-ms-client-flatten":true + } + }, + "allOf":[ + { + "$ref":"#/definitions/Resource" + } + ], + "description":"Represents a database update." + }, + "DatabaseListResult":{ + "properties":{ + "value":{ + "type":"array", + "items":{ + "$ref":"#/definitions/Database" + }, + "description":"The list of databases housed in the server." + } + }, + "required":[ + "value" + ], + "description":"Represents the response to a list database request." + } + }, + "parameters":{ + "SubscriptionIdParameter":{ + "name":"subscriptionId", + "in":"path", + "required":true, + "type":"string", + "description":"The subscription ID that identifies an Azure subscription." + }, + "ApiVersionParameter":{ + "name":"api-version", + "in":"query", + "required":true, + "type":"string", + "description":"The API version to use for the request." + }, + "ResourceGroupParameter":{ + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", + "x-ms-parameter-location":"method" + }, + "ServerNameParameter":{ + "name":"serverName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the server.", + "x-ms-parameter-location":"method" + }, + "DatabaseExpandParameter":{ + "name":"$expand", + "in":"query", + "required":false, + "type":"string", + "description":"A comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.", + "x-ms-parameter-location":"method" + }, + "TransparentDataEncryptionNameParameter":{ + "name":"transparentDataEncryptionName", + "in":"path", + "required":true, + "type":"string", + "enum":[ + "current" + ], + "description":"The name of the transparent data encryption configuration.", + "x-ms-enum":{ + "modelAsString":true, + "name":"TransparentDataEncryptionName" + }, + "x-ms-parameter-location":"method" + } + }, + "securityDefinitions":{ + "azure_auth":{ + "type":"oauth2", + "description":"Azure Active Directory OAuth2 Flow", + "flow":"implicit", + "authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize", + "scopes":{ + "user_impersonation":"impersonate your user account" + } + } + } +} \ No newline at end of file diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/elasticPools.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/elasticPools.json new file mode 100644 index 000000000000..aa52b9c1517a --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/elasticPools.json @@ -0,0 +1,508 @@ +{ + "swagger":"2.0", + "info":{ + "title":"Azure SQL Database", + "description":"Provides create, read, update and delete functionality for Azure SQL Database elastic pools.", + "version":"2014-04-01" + }, + "host":"management.azure.com", + "schemes":[ + "https" + ], + "consumes":[ + "application/json" + ], + "produces":[ + "application/json" + ], + "paths":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}":{ + "put":{ + "tags":[ + "ElasticPools" + ], + "operationId":"ElasticPools_CreateOrUpdate", + "description":"Creates a new elastic pool or updates an existing elastic pool.", + "x-ms-examples":{ + "Create elastic pool max":{ + "$ref":"./examples/ElasticPoolCreateOrUpdateMax.json" + }, + "Create elastic pool min":{ + "$ref":"./examples/ElasticPoolCreateOrUpdateMin.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"elasticPoolName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the elastic pool to be operated on (updated or created)." + }, + { + "name":"parameters", + "in":"body", + "required":true, + "schema":{ + "$ref":"#/definitions/ElasticPool" + }, + "description":"The required parameters for creating or updating an elastic pool." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/ElasticPool" + } + }, + "201":{ + "description":"Created", + "schema":{ + "$ref":"#/definitions/ElasticPool" + } + }, + "202":{ + "description":"Accepted" + } + }, + "x-ms-long-running-operation":true + }, + "patch":{ + "tags":[ + "ElasticPools" + ], + "operationId":"ElasticPools_Update", + "description":"Updates an existing elastic pool.", + "x-ms-examples":{ + "Update elastic pool max":{ + "$ref":"./examples/ElasticPoolUpdateMax.json" + }, + "Update elastic pool min":{ + "$ref":"./examples/ElasticPoolUpdateMin.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"elasticPoolName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the elastic pool to be updated." + }, + { + "name":"parameters", + "in":"body", + "required":true, + "schema":{ + "$ref":"#/definitions/ElasticPoolUpdate" + }, + "description":"The required parameters for updating an elastic pool." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/ElasticPool" + } + }, + "202":{ + "description":"Accepted" + } + }, + "x-ms-long-running-operation":true + }, + "delete":{ + "tags":[ + "ElasticPools" + ], + "operationId":"ElasticPools_Delete", + "description":"Deletes the elastic pool.", + "x-ms-examples":{ + "Delete elastic pool":{ + "$ref":"./examples/ElasticPoolDelete.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"elasticPoolName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the elastic pool to be deleted." + } + ], + "responses":{ + "200":{ + "description":"OK" + }, + "204":{ + "description":"Accepted" + } + } + }, + "get":{ + "tags":[ + "ElasticPools" + ], + "operationId":"ElasticPools_Get", + "description":"Gets an elastic pool.", + "x-ms-examples":{ + "Get elastic pool":{ + "$ref":"./examples/ElasticPoolGet.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"elasticPoolName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the elastic pool to be retrieved." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/ElasticPool" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools":{ + "get":{ + "tags":[ + "ElasticPools" + ], + "operationId":"ElasticPools_ListByServer", + "description":"Returns a list of elastic pools in a server.", + "x-ms-examples":{ + "List elastic pools":{ + "$ref":"./examples/ElasticPoolList.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/ElasticPoolListResult" + } + } + }, + "x-ms-pageable":{ + "nextLinkName":null + } + } + } + }, + "definitions":{ + "Resource":{ + "description":"ARM resource.", + "properties":{ + "id":{ + "readOnly":true, + "type":"string", + "description":"Resource ID." + }, + "name":{ + "readOnly":true, + "type":"string", + "description":"Resource name." + }, + "type":{ + "readOnly":true, + "type":"string", + "description":"Resource type." + } + }, + "x-ms-azure-resource":true + }, + "TrackedResource":{ + "description":"ARM tracked top level resource.", + "properties":{ + "tags":{ + "type":"object", + "additionalProperties":{ + "type":"string" + }, + "x-ms-mutability":[ + "read", + "create", + "update" + ], + "description":"Resource tags." + }, + "location":{ + "type":"string", + "x-ms-mutability":[ + "read", + "create" + ], + "description":"Resource location." + } + }, + "required":[ + "location" + ], + "allOf":[ + { + "$ref":"#/definitions/Resource" + } + ] + }, + "ElasticPoolProperties":{ + "properties":{ + "creationDate":{ + "readOnly":true, + "type":"string", + "format":"date-time", + "description":"The creation date of the elastic pool (ISO8601 format)." + }, + "state":{ + "readOnly":true, + "type":"string", + "enum":[ + "Creating", + "Ready", + "Disabled" + ], + "description":"The state of the elastic pool.", + "x-ms-enum":{ + "modelAsString":true, + "name":"ElasticPoolState" + } + }, + "edition":{ + "type":"string", + "description":"The edition of the elastic pool.", + "enum":[ + "Basic", + "Standard", + "Premium" + ], + "x-ms-enum":{ + "name":"ElasticPoolEdition", + "modelAsString":true + }, + "x-ms-mutability":[ + "create", + "read" + ] + }, + "dtu":{ + "type":"integer", + "format":"int32", + "description":"The total shared DTU for the database elastic pool." + }, + "databaseDtuMax":{ + "type":"integer", + "format":"int32", + "description":"The maximum DTU any one database can consume." + }, + "databaseDtuMin":{ + "type":"integer", + "format":"int32", + "description":"The minimum DTU all databases are guaranteed." + }, + "storageMB":{ + "type":"integer", + "format":"int32", + "description":"Gets storage limit for the database elastic pool in MB." + }, + "zoneRedundant":{ + "description":"Whether or not this database elastic pool is zone redundant, which means the replicas of this database will be spread across multiple availability zones.", + "type":"boolean" + } + }, + "description":"Represents the properties of an elastic pool." + }, + "ElasticPool":{ + "properties":{ + "properties":{ + "$ref":"#/definitions/ElasticPoolProperties", + "description":"The properties representing the resource.", + "x-ms-client-flatten":true + }, + "kind":{ + "readOnly":true, + "type":"string", + "description":"Kind of elastic pool. This is metadata used for the Azure portal experience." + } + }, + "allOf":[ + { + "$ref":"#/definitions/TrackedResource" + } + ], + "description":"Represents a database elastic pool." + }, + "ElasticPoolUpdate":{ + "properties":{ + "tags":{ + "type":"object", + "additionalProperties":{ + "type":"string" + }, + "description":"Resource tags." + }, + "properties":{ + "$ref":"#/definitions/ElasticPoolProperties", + "description":"The properties representing the resource.", + "x-ms-client-flatten":true + } + }, + "allOf":[ + { + "$ref":"#/definitions/Resource" + } + ], + "description":"Represents an elastic pool update." + }, + "ElasticPoolListResult":{ + "properties":{ + "value":{ + "type":"array", + "items":{ + "$ref":"#/definitions/ElasticPool" + }, + "description":"The list of elastic pools hosted in the server." + } + }, + "required":[ + "value" + ], + "description":"Represents the response to a list elastic pool request." + } + }, + "parameters":{ + "SubscriptionIdParameter":{ + "name":"subscriptionId", + "in":"path", + "required":true, + "type":"string", + "description":"The subscription ID that identifies an Azure subscription." + }, + "ApiVersionParameter":{ + "name":"api-version", + "in":"query", + "required":true, + "type":"string", + "description":"The API version to use for the request." + }, + "ResourceGroupParameter":{ + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", + "x-ms-parameter-location":"method" + }, + "ServerNameParameter":{ + "name":"serverName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the server.", + "x-ms-parameter-location":"method" + }, + "DatabaseExpandParameter":{ + "name":"$expand", + "in":"query", + "required":false, + "type":"string", + "description":"A comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.", + "x-ms-parameter-location":"method" + }, + "TransparentDataEncryptionNameParameter":{ + "name":"transparentDataEncryptionName", + "in":"path", + "required":true, + "type":"string", + "enum":[ + "current" + ], + "description":"The name of the transparent data encryption configuration.", + "x-ms-enum":{ + "modelAsString":true, + "name":"TransparentDataEncryptionName" + }, + "x-ms-parameter-location":"method" + } + }, + "securityDefinitions":{ + "azure_auth":{ + "type":"oauth2", + "description":"Azure Active Directory OAuth2 Flow", + "flow":"implicit", + "authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize", + "scopes":{ + "user_impersonation":"impersonate your user account" + } + } + } +} \ No newline at end of file diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json index 4dcb69159dfb..b08be7c2c859 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Azure SQL Database", - "description": "Provides create, read, update and delete functionality for Azure SQL Database resources including servers, databases, elastic pools, recommendations, and operations.", + "description": "Provides create, read, update and delete functionality for Azure SQL Database resources including recommendations and operations.", "version": "2014-04-01" }, "host": "management.azure.com", @@ -16,54 +16,15 @@ "application/json" ], "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/checkNameAvailability": { - "post": { - "tags": [ - "Servers" - ], - "operationId": "Servers_CheckNameAvailability", - "description": "Determines whether a resource can be created with the specified name.", - "x-ms-examples": { - "Check for a server name that is available": { "$ref": "./examples/CheckNameAvailabilityServerAvailable.json" }, - "Check for a server name that already exists": { "$ref": "./examples/CheckNameAvailabilityServerAlreadyExists.json" }, - "Check for a server name that is invalid": { "$ref": "./examples/CheckNameAvailabilityServerInvalid.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityRequest" - }, - "description": "The parameters to request for name availability." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolActivity": { + "get": { "tags": [ - "DatabaseActivation" + "ElasticPools" ], - "operationId": "Databases_Pause", - "description": "Pauses a data warehouse.", - "x-ms-examples": { - "Pause a data warehouse": { "$ref": "./examples/DatabasePause.json" } + "operationId": "ElasticPoolActivities_ListByElasticPool", + "description": "Returns elastic pool activities.", + "x-ms-examples":{ + "List Elastic pool activity": { "$ref": "./examples/ElasticPoolActivityList.json" } }, "parameters": [ { @@ -79,33 +40,35 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "name": "databaseName", + "name": "elasticPoolName", "in": "path", "required": true, "type": "string", - "description": "The name of the data warehouse to pause." + "description": "The name of the elastic pool for which to get the current activity." } ], "responses": { "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" + "description": "OK", + "schema": { + "$ref": "#/definitions/ElasticPoolActivityListResult" + } } }, - "x-ms-long-running-operation": true + "x-ms-pageable": { + "nextLinkName": null + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolDatabaseActivity": { + "get": { "tags": [ - "DatabaseActivation" + "ElasticPools" ], - "operationId": "Databases_Resume", - "description": "Resumes a data warehouse.", - "x-ms-examples": { - "Resume a data warehouse": { "$ref": "./examples/DatabaseResume.json" } + "operationId": "ElasticPoolDatabaseActivities_ListByElasticPool", + "description": "Returns activity on databases inside of an elastic pool.", + "x-ms-examples":{ + "List elastic pool database activity": { "$ref": "./examples/ElasticPoolDatabaseActivityList.json" } }, "parameters": [ { @@ -121,44 +84,35 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "name": "databaseName", + "name": "elasticPoolName", "in": "path", "required": true, "type": "string", - "description": "The name of the data warehouse to resume." + "description": "The name of the elastic pool." } ], "responses": { - "202": { - "description": "Accepted" - }, "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/ElasticPoolDatabaseActivityListResult" + } } }, - "x-ms-long-running-operation": true + "x-ms-pageable": { + "nextLinkName": null + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}": { - "put": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}": { + "get": { "tags": [ - "Databases" + "RecommendedElasticPools" ], - "operationId": "Databases_CreateOrUpdate", - "description": "Creates a new database or updates an existing database.", + "operationId": "RecommendedElasticPools_Get", + "description": "Gets a recommented elastic pool.", "x-ms-examples": { - "Create a database min": { "$ref": "./examples/DatabaseCreateOrUpdateMin.json" }, - "Create a database max": { "$ref": "./examples/DatabaseCreateMax.json" }, - "Create a database as a copy": { "$ref": "./examples/DatabaseCreateCopy.json" }, - "Create a database as an online secondary": { "$ref": "./examples/DatabaseCreateOnlineSecondary.json" }, - "Create a database as a non-readable secondary": { "$ref": "./examples/DatabaseCreateNonReadableSecondary.json" }, - "Create a database as a point in time restore": { "$ref": "./examples/DatabaseCreatePointInTimeRestore.json" }, - "Create a database as a dropped database restore to deletion time": { "$ref": "./examples/DatabaseCreateDroppedDatabaseRestore.json" }, - "Create a database as a dropped database restore to a specific point in time": { "$ref": "./examples/DatabaseCreateDroppedDatabaseRestoreToPointInTime.json" }, - "Create a database as a geo restore": { "$ref": "./examples/DatabaseCreateGeoRestore.json" }, - "Create a database from a long term retention backup": { "$ref": "./examples/DatabaseCreateLongTermRetentionRestore.json" }, - "Update a database's elastic pool'": { "$ref": "./examples/DatabaseUpdateElasticPool.json" }, - "Update a database max": { "$ref": "./examples/DatabaseUpdateMaxPut.json" } + "Get a recommended elastic pool": { "$ref": "./examples/RecommendedElasticPoolGet.json" } }, "parameters": [ { @@ -174,50 +128,32 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "name": "databaseName", + "name": "recommendedElasticPoolName", "in": "path", "required": true, "type": "string", - "description": "The name of the database to be operated on (updated or created)." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Database" - }, - "description": "The required parameters for creating or updating a database." + "description": "The name of the recommended elastic pool to be retrieved." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Database" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Database" + "$ref": "#/definitions/RecommendedElasticPool" } - }, - "202": { - "description": "Accepted" } - }, - "x-ms-long-running-operation": true - }, - "patch": { + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools": { + "get": { "tags": [ - "Databases" + "RecommendedElasticPools" ], - "operationId": "Databases_Update", - "description": "Updates an existing database.", + "operationId": "RecommendedElasticPools_ListByServer", + "description": "Returns recommended elastic pools.", "x-ms-examples": { - "Update a database max": { "$ref": "./examples/DatabaseUpdateMaxPatch.json" }, - "Update a database min": { "$ref": "./examples/DatabaseUpdateMin.json" } + "List recommended elastic pools": { "$ref": "./examples/RecommendedElasticPoolList.json" } }, "parameters": [ { @@ -231,45 +167,30 @@ }, { "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the database to be updated." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DatabaseUpdate" - }, - "description": "The required parameters for updating a database." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Database" + "$ref": "#/definitions/RecommendedElasticPoolListResult" } - }, - "202": { - "description": "Accepted" } }, - "x-ms-long-running-operation": true - }, - "delete": { + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/metrics": { + "get": { "tags": [ - "Databases" + "RecommendedElasticPools" ], - "operationId": "Databases_Delete", - "description": "Deletes a database.", + "operationId": "RecommendedElasticPools_ListMetrics", + "description": "Returns recommented elastic pool metrics.", "x-ms-examples": { - "Delete a database": { "$ref": "./examples/DatabaseDelete.json" } + "Get recommended elastic pool metrics": { "$ref": "./examples/RecommendedElasticPoolListMetrics.json" } }, "parameters": [ { @@ -285,30 +206,35 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "name": "databaseName", + "name": "recommendedElasticPoolName", "in": "path", "required": true, "type": "string", - "description": "The name of the database to be deleted." + "description": "The name of the recommended elastic pool to be retrieved." } ], "responses": { "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" + "description": "OK", + "schema": { + "$ref": "#/definitions/RecommendedElasticPoolListMetricsResult" + } } + }, + "x-ms-pageable": { + "nextLinkName": null } - }, + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/serviceTierAdvisors/{serviceTierAdvisorName}": { "get": { "tags": [ - "Databases" + "ServiceTierAdvisors" ], - "operationId": "Databases_Get", - "description": "Gets a database.", + "operationId": "ServiceTierAdvisors_Get", + "description": "Gets a service tier advisor.", "x-ms-examples": { - "Get a database": { "$ref": "./examples/DatabaseGet.json" } + "Get a service tier advisor": { "$ref": "./examples/ServiceTierAdvisorGet.json" } }, "parameters": [ { @@ -328,32 +254,35 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the database to be retrieved." + "description": "The name of database." }, { - "$ref": "#/parameters/DatabaseExpandParameter" + "name": "serviceTierAdvisorName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of service tier advisor." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Database" + "$ref": "#/definitions/ServiceTierAdvisor" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/serviceTierAdvisors": { "get": { "tags": [ - "Databases" + "ServiceTierAdvisors" ], - "operationId": "Databases_ListByServer", - "description": "Returns a list of databases in a server.", + "operationId": "ServiceTierAdvisors_ListByDatabase", + "description": "Returns service tier advisors for specified database.", "x-ms-examples": { - "List databases by server": { "$ref": "./examples/DatabaseList.json" }, - "List databases by server with filter": { "$ref": "./examples/DatabaseListWithFilter.json" } + "Get a list of a service tier advisors": { "$ref": "./examples/ServiceTierAdvisorList.json" } }, "parameters": [ { @@ -369,21 +298,18 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "$ref": "#/parameters/DatabaseExpandParameter" - }, - { - "name": "$filter", - "in": "query", - "required": false, + "name": "databaseName", + "in": "path", + "required": true, "type": "string", - "description": "An OData filter expression that describes a subset of databases to return." + "description": "The name of database." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/DatabaseListResult" + "$ref": "#/definitions/ServiceTierAdvisorListResult" } } }, @@ -392,16 +318,15 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}": { "put": { "tags": [ - "ElasticPools" + "TransparentDataEncryption" ], - "operationId": "ElasticPools_CreateOrUpdate", - "description": "Creates a new elastic pool or updates an existing elastic pool.", - "x-ms-examples":{ - "Create elastic pool max": { "$ref": "./examples/ElasticPoolCreateOrUpdateMax.json" }, - "Create elastic pool min": { "$ref": "./examples/ElasticPoolCreateOrUpdateMin.json" } + "operationId": "TransparentDataEncryptions_CreateOrUpdate", + "description": "Creates or updates a database's transparent data encryption configuration.", + "x-ms-examples": { + "Create or update a database's transparent data encryption configuration": { "$ref": "./examples/DatabaseTransparentDataEncryptionCreateOrUpdate.json" } }, "parameters": [ { @@ -417,50 +342,48 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "name": "elasticPoolName", + "name": "databaseName", "in": "path", "required": true, "type": "string", - "description": "The name of the elastic pool to be operated on (updated or created)." + "description": "The name of the database for which setting the transparent data encryption applies." + }, + { + "$ref": "#/parameters/TransparentDataEncryptionNameParameter" }, { "name": "parameters", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/ElasticPool" + "$ref": "#/definitions/TransparentDataEncryption" }, - "description": "The required parameters for creating or updating an elastic pool." + "description": "The required parameters for creating or updating transparent data encryption." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ElasticPool" + "$ref": "#/definitions/TransparentDataEncryption" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/ElasticPool" + "$ref": "#/definitions/TransparentDataEncryption" } - }, - "202": { - "description": "Accepted" } - }, - "x-ms-long-running-operation": true + } }, - "patch": { + "get": { "tags": [ - "ElasticPools" + "TransparentDataEncryption" ], - "operationId": "ElasticPools_Update", - "description": "Updates an existing elastic pool.", - "x-ms-examples":{ - "Update elastic pool max": { "$ref": "./examples/ElasticPoolUpdateMax.json" }, - "Update elastic pool min": { "$ref": "./examples/ElasticPoolUpdateMin.json" } + "operationId": "TransparentDataEncryptions_Get", + "description": "Gets a database's transparent data encryption configuration.", + "x-ms-examples": { + "Get a database's transparent data encryption configuration": { "$ref": "./examples/DatabaseTransparentDataEncryptionGet.json" } }, "parameters": [ { @@ -476,82 +399,35 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "name": "elasticPoolName", + "name": "databaseName", "in": "path", "required": true, "type": "string", - "description": "The name of the elastic pool to be updated." + "description": "The name of the database for which the transparent data encryption applies." }, { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ElasticPoolUpdate" - }, - "description": "The required parameters for updating an elastic pool." + "$ref": "#/parameters/TransparentDataEncryptionNameParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ElasticPool" + "$ref": "#/definitions/TransparentDataEncryption" } - }, - "202": { - "description": "Accepted" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "ElasticPools" - ], - "operationId": "ElasticPools_Delete", - "description": "Deletes the elastic pool.", - "x-ms-examples":{ - "Delete elastic pool": { "$ref": "./examples/ElasticPoolDelete.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "elasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the elastic pool to be deleted." - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "Accepted" } } - }, + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}/operationResults": { "get": { "tags": [ - "ElasticPools" + "TransparentDataEncryption" ], - "operationId": "ElasticPools_Get", - "description": "Gets an elastic pool.", - "x-ms-examples":{ - "Get elastic pool": { "$ref": "./examples/ElasticPoolGet.json" } + "operationId": "TransparentDataEncryptionActivities_ListByConfiguration", + "description": "Returns a database's transparent data encryption operation result.", + "x-ms-examples": { + "List a database's transparent data encryption activities": { "$ref": "./examples/DatabaseTransparentDataEncryptionActivityList.json" } }, "parameters": [ { @@ -567,686 +443,21 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "name": "elasticPoolName", + "name": "databaseName", "in": "path", "required": true, "type": "string", - "description": "The name of the elastic pool to be retrieved." + "description": "The name of the database for which the transparent data encryption applies." + }, + { + "$ref": "#/parameters/TransparentDataEncryptionNameParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ElasticPool" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools": { - "get": { - "tags": [ - "ElasticPools" - ], - "operationId": "ElasticPools_ListByServer", - "description": "Returns a list of elastic pools in a server.", - "x-ms-examples":{ - "List elastic pools": { "$ref": "./examples/ElasticPoolList.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ElasticPoolListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolActivity": { - "get": { - "tags": [ - "ElasticPools" - ], - "operationId": "ElasticPoolActivities_ListByElasticPool", - "description": "Returns elastic pool activities.", - "x-ms-examples":{ - "List Elastic pool activity": { "$ref": "./examples/ElasticPoolActivityList.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "elasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the elastic pool for which to get the current activity." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ElasticPoolActivityListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolDatabaseActivity": { - "get": { - "tags": [ - "ElasticPools" - ], - "operationId": "ElasticPoolDatabaseActivities_ListByElasticPool", - "description": "Returns activity on databases inside of an elastic pool.", - "x-ms-examples":{ - "List elastic pool database activity": { "$ref": "./examples/ElasticPoolDatabaseActivityList.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "elasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the elastic pool." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ElasticPoolDatabaseActivityListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases/{databaseName}": { - "get": { - "tags": [ - "ElasticPools" - ], - "operationId": "Databases_GetByElasticPool", - "description": "Gets a database inside of an elastic pool.", - "x-ms-examples": { - "Get a database in an elastic pool": { "$ref": "./examples/DatabaseGetByElasticPool.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "elasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the elastic pool to be retrieved." - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the database to be retrieved." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Database" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases": { - "get": { - "tags": [ - "Databases" - ], - "operationId": "Databases_ListByElasticPool", - "description": "Returns a list of databases in an elastic pool.", - "x-ms-examples": { - "Gets databases in an elastic pool": { "$ref": "./examples/DatabaseListByElasticPool.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "elasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the elastic pool to be retrieved." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DatabaseListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}": { - "get": { - "tags": [ - "RecommendedElasticPools" - ], - "operationId": "RecommendedElasticPools_Get", - "description": "Gets a recommented elastic pool.", - "x-ms-examples": { - "Get a recommended elastic pool": { "$ref": "./examples/RecommendedElasticPoolGet.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "recommendedElasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the recommended elastic pool to be retrieved." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/RecommendedElasticPool" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/databases/{databaseName}": { - "get": { - "tags": [ - "Databases" - ], - "operationId": "Databases_GetByRecommendedElasticPool", - "description": "Gets a database inside of a recommented elastic pool.", - "x-ms-examples": { - "Get a database in a recommended elastic pool": { "$ref": "./examples/DatabaseGetByRecommendedElasticPool.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "recommendedElasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the elastic pool to be retrieved." - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the database to be retrieved." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Database" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools": { - "get": { - "tags": [ - "RecommendedElasticPools" - ], - "operationId": "RecommendedElasticPools_ListByServer", - "description": "Returns recommended elastic pools.", - "x-ms-examples": { - "List recommended elastic pools": { "$ref": "./examples/RecommendedElasticPoolList.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/RecommendedElasticPoolListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/databases": { - "get": { - "tags": [ - "Databases" - ], - "operationId": "Databases_ListByRecommendedElasticPool", - "description": "Returns a list of databases inside a recommented elastic pool.", - "x-ms-examples": { - "Gets databases in an elastic pool": { "$ref": "./examples/DatabaseListByRecommendedElasticPool.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "recommendedElasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the recommended elastic pool to be retrieved." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DatabaseListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/metrics": { - "get": { - "tags": [ - "RecommendedElasticPools" - ], - "operationId": "RecommendedElasticPools_ListMetrics", - "description": "Returns recommented elastic pool metrics.", - "x-ms-examples": { - "Get recommended elastic pool metrics": { "$ref": "./examples/RecommendedElasticPoolListMetrics.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "recommendedElasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the recommended elastic pool to be retrieved." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/RecommendedElasticPoolListMetricsResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/serviceTierAdvisors/{serviceTierAdvisorName}": { - "get": { - "tags": [ - "ServiceTierAdvisors" - ], - "operationId": "ServiceTierAdvisors_Get", - "description": "Gets a service tier advisor.", - "x-ms-examples": { - "Get a service tier advisor": { "$ref": "./examples/ServiceTierAdvisorGet.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of database." - }, - { - "name": "serviceTierAdvisorName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of service tier advisor." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServiceTierAdvisor" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/serviceTierAdvisors": { - "get": { - "tags": [ - "ServiceTierAdvisors" - ], - "operationId": "ServiceTierAdvisors_ListByDatabase", - "description": "Returns service tier advisors for specified database.", - "x-ms-examples": { - "Get a list of a service tier advisors": { "$ref": "./examples/ServiceTierAdvisorList.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of database." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServiceTierAdvisorListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}": { - "put": { - "tags": [ - "TransparentDataEncryption" - ], - "operationId": "TransparentDataEncryptions_CreateOrUpdate", - "description": "Creates or updates a database's transparent data encryption configuration.", - "x-ms-examples": { - "Create or update a database's transparent data encryption configuration": { "$ref": "./examples/DatabaseTransparentDataEncryptionCreateOrUpdate.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the database for which setting the transparent data encryption applies." - }, - { - "$ref": "#/parameters/TransparentDataEncryptionNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/TransparentDataEncryption" - }, - "description": "The required parameters for creating or updating transparent data encryption." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TransparentDataEncryption" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/TransparentDataEncryption" - } - } - } - }, - "get": { - "tags": [ - "TransparentDataEncryption" - ], - "operationId": "TransparentDataEncryptions_Get", - "description": "Gets a database's transparent data encryption configuration.", - "x-ms-examples": { - "Get a database's transparent data encryption configuration": { "$ref": "./examples/DatabaseTransparentDataEncryptionGet.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the database for which the transparent data encryption applies." - }, - { - "$ref": "#/parameters/TransparentDataEncryptionNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TransparentDataEncryption" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}/operationResults": { - "get": { - "tags": [ - "TransparentDataEncryption" - ], - "operationId": "TransparentDataEncryptionActivities_ListByConfiguration", - "description": "Returns a database's transparent data encryption operation result.", - "x-ms-examples": { - "List a database's transparent data encryption activities": { "$ref": "./examples/DatabaseTransparentDataEncryptionActivityList.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the database for which the transparent data encryption applies." - }, - { - "$ref": "#/parameters/TransparentDataEncryptionNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TransparentDataEncryptionActivityListResult" + "$ref": "#/definitions/TransparentDataEncryptionActivityListResult" } } }, @@ -1319,62 +530,6 @@ } ] }, - "CheckNameAvailabilityRequest": { - "properties":{ - "name": { - "type": "string", - "description": "The name whose availability is to be checked." - }, - "type": { - "type": "string", - "description": "The type of resource that is used as the scope of the availability check.", - "enum": [ - "Microsoft.Sql/servers" - ], - "x-ms-enum": { - "name": "CheckNameAvailabilityResourceType", - "modelAsString": false - } - } - }, - "required": [ - "name", "type" - ], - "description": "A request to check whether the specified name for a resource is available." - }, - "CheckNameAvailabilityResponse": { - "properties":{ - "available": { - "type": "boolean", - "description": "True if the name is available, otherwise false.", - "readOnly": true - }, - "message": { - "type": "string", - "description": "A message explaining why the name is unavailable. Will be null if the name is available.", - "readOnly": true - }, - "name": { - "type": "string", - "description": "The name whose availability was checked.", - "readOnly": true - }, - "reason": { - "type": "string", - "description": "The reason code explaining why the name is unavailable. Will be null if the name is available.", - "enum": [ - "Invalid", - "AlreadyExists" - ], - "x-ms-enum": { - "name": "CheckNameAvailabilityReason", - "modelAsString": false - }, - "readOnly": true - } - }, - "description": "A response indicating whether the specified name for a resource is available." - }, "RecommendedElasticPoolMetric": { "properties": { "dateTime": { @@ -1435,199 +590,85 @@ "readOnly": true, "type": "string", "format": "date-time", - "description": "The observation period start (ISO8601 format)." - }, - "observationPeriodEnd": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "The observation period start (ISO8601 format)." - }, - "maxObservedDtu": { - "readOnly": true, - "type": "number", - "format": "double", - "description": "Gets maximum observed DTU." - }, - "maxObservedStorageMB": { - "readOnly": true, - "type": "number", - "format": "double", - "description": "Gets maximum observed storage in megabytes." - }, - "databases": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/Database" - }, - "description": "The list of databases in this pool. Expanded property" - }, - "metrics": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/RecommendedElasticPoolMetric" - }, - "description": "The list of databases housed in the server. Expanded property" - } - }, - "description": "Represents the properties of a recommented elastic pool." - }, - "RecommendedElasticPool": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/RecommendedElasticPoolProperties", - "description": "The properites representing the resource." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "description": "Represents a recommented elastic pool." - }, - "RecommendedElasticPoolListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/RecommendedElasticPool" - }, - "description": "The list of recommended elastic pools hosted in the server." - } - }, - "required": ["value"], - "description": "Represents the response to a list recommended elastic pool request." - }, - "RecommendedElasticPoolListMetricsResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/RecommendedElasticPoolMetric" - }, - "description": "The list of recommended elastic pools metrics." - } - }, - "required": ["value"], - "description": "Represents the response to a list recommended elastic pool metrics request." - }, - "ElasticPoolProperties": { - "properties": { - "creationDate": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "The creation date of the elastic pool (ISO8601 format)." - }, - "state": { - "readOnly": true, - "type": "string", - "enum": ["Creating", "Ready", "Disabled"], - "description": "The state of the elastic pool.", - "x-ms-enum": { - "modelAsString": true, - "name": "ElasticPoolState" - } - }, - "edition": { - "type": "string", - "description": "The edition of the elastic pool.", - "enum": [ - "Basic", - "Standard", - "Premium" - ], - "x-ms-enum": { - "name": "ElasticPoolEdition", - "modelAsString": true - }, - "x-ms-mutability": [ "create", "read" ] - }, - "dtu": { - "type": "integer", - "format": "int32", - "description": "The total shared DTU for the database elastic pool." + "description": "The observation period start (ISO8601 format)." }, - "databaseDtuMax": { - "type": "integer", - "format": "int32", - "description": "The maximum DTU any one database can consume." + "observationPeriodEnd": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The observation period start (ISO8601 format)." }, - "databaseDtuMin": { - "type": "integer", - "format": "int32", - "description": "The minimum DTU all databases are guaranteed." + "maxObservedDtu": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "Gets maximum observed DTU." }, - "storageMB": { - "type": "integer", - "format": "int32", - "description": "Gets storage limit for the database elastic pool in MB." + "maxObservedStorageMB": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "Gets maximum observed storage in megabytes." + }, + "databases": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "./databases.json#/definitions/Database" + }, + "description": "The list of databases in this pool. Expanded property" }, - "zoneRedundant": { - "description": "Whether or not this database elastic pool is zone redundant, which means the replicas of this database will be spread across multiple availability zones.", - "type": "boolean" + "metrics": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/RecommendedElasticPoolMetric" + }, + "description": "The list of databases housed in the server. Expanded property" } }, - "description": "Represents the properties of an elastic pool." + "description": "Represents the properties of a recommented elastic pool." }, - "ElasticPool": { + "RecommendedElasticPool": { "properties": { "properties": { - "$ref": "#/definitions/ElasticPoolProperties", - "description": "The properties representing the resource.", - "x-ms-client-flatten": true - }, - "kind": { - "readOnly": true, - "type": "string", - "description": "Kind of elastic pool. This is metadata used for the Azure portal experience." + "x-ms-client-flatten": true, + "$ref": "#/definitions/RecommendedElasticPoolProperties", + "description": "The properites representing the resource." } }, "allOf": [ { - "$ref": "#/definitions/TrackedResource" + "$ref": "#/definitions/ProxyResource" } ], - "description": "Represents a database elastic pool." + "description": "Represents a recommented elastic pool." }, - "ElasticPoolUpdate": { + "RecommendedElasticPoolListResult": { "properties": { - "tags":{ - "type":"object", - "additionalProperties":{ - "type":"string" + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RecommendedElasticPool" }, - "description":"Resource tags." - }, - "properties": { - "$ref": "#/definitions/ElasticPoolProperties", - "description": "The properties representing the resource.", - "x-ms-client-flatten": true + "description": "The list of recommended elastic pools hosted in the server." } }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Represents an elastic pool update." + "required": ["value"], + "description": "Represents the response to a list recommended elastic pool request." }, - "ElasticPoolListResult": { + "RecommendedElasticPoolListMetricsResult": { "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/ElasticPool" + "$ref": "#/definitions/RecommendedElasticPoolMetric" }, - "description": "The list of elastic pools hosted in the server." + "description": "The list of recommended elastic pools metrics." } }, "required": ["value"], - "description": "Represents the response to a list elastic pool request." + "description": "Represents the response to a list recommended elastic pool metrics request." }, "ElasticPoolActivityProperties": { "properties": { @@ -1944,520 +985,133 @@ "name": "RecommendedIndexState" } }, - "created": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "The UTC datetime showing when this resource was created (ISO8601 format)." - }, - "lastModified": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "The UTC datetime of when was this resource last changed (ISO8601 format)." - }, - "indexType": { - "readOnly": true, - "enum": [ - "CLUSTERED", - "NONCLUSTERED", - "COLUMNSTORE", - "CLUSTERED COLUMNSTORE" - ], - "type": "string", - "description": "The type of index (CLUSTERED, NONCLUSTERED, COLUMNSTORE, CLUSTERED COLUMNSTORE)", - "x-ms-enum": { - "name": "RecommendedIndexType" - } - }, - "schema": { - "readOnly": true, - "type": "string", - "description": "The schema where table to build index over resides" - }, - "table": { - "readOnly": true, - "type": "string", - "description": "The table on which to build index." - }, - "columns": { - "readOnly": true, - "type": "array", - "items": { - "type": "string" - }, - "description": "Columns over which to build index" - }, - "includedColumns": { - "readOnly": true, - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of column names to be included in the index" - }, - "indexScript": { - "readOnly": true, - "type": "string", - "description": "The full build index script" - }, - "estimatedImpact": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/OperationImpact" - }, - "description": "The estimated impact of doing recommended index action." - }, - "reportedImpact": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/OperationImpact" - }, - "description": "The values reported after index action is complete." - } - }, - "description": "Represents the properties of a database recommended index." - }, - "RecommendedIndex": { - "properties": { - "properties": { - "$ref": "#/definitions/RecommendedIndexProperties", - "readOnly": true, - "x-ms-client-flatten": true, - "description": "The properties representing the resource." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "description": "Represents a database recommended index." - }, - "TransparentDataEncryptionProperties": { - "properties": { - "status": { - "type": "string", - "description": "The status of the database transparent data encryption.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "TransparentDataEncryptionStatus" - } - } - }, - "description": "Represents the properties of a database transparent data encryption." - }, - "TransparentDataEncryption": { - "properties": { - "location": { - "type":"string", - "readOnly": true, - "description":"Resource location." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/TransparentDataEncryptionProperties", - "description": "Represents the properties of the resource." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "description": "Represents a database transparent data encryption configuration." - }, - "DatabaseProperties": { - "properties": { - "collation": { - "type": "string", - "description": "The collation of the database. If createMode is not Default, this value is ignored.", - "x-ms-mutability": ["create", "read"] - }, - "creationDate": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "The creation date of the database (ISO8601 format)." - }, - "containmentState": { - "readOnly": true, - "type": "integer", - "format": "int64", - "description": "The containment state of the database." - }, - "currentServiceObjectiveId": { - "readOnly": true, - "type": "string", - "format": "uuid", - "description": "The current service level objective ID of the database. This is the ID of the service level objective that is currently active." - }, - "databaseId": { - "readOnly": true, - "type": "string", - "format": "uuid", - "description": "The ID of the database." - }, - "earliestRestoreDate": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "This records the earliest start date and time that restore is available for this database (ISO8601 format)." - }, - "createMode": { - "type": "string", - "description": "Specifies the mode of database creation.\n\nDefault: regular database creation.\n\nCopy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database.\n\nOnlineSecondary/NonReadableSecondary: creates a database as a (readable or nonreadable) secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database.\n\nPointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified.\n\nRecovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore.\n\nRestore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time.\n\nRestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID.\n\nCopy, NonReadableSecondary, OnlineSecondary and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition.", - "enum": [ - "Copy", - "Default", - "NonReadableSecondary", - "OnlineSecondary", - "PointInTimeRestore", - "Recovery", - "Restore", - "RestoreLongTermRetentionBackup" - ], - "x-ms-enum": { - "name": "CreateMode", - "modelAsString": true - }, - "x-ms-mutability": [ "create" ] - }, - "sourceDatabaseId": { - "type": "string", - "description": "Conditional. If createMode is Copy, NonReadableSecondary, OnlineSecondary, PointInTimeRestore, Recovery, or Restore, then this value is required. Specifies the resource ID of the source database. If createMode is NonReadableSecondary or OnlineSecondary, the name of the source database must be the same as the new database being created.", - "x-ms-mutability": [ "create" ] - }, - "sourceDatabaseDeletionDate": { - "type": "string", - "format": "date-time", - "description": "Conditional. If createMode is Restore and sourceDatabaseId is the deleted database's original resource id when it existed (as opposed to its current restorable dropped database id), then this value is required. Specifies the time that the database was deleted.", - "x-ms-mutability": [ "create" ] - }, - "restorePointInTime": { - "type": "string", - "format": "date-time", - "description": "Conditional. If createMode is PointInTimeRestore, this value is required. If createMode is Restore, this value is optional. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. Must be greater than or equal to the source database's earliestRestoreDate value.", - "x-ms-mutability": [ "create" ] - }, - "recoveryServicesRecoveryPointResourceId": { - "type": "string", - "description": "Conditional. If createMode is RestoreLongTermRetentionBackup, then this value is required. Specifies the resource ID of the recovery point to restore from.", - "x-ms-mutability": [ "create" ] - }, - "edition": { - "type": "string", - "description": "The edition of the database. The DatabaseEditions enumeration contains all the valid editions. If createMode is NonReadableSecondary or OnlineSecondary, this value is ignored. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\" or use the Azure CLI command `az sql db list-editions -l westus --query [].name` .", - "enum": [ - "Web", - "Business", - "Basic", - "Standard", - "Premium", - "PremiumRS", - "Free", - "Stretch", - "DataWarehouse", - "System", - "System2" - ], - "x-ms-enum": { - "name": "DatabaseEdition", - "modelAsString": true - } - }, - "maxSizeBytes": { + "created": { + "readOnly": true, "type": "string", - "description": "The max size of the database expressed in bytes. If createMode is not Default, this value is ignored. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\"" + "format": "date-time", + "description": "The UTC datetime showing when this resource was created (ISO8601 format)." }, - "requestedServiceObjectiveId": { + "lastModified": { + "readOnly": true, "type": "string", - "format": "uuid", - "description": "The configured service level objective ID of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of currentServiceObjectiveId property. If requestedServiceObjectiveId and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveId overrides the value of requestedServiceObjectiveName. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\" or use the Azure CLI command `az sql db list-editions --location --query [].supportedServiceLevelObjectives[].name` ." + "format": "date-time", + "description": "The UTC datetime of when was this resource last changed (ISO8601 format)." }, - "requestedServiceObjectiveName": { - "type": "string", + "indexType": { + "readOnly": true, "enum": [ - "System", - "System0", - "System1", - "System2", - "System3", - "System4", - "System2L", - "System3L", - "System4L", - "Free", - "Basic", - "S0", - "S1", - "S2", - "S3", - "S4", - "S6", - "S7", - "S9", - "S12", - "P1", - "P2", - "P3", - "P4", - "P6", - "P11", - "P15", - "PRS1", - "PRS2", - "PRS4", - "PRS6", - "DW100", - "DW200", - "DW300", - "DW400", - "DW500", - "DW600", - "DW1000", - "DW1200", - "DW1000c", - "DW1500", - "DW1500c", - "DW2000", - "DW2000c", - "DW3000", - "DW2500c", - "DW3000c", - "DW6000", - "DW5000c", - "DW6000c", - "DW7500c", - "DW10000c", - "DW15000c", - "DW30000c", - "DS100", - "DS200", - "DS300", - "DS400", - "DS500", - "DS600", - "DS1000", - "DS1200", - "DS1500", - "DS2000", - "ElasticPool" + "CLUSTERED", + "NONCLUSTERED", + "COLUMNSTORE", + "CLUSTERED COLUMNSTORE" ], - "x-ms-enum": { - "modelAsString": true, - "name": "ServiceObjectiveName" - }, - "description": "The name of the configured service level objective of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of serviceLevelObjective property. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\" or use the Azure CLI command `az sql db list-editions --location --query [].supportedServiceLevelObjectives[].name` ." - }, - "serviceLevelObjective": { - "readOnly": true, "type": "string", - "enum": [ - "System", - "System0", - "System1", - "System2", - "System3", - "System4", - "System2L", - "System3L", - "System4L", - "Free", - "Basic", - "S0", - "S1", - "S2", - "S3", - "S4", - "S6", - "S7", - "S9", - "S12", - "P1", - "P2", - "P3", - "P4", - "P6", - "P11", - "P15", - "PRS1", - "PRS2", - "PRS4", - "PRS6", - "DW100", - "DW200", - "DW300", - "DW400", - "DW500", - "DW600", - "DW1000", - "DW1200", - "DW1000c", - "DW1500", - "DW1500c", - "DW2000", - "DW2000c", - "DW3000", - "DW2500c", - "DW3000c", - "DW6000", - "DW5000c", - "DW6000c", - "DW7500c", - "DW10000c", - "DW15000c", - "DW30000c", - "DS100", - "DS200", - "DS300", - "DS400", - "DS500", - "DS600", - "DS1000", - "DS1200", - "DS1500", - "DS2000", - "ElasticPool" - ], + "description": "The type of index (CLUSTERED, NONCLUSTERED, COLUMNSTORE, CLUSTERED COLUMNSTORE)", "x-ms-enum": { - "modelAsString": true, - "name": "ServiceObjectiveName" - }, - "description": "The current service level objective of the database." + "name": "RecommendedIndexType" + } }, - "status": { + "schema": { "readOnly": true, "type": "string", - "description": "The status of the database." - }, - "elasticPoolName": { - "type": "string", - "description": "The name of the elastic pool the database is in. If elasticPoolName and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveName is ignored. Not supported for DataWarehouse edition." + "description": "The schema where table to build index over resides" }, - "defaultSecondaryLocation": { + "table": { "readOnly": true, "type": "string", - "description": "The default secondary region for this database." + "description": "The table on which to build index." }, - "serviceTierAdvisors": { + "columns": { "readOnly": true, "type": "array", "items": { - "$ref": "#/definitions/ServiceTierAdvisor" + "type": "string" }, - "description": "The list of service tier advisors for this database. Expanded property" + "description": "Columns over which to build index" }, - "transparentDataEncryption": { + "includedColumns": { "readOnly": true, "type": "array", "items": { - "$ref": "#/definitions/TransparentDataEncryption" + "type": "string" }, - "description": "The transparent data encryption info for this database." + "description": "The list of column names to be included in the index" + }, + "indexScript": { + "readOnly": true, + "type": "string", + "description": "The full build index script" }, - "recommendedIndex": { + "estimatedImpact": { "readOnly": true, "type": "array", "items": { - "$ref": "#/definitions/RecommendedIndex" + "$ref": "#/definitions/OperationImpact" }, - "description": "The recommended indices for this database." + "description": "The estimated impact of doing recommended index action." }, - "failoverGroupId": { + "reportedImpact": { "readOnly": true, - "type": "string", - "description": "The resource identifier of the failover group containing this database." - }, - "readScale": { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ], - "description": "Conditional. If the database is a geo-secondary, readScale indicates whether read-only connections are allowed to this database or not. Not supported for DataWarehouse edition.", - "x-ms-enum": { - "name": "ReadScale" - } - }, - "sampleName": { - "type": "string", - "enum": [ - "AdventureWorksLT" - ], - "description": "Indicates the name of the sample schema to apply when creating this database. If createMode is not Default, this value is ignored. Not supported for DataWarehouse edition.", - "x-ms-enum": { - "modelAsString": true, - "name": "SampleName" + "type": "array", + "items": { + "$ref": "#/definitions/OperationImpact" }, - "x-ms-mutability": [ "create" ] - }, - "zoneRedundant": { - "description": "Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.", - "type": "boolean" + "description": "The values reported after index action is complete." } }, - "description": "Represents the properties of a database." + "description": "Represents the properties of a database recommended index." }, - "Database": { + "RecommendedIndex": { "properties": { - "kind": { - "readOnly": true, - "type": "string", - "description": "Kind of database. This is metadata used for the Azure portal experience." - }, "properties": { - "$ref": "#/definitions/DatabaseProperties", - "description": "The properties representing the resource.", - "x-ms-client-flatten": true + "$ref": "#/definitions/RecommendedIndexProperties", + "readOnly": true, + "x-ms-client-flatten": true, + "description": "The properties representing the resource." } }, "allOf": [ { - "$ref": "#/definitions/TrackedResource" + "$ref": "#/definitions/ProxyResource" } ], - "description": "Represents a database." + "description": "Represents a database recommended index." }, - "DatabaseUpdate": { + "TransparentDataEncryptionProperties": { "properties": { - "tags":{ - "type":"object", - "additionalProperties":{ - "type":"string" - }, - "description":"Resource tags." + "status": { + "type": "string", + "description": "The status of the database transparent data encryption.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "TransparentDataEncryptionStatus" + } + } + }, + "description": "Represents the properties of a database transparent data encryption." + }, + "TransparentDataEncryption": { + "properties": { + "location": { + "type":"string", + "readOnly": true, + "description":"Resource location." }, "properties": { - "$ref": "#/definitions/DatabaseProperties", - "description": "The properties representing the resource.", - "x-ms-client-flatten": true + "x-ms-client-flatten": true, + "$ref": "#/definitions/TransparentDataEncryptionProperties", + "description": "Represents the properties of the resource." } }, "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/definitions/ProxyResource" } ], - "description": "Represents a database update." - }, - "DatabaseListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Database" - }, - "description": "The list of databases housed in the server." - } - }, - "required": ["value"], - "description": "Represents the response to a list database request." + "description": "Represents a database transparent data encryption configuration." }, "ServiceTierAdvisorProperties": { "properties": { diff --git a/specification/sql/resource-manager/readme.md b/specification/sql/resource-manager/readme.md index 15859d676b68..076c0cebc518 100644 --- a/specification/sql/resource-manager/readme.md +++ b/specification/sql/resource-manager/readme.md @@ -45,9 +45,12 @@ input-file: - Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionVaults.json - Microsoft.Sql/stable/2014-04-01/backups.json - Microsoft.Sql/stable/2014-04-01/capabilities.json +- Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json - Microsoft.Sql/stable/2014-04-01/connectionPolicies.json +- Microsoft.Sql/stable/2014-04-01/databases.json - Microsoft.Sql/stable/2014-04-01/databaseSecurityAlertPolicies.json - Microsoft.Sql/stable/2014-04-01/dataMasking.json +- Microsoft.Sql/stable/2014-04-01/elasticPools.json - Microsoft.Sql/stable/2014-04-01/firewallRules.json - Microsoft.Sql/stable/2014-04-01/geoBackupPolicies.json - Microsoft.Sql/stable/2014-04-01/importExport.json @@ -91,9 +94,12 @@ input-file: - Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionPolicies.json - Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionVaults.json - Microsoft.Sql/stable/2014-04-01/backups.json +- Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json - Microsoft.Sql/stable/2014-04-01/connectionPolicies.json +- Microsoft.Sql/stable/2014-04-01/databases.json - Microsoft.Sql/stable/2014-04-01/databaseSecurityAlertPolicies.json - Microsoft.Sql/stable/2014-04-01/dataMasking.json +- Microsoft.Sql/stable/2014-04-01/elasticPools.json - Microsoft.Sql/stable/2014-04-01/firewallRules.json - Microsoft.Sql/stable/2014-04-01/geoBackupPolicies.json - Microsoft.Sql/stable/2014-04-01/importExport.json @@ -104,8 +110,8 @@ input-file: - Microsoft.Sql/stable/2014-04-01/serviceObjectives.json - Microsoft.Sql/stable/2014-04-01/sql.core.json - Microsoft.Sql/stable/2014-04-01/usages.json -- Microsoft.Sql/preview/2015-05-01-preview/blobAuditingPolicies.json - Microsoft.Sql/stable/2015-05-01/capabilities.json +- Microsoft.Sql/preview/2015-05-01-preview/blobAuditingPolicies.json - Microsoft.Sql/preview/2015-05-01-preview/encryptionProtectors.json - Microsoft.Sql/preview/2015-05-01-preview/failoverGroups.json - Microsoft.Sql/preview/2015-05-01-preview/operations.json @@ -128,6 +134,9 @@ These settings apply only when `--tag=package-2014-04` is specified on the comma ``` yaml $(tag) == 'package-2014-04' input-file: +- Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json +- Microsoft.Sql/stable/2014-04-01/databases.json +- Microsoft.Sql/stable/2014-04-01/elasticPools.json - Microsoft.Sql/stable/2014-04-01/firewallRules.json - Microsoft.Sql/stable/2014-04-01/importExport.json - Microsoft.Sql/stable/2014-04-01/replicationLinks.json @@ -151,7 +160,7 @@ These can be regenerated by running the following PowerShell script from this re ``` yaml $(tag) == 'schema-2017-03-preview' input-file: - - ./Microsoft.Sql/preview/2017-03-01-preview/Databases.json + - ./Microsoft.Sql/preview/2017-03-01-preview/databases.json - ./Microsoft.Sql/preview/2017-03-01-preview/renameDatabase.json - ./Microsoft.Sql/preview/2017-03-01-preview/serverDnsAliases.json @@ -203,10 +212,13 @@ input-file: - ./Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionVaults.json - ./Microsoft.Sql/stable/2014-04-01/backups.json - ./Microsoft.Sql/stable/2014-04-01/capabilities.json + - ./Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json - ./Microsoft.Sql/stable/2014-04-01/connectionPolicies.json + - ./Microsoft.Sql/stable/2014-04-01/databases.json - ./Microsoft.Sql/stable/2014-04-01/databaseSecurityAlertPolicies.json - ./Microsoft.Sql/stable/2014-04-01/dataMasking.json - ./Microsoft.Sql/stable/2014-04-01/deprecated.json + - ./Microsoft.Sql/stable/2014-04-01/elasticPools.json - ./Microsoft.Sql/stable/2014-04-01/firewallRules.json - ./Microsoft.Sql/stable/2014-04-01/geoBackupPolicies.json - ./Microsoft.Sql/stable/2014-04-01/importExport.json