Skip to content

Commit

Permalink
Add private endpoint support (#6102)
Browse files Browse the repository at this point in the history
* Add private endpoint support

* Fix validation issue

* Fix typo

* Add 202 back

* Fix prettier
  • Loading branch information
MSGaryWang authored Feb 9, 2022
1 parent e3e87e0 commit c6493c8
Show file tree
Hide file tree
Showing 8 changed files with 788 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"properties": {
"provisioningState": "Accepted",
"publicNetworkAccess": "Enabled",
"zoneRedundancy": "Enabled"
},
"identity": {
Expand All @@ -32,6 +33,7 @@
},
"properties": {
"provisioningState": "Succeeded",
"publicNetworkAccess": "Enabled",
"grafanaVersion": "7.1",
"endpoint": "my.azgrafana.io",
"zoneRedundancy": "Enabled"
Expand Down Expand Up @@ -63,6 +65,7 @@
},
"properties": {
"provisioningState": "Accepted",
"publicNetworkAccess": "Enabled",
"grafanaVersion": "7.1",
"endpoint": "my.azgrafana.io",
"zoneRedundancy": "Enabled"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"workspaceName": "myWorkspace",
"privateEndpointConnectionName": "myConnection",
"privateEndpointConnection": {
"properties": {
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "test"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateEndpointConnections/myConnection",
"name": "myConnection",
"type": "Microsoft.Dashboard/grafana/privateEndpointConnections",
"properties": {
"provisioningState": "Accepted",
"privateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Network/privateEndpoint/myEndpoint"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "test",
"actionsRequired": "None"
},
"groupIds": [
"workspace"
]
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateEndpointConnections/myConnection",
"name": "myConnection",
"type": "Microsoft.Dashboard/grafana/privateEndpointConnections",
"properties": {
"provisioningState": "Accepted",
"privateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Network/privateEndpoint/myEndpoint"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "test",
"actionsRequired": "None"
},
"groupIds": [
"workspace"
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"workspaceName": "myWorkspace",
"privateEndpointConnectionName": "myConnection"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"workspaceName": "myWorkspace",
"privateEndpointConnectionName": "myConnection"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateEndpointConnections/myConnection",
"name": "myConnection",
"type": "Microsoft.Dashboard/grafana/privateEndpointConnections",
"properties": {
"provisioningState": "Accepted",
"privateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Network/privateEndpoint/myEndpoint"
},
"privateLinkServiceConnectionState": {
"status": "Pending",
"description": "string",
"actionsRequired": "None"
},
"groupIds": [
"workspace"
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"workspaceName": "myWorkspace"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateEndpointConnections/myConnection",
"name": "myConnection",
"type": "Microsoft.Dashboard/grafana/privateEndpointConnections",
"properties": {
"provisioningState": "Accepted",
"privateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Network/privateEndpoint/myEndpoint"
},
"privateLinkServiceConnectionState": {
"status": "Pending",
"description": "string",
"actionsRequired": "None"
},
"groupIds": [
"workspace"
]
}
}
],
"nextLink": null
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"workspaceName": "myWorkspace",
"groupName": "workspace"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateLinkResources/workspace",
"name": "workspace",
"type": "Microsoft.Dashboard/grafana/PrivateLinkResources",
"properties": {
"groupId": "workspace",
"requiredMembers": [
"workspace"
],
"requiredZoneNames": [
"azgrafana.io"
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"workspaceName": "myWorkspace"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateLinkResources/workspace",
"name": "workspace",
"type": "Microsoft.Dashboard/grafana/PrivateLinkResources",
"properties": {
"groupId": "workspace",
"requiredMembers": [
"workspace"
],
"requiredZoneNames": [
"azgrafana.io"
]
}
}
],
"nextLink": null
}
}
}
}
Loading

0 comments on commit c6493c8

Please sign in to comment.