REST Api - Importer

Modified on Tue, 3 Feb at 11:08 AM

TABLE OF CONTENTS


REST API Importer: Unique Features

This article describes features specific to the REST API Importer in ManagementStudio. For information about features common to all importers, refer to the appropriate documentation.


Overview

The REST API Importer allows ManagementStudio to connect to third-party data sources that provide a standard REST API, but do not have an official ManagementStudio connector.


Cross-Project Connections to ManagementStudio

The REST API Importer can be used to connect to the same ManagementStudio instance or to external instances. When cross-project sharing is enabled, this functionality supports copying data between a Primary Project and its Sub-Projects for data that is not shared by default.

When configuring the REST API Importer to connect to ManagementStudio, consult the Endpoint Reports (for PowerBI) article for guidance on constructing REST queries.

Tip: When connecting to the same instance but targeting a different project or module, use the value [importer-auth-token] for the Auth-Token header.

Enable Endpoint for Datamining Reports

To access Datamining Reports via an endpoint, you must enable this setting in the source project.


Common Settings

  • Rest Api Endpoint Url
    Format:

    https://<ServerAddress>/<ProjectId>/p/report/Datamining/0/<PrefixedName>/json
    
    • <ServerAddress>: Your ManagementStudio server address
    • <ProjectId>: ID of the Primary Project
    • <PrefixedName>: The prefixed name of the Datamining Report
  • Import Multiple Matched Rows

    • Enable this option to allow importing multiple rows after the first match is found.
    • Required for importing lists such as Blueprints and Dependencies.

Examples

Example: Sync Custom Fields from Primary Project to Sub-Project



Headers

HeaderValueNote
Auth-Token[importer-auth-token]Auto-generated token to connect to ManagementStudio
Datamining-Tier1-ModuleApplicationsRetrieves the list of applications
Datamining-Tier1-FieldsAppIdAdds the AppId field
Datamining-Tier1-CustomFieldIds1000, 1001, 1002Comma-separated list of custom field IDs
DataSource-AllTrueIncludes all applications

Field Mapping

MCHSrc. FieldMS FieldNotes
YesAppIdAppIdUses the AppId from the Primary Project to match in the Sub-Project
CustomField_1000APPDSC\MyTab\Intune DevicesCopies data from the Primary Project
CustomField_1001APPDSC\MyTab\SCCM CollectionsCopies data from the Primary Project
CustomField_1002APPDSC\MyTab\AD Groups

Example: Sync App Blueprints from Primary Project to Sub-Project

Headers

HeaderValueNotes
Auth-Token[importer-auth-token]Auto-generated token to connect to ManagementStudio
Datamining-Tier1-ModuleApplicationsRetrieves the list of applications
Datamining-Tier1-FieldsAppIdAdds the AppId field
Blueprint-1-ModuleApplicationsRetrieves application blueprints
Blueprint-1-ColumnNameBlueprintsName of the column containing blueprints
Blueprint-1-AllOnOneLineFalseSplits multiple blueprints across rows
Blueprint-1-FolderIds86, 303Folder IDs to include (e.g. Departments, Location)
DataSource-AllTrueIncludes all applications
DataSource-FilterExpressionBlueprint_Blueprints <> ''Filters to only applications with a blueprint

Field Mapping

MCHSrc. FieldMS FieldNotes
YesAppIdAppIdUses AppId from the Primary Project to find matches in the Sub-Project
BlueprintsBlueprintPathImports the blueprints column as a BlueprintPath keyword (adds apps to blueprint, creates if needed)

Ensure you have:


Example: Sync App Contacts from Primary Project to Sub-Project

Syncing contacts does not require the REST API Importer. Contacts can be shared directly as shown in the user interface.


Example: Sync App Dependencies from Primary Project to Sub-Project

Headers

HeaderValueNote
Auth-Token[importer-auth-token]Auto-generated token to connect to ManagementStudio
Datamining-Tier1-ModuleApplicationsRetrieves the list of applications
Datamining-Tier1-FieldsAppIdAdds the AppId field
Datamining-Tier2-ModuleDependenciesAdds a dependencies tier
Datamining-Tier2-FieldsModule,InstanceId,IsTopLevelAdds these fields
DataSource-AllTrueIncludes all applications
DataSource-FilterExpressionDependencies_IsTopLevel = TrueFilters for applications with top-level dependencies

Field Mapping

MCHSrc. FieldMS FieldNotes
YesAppIdAppIdUses the AppId from the Primary Project for matching in the Sub-Project
InstanceIdDependencyChildIdUses the InstanceId as DependencyChildId
ModuleDependencyChildModuleIndicates the module to which the dependency belongs

Ensure you have:


Further Support

For further assistance, visit the ManagementStudio Service Desk to search the knowledge base or raise a new support ticket.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article