Skip to content

Commit 4903fe5

Browse files
Fixing linting errors for MHSM R4036 - ImplementPrivateEndpointAPIs (#13822)
* Fixing linting errors for MHSM R4036 - ImplementPrivateEndpointAPIs (cherry picked from commit c1c5aeb) * prettier fix
1 parent 8688527 commit 4903fe5

File tree

2 files changed

+116
-0
lines changed

2 files changed

+116
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "sample-group",
5+
"name": "sample-mhsm",
6+
"api-version": "2021-04-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/managedhsms/sample-mhsm/privateEndpointConnections/sample-pec1",
14+
"name": "sample-pec1",
15+
"type": "Microsoft.KeyVault/managedhsms/privateEndpointConnections",
16+
"etag": "",
17+
"properties": {
18+
"provisioningState": "Succeeded",
19+
"privateEndpoint": {
20+
"id": "/subscriptions/00000000-0000-0000-1234-000000000000/resourceGroups/sample-group/providers/Microsoft.Network/privateEndpoints/sample-pe1"
21+
},
22+
"privateLinkServiceConnectionState": {
23+
"status": "Approved",
24+
"description": "This was automatically approved by [email protected]",
25+
"actionsRequired": "None"
26+
}
27+
}
28+
},
29+
{
30+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/managedhsms/sample-mhsm/privateEndpointConnections/sample-pec2",
31+
"name": "sample-pec2",
32+
"type": "Microsoft.KeyVault/managedhsms/privateEndpointConnections",
33+
"etag": "",
34+
"properties": {
35+
"provisioningState": "Succeeded",
36+
"privateEndpoint": {
37+
"id": "/subscriptions/00000000-0000-0000-1234-000000000000/resourceGroups/sample-group/providers/Microsoft.Network/privateEndpoints/sample-pe2"
38+
},
39+
"privateLinkServiceConnectionState": {
40+
"status": "Approved",
41+
"description": "This was automatically approved by [email protected]",
42+
"actionsRequired": "None"
43+
}
44+
}
45+
}
46+
],
47+
"nextLink": null
48+
}
49+
}
50+
}
51+
}

specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/managedHsm.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,55 @@
349349
}
350350
}
351351
},
352+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/privateEndpointConnections": {
353+
"get": {
354+
"tags": [
355+
"MHSMListPrivateEndpointConnections"
356+
],
357+
"operationId": "MHSMPrivateEndpointConnections_ListByResource",
358+
"description": "The List operation gets information about the private endpoint connections associated with the managed HSM Pool.",
359+
"parameters": [
360+
{
361+
"$ref": "#/parameters/ApiVersionParameter"
362+
},
363+
{
364+
"$ref": "#/parameters/SubscriptionIdParameter"
365+
},
366+
{
367+
"$ref": "#/parameters/ManagedHsmResourceGroupName"
368+
},
369+
{
370+
"name": "name",
371+
"in": "path",
372+
"required": true,
373+
"type": "string",
374+
"description": "Name of the managed HSM Pool"
375+
}
376+
],
377+
"responses": {
378+
"200": {
379+
"description": "Get information about all managed HSM Pools in the specified subscription.",
380+
"schema": {
381+
"$ref": "#/definitions/MHSMPrivateEndpointConnectionsListResult"
382+
}
383+
},
384+
"default": {
385+
"description": "The error response describing why the operation failed.",
386+
"schema": {
387+
"$ref": "#/definitions/ManagedHsmError"
388+
}
389+
}
390+
},
391+
"x-ms-examples": {
392+
"List managed HSM Pools in a subscription": {
393+
"$ref": "./examples/ManagedHsm_ListPrivateEndpointConnectionsByResource.json"
394+
}
395+
},
396+
"x-ms-pageable": {
397+
"nextLinkName": "nextLink"
398+
}
399+
}
400+
},
352401
"/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/deletedManagedHSMs": {
353402
"get": {
354403
"tags": [
@@ -984,6 +1033,22 @@
9841033
},
9851034
"description": "List of managed HSM Pools"
9861035
},
1036+
"MHSMPrivateEndpointConnectionsListResult": {
1037+
"properties": {
1038+
"value": {
1039+
"type": "array",
1040+
"items": {
1041+
"$ref": "#/definitions/MHSMPrivateEndpointConnection"
1042+
},
1043+
"description": "The private endpoint connection associated with a managed HSM Pools."
1044+
},
1045+
"nextLink": {
1046+
"type": "string",
1047+
"description": "The URL to get the next set of managed HSM Pools."
1048+
}
1049+
},
1050+
"description": "List of private endpoint connections associated with a managed HSM Pools"
1051+
},
9871052
"ManagedHsmError": {
9881053
"properties": {
9891054
"error": {

0 commit comments

Comments
 (0)