Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eventhub: Added PrivateEndpointConnection API #10635

Merged
merged 13 commits into from
Sep 10, 2020
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@
"x-ms-parameter-location": "method",
"description": "The Namespace name"
},
"PrivateEndpointConnectionNameParameter": {
"name": "privateEndpointConnectionName",
"in": "path",
"required": true,
"type": "string",
"x-ms-parameter-location": "method",
"description": "The PrivateEndpointConnection name"
},
"EventHubNameParameter": {
"name": "eventHubName",
"in": "path",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"parameters": {
"namespaceName": "sdk-Namespace-2924",
"resourceGroupName": "ArunMonocle",
"api-version": "2018-01-01-preview",
"subscriptionId": "subID",
"privateEndpointConnectionName": "privateEndpointConnectionName",
"parameters": {
"location": "South Central US",
"properties": {
"privateEndpoint": {
"id": "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-8396/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-2847"
},
"privateLinkServiceConnectionState": {
"status": "Rejected",
"description": "testing"
},
"provisioningState": "Succeeded"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-4794/providers/Microsoft.EventHub/namespaces/sdk-Namespace-5828/privateEndpointConnections/928c44d5-b7c6-423b-b6fa-811e0c27b3e0",
"name": "928c44d5-b7c6-423b-b6fa-811e0c27b3e0",
"type": "Microsoft.EventHub/Namespaces/PrivateEndpointConnections",
"location": "South Central US",
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-4794/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-5828"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "Auto-Approved"
}
}
}
},
"201": {
"body": {
"id": "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-4794/providers/Microsoft.EventHub/namespaces/sdk-Namespace-5828/privateEndpointConnections/928c44d5-b7c6-423b-b6fa-811e0c27b3e0",
"name": "928c44d5-b7c6-423b-b6fa-811e0c27b3e0",
"type": "Microsoft.EventHub/Namespaces/PrivateEndpointConnections",
"location": "South Central US",
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-4794/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-5828"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "Auto-Approved"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"namespaceName": "sdk-Namespace-3285",
"resourceGroupName": "ArunMonocle",
"privateEndpointConnectionName": "928c44d5-b7c6-423b-b6fa-811e0c27b3e0",
"api-version": "2018-01-01-preview",
"subscriptionId": "5f750a97-50d9-4e36-8081-c9ee4c0210d4"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parameters": {
"namespaceName": "sdk-Namespace-5828",
"resourceGroupName": "SDK-EventHub-4794",
"privateEndpointConnectionName": "privateEndpointConnectionName",
"api-version": "2018-01-01-preview",
"subscriptionId": "subID"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-4794/providers/Microsoft.EventHub/namespaces/sdk-Namespace-5828/privateEndpointConnections/privateEndpointConnectionName",
"name": "privateEndpointConnectionName",
"type": "Microsoft.EventHub/Namespaces/PrivateEndpointConnections",
"location": "South Central US",
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-4794/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-5828"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "Auto-Approved"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"namespaceName": "sdk-Namespace-2924",
"resourceGroupName": "ArunMonocle",
"api-version": "2018-01-01-preview",
"subscriptionId": "subID"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "subscriptions/subID/resourceGroups/SDK-EventHub-4794/providers/Microsoft.EventHub/namespaces/sdk-Namespace-5828/privateLinkResources/namespace",
"name": "namespace",
"type": "Microsoft.EventHub/namespaces/privateLinkResources",
"properties": {
"groupId": "namespace",
"requiredMembers": [
"namespace"
],
"requiredZoneNames": [
"privatelink.EventHub.windows.net"
]
}
}
]
}
}
}
}
Loading