diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/backups_legacy.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/backups_legacy.json similarity index 100% rename from specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/backups_legacy.json rename to specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/backups_legacy.json diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/DatabaseTransparentDataEncryptionActivityList.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/DatabaseTransparentDataEncryptionActivityList.json new file mode 100644 index 000000000000..54993dacf6c7 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/DatabaseTransparentDataEncryptionActivityList.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-6852", + "serverName": "sqlcrudtest-2080", + "databaseName": "sqlcrudtest-9187", + "transparentDataEncryptionName": "current", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "status": "Encrypting", + "percentComplete": 100 + }, + "name": "current", + "location": "West US", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/transparentDataEncryption/current/operationResults/current", + "type": "Microsoft.Sql/servers/databases/transparentDataEncryption/operationResults" + } + ] + } + } + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/DatabaseTransparentDataEncryptionCreateOrUpdate.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/DatabaseTransparentDataEncryptionCreateOrUpdate.json new file mode 100644 index 000000000000..86ac32fe594b --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/DatabaseTransparentDataEncryptionCreateOrUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-6852", + "serverName": "sqlcrudtest-2080", + "databaseName": "sqlcrudtest-9187", + "transparentDataEncryptionName": "current", + "api-version": "2014-04-01", + "parameters": { + "properties": { + "status": "Enabled" + } + } + }, + "responses": { + "200": { + "body": { + "name": "current", + "location": "North Europe", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/transparentDataEncryption/current", + "type": "Microsoft.Sql/servers/databases/transparentDataEncryption", + "properties": { + "status": "Enabled" + } + } + }, + "201": { + "body": { + "name": "current", + "location": "North Europe", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/transparentDataEncryption/current", + "type": "Microsoft.Sql/servers/databases/transparentDataEncryption", + "properties": { + "status": "Enabled" + } + } + } + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/DatabaseTransparentDataEncryptionGet.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/DatabaseTransparentDataEncryptionGet.json new file mode 100644 index 000000000000..3097c2bdeffb --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/DatabaseTransparentDataEncryptionGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-6852", + "serverName": "sqlcrudtest-2080", + "databaseName": "sqlcrudtest-9187", + "transparentDataEncryptionName": "current", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "name": "current", + "location": "North Europe", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/transparentDataEncryption/current", + "type": "Microsoft.Sql/servers/databases/transparentDataEncryption", + "properties": { + "status": "Enabled" + } + } + } + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ElasticPoolActivityList.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ElasticPoolActivityList.json new file mode 100644 index 000000000000..152c4d54ca0d --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ElasticPoolActivityList.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-4291", + "serverName": "sqlcrudtest-6574", + "elasticPoolName": "8749", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4291/providers/Microsoft.Sql/servers/sqlcrudtest-6574/elasticPools/8749/elasticPoolActivity/851f1672-f7f0-46f6-a262-ee9b51e18e97", + "name": "851f1672-f7f0-46f6-a262-ee9b51e18e97", + "type": "Microsoft.Sql/servers/elasticPools/elasticPoolActivity", + "location": "Japan East", + "properties": { + "operationId": "851f1672-f7f0-46f6-a262-ee9b51e18e97", + "serverName": "sqlcrudtest-6574", + "elasticPoolName": "8749", + "state": "COMPLETED", + "operation": "CREATE", + "errorCode": null, + "errorMessage": null, + "errorSeverity": null, + "startTime": "2017-02-10T02:03:06.16Z", + "endTime": "2017-02-10T02:03:23.263Z", + "percentComplete": 100, + "requestedElasticPoolName": null, + "requestedDtuGuarantee": 100, + "requestedDatabaseDtuCap": 5, + "requestedDatabaseDtuGuarantee": 0, + "requestedStorageLimitInGB": 9, + "requestedStorageLimitInMB": 10000 + } + } + ] + } + } + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ElasticPoolDatabaseActivityList.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ElasticPoolDatabaseActivityList.json new file mode 100644 index 000000000000..9b3cbffecb52 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ElasticPoolDatabaseActivityList.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "subscriptionId": "9d4e2ad0-e20b-4464-9219-353bded52513", + "resourceGroupName": "sqlcrudtest-4673", + "serverName": "sqlcrudtest-603", + "elasticPoolName": "7537", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/9d4e2ad0-e20b-4464-9219-353bded52513/resourceGroups/sqlcrudtest-4673/providers/Microsoft.Sql/servers/sqlcrudtest-603/elasticPools/7537/elasticPoolDatabaseActivity/3a3272b3-f1fe-423c-9feb-7b843157eda5", + "name": "3a3272b3-f1fe-423c-9feb-7b843157eda5", + "type": "Microsoft.Sql/servers/elasticPools/elasticPoolDatabaseActivity", + "location": "Japan East", + "properties": { + "operationId": "3a3272b3-f1fe-423c-9feb-7b843157eda5", + "serverName": "sqlcrudtest-603", + "databaseName": "2396", + "state": "COMPLETED", + "operation": "UPDATE", + "errorCode": null, + "errorMessage": null, + "errorSeverity": null, + "startTime": "2016-10-23T03:07:12.57Z", + "endTime": "2016-10-23T03:08:02.95Z", + "percentComplete": 100, + "currentServiceObjective": "ElasticPool", + "requestedServiceObjective": null, + "currentElasticPoolName": "7537", + "requestedElasticPoolName": null + } + }, + { + "id": "/subscriptions/9d4e2ad0-e20b-4464-9219-353bded52513/resourceGroups/sqlcrudtest-4673/providers/Microsoft.Sql/servers/sqlcrudtest-603/elasticPools/7537/elasticPoolDatabaseActivity/95108a78-384e-48d3-b4de-7bf23b93a26d", + "name": "95108a78-384e-48d3-b4de-7bf23b93a26d", + "type": "Microsoft.Sql/servers/elasticPools/elasticPoolDatabaseActivity", + "location": "Japan East", + "properties": { + "operationId": "95108a78-384e-48d3-b4de-7bf23b93a26d", + "serverName": "sqlcrudtest-603", + "databaseName": "2396", + "state": "COMPLETED", + "operation": "CREATE", + "errorCode": null, + "errorMessage": null, + "errorSeverity": null, + "startTime": "2016-10-23T03:06:11.19Z", + "endTime": "2016-10-23T03:06:49.19Z", + "percentComplete": 100, + "currentServiceObjective": "ElasticPool", + "requestedServiceObjective": null, + "currentElasticPoolName": "7537", + "requestedElasticPoolName": null + } + } + ] + } + } + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/RecoverableDatabaseGet.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/RecoverableDatabaseGet.json new file mode 100644 index 000000000000..8f1a7a46ef51 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/RecoverableDatabaseGet.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "recoverabledatabasetest-6852", + "serverName": "recoverabledatabasetest-2080", + "databaseName": "recoverabledatabasetest-9187", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/recoverabledatabasetest-6852/providers/Microsoft.Sql/servers/recoverabledatabasetest-2080/recoverabledatabases/recoverabledatabasetest-9187", + "name": "recoverabledatabasetest-9187", + "type": "Microsoft.Sql/servers/recoverabledatabases", + "properties": { + "edition": "Basic", + "serviceLevelObjective": "Basic", + "lastAvailableBackupDate": "2017-05-26T01:06:29.78Z", + "elasticPoolName": null + } + } + } + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/RecoverableDatabaseList.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/RecoverableDatabaseList.json new file mode 100644 index 000000000000..be64c202b1be --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/RecoverableDatabaseList.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "recoverabledatabasetest-1234", + "serverName": "recoverabledatabasetest-7177", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/recoverabledatabasetest-1234/providers/Microsoft.Sql/servers/recoverabledatabasetest-7177/recoverabledatabases/recoverabledatabasetest-1235", + "name": "recoverabledatabasetest-1235", + "type": "Microsoft.Sql/servers/recoverabledatabases", + "properties": { + "edition": "Standard", + "serviceLevelObjective": "S0", + "lastAvailableBackupDate": "2017-05-26T01:06:29.78Z", + "elasticPoolName": null + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/recoverabledatabasetest-1234/providers/Microsoft.Sql/servers/recoverabledatabasetest-7177/recoverabledatabases/recoverabledatabasetest-9231", + "name": "recoverabledatabasetest-9231", + "type": "Microsoft.Sql/servers/recoverabledatabases", + "properties": { + "edition": "Premium", + "serviceLevelObjective": "P1", + "lastAvailableBackupDate": "2017-05-26T03:20:31.78Z", + "elasticPoolName": null + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/recoverabledatabasetest-1234/providers/Microsoft.Sql/servers/recoverabledatabasetest-7177/recoverabledatabases/recoverabledatabasetest-0342", + "name": "recoverabledatabasetest-0342", + "type": "Microsoft.Sql/servers/recoverabledatabases", + "properties": { + "edition": "Basic", + "serviceLevelObjective": "Basic", + "lastAvailableBackupDate": "2017-05-24T02:06:18.78Z", + "elasticPoolName": null + } + } + ] + } + } + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkDelete.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkDelete.json new file mode 100644 index 000000000000..ebac700be866 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-4799", + "serverName": "sqlcrudtest-6440", + "databaseName": "testdb", + "linkId": "5b301b68-03f6-4b26-b0f4-73ebb8634238", + "api-version": "2014-04-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkFailover.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkFailover.json new file mode 100644 index 000000000000..ce5ed3665178 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkFailover.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-8931", + "serverName": "sqlcrudtest-2137", + "databaseName": "testdb", + "linkId": "f0550bf5-07ce-4270-8e4b-71737975973a", + "api-version": "2014-04-01" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkUnlink.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkUnlink.json new file mode 100644 index 000000000000..0b4701fa8353 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkUnlink.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-8931", + "serverName": "sqlcrudtest-2137", + "databaseName": "testdb", + "linkId": "f0550bf5-07ce-4270-8e4b-71737975973a", + "api-version": "2014-04-01", + "parameters": { + "forcedTermination": true + } + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ServerUsageMetricsList.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ServerUsageMetricsList.json new file mode 100644 index 000000000000..03c7454a71ff --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ServerUsageMetricsList.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-6730", + "serverName": "sqlcrudtest-9007", + "api-version": "2014-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "server_dtu_quota", + "resourceName": "sqlcrudtest-9007", + "displayName": "Database Throughput Unit Quota", + "currentValue": 0, + "limit": 45000, + "unit": "DTUs", + "nextResetTime": null + }, + { + "name": "server_dtu_quota_current", + "resourceName": "sqlcrudtest-9007", + "displayName": "Database Throughput Unit Quota", + "currentValue": 0, + "limit": 45000, + "unit": "DTUs", + "nextResetTime": null + } + ] + } + } + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/replicationLinks_legacy.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/replicationLinks_legacy.json similarity index 100% rename from specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/replicationLinks_legacy.json rename to specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/replicationLinks_legacy.json diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core_legacy.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/sql.core_legacy.json similarity index 100% rename from specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core_legacy.json rename to specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/sql.core_legacy.json diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/usages_legacy.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/usages_legacy.json similarity index 100% rename from specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/usages_legacy.json rename to specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/usages_legacy.json diff --git a/specification/sql/resource-manager/readme.md b/specification/sql/resource-manager/readme.md index 281f535cc1bb..cacdbe8455ff 100644 --- a/specification/sql/resource-manager/readme.md +++ b/specification/sql/resource-manager/readme.md @@ -42,16 +42,16 @@ APIs must only be added to this section when the API is publicly available in at ``` yaml $(tag) == 'package-composite-v5' input-file: -- Microsoft.Sql/stable/2014-04-01/backups_legacy.json +- Microsoft.Sql/stable/2014-04-01-legacy/backups_legacy.json - Microsoft.Sql/stable/2014-04-01/connectionPolicies.json - Microsoft.Sql/stable/2014-04-01/dataMasking.json - Microsoft.Sql/stable/2014-04-01/geoBackupPolicies.json - Microsoft.Sql/stable/2014-04-01/metrics.json -- Microsoft.Sql/stable/2014-04-01/replicationLinks_legacy.json +- Microsoft.Sql/stable/2014-04-01-legacy/replicationLinks_legacy.json - Microsoft.Sql/stable/2014-04-01/serverCommunicationLinks.json - Microsoft.Sql/stable/2014-04-01/serviceObjectives.json -- Microsoft.Sql/stable/2014-04-01/sql.core_legacy.json -- Microsoft.Sql/stable/2014-04-01/usages_legacy.json +- Microsoft.Sql/stable/2014-04-01-legacy/sql.core_legacy.json +- Microsoft.Sql/stable/2014-04-01-legacy/usages_legacy.json - ./Microsoft.Sql/preview/2020-11-01-preview/BlobAuditing.json - ./Microsoft.Sql/preview/2020-11-01-preview/DatabaseAdvisors.json - ./Microsoft.Sql/preview/2020-11-01-preview/DatabaseAutomaticTuning.json