Skip to content

Commit

Permalink
[WaitForARMFeedback] Long Term Retention for Managed Instances (Azure…
Browse files Browse the repository at this point in the history
…#8266)

* update swagger to accomodate for new managed db create mode (ltr)

* Adding example file for create managed db from ltr restore

* remove unused example

* undoing removal of completeRestore

* adding back complete managed restore example

* add examplee and swagger files for ltr backup/policies

* update readme; add in 2018 manage databases diffs

* remove create example from 2018

* add -preview to swagger files added to readme

* removing empty body from delete backup examples

* fix parameter name in exmple file

* add 2018 example. fix version in 2017 example

* ../../2018-06-01-preview/managedDatabases.json

* removing example from 2018

* ran prettier on some example files

* adding other files called out by prettier

* update readme to include swagger files in v3/v2/v1

* Revert "update readme to include swagger files in v3/v2/v1"
Removing files committed by prettier-fix

This reverts commit db6d146.

* reverted all unrelated files
updated readme to include swagger files in v3/v2/v1

* update swagger after introducing new error handler

* removing old versions of manageDatabase.json swagger from readme.md package composites (2018-06-01 version is referenced)

* Adding updated swagger files for:
managedDatabases
LongTermRetentionManagedInstanceBackups
ManagedInstanceLongTermRetentionPolicies

as well as relevant examples, to 2018 and 2019

* add files after running prettier-fix; removing LTR backups/policies APIs from 2019

* updated readme to use 2019 version of managedDatabases.json

* adding files fixed by prettier

* prettierfix.diff on LTR MI example
  • Loading branch information
xaliciayang authored and 00Kai0 committed Oct 12, 2020
1 parent 7e87e77 commit 15cb9aa
Show file tree
Hide file tree
Showing 32 changed files with 2,023 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@
"storageAccountSubscriptionId": "00000000-1234-0000-5678-000000000000",
"isStorageSecondaryKeyInUse": false,
"queueDelayMs": 4000,
"auditActionsAndGroups": [ "DATABASE_LOGOUT_GROUP", "DATABASE_ROLE_MEMBER_CHANGE_GROUP", "UPDATE on database::TestDatabaseName by public" ],
"auditActionsAndGroups": [
"DATABASE_LOGOUT_GROUP",
"DATABASE_ROLE_MEMBER_CHANGE_GROUP",
"UPDATE on database::TestDatabaseName by public"
],
"isAzureMonitorTargetEnabled": true
}
}
Expand All @@ -56,7 +60,11 @@
"storageAccountSubscriptionId": "00000000-1234-0000-5678-000000000000",
"isStorageSecondaryKeyInUse": false,
"queueDelayMs": 4000,
"auditActionsAndGroups": [ "DATABASE_LOGOUT_GROUP", "DATABASE_ROLE_MEMBER_CHANGE_GROUP", "UPDATE on database::TestDatabaseName by public" ],
"auditActionsAndGroups": [
"DATABASE_LOGOUT_GROUP",
"DATABASE_ROLE_MEMBER_CHANGE_GROUP",
"UPDATE on database::TestDatabaseName by public"
],
"isAzureMonitorTargetEnabled": true
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"DATABASE_LOGOUT_GROUP",
"DATABASE_ROLE_MEMBER_CHANGE_GROUP",
"UPDATE on database::TestDatabaseName by public"
],
],
"isAzureMonitorTargetEnabled": true
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"location": "southeastasia",
"properties": {
"createMode": "Recovery",
"RecoverableDatabaseId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/Default-SQL-WestEurope/providers/Microsoft.Sql/managedInstances/testsvr/recoverableDatabases/testdb"
"recoverableDatabaseId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/Default-SQL-WestEurope/providers/Microsoft.Sql/managedInstances/testsvr/recoverableDatabases/testdb"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "Default-SQL-SouthEastAsia",
"managedInstanceName": "testinstance",
"databaseName": "testdatabase",
"api-version": "2017-03-01-preview",
"parameters": {
"location": "southeastasia",
"properties": {
"createMode": "RestoreLongTermRetentionBackup",
"longTermRetentionBackupResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/testInstance/databases/testDatabase/longTermRetentionManagedInstanceBackups/00000000-1111-2222-3333-444444444444;131637960820000000"
}
}
},
"responses": {
"200": {
"body": {
"tags": {
"tagKey1": "TagValue1"
},
"location": "southeastasia",
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/testinstance/recoverableDatabases/testdatabase",
"name": "testdatabase",
"properties": {
"collation": "SQL_Latin1_General_CP1_CI_AS",
"status": "Online",
"creationDate": "2018-11-07T04:41:33.937Z"
},
"type": "Microsoft.Sql/managedInstances/databases"
}
},
"201": {
"body": {
"tags": {
"tagKey1": "TagValue1"
},
"location": "southeastasia",
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/testinstance/recoverableDatabases/testdatabase",
"name": "testdatabase",
"properties": {
"collation": "SQL_Latin1_General_CP1_CI_AS",
"status": "Online",
"creationDate": "2018-11-07T04:41:33.937Z"
},
"type": "Microsoft.Sql/managedInstances/databases"
}
},
"202": {}
}
}

Large diffs are not rendered by default.

Loading

0 comments on commit 15cb9aa

Please sign in to comment.