Skip to main content

Class XBRApiWebSdk

Provides access to Xperiflow Base Url utilities and to the Xperiflow REST API. This is a C# SDK wrapper around the Xperiflow REST API.

Namespace: Workspace.XBR.Xperiflow.SubApis

Assembly: Xperiflow.dll

Declaration
public class XBRApiWebSdk

Remarks​

Use with caution. This is considered a "lower-level" API that has a higher probability of breaking changes from release to release. The team does their best to minimize breaking changes but from time-to-time we may introduce a breaking change in a minor release. Breaking changes will primarily only be introduced in major releases. We will do our best to document these changes as part of release notes.

All Xperiflow-based AI Solutions are built on top of the Web SDK. This means that you can leverage the same underlying functionality that powers many of the AI Solutions wihtin your own custom solutions.

Methods​

GetXperiflowBaseUrl(SessionInfo)​

Gets the Xperiflow base URL for the current OneStream application.

Declaration
public string GetXperiflowBaseUrl(SessionInfo si)
Remarks​

Example:

Returns​

System.String

The base URL with a guaranteed trailing slash.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe current session info.
Exceptions​

OneStream.Shared.Common.XFException Thrown when the workspace cannot be found or the base URL parameter is not configured.

GetXperiflowBaseUrlForApplication(SessionInfo, string)​

Gets the Xperiflow base URL for a specific OneStream application.

Declaration
public string GetXperiflowBaseUrlForApplication(SessionInfo si, string applicationName)
Remarks​

Example:

Returns​

System.String

The base URL with a guaranteed trailing slash.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe current session info.
System.StringapplicationNameThe OneStream application name to look up.
Exceptions​

OneStream.Shared.Common.XFException Thrown when the application cannot be opened or the base URL parameter is not configured.

GetXperiflowBaseUrls(SessionInfo)​

Returns a mapping of all OneStream application names to their Xperiflow base URLs. Applications without a configured URL are silently excluded.

Declaration
public Dictionary<string, string> GetXperiflowBaseUrls(SessionInfo si)
Remarks​

Example:

Returns​

System.Collections.Generic.Dictionary<System.String,System.String>

A dictionary keyed by application name with base-URL values (trailing slash guaranteed).

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe current session info.

GetXperiflowAIClient(SessionInfo)​

The Xperiflow AI Client provides methods to programmatically interact with the xperiflow Large Language Model (LLM) services. This includes access to various LLM models. Please note that these LLM models are subject to xperiflow access controls and usage limits.

Declaration
public IXperiflowAIClient GetXperiflowAIClient(SessionInfo si)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.AI.IXperiflowAIClient

An instance of IXperiflowAIClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.

GetXperiflowAIClient(SessionInfo, IList<IScopeBuilder>)​

The Xperiflow AI Client provides methods to programmatically interact with the xperiflow Large Language Model (LLM) services. This includes access to various LLM models. Please note that these LLM models are subject to xperiflow access controls and usage limits.

Declaration
public IXperiflowAIClient GetXperiflowAIClient(SessionInfo si, IList<IScopeBuilder> scopeBuilders)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.AI.IXperiflowAIClient

An instance of IXperiflowAIClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.
System.Collections.Generic.IList< Workspace.XBR.Xperiflow.Core.Scope.IScopeBuilder >scopeBuildersA list of foreign scope builders. Scopes are a way to bucket or silo Xperiflow user permissions. Examples may include a specific OneStream application,
a specific OneStream solution, or a combination of both.

GetXperiflowAIClient(SessionInfo, IList<ScopeDefinition>)​

The Xperiflow AI Client provides methods to programmatically interact with the xperiflow Large Language Model (LLM) services. This includes access to various LLM models. Please note that these LLM models are subject to xperiflow access controls and usage limits.

Declaration
public IXperiflowAIClient GetXperiflowAIClient(SessionInfo si, IList<ScopeDefinition> scopeDefinitions)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.AI.IXperiflowAIClient

An instance of IXperiflowAIClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.
System.Collections.Generic.IList< Workspace.XBR.Xperiflow.Core.Scope.ScopeDefinition >scopeDefinitionsA list of foreign scope definitions. Scopes are a way to bucket or silo Xperiflow user permissions. Examples may include a specific OneStream application,
a specific OneStream solution, or a combination of both.

GetXperiflowConduitClient(SessionInfo)​

The Xperiflow Conduit Client provides allow the ability to programmatically interact with the job and task orchestration system that powers Xperiflow. This includes abilities like kicking off jobs, checking job statuses, canceling jobs, seeing the available jobs that can be run, and more.

Declaration
public IXperiflowConduitClient GetXperiflowConduitClient(SessionInfo si)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.Conduit.IXperiflowConduitClient

An instance of IXperiflowConduitClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.

GetXperiflowConduitClient(SessionInfo, IList<IScopeBuilder>)​

The Xperiflow Conduit Client provides allow the ability to programmatically interact with the job and task orchestration system that powers Xperiflow. This includes abilities like kicking off jobs, checking job statuses, canceling jobs, seeing the available jobs that can be run, and more.

Declaration
public IXperiflowConduitClient GetXperiflowConduitClient(SessionInfo si, IList<IScopeBuilder> scopeBuilders)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.Conduit.IXperiflowConduitClient

An instance of IXperiflowConduitClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.
System.Collections.Generic.IList< Workspace.XBR.Xperiflow.Core.Scope.IScopeBuilder >scopeBuildersA list of foreign scope builders. Scopes are a way to bucket or silo Xperiflow user permissions. Examples may include a specific OneStream application,
a specific OneStream solution, or a combination of both.

GetXperiflowConduitClient(SessionInfo, IList<ScopeDefinition>)​

The Xperiflow Conduit Client provides allow the ability to programmatically interact with the job and task orchestration system that powers Xperiflow. This includes abilities like kicking off jobs, checking job statuses, canceling jobs, seeing the available jobs that can be run, and more.

Declaration
public IXperiflowConduitClient GetXperiflowConduitClient(SessionInfo si, IList<ScopeDefinition> scopeDefinitions)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.Conduit.IXperiflowConduitClient

An instance of IXperiflowConduitClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.
System.Collections.Generic.IList< Workspace.XBR.Xperiflow.Core.Scope.ScopeDefinition >scopeDefinitionsA list of foreign scope definitions. Scopes are a way to bucket or silo Xperiflow user permissions. Examples may include a specific OneStream application,
a specific OneStream solution, or a combination of both.

GetXperiflowGeneratorsClient(SessionInfo)​

Retrieves an instance of IXperiflowGeneratorsClient.

Declaration
public IXperiflowGeneratorsClient GetXperiflowGeneratorsClient(SessionInfo si)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.Generators.IXperiflowGeneratorsClient

An instance of IXperiflowGeneratorsClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.

GetXperiflowGeneratorsClient(SessionInfo, IList<IScopeBuilder>)​

Retrieves an instance of IXperiflowGeneratorsClient and includes optional foreign scope builders.

Declaration
public IXperiflowGeneratorsClient GetXperiflowGeneratorsClient(SessionInfo si, IList<IScopeBuilder> scopeBuilders)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.Generators.IXperiflowGeneratorsClient

An instance of IXperiflowGeneratorsClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.
System.Collections.Generic.IList< Workspace.XBR.Xperiflow.Core.Scope.IScopeBuilder >scopeBuildersA list of foreign scope builders.

GetXperiflowGeneratorsClient(SessionInfo, IList<ScopeDefinition>)​

Retrieves an instance of IXperiflowGeneratorsClient and includes optional foreign scope definitions.

Declaration
public IXperiflowGeneratorsClient GetXperiflowGeneratorsClient(SessionInfo si, IList<ScopeDefinition> scopeDefinitions)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.Generators.IXperiflowGeneratorsClient

An instance of IXperiflowGeneratorsClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.
System.Collections.Generic.IList< Workspace.XBR.Xperiflow.Core.Scope.ScopeDefinition >scopeDefinitionsA list of foreign scope definitions.

GetXperiflowRoutinesClient(SessionInfo)​

The Xperiflow Routines Client provides the ability to programmatically interact with the routine service of Xperiflow. Note it is recommended to not use this "lower-level" SDK. Instead, please use Workspace.XBR.Xperiflow.XBRApi.Routines.

Declaration
public IXperiflowRoutinesClient GetXperiflowRoutinesClient(SessionInfo si)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.Routines.IXperiflowRoutinesClient

An instance of IXperiflowRoutinesClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.

GetXperiflowRoutinesClient(SessionInfo, IList<IScopeBuilder>)​

The Xperiflow Routines Client provides the ability to programmatically interact with the routine service of Xperiflow. Note it is recommended to not use this "lower-level" SDK. Instead, please use Workspace.XBR.Xperiflow.XBRApi.Routines.

Declaration
public IXperiflowRoutinesClient GetXperiflowRoutinesClient(SessionInfo si, IList<IScopeBuilder> scopeBuilders)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.Routines.IXperiflowRoutinesClient

An instance of IXperiflowRoutinesClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.
System.Collections.Generic.IList< Workspace.XBR.Xperiflow.Core.Scope.IScopeBuilder >scopeBuildersA list of foreign scope builders. Scopes are a way to bucket or silo Xperiflow user permissions. Examples may include a specific OneStream application,
a specific OneStream solution, or a combination of both.

GetXperiflowRoutinesClient(SessionInfo, IList<ScopeDefinition>)​

The Xperiflow Routines Client provides the ability to programmatically interact with the routine service of Xperiflow. Note it is recommended to not use this "lower-level" SDK. Instead, please use Workspace.XBR.Xperiflow.XBRApi.Routines.

Declaration
public IXperiflowRoutinesClient GetXperiflowRoutinesClient(SessionInfo si, IList<ScopeDefinition> scopeDefinitions)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.Routines.IXperiflowRoutinesClient

An instance of IXperiflowRoutinesClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.
System.Collections.Generic.IList< Workspace.XBR.Xperiflow.Core.Scope.ScopeDefinition >scopeDefinitionsA list of foreign scope definitions. Scopes are a way to bucket or silo Xperiflow user permissions. Examples may include a specific OneStream application,
a specific OneStream solution, or a combination of both.

GetXperiflowStorageClient(SessionInfo)​

The Xperiflow Storage Client provides programmatic access to Xperiflow storage and database services. Note it is recommended to not use this "lower-level" SDK. Instead, please use Workspace.XBR.Xperiflow.XBRApi.MetaFileSystem and Workspace.XBR.Xperiflow.XBRApi.metaDB.

Declaration
public IXperiflowStorageClient GetXperiflowStorageClient(SessionInfo si)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.Storage.IXperiflowStorageClient

An instance of IXperiflowStorageClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.

GetXperiflowStorageClient(SessionInfo, IList<IScopeBuilder>)​

The Xperiflow Storage Client provides programmatic access to Xperiflow storage and database services. Note it is recommended to not use this "lower-level" SDK. Instead, please use Workspace.XBR.Xperiflow.XBRApi.MetaFileSystem and Workspace.XBR.Xperiflow.XBRApi.metaDB.

Declaration
public IXperiflowStorageClient GetXperiflowStorageClient(SessionInfo si, IList<IScopeBuilder> scopeBuilders)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.Storage.IXperiflowStorageClient

An instance of IXperiflowStorageClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.
System.Collections.Generic.IList< Workspace.XBR.Xperiflow.Core.Scope.IScopeBuilder >scopeBuildersA list of foreign scope builders. Scopes are a way to bucket or silo Xperiflow user permissions. Examples may include a specific OneStream application,
a specific OneStream solution, or a combination of both.

GetXperiflowStorageClient(SessionInfo, IList<ScopeDefinition>)​

The Xperiflow Storage Client provides programmatic access to Xperiflow storage and database services. Note it is recommended to not use this "lower-level" SDK. Instead, please use Workspace.XBR.Xperiflow.XBRApi.MetaFileSystem and Workspace.XBR.Xperiflow.XBRApi.metaDB.

Declaration
public IXperiflowStorageClient GetXperiflowStorageClient(SessionInfo si, IList<ScopeDefinition> scopeDefinitions)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.Storage.IXperiflowStorageClient

An instance of IXperiflowStorageClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.
System.Collections.Generic.IList< Workspace.XBR.Xperiflow.Core.Scope.ScopeDefinition >scopeDefinitionsA list of foreign scope definitions. Scopes are a way to bucket or silo Xperiflow user permissions. Examples may include a specific OneStream application,
a specific OneStream solution, or a combination of both.

GetXperiflowTimeSeriesForecastingClient(SessionInfo)​

The Xperiflow Time Series Forecasting Client provides programmatic access to all of the time series functionality that powers the SensibleAI Forecast solution. This is a large SDK with over 100 methods available to use.

Declaration
public IXperiflowTimeSeriesForecastingClient GetXperiflowTimeSeriesForecastingClient(SessionInfo si)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.TimeSeriesForecasting.IXperiflowTimeSeriesForecastingClient

An instance of IXperiflowTimeSeriesForecastingClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.

GetXperiflowTimeSeriesForecastingClient(SessionInfo, IList<IScopeBuilder>)​

The Xperiflow Time Series Forecasting Client provides programmatic access to all of the time series functionality that powers the SensibleAI Forecast solution. This is a large SDK with over 100 methods available to use.

Declaration
public IXperiflowTimeSeriesForecastingClient GetXperiflowTimeSeriesForecastingClient(SessionInfo si, IList<IScopeBuilder> scopeBuilders)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.TimeSeriesForecasting.IXperiflowTimeSeriesForecastingClient

An instance of IXperiflowTimeSeriesForecastingClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.
System.Collections.Generic.IList< Workspace.XBR.Xperiflow.Core.Scope.IScopeBuilder >scopeBuildersA list of foreign scope builders. Scopes are a way to bucket or silo Xperiflow user permissions. Examples may include a specific OneStream application,
a specific OneStream solution, or a combination of both.

GetXperiflowTimeSeriesForecastingClient(SessionInfo, IList<ScopeDefinition>)​

The Xperiflow Time Series Forecasting Client provides programmatic access to all of the time series functionality that powers the SensibleAI Forecast solution. This is a large SDK with over 100 methods available to use.

Declaration
public IXperiflowTimeSeriesForecastingClient GetXperiflowTimeSeriesForecastingClient(SessionInfo si, IList<ScopeDefinition> scopeDefinitions)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.TimeSeriesForecasting.IXperiflowTimeSeriesForecastingClient

An instance of IXperiflowTimeSeriesForecastingClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.
System.Collections.Generic.IList< Workspace.XBR.Xperiflow.Core.Scope.ScopeDefinition >scopeDefinitionsA list of foreign scope definitions. Scopes are a way to bucket or silo Xperiflow user permissions. Examples may include a specific OneStream application,
a specific OneStream solution, or a combination of both.

GetXperiflowWebAppClient(SessionInfo)​

Retrieves an instance of IXperiflowWebAppClient.

Declaration
public IXperiflowWebAppClient GetXperiflowWebAppClient(SessionInfo si)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.WebApp.IXperiflowWebAppClient

An instance of IXperiflowWebAppClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.

GetXperiflowWebAppClient(SessionInfo, IList<IScopeBuilder>)​

Retrieves an instance of IXperiflowWebAppClient and includes optional foreign scope builders.

Declaration
public IXperiflowWebAppClient GetXperiflowWebAppClient(SessionInfo si, IList<IScopeBuilder> scopeBuilders)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.WebApp.IXperiflowWebAppClient

An instance of IXperiflowWebAppClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.
System.Collections.Generic.IList< Workspace.XBR.Xperiflow.Core.Scope.IScopeBuilder >scopeBuildersA list of foreign scope builders.

GetXperiflowWebAppClient(SessionInfo, IList<ScopeDefinition>)​

Retrieves an instance of IXperiflowWebAppClient and includes optional foreign scope definitions.

Declaration
public IXperiflowWebAppClient GetXperiflowWebAppClient(SessionInfo si, IList<ScopeDefinition> scopeDefinitions)
Returns​

Workspace.XBR.Xperiflow.Core.RestApi.WebApp.IXperiflowWebAppClient

An instance of IXperiflowWebAppClient.

Parameters​
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session information.
System.Collections.Generic.IList< Workspace.XBR.Xperiflow.Core.Scope.ScopeDefinition >scopeDefinitionsA list of foreign scope definitions.

Inherited Members​

  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.ToString

Was this page helpful?