azure-sdk-for-js/sdk/synapse/synapse-access-control-rest
Jeremy Meng a28e8f0795 [EngSys] move to vendored version of cross-env via dev-tool
***NO_CI***

- apply the transformation

- update samples' README
2024-11-02 00:48:06 +00:00
..
review release-for-synapse-access-control-rlc (#23250) 2022-09-27 09:51:05 +08:00
samples/v1-beta [EngSys] move to vendored version of cross-env via dev-tool 2024-11-02 00:48:06 +00:00
samples-dev [EngSys] standardize OSS copyright header 2024-08-27 13:01:38 -07:00
src [EngSys] standardize OSS copyright header 2024-08-27 13:01:38 -07:00
swagger release-for-synapse-access-control-rlc (#23250) 2022-09-27 09:51:05 +08:00
test/public [EngSys] standardize OSS copyright header 2024-08-27 13:01:38 -07:00
CHANGELOG.md
README.md [engsys] fix broken nodejs lts schedule link 2022-09-19 16:37:05 -04:00
api-extractor.json
assets.json push recordings (#28635) 2024-02-26 10:12:00 +08:00
karma.conf.js [engsys] remove karma ie and edge launcher 2023-03-06 17:08:15 -05:00
package.json [EngSys] move to vendored version of cross-env via dev-tool 2024-11-02 00:48:06 +00:00
sample.env
tsconfig.json [EngSys] remove tsconfig.package.json 2024-07-16 13:27:25 +00:00

README.md

Azure Synapse Access Control REST client library for JavaScript

This package contains an isomorphic REST Client SDK for Azure Synapse Access Control.

Please rely heavily on the service's documentation and our REST client docs to use this library

Getting started

Install the package

npm install @azure-rest/synapse-access-control

Currently supported environments

See our support policy for more details.

Key concepts

Examples

import AccessControl, { paginate } from "@azure-rest/synapse-access-control";
import { DefaultAzureCredential } from "@azure/identity";

export async function main(): Promise<void> {
  const client = AccessControl("<endpoint>", new DefaultAzureCredential());
  const initialResponse = await client.path("/roleAssignments").get();

  if (initialResponse.status !== "200") {
    throw initialResponse.body.error;
  }

  const assignments = paginate(client, initialResponse);

  for await (const assignment of assignments) {
    console.log(assignment.id);
  }
}

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