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

Fixing linting errors for MHSM R4036 - ImplementPrivateEndpointAPIs #13822

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "sample-group",
"name": "sample-mhsm",
"api-version": "2021-04-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/managedhsms/sample-mhsm/privateEndpointConnections/sample-pec1",
"name": "sample-pec1",
"type": "Microsoft.KeyVault/managedhsms/privateEndpointConnections",
"etag": "",
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-1234-000000000000/resourceGroups/sample-group/providers/Microsoft.Network/privateEndpoints/sample-pe1"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "This was automatically approved by [email protected]",
"actionsRequired": "None"
}
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/managedhsms/sample-mhsm/privateEndpointConnections/sample-pec2",
"name": "sample-pec2",
"type": "Microsoft.KeyVault/managedhsms/privateEndpointConnections",
"etag": "",
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-1234-000000000000/resourceGroups/sample-group/providers/Microsoft.Network/privateEndpoints/sample-pe2"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "This was automatically approved by [email protected]",
"actionsRequired": "None"
}
}
}
],
"nextLink": null
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,55 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/privateEndpointConnections": {
"get": {
"tags": [
"MHSMListPrivateEndpointConnections"
],
"operationId": "MHSMPrivateEndpointConnections_ListByResource",
"description": "The List operation gets information about the private endpoint connections associated with the managed HSM Pool.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ManagedHsmResourceGroupName"
},
{
"name": "name",
"in": "path",
"required": true,
"type": "string",
"description": "Name of the managed HSM Pool"
}
],
"responses": {
"200": {
"description": "Get information about all managed HSM Pools in the specified subscription.",
"schema": {
"$ref": "#/definitions/MHSMPrivateEndpointConnectionsListResult"
}
},
"default": {
"description": "The error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ManagedHsmError"
}
}
},
"x-ms-examples": {
"List managed HSM Pools in a subscription": {
"$ref": "./examples/ManagedHsm_ListPrivateEndpointConnectionsByResource.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/deletedManagedHSMs": {
"get": {
"tags": [
Expand Down Expand Up @@ -984,6 +1033,22 @@
},
"description": "List of managed HSM Pools"
},
"MHSMPrivateEndpointConnectionsListResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/MHSMPrivateEndpointConnection"
},
"description": "The private endpoint connection associated with a managed HSM Pools."
},
"nextLink": {
"type": "string",
"description": "The URL to get the next set of managed HSM Pools."
}
},
"description": "List of private endpoint connections associated with a managed HSM Pools"
},
"ManagedHsmError": {
"properties": {
"error": {
Expand Down