Skip to content

Commit 2f87cc0

Browse files
[EventHub]: Adding status code 202 to Private endpoints PUT (#19118)
* adding status code 202 to Private endpoints PUT * Adding example
1 parent 08a7406 commit 2f87cc0

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/PrivateEndPointConnectionCreate.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,23 @@
5252
}
5353
}
5454
}
55+
},
56+
"202": {
57+
"body": {
58+
"id": "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-4794/providers/Microsoft.EventHub/namespaces/sdk-Namespace-5828/privateEndpointConnections/928c44d5-b7c6-423b-b6fa-811e0c27b3e0",
59+
"name": "928c44d5-b7c6-423b-b6fa-811e0c27b3e0",
60+
"type": "Microsoft.EventHub/Namespaces/PrivateEndpointConnections",
61+
"properties": {
62+
"provisioningState": "Succeeded",
63+
"privateEndpoint": {
64+
"id": "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-4794/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-5828"
65+
},
66+
"privateLinkServiceConnectionState": {
67+
"status": "Approved",
68+
"description": "Auto-Approved"
69+
}
70+
}
71+
}
5572
}
5673
}
5774
}

specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/namespaces-preview.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,12 @@
423423
"$ref": "#/definitions/PrivateEndpointConnection"
424424
}
425425
},
426+
"202": {
427+
"description": "Request to update Status of PrivateEndPoint Connection accepted.",
428+
"schema": {
429+
"$ref": "#/definitions/PrivateEndpointConnection"
430+
}
431+
},
426432
"default": {
427433
"description": "Eventhub error response describing why the operation failed.",
428434
"schema": {

0 commit comments

Comments
 (0)