Skip to content

Commit

Permalink
[CosmosDB] Add PrivateEndpointConnections to DatabaseAccountGetResult (
Browse files Browse the repository at this point in the history
…#9119)

* Add PrivateEndpointConnections to DatabaseAccountGetResult

* fix per comment

* fix per comments

* fix prettier
  • Loading branch information
soeom authored Apr 23, 2020
1 parent d09f67b commit 2ca5d90
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5156,6 +5156,14 @@
"$ref": "#/definitions/VirtualNetworkRule"
}
},
"privateEndpointConnections": {
"type": "array",
"readOnly": true,
"description": "List of Private Endpoint Connections configured for the Cosmos DB account.",
"items": {
"$ref": "#/definitions/PrivateEndpointConnection"
}
},
"enableMultipleWriteLocations": {
"description": "Enables the account to write in multiple locations",
"type": "boolean"
Expand Down Expand Up @@ -6716,6 +6724,61 @@
}
}
},
"PrivateEndpointConnection": {
"description": "A private endpoint connection",
"type": "object",
"properties": {
"properties": {
"$ref": "#/definitions/PrivateEndpointConnectionProperties",
"description": "Resource properties.",
"x-ms-client-flatten": true
}
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
}
]
},
"PrivateEndpointConnectionProperties": {
"description": "Properties of a private endpoint connection.",
"type": "object",
"properties": {
"privateEndpoint": {
"$ref": "#/definitions/PrivateEndpointProperty",
"description": "Private endpoint which the connection belongs to."
},
"privateLinkServiceConnectionState": {
"$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty",
"description": "Connection State of the Private Endpoint Connection."
}
}
},
"PrivateEndpointProperty": {
"type": "object",
"description": "Private endpoint which the connection belongs to.",
"properties": {
"id": {
"type": "string",
"description": "Resource id of the private endpoint."
}
}
},
"PrivateLinkServiceConnectionStateProperty": {
"type": "object",
"description": "Connection State of the Private Endpoint Connection.",
"properties": {
"status": {
"type": "string",
"description": "The private link service connection status."
},
"actionsRequired": {
"type": "string",
"description": "Any action that is required beyond basic workflow (approve/ reject/ disconnect)",
"readOnly": true
}
}
},
"Operation": {
"description": "REST API operation",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,20 @@
"locationName": "East US",
"failoverPriority": 0
}
],
"privateEndpointConnections": [
{
"id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/account1/privateEndpointConnections/pe1",
"properties": {
"privateEndpoint": {
"id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/pe1"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"actionsRequired": "None"
}
}
}
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,20 @@
"locationName": "East US",
"failoverPriority": 0
}
],
"privateEndpointConnections": [
{
"id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/account1/privateEndpointConnections/pe1",
"properties": {
"privateEndpoint": {
"id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/pe1"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"actionsRequired": "None"
}
}
}
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,20 @@
"id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1",
"ignoreMissingVNetServiceEndpoint": false
}
],
"privateEndpointConnections": [
{
"id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/account1/privateEndpointConnections/pe1",
"properties": {
"privateEndpoint": {
"id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/pe1"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"actionsRequired": "None"
}
}
}
]
}
}
Expand Down

0 comments on commit 2ca5d90

Please sign in to comment.