azure-sdk-for-js/sdk/synapse/synapse-access-control
Jeremy Meng 83e13d88f9 [engsys] upgrade `eslint` dev dependency version to ^8.0.0 for rest packages
***NO_CI***
2022-05-20 13:21:30 -07:00
..
recordings
review
src [EngSys] prepare for upgrading TypeScript to v4.6 2022-04-19 12:11:57 -07:00
swagger
test/public Fix Synapse CI (#20593) 2022-03-01 12:49:43 -08:00
CHANGELOG.md
README.md Fix Synapse AccessControl Readme Issue (#18143) 2021-10-15 11:15:13 -07:00
api-extractor.json
karma.conf.js
package.json [engsys] upgrade `eslint` dev dependency version to ^8.0.0 for rest packages 2022-05-20 13:21:30 -07:00
tsconfig.json

README.md

Azure Synapse Access Control client library for JavaScript

This package contains an isomorphic SDK for Access Control.

Getting started

Install the package

npm install @azure/synapse-access-control

Currently supported environments

See our support policy for more details.

Key concepts

Examples

import { AccessControlClient } from "@azure/synapse-access-control";
import { DefaultAzureCredential } from "@azure/identity";

export async function main(): Promise<void> {
  const credential = new DefaultAzureCredential();

  let client = new AccessControlClient(
    credential,
    "https://mysynapse.dev.azuresynapse.net"
  );
  let list = await client.roleDefinitions.listRoleDefinitions();
  for await (let item of list) {
    console.log("item:", item);
  }
}

Impressions

Troubleshooting

Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the AZURE_LOG_LEVEL environment variable to info. Alternatively, logging can be enabled at runtime by calling setLogLevel in the @azure/logger:

import { setLogLevel } from "@azure/logger";

setLogLevel("info");

Next steps

In the future, you'll find additional code samples here.

Contributing

If you'd like to contribute to this library, please read the contributing guide to learn more about how to build and test the code.

Impressions