ProvisionSample/Program.cs
/// <summary>
/// Lists the datasets that are published to a given workspace.
/// </summary>
/// <param name="workspaceCollectionName">The Power BI workspace collection name</param>
/// <param name="workspaceId">The target Power BI workspace id</param>
/// <returns></returns>
Lists the datasets that are published to a given workspace.
Lists the datasets that are published to a given workspace .
static async Task ListDatasets(string workspaceCollectionName, string workspaceId)
        {
            using (var client = await CreateClient())
            {
                ODataResponseListDataset response = await client.Datasets.GetDatasetsAsync(workspaceCollectionName, workspaceId);
                foreach (Dataset d in response.Value)
                {
                    Console.WriteLine("{0}:  {1}", d.Name, d.Id);
                }
            }
        }
static async Task ListDatasets ( string workspaceCollectionName , string workspaceId ) { using ( var client = await CreateClient ( ) ) { ODataResponseListDataset response = await client . Datasets . GetDatasetsAsync ( workspaceCollectionName , workspaceId ) ; foreach ( Dataset d in response . Value ) { Console . WriteLine ( " " , d . Name , d . Id ) ; } } }
Lists the datasets that are published to a given workspace.
Lists the datasets that are published to a given workspace .
None
workspaceCollectionName
string
The Power BI workspace collection name
The Power BI workspace collection name
workspaceId
string
The target Power BI workspace id
The target Power BI workspace id