mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
30 lines
1.0 KiB
JavaScript
30 lines
1.0 KiB
JavaScript
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
const { AzureDedicatedHSMResourceProvider } = require("@azure/arm-hardwaresecuritymodules");
|
|
const { DefaultAzureCredential } = require("@azure/identity");
|
|
|
|
/**
|
|
* This sample demonstrates how to gets the private endpoint connection for the Cloud Hsm Cluster.
|
|
*
|
|
* @summary gets the private endpoint connection for the Cloud Hsm Cluster.
|
|
* x-ms-original-file: 2025-03-31/CloudHsmClusterPrivateEndpointConnection_Get_MaximumSet_Gen.json
|
|
*/
|
|
async function cloudHsmClusterPrivateEndpointConnectionGetMaximumSetGen() {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
const client = new AzureDedicatedHSMResourceProvider(credential, subscriptionId);
|
|
const result = await client.cloudHsmClusterPrivateEndpointConnections.get(
|
|
"rgcloudhsm",
|
|
"chsm1",
|
|
"sample-pec",
|
|
);
|
|
console.log(result);
|
|
}
|
|
|
|
async function main() {
|
|
await cloudHsmClusterPrivateEndpointConnectionGetMaximumSetGen();
|
|
}
|
|
|
|
main().catch(console.error);
|