Skip to content

Conversation

@ecotte
Copy link
Contributor

@ecotte ecotte commented Nov 19, 2024

Improved the admin functions to support more than 5k workspaces and accept Name or ID in workspaces and capacities.

Functions changed:

  • list_capacities: accepts a Capacity ID or Name to filter
  • list_workspaces now uses the Fabric API to return any number of workspaces
  • list_workspaces now can be filtered with:
    • top: Get only the top N results
    • skip: Skips the top N results
    • capacity: Filters capacity ID or Name
    • workspace: Filters workspace ID or Name
    • workspace_state: If the workspace is Active or Inactive
    • workspace_type: If it´s a workspace or personal workspace
  • list_workspaces had the "filter" parameter deprecated
  • assign_workspaces_to_capacity: improved to migrate any number of workspaces
  • assign_workspaces_to_capacity: improved to accept capacity ID or Name
  • assign_workspaces_to_capacity: improved to accept in the workspace list any mix of ID or Names
  • unassign_workspaces_from_capacity: improved to accept in the Workspace list any mix of ID or Names
  • revoke_external_data_share: accepts Workspace ID or Name
  • scan_workspaces: accepts in the workspace list any mix of ID or Names
  • scan_workspaces: accepts any number of workspaces in the list. Limit of 500 request for 1 hour and 100 workspaces per request stills applies. The limit is 50k workspaces.
  • list_items: accepts workspace ID or Name
  • list_items: accepts capacity ID or Name
  • list_item_access_details: accepts item ID or Name
  • list_item_access_details: accepts workspace ID or Name
  • list_activity_events: added an option to return the original json, knowing the schema for event is not fix and too diverse, it helps for extraction
  • _resolve_capacity_name_and_id: created to get a capacity ID and Name from the Capacity ID or Name
  • _resolve_workspace_name_and_id: accepts ID or Name
  • _resolve_item_id: accepts workspace ID or Name

@m-kovalsky m-kovalsky merged commit 5df1b54 into microsoft:main Nov 26, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants