Skip to content

Commit b38632b

Browse files
ankur741999msyycAlancerekazrael2119JackTn
authored
RecoveryServices Swagger PR for api-Version: 2024-04-01 (Azure#28597)
* Adds base for updating Microsoft.RecoveryServices from version stable/2024-02-01 to version 2024-04-01 * Updates readme * Updates API version in new specs and examples * Added MUA changes * Added optional headers for critical operations * Create sdk-suppressions.yaml * Added Description and fixed the params ordering * Fixed typo * azure-sdk-for-go suppression * Update sdk-suppressions.yaml * edit suppression file * added example reference --------- Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com> Co-authored-by: Alancere <804873052@qq.com> Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Co-authored-by: v-tianxi <v-tianxi@microsoft.com> Co-authored-by: Himanshu Agarwal <hiaga@microsoft.com>
1 parent b1d85e5 commit b38632b

38 files changed

Lines changed: 5365 additions & 2 deletions

npx

Whitespace-only changes.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "77777777-b0c6-47a2-b37c-d8e65a629c18",
4+
"api-version": "2024-04-01",
5+
"location": "westus",
6+
"input": {
7+
"type": "Microsoft.RecoveryServices/Vaults",
8+
"properties": {
9+
"dnsZones": [
10+
{
11+
"subResource": "AzureBackup"
12+
},
13+
{
14+
"subResource": "AzureSiteRecovery"
15+
}
16+
]
17+
}
18+
}
19+
},
20+
"responses": {
21+
"200": {
22+
"body": {
23+
"type": "Microsoft.RecoveryServices/Vaults",
24+
"properties": {
25+
"dnsZones": [
26+
{
27+
"subResource": "AzureBackup",
28+
"requiredZoneNames": [
29+
"privatelink.wus.backup.windowsazure.com",
30+
"privatelink.queue.core.windows.net",
31+
"privatelink.blob.core.windows.net"
32+
]
33+
},
34+
{
35+
"subResource": "AzureSiteRecovery",
36+
"requiredZoneNames": [
37+
"privatelink.siterecovery.windowsazure.com"
38+
]
39+
}
40+
]
41+
}
42+
}
43+
}
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "77777777-b0c6-47a2-b37c-d8e65a629c18",
4+
"resourceGroupName": "resGroupFoo",
5+
"api-version": "2024-04-01",
6+
"location": "westus",
7+
"input": {
8+
"name": "swaggerExample",
9+
"type": "Microsoft.RecoveryServices/Vaults"
10+
}
11+
},
12+
"responses": {
13+
"200": {
14+
"body": {
15+
"nameAvailable": true
16+
}
17+
}
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "77777777-b0c6-47a2-b37c-d8e65a629c18",
4+
"resourceGroupName": "resGroupBar",
5+
"api-version": "2024-04-01",
6+
"location": "westus",
7+
"input": {
8+
"name": "swaggerExample2",
9+
"type": "Microsoft.RecoveryServices/Vaults"
10+
}
11+
},
12+
"responses": {
13+
"200": {
14+
"body": {
15+
"nameAvailable": false,
16+
"reason": "AlreadyExists",
17+
"message": "Resource already exists with the same name."
18+
}
19+
}
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "77777777-d41f-4550-9f70-7708a3a2283b",
4+
"resourceGroupName": "BCDRIbzRG",
5+
"vaultName": "BCDRIbzVault",
6+
"identityName": "dpmcontainer01",
7+
"api-version": "2024-04-01"
8+
},
9+
"responses": {
10+
"204": {}
11+
}
12+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "77777777-b0c6-47a2-b37c-d8e65a629c18",
4+
"resourceGroupName": "Default-RecoveryServices-ResourceGroup",
5+
"vaultName": "swaggerExample",
6+
"api-version": "2024-04-01"
7+
},
8+
"responses": {
9+
"202": {
10+
"headers": {
11+
"Retry-After": "10",
12+
"Azure-AsyncOperation": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/HelloWorld/providers/Microsoft.RecoveryServices/vaults/swaggerExample/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2024-04-01",
13+
"Location": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/HelloWorld/providers/Microsoft.RecoveryServices/vaults/swaggerExample/operationResults/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2024-04-01"
14+
}
15+
},
16+
"204": {}
17+
}
18+
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "77777777-b0c6-47a2-b37c-d8e65a629c18",
4+
"resourceGroupName": "Default-RecoveryServices-ResourceGroup",
5+
"vaultName": "swaggerExample",
6+
"api-version": "2024-04-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"location": "westus",
12+
"name": "swaggerExample",
13+
"etag": "W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\"",
14+
"tags": {
15+
"TestUpdatedKey": "TestUpdatedValue"
16+
},
17+
"identity": {
18+
"tenantId": "d676e86e-2206-4a7c-999c-ece52c144b5b",
19+
"principalId": "3137d6c7-5d6c-411c-b934-7a2a729ee247",
20+
"type": "SystemAssigned"
21+
},
22+
"properties": {
23+
"publicNetworkAccess": "Enabled",
24+
"monitoringSettings": {
25+
"azureMonitorAlertSettings": {
26+
"alertsForAllJobFailures": "Enabled",
27+
"alertsForAllReplicationIssues": "Enabled",
28+
"alertsForAllFailoverIssues": "Disabled"
29+
},
30+
"classicAlertSettings": {
31+
"alertsForCriticalOperations": "Disabled",
32+
"emailNotificationsForSiteRecovery": "Enabled"
33+
}
34+
},
35+
"provisioningState": "Succeeded",
36+
"privateEndpointConnections": [
37+
{
38+
"id": "/subscriptions/6c48fa17-39c7-45f1-90ac-47a587128ace/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/Vaults/pemsi-ecy-rsv2/privateEndpointConnections/pe114-pemsi-ecy-rsv.5944358949303501042.backup.75061caa-cba4-4849-8e09-608da4914aad",
39+
"properties": {
40+
"provisioningState": "Succeeded",
41+
"privateEndpoint": {
42+
"id": "/subscriptions/6c48fa17-39c7-45f1-90ac-47a587128ace/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.Network/privateEndpoints/pe114-pemsi-ecy-rsv"
43+
},
44+
"groupIds": [
45+
"AzureBackup"
46+
],
47+
"privateLinkServiceConnectionState": {
48+
"status": "Approved",
49+
"description": "None",
50+
"actionsRequired": "None"
51+
}
52+
}
53+
}
54+
],
55+
"privateEndpointStateForBackup": "Enabled",
56+
"privateEndpointStateForSiteRecovery": "None",
57+
"securitySettings": {
58+
"immutabilitySettings": {
59+
"state": "Disabled"
60+
},
61+
"softDeleteSettings": {
62+
"softDeleteRetentionPeriodInDays": 14,
63+
"softDeleteState": "Enabled",
64+
"enhancedSecurityState": "Enabled"
65+
},
66+
"multiUserAuthorization": "Disabled"
67+
},
68+
"redundancySettings": {
69+
"standardTierStorageRedundancy": "GeoRedundant",
70+
"crossRegionRestore": "Enabled"
71+
},
72+
"secureScore": "None",
73+
"bcdrSecurityLevel": "Poor"
74+
},
75+
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample",
76+
"type": "Microsoft.RecoveryServices/vaults",
77+
"sku": {
78+
"name": "Standard"
79+
}
80+
}
81+
}
82+
}
83+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "77777777-b0c6-47a2-b37c-d8e65a629c18",
4+
"resourceGroupName": "Default-RecoveryServices-ResourceGroup",
5+
"vaultName": "swaggerExample",
6+
"api-version": "2024-04-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"name": "vaultExtendedInfo",
12+
"etag": "f0d0260b-b92d-4458-ba0a-32c6cdabacb7",
13+
"properties": {
14+
"integrityKey": "J09wzS27fnJ+Wjot7xO5wA==",
15+
"algorithm": "None"
16+
},
17+
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample/extendedInformation/vaultExtendedInfo",
18+
"type": "Microsoft.RecoveryServices/vaults/extendedInformation"
19+
}
20+
}
21+
}
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "77777777-b0c6-47a2-b37c-d8e65a629c18",
4+
"resourceGroupName": "HelloWorld",
5+
"vaultName": "swaggerExample",
6+
"operationId": "YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==",
7+
"api-version": "2024-04-01"
8+
},
9+
"responses": {
10+
"202": {
11+
"headers": {
12+
"Retry-After": "10",
13+
"Azure-AsyncOperation": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/HelloWorld/providers/Microsoft.RecoveryServices/vaults/swaggerExample/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2015-03-15",
14+
"Location": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/HelloWorld/providers/Microsoft.RecoveryServices/vaults/swaggerExample/operationResults/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2015-03-15"
15+
}
16+
},
17+
"200": {
18+
"body": {
19+
"location": "westus",
20+
"name": "swaggerExample",
21+
"etag": "W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\"",
22+
"tags": {
23+
"PatchKey": "PatchKeyUpdated"
24+
},
25+
"identity": {
26+
"type": "UserAssigned",
27+
"userAssignedIdentities": {
28+
"/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": {
29+
"clientId": "fbe75b66-01c5-4f87-a220-233af3270436",
30+
"principalId": "075a0ca6-43f6-4434-9abf-c9b1b79f9219"
31+
}
32+
}
33+
},
34+
"properties": {
35+
"provisioningState": "Succeeded"
36+
},
37+
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/HelloWorld/providers/Microsoft.RecoveryServices/vaults/swaggerExample",
38+
"type": "Microsoft.RecoveryServices/vaults",
39+
"sku": {
40+
"name": "Standard"
41+
}
42+
}
43+
}
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "77777777-b0c6-47a2-b37c-d8e65a629c18",
4+
"resourceGroupName": "HelloWorld",
5+
"vaultName": "swaggerExample",
6+
"operationId": "YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==",
7+
"api-version": "2024-04-01"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/HelloWorld/providers/Microsoft.RecoveryServices/vaults/swaggerExample/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==",
13+
"name": "YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==",
14+
"status": "Succeeded",
15+
"startTime": "2019-11-20T09:49:44.0478496Z",
16+
"endTime": "2019-11-20T09:49:46Z"
17+
}
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)