Managing Resources¶
The resources in EnOS Application Portal contain the following aspects:
The resources synchronized from the native application EnOS Device Access.
The resources registered from customized applications.
This article introduces how OU administrators manage resources in the EnOS Application Portal Admin Console.
Prerequisites¶
Before you start, make sure the following items:
The resources have been connected to EnOS Application Portal. For more information on the connection to EnOS, see Device and Data Connectivity.
The assets have the corresponding tags or are associated to the models with the corresponding tags. For more information on the tags and models, see Registering Devices or Creating a Model.
Creating Resource Types¶
A resource type is a collection of assets with the same properties, such as business meaning or practical application, to classify resources. OU administrators can create resource types by the Create Resource Type API provided by Application Portal.
Registering or Synchronizing Resources¶
OU administrators can register or synchronize resources to EnOS Application Portal by the following ways:
Synchronize the related assets through EnOS Device Access to EnOS Application Portal.
Register resources through the Open API.
Synchronizing Assets ¶
Select Synchronize Assets from the left navigation pane in the EnOS Application Portal Admin Console.
Select the Synchronize Assets button to synchronize the assets with the specified tags from the Developer Portal. Currently, the tags of different asset types in Application Portal are shown as below.
Tag
Asset Type
auth_unit:true
Physical Asset
logic_unit:true
Business Asset
Registering Resources¶
OU administrators can register resources through the Register Resource Open API provided by EnOS Application Portal.
Viewing Resource Details¶
OU administrators can view the details of synchronized or registered resources of the current OU in the EnOS Application Portal.
Viewing Synchronized Assets¶
Select Synchronize Assets from the left navigation pane in the EnOS Application Portal Admin Console.
View the details of the synchronized assets in the asset list on the page.
You can hover over the
icon of an asset to view the asset ID. You can perform multiple tasks with asset IDs, such as specifying an asset when calling Application Portal APIs.
Viewing Registered Resources¶
Select Resource List from the left navigation pane in the EnOS Application Portal Admin Console.
View the details of the registered resources in the resource list on the page.
You can hover over the
icon of a resource to view the resource ID. You can perform multiple tasks with resource IDs, such as specifying a resource when calling Application Portal APIs.
Assigning Resource Permissions¶
To access application resources, users must meet both the organizational structure and resource assignment conditions. Follow these steps:
Access Organization Structure Tree:
Assign an organization structure to the application. See Assign Organization Structure.
Assign visible organization structures to roles and assign those roles to users. See Assign Visible Organization Structures.
The visible organization structure tree for users is the intersection of the organization structure assigned to the application and the visible organization structures assigned to the role. If no resources are assigned to the user or their user group, they will only see the framework of the organization structure tree and cannot access any resource permissions.
Access Resource Permissions:
Directly assign resource permissions to users or their user groups. See Assign Resource Permissions by User or User Group.
Assign resource permissions to the organization structure and assign that organization structure to the user (completed in step 1). See Assigning Resources to Nodes.
The final accessible resource permissions for users are the union of the resource permissions directly assigned to the user/user group and the resource permissions inherited through the organization structure. Note that users can only access the resource permissions under their visible organization structure tree (step 1).
Assigning Resource Permissions by User or User Group¶
Assign resource permissions to users or user groups by the following steps:
Select Resource Permission from the left navigation pane in the EnOS Application Portal Admin Console.
Select the target user or user group, and select Add Resource on the right.
In the Available Resource section, select one or more resources.
Select Submit.
You can remove an assigned resource permission by the following ways:
Select Remove
in the assigned resource list of the target users or user groups.
Select Batch Remove in the Add Resource pop-up window, select the target resources then select Remove.
Assigning Resource Permissions by Resource¶
Note
You can only assign the permissions of resources registered through the Application Portal API.
Assign the permission of a specified resource to users or user groups by the following steps:
Select Resource List from the left navigation pane in the EnOS Application Portal Admin Console.
Select Authorize to User
or Authorize to User Group
of the target resource.
In the Authorize to User or Authorize to User Group pop-up window, select Add User or Add User Group.
Select the users or user groups to assign the resource permission to in the pop-up window.
Select Submit.
You can remove an assigned resource permission by the following ways:
Select Remove
in the assigned user or user group list.
Select Batch Remove in the Authorize to User or Authorize to User Group pop-up window, select the target users or user groups then select Remove.