mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
27 lines
907 B
TypeScript
27 lines
907 B
TypeScript
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
/**
|
|
* This sample demonstrates how to gets the SAP Central Services Instance resource.
|
|
*
|
|
* @summary gets the SAP Central Services Instance resource.
|
|
* x-ms-original-file: 2024-09-01/SapCentralInstances_Get.json
|
|
*/
|
|
|
|
import { WorkloadsClient } from "@azure/arm-workloadssapvirtualinstance";
|
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
|
|
async function sapCentralServerInstancesGet(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapCentralServerInstances.get("test-rg", "X00", "centralServer");
|
|
console.log(result);
|
|
}
|
|
|
|
async function main(): Promise<void> {
|
|
await sapCentralServerInstancesGet();
|
|
}
|
|
|
|
main().catch(console.error);
|