azure-sdk-for-js/sdk/synapse/arm-synapse/samples-dev/privateEndpointConnectionsD...

36 строки
1.3 KiB
TypeScript

/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SynapseManagementClient } from "@azure/arm-synapse";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Delete a private endpoint connection.
*
* @summary Delete a private endpoint connection.
* x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeletePrivateEndpointConnection.json
*/
async function deletePrivateEndpointConnection() {
const subscriptionId = "01234567-89ab-4def-0123-456789abcdef";
const resourceGroupName = "ExampleResourceGroup";
const workspaceName = "ExampleWorkspace";
const privateEndpointConnectionName = "ExamplePrivateEndpointConnection";
const credential = new DefaultAzureCredential();
const client = new SynapseManagementClient(credential, subscriptionId);
const result = await client.privateEndpointConnections.beginDeleteAndWait(
resourceGroupName,
workspaceName,
privateEndpointConnectionName
);
console.log(result);
}
deletePrivateEndpointConnection().catch(console.error);