Microsoft.Fabric.Api
1.0.0-beta
Prefix Reserved
See the version list below for details.
dotnet add package Microsoft.Fabric.Api --version 1.0.0-beta
NuGet\Install-Package Microsoft.Fabric.Api -Version 1.0.0-beta
<PackageReference Include="Microsoft.Fabric.Api" Version="1.0.0-beta" />
paket add Microsoft.Fabric.Api --version 1.0.0-beta
#r "nuget: Microsoft.Fabric.Api, 1.0.0-beta"
// Install Microsoft.Fabric.Api as a Cake Addin #addin nuget:?package=Microsoft.Fabric.Api&version=1.0.0-beta&prerelease // Install Microsoft.Fabric.Api as a Cake Tool #tool nuget:?package=Microsoft.Fabric.Api&version=1.0.0-beta&prerelease
Guide to Using the .NET SDK for Microsoft Fabric REST API
Description
The Microsoft Fabric API provides developers with programmatic access to manage and interact with Microsoft Fabric resources. It enables developers to automate a wide array of tasks, including data integration, data warehousing, big data analytics, deployment process automation, Fabric items provisioning, and more.
This document provides an overview of the API endpoints, authentication methods, and usage examples for the .NET SDK for Fabric REST API. The .NET SDK is a client library that simplifies communication with the Microsoft Fabric API service and handles serialization and error handling for you.
Installation via NuGet
To install the client library via NuGet:
- Search for
Microsoft.Fabric.Api
in the NuGet Library, or - Type
Install-Package Microsoft.Fabric.Api
into the Package Manager Console.
Getting Started
1. Register your application
Register your application to use Microsoft Fabric API.
2. Authenticate for the Microsoft Fabric service
The Microsoft Fabric .NET Client Library supports the use of TokenCredential classes in the Azure.Identity library.
You can read more about available Credential classes at Azure Identity client library for .NET.
The recommended library for authenticating against Microsoft Identity (Azure AD) is MSAL.
For an example of how to acquire a Microsoft Entra token for Microsoft Fabric Service, see Microsoft Fabric API - get token.
3. Create a Microsoft Fabric client object with an authentication provider
An instance of the FabricClient
class handles building requests, sending them to the Microsoft Fabric API, and processing the responses. To create a new instance of this class, you need to provide a instance of TokenCredential
or the string representation of its underlying Microsoft Entra access token.
4. Make requests to Microsoft Fabric
Once you have completed authentication and have a FabricClient
, you can begin to make calls to the service.
For example, to get a list of workspaces:
using Microsoft.Fabric.Api;
// Get the list of workspaces using the client
var workspaces = fabricClient.Core.Workspaces.ListWorkspaces().ToList();
Console.WriteLine("Number of workspaces: " + workspaces.Count);
foreach (var workspace in workspaces)
{
Console.WriteLine($"Workspace: {workspace.DisplayName}, Capacity ID: {workspace.CapacityId}");
}
Documentation and resources
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Azure.Core (>= 1.31.0)
- System.Diagnostics.DiagnosticSource (>= 8.0.0)
- System.IdentityModel.Tokens.Jwt (>= 6.34.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0-beta.13 | 168 | 11/14/2024 |
1.0.0-beta.12 | 1,832 | 10/31/2024 |
1.0.0-beta.11 | 583 | 10/23/2024 |
1.0.0-beta.10 | 1,214 | 10/17/2024 |
1.0.0-beta.9 | 291 | 10/9/2024 |
1.0.0-beta.8 | 953 | 10/3/2024 |
1.0.0-beta.7 | 4,212 | 9/19/2024 |
1.0.0-beta.6 | 714 | 9/4/2024 |
1.0.0-beta.5 | 1,808 | 8/22/2024 |
1.0.0-beta.4 | 4,084 | 8/8/2024 |
1.0.0-beta.3 | 38 | 8/1/2024 |
1.0.0-beta.2 | 85 | 7/25/2024 |
1.0.0-beta.1 | 56 | 7/17/2024 |
1.0.0-beta | 3,108 | 6/25/2024 |