mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
29 lines
1019 B
JavaScript
29 lines
1019 B
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 restore operation status of the specified Cloud HSM Cluster
|
|
*
|
|
* @summary gets the restore operation status of the specified Cloud HSM Cluster
|
|
* x-ms-original-file: 2025-03-31/CloudHsmCluster_Restore_Pending_MaximumSet_Gen.json
|
|
*/
|
|
async function cloudHsmClusterGetRestoreStatusMaximumSetGen() {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
const client = new AzureDedicatedHSMResourceProvider(credential, subscriptionId);
|
|
await client.cloudHsmClusterRestoreStatus.get(
|
|
"rgcloudhsm",
|
|
"chsm1",
|
|
"572a45927fc240e1ac075de27371680b",
|
|
);
|
|
}
|
|
|
|
async function main() {
|
|
await cloudHsmClusterGetRestoreStatusMaximumSetGen();
|
|
}
|
|
|
|
main().catch(console.error);
|