WorkSpace PowerShell cmdlets
The Atria WorkSpace service includes a REST API and a set of Atria.Tools cmdlets for common automation tasks.
This section documents the PowerShell cmdlets. For operations or fields that are not exposed by a cmdlet, use the Atria REST API Reference.
Your own Atria instance also exposes its Swagger UI at:
https://{hostname}/api/
Call Connect-AtriaApi before using these commands. Use IDs returned by the Get-* commands; WorkSpace item, list, role, customer, and user IDs are different identifiers and are not interchangeable.
Connect to the API
Connecting validates the bearer token against /api/v2/me and stores the API base URI and identity context for later cmdlets.
- Connect-AtriaApiValidates a bearer token and configures the Atria.Tools REST API session.
- Disconnect-AtriaApiClears the bearer token and identity context stored by Atria.Tools.
- Get-AtriaApiContextRetrieves the current Atria.Tools API connection context.
Work with item types
Item types are retrieved through the API. Creating or changing an item type is not exposed by these cmdlets. Do not edit the Atria database directly; contact Atria Support or Consulting when a deployment requires a new item type.
- Get-AtriaWorkSpaceItemTypeRetrieves the WorkSpace Item Types.
Shared items
- Add-AtriaWorkSpaceItemCustomerRelationshipMakes a WorkSpace item available to a customer.
- Get-AtriaWorkSpaceItemRetrieves one or more workspace shared items.
- Get-AtriaWorkSpaceItemCustomerRelationshipRetrieves a list of customers related to a specific item.
- Get-AtriaWorkSpaceItemRoleRelationshipRetrieves the list of roles that are linked to a specific workspace item.
- Get-AtriaWorkSpaceItemUserRelationshipRetrieves the list of users associated with a specific workspace item.
- New-AtriaWorkSpaceItemCreates a new Shared (Public) WorkSpace Item.
- Remove-AtriaWorkSpaceItemCustomerRelationshipRemoves the relationship between a workspace item and a customer.
Customer-owned items
- Add-AtriaWorkSpaceCustomerItemAssigns a workspace item from a list to a customer in the Atria workspace service
- Get-AtriaWorkSpaceCustomerItemRetrieves workspace items assigned to a specific customer.
- Get-AtriaWorkSpaceItemRoleRelationshipRetrieves the list of roles that are linked to a specific workspace item.
- Get-AtriaWorkSpaceItemUserRelationshipRetrieves the list of users associated with a specific workspace item.
- Import-AtriaWorkSpaceCustomerItemImports existing directory-backed WorkSpace items for a customer.
- New-AtriaWorkSpaceCustomerItemCreates a customer-owned WorkSpace item.
- Remove-AtriaWorkSpaceCustomerItemRemoves a workspace item assigned to a specific customer.
- Update-AtriaWorkSpaceCustomerItemUpdates metadata or membership for a customer's WorkSpace item.
Lists and scopes
- Add-AtriaWorkSpaceListItemAdds a shared workspace item to a specific workspace list
- Add-AtriaWorkSpaceListScopeAssigns a scope for a workspace list to a customer
- Get-AtriaWorkSpaceItemListRelationshipRetrieves a list of WorkSpace Lists an item is allocated to.
- Get-AtriaWorkSpaceListRetrieves one or more WorkSpace Lists.
- Get-AtriaWorkSpaceListItemRetrieves items from a specified workspace list.
- Get-AtriaWorkSpaceListScopeRetrieves scopes associated with a specific workspace list
- Remove-AtriaWorkSpaceListItemRemoves a shared workspace item from a specific workspace list
Icons
- Get-AtriaWorkSpaceIconRetrieves an icon associated with a workspace item.
Roles and assignments
- Add-AtriaWorkSpaceCustomerRoleItemAdds one or more workspace list items to a specific customer role
- Get-AtriaWorkSpaceCustomerRoleRetrieves one or more roles associated with a customer.
- Get-AtriaWorkSpaceCustomerRoleItemRetrieves workspace items associated with a specific customer role.
- Get-AtriaWorkSpaceItemRoleRelationshipRetrieves the list of roles that are linked to a specific workspace item.
- Get-AtriaWorkSpaceUserRoleRetrieves roles assigned to a specific user.
- New-AtriaWorkSpaceCustomerRoleCreates a new role for a specific customer.
- Remove-AtriaWorkSpaceCustomerRoleItemRemoves one or more workspace list items from a specific customer role.