Skip to content

Commit

Permalink
add mi refresh API (#24093)
Browse files Browse the repository at this point in the history
* add mi refresh API

* remove stray character

* add examples

* fix lro error

* fix lro error only in example

* fixing prettier issue

* Test commit - adding error schema

* Test2

* Test - changing error type

* Revert "Test - changing error type"

This reverts commit 84fff94.

* Reverting 3 test commits

* Test - adding commong error type reference

* fix type format errors

---------

Co-authored-by: Stefan Krivokapic <[email protected]>
  • Loading branch information
guptanitish-ms and Stefan Krivokapic authored May 26, 2023
1 parent cae3704 commit 45b66dd
Show file tree
Hide file tree
Showing 16 changed files with 267 additions and 32 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"tenantId": "00000011-1111-2222-2222-123456789111",
"azureADOnlyAuthentication": true
},
"hybridSecondaryUsage": "Passive",
"servicePrincipal": {
"type": "SystemAssigned"
}
Expand Down Expand Up @@ -82,7 +83,9 @@
"clientId": "00000011-1111-2222-2222-123456789111",
"tenantId": "00000011-1111-2222-2222-123456789111",
"type": "SystemAssigned"
}
},
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
},
"location": "japaneast",
"tags": {
Expand Down Expand Up @@ -132,7 +135,8 @@
"clientId": "00000011-1111-2222-2222-123456789111",
"tenantId": "00000011-1111-2222-2222-123456789111",
"type": "SystemAssigned"
}
},
"hybridSecondaryUsage": "Passive"
},
"location": "japaneast",
"tags": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
"proxyOverride": "Redirect",
"dnsZone": "1b4e2caff2530",
"currentBackupStorageRedundancy": "Geo",
"requestedBackupStorageRedundancy": "Geo"
"requestedBackupStorageRedundancy": "Geo",
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
},
"location": "japaneast",
"tags": {},
Expand Down Expand Up @@ -74,7 +76,9 @@
"proxyOverride": "Redirect",
"dnsZone": "1b4e2caff2530",
"currentBackupStorageRedundancy": "Geo",
"requestedBackupStorageRedundancy": "Geo"
"requestedBackupStorageRedundancy": "Geo",
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
},
"location": "japaneast",
"tags": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
"clientId": "00000011-1111-2222-2222-123456789111",
"tenantId": "00000011-1111-2222-2222-123456789111",
"type": "SystemAssigned"
}
},
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
},
"location": "japaneast",
"tags": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
"sid": "00000011-1111-2222-2222-123456789111",
"tenantId": "00000011-1111-2222-2222-123456789111",
"azureADOnlyAuthentication": true
}
},
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
},
"location": "japaneast",
"tags": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
"maintenanceConfigurationId": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_JapanEast_MI_1",
"currentBackupStorageRedundancy": "Geo",
"requestedBackupStorageRedundancy": "Geo",
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-999999999999"
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-999999999999",
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
}
},
{
Expand Down Expand Up @@ -66,7 +68,9 @@
"maintenanceConfigurationId": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_JapanEast_MI_1",
"currentBackupStorageRedundancy": "Geo",
"requestedBackupStorageRedundancy": "Geo",
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-444444444444"
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-444444444444",
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
"maintenanceConfigurationId": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_CanadaCentral_MI_1",
"currentBackupStorageRedundancy": "Geo",
"requestedBackupStorageRedundancy": "Geo",
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-999999999999"
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-999999999999",
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
}
},
{
Expand Down Expand Up @@ -70,7 +72,9 @@
"maintenanceConfigurationId": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_CanadaCentral_MI_1",
"currentBackupStorageRedundancy": "Geo",
"requestedBackupStorageRedundancy": "Geo",
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-999999999999"
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-999999999999",
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
"sid": "00000011-1111-2222-2222-123456789111",
"tenantId": "00000011-1111-2222-2222-123456789111",
"azureADOnlyAuthentication": true
}
},
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
}
},
{
Expand Down Expand Up @@ -84,7 +86,9 @@
"sid": "00000011-1111-2222-2222-123456789111",
"tenantId": "00000011-1111-2222-2222-123456789111",
"azureADOnlyAuthentication": true
}
},
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
"maintenanceConfigurationId": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_JapanEast_MI_1",
"currentBackupStorageRedundancy": "Geo",
"requestedBackupStorageRedundancy": "Geo",
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-999999999999"
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-999999999999",
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
}
},
{
Expand Down Expand Up @@ -67,7 +69,9 @@
"maintenanceConfigurationId": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_JapanEast_MI_1",
"currentBackupStorageRedundancy": "Geo",
"requestedBackupStorageRedundancy": "Geo",
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-444444444444"
"virtualClusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/virtualClusters/vc-5555555-6666-7777-8888-444444444444",
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
"sid": "00000011-1111-2222-2222-123456789111",
"tenantId": "00000011-1111-2222-2222-123456789111",
"azureADOnlyAuthentication": true
}
},
"hybridSecondaryUsage": "Passive",
"externalGovernanceStatus": "Enabled"
}
},
{
Expand Down Expand Up @@ -81,7 +83,9 @@
"sid": "00000011-1111-2222-2222-123456789111",
"tenantId": "00000011-1111-2222-2222-123456789111",
"azureADOnlyAuthentication": true
}
},
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
"sid": "00000011-1111-2222-2222-123456789111",
"tenantId": "00000011-1111-2222-2222-123456789111",
"azureADOnlyAuthentication": true
}
},
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
}
},
{
Expand Down Expand Up @@ -80,7 +82,9 @@
"sid": "00000011-1111-2222-2222-123456789111",
"tenantId": "00000011-1111-2222-2222-123456789111",
"azureADOnlyAuthentication": true
}
},
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
"proxyOverride": "Default",
"dnsZone": "1b4e2caff2530",
"instancePoolId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1",
"maintenanceConfigurationId": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default"
"maintenanceConfigurationId": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default",
"hybridSecondaryUsage": "Passive",
"externalGovernanceStatus": "Enabled"
},
"location": "japaneast",
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
"instancePoolId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/instancePools/instancePool1",
"maintenanceConfigurationId": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default",
"currentBackupStorageRedundancy": "Geo",
"requestedBackupStorageRedundancy": "Geo"
"requestedBackupStorageRedundancy": "Geo",
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
},
"location": "japaneast",
"tags": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "sqlcrudtest-7398",
"managedInstanceName": "sqlcrudtest-4645",
"api-version": "2023-02-01-preview"
},
"responses": {
"200": {
"body": {
"properties": {
"requestId": "00000000-0000-0000-0000-000000000000",
"requestType": "UpdatePurviewMetadata",
"queuedTime": "2/12/2022 8:33:27 PM",
"managedInstanceName": "testsvr.database.windows.net",
"status": "Completed"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Sql/locations/japaneast/refreshExternalGovernanceStatusMIOperationResults/9d9a794a-5cec-4f23-af70-d29511b522a4",
"name": "9d9a794a-5cec-4f23-af70-d29511b522a4",
"type": "Microsoft.Sql/locations/refreshExternalGovernanceStatusMIOperationResults"
}
},
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Sql/locations/japaneast/refreshExternalGovernanceStatusMIOperationResults/00000000-0000-0000-0000-000000000000?api-version=2023-02-01-preview"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
"clientId": "00000011-1111-2222-2222-123456789111",
"tenantId": "00000011-1111-2222-2222-123456789111",
"type": "SystemAssigned"
}
},
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
},
"location": "japaneast",
"tags": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
"clientId": "00000011-1111-2222-2222-123456789111",
"tenantId": "00000011-1111-2222-2222-123456789111",
"type": "SystemAssigned"
}
},
"externalGovernanceStatus": "Enabled",
"hybridSecondaryUsage": "Passive"
},
"location": "japaneast",
"tags": {
Expand Down

0 comments on commit 45b66dd

Please sign in to comment.