Skip to content

Commit 9bc5a13

Browse files
[Servicebus] Adding schema for status code 201 for Disaster-recovery and Migration (#23466)
* Updates * UPdates * Updates
1 parent 859a9bf commit 9bc5a13

File tree

8 files changed

+68
-8
lines changed

8 files changed

+68
-8
lines changed

specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/DisasterRecoveryConfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@
125125
}
126126
},
127127
"201": {
128-
"description": "Alias(Disaster Recovery configuration) creation request received"
128+
"description": "Alias(Disaster Recovery configuration) creation request received",
129+
"schema": {
130+
"$ref": "#/definitions/ArmDisasterRecovery"
131+
}
129132
},
130133
"default": {
131134
"description": "ServiceBus error response describing why the operation failed.",

specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Migrationconfigurations/SBMigrationconfigurationCreateAndStartMigration.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@
2626
}
2727
}
2828
},
29-
"201": {}
29+
"201": {
30+
"body": {
31+
"id": "/subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-41/migrationConfigs/$default",
32+
"name": "sdk-Namespace-41",
33+
"type": "Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs",
34+
"properties": {
35+
"provisioningState": "Accepted",
36+
"targetNamespace": "/subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-4028",
37+
"postMigrationName": "sdk-PostMigration-5919",
38+
"migrationState": "Initiating"
39+
}
40+
}
41+
}
3042
}
3143
}

specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/SBAliasCreate.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@
2626
}
2727
}
2828
},
29-
"201": {}
29+
"201": {
30+
"body": {
31+
"id": "/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ardsouzatestRG/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-8860/disasterRecoveryConfig/sdk-Namespace-8860",
32+
"name": "sdk-Namespace-8860",
33+
"type": "Microsoft.ServiceBus/Namespaces/DisasterRecoveryConfig",
34+
"properties": {
35+
"provisioningState": "Accepted",
36+
"partnerNamespace": "sdk-Namespace-37",
37+
"alternateName": "alternameforAlias-Namespace-8860",
38+
"role": "Primary"
39+
}
40+
}
41+
}
3042
}
3143
}

specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/migrationconfigs.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@
125125
}
126126
},
127127
"201": {
128-
"description": "Migration Config creation request received"
128+
"description": "Migration Config creation request received",
129+
"schema": {
130+
"$ref": "#/definitions/MigrationConfigProperties"
131+
}
129132
},
130133
"default": {
131134
"description": "ServiceBus error response describing why the operation failed.",

specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/DisasterRecoveryConfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@
125125
}
126126
},
127127
"201": {
128-
"description": "Alias(Disaster Recovery configuration) creation request received"
128+
"description": "Alias(Disaster Recovery configuration) creation request received",
129+
"schema": {
130+
"$ref": "#/definitions/ArmDisasterRecovery"
131+
}
129132
},
130133
"default": {
131134
"description": "ServiceBus error response describing why the operation failed.",

specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Migrationconfigurations/SBMigrationconfigurationCreateAndStartMigration.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@
2626
}
2727
}
2828
},
29-
"201": {}
29+
"201": {
30+
"body": {
31+
"id": "/subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-41/migrationConfigs/$default",
32+
"name": "sdk-Namespace-41",
33+
"type": "Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs",
34+
"properties": {
35+
"provisioningState": "Accepted",
36+
"targetNamespace": "/subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-4028",
37+
"postMigrationName": "sdk-PostMigration-5919",
38+
"migrationState": "Initiating"
39+
}
40+
}
41+
}
3042
}
3143
}

specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/disasterRecoveryConfigs/SBAliasCreate.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@
2626
}
2727
}
2828
},
29-
"201": {}
29+
"201": {
30+
"body": {
31+
"id": "/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ardsouzatestRG/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-8860/disasterRecoveryConfig/sdk-Namespace-8860",
32+
"name": "sdk-Namespace-8860",
33+
"type": "Microsoft.ServiceBus/Namespaces/DisasterRecoveryConfig",
34+
"properties": {
35+
"provisioningState": "Accepted",
36+
"partnerNamespace": "sdk-Namespace-37",
37+
"alternateName": "alternameforAlias-Namespace-8860",
38+
"role": "Primary"
39+
}
40+
}
41+
}
3042
}
3143
}

specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/migrationconfigs.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@
125125
}
126126
},
127127
"201": {
128-
"description": "Migration Config creation request received"
128+
"description": "Migration Config creation request received",
129+
"schema": {
130+
"$ref": "#/definitions/MigrationConfigProperties"
131+
}
129132
},
130133
"default": {
131134
"description": "ServiceBus error response describing why the operation failed.",

0 commit comments

Comments
 (0)