DataSources interface
Interface representing a DataSources.
Methods
create |
Create or update a data source. |
delete(string, string, string, Data |
Deletes a data source instance. |
get(string, string, string, Data |
Gets a datasource instance. |
list |
Gets the first page of data source instances in a workspace with the link to the next page. |
Method Details
createOrUpdate(string, string, string, DataSource, DataSourcesCreateOrUpdateOptionalParams)
Create or update a data source.
function createOrUpdate(resourceGroupName: string, workspaceName: string, dataSourceName: string, parameters: DataSource, options?: DataSourcesCreateOrUpdateOptionalParams): Promise<DataSource>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- workspaceName
-
string
The name of the workspace.
- dataSourceName
-
string
The name of the datasource resource.
- parameters
- DataSource
The parameters required to create or update a datasource.
The options parameters.
Returns
Promise<DataSource>
delete(string, string, string, DataSourcesDeleteOptionalParams)
Deletes a data source instance.
function delete(resourceGroupName: string, workspaceName: string, dataSourceName: string, options?: DataSourcesDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- workspaceName
-
string
The name of the workspace.
- dataSourceName
-
string
Name of the datasource.
- options
- DataSourcesDeleteOptionalParams
The options parameters.
Returns
Promise<void>
get(string, string, string, DataSourcesGetOptionalParams)
Gets a datasource instance.
function get(resourceGroupName: string, workspaceName: string, dataSourceName: string, options?: DataSourcesGetOptionalParams): Promise<DataSource>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- workspaceName
-
string
The name of the workspace.
- dataSourceName
-
string
Name of the datasource
- options
- DataSourcesGetOptionalParams
The options parameters.
Returns
Promise<DataSource>
listByWorkspace(string, string, string, DataSourcesListByWorkspaceOptionalParams)
Gets the first page of data source instances in a workspace with the link to the next page.
function listByWorkspace(resourceGroupName: string, workspaceName: string, filter: string, options?: DataSourcesListByWorkspaceOptionalParams): PagedAsyncIterableIterator<DataSource, DataSource[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- workspaceName
-
string
The name of the workspace.
- filter
-
string
The filter to apply on the operation.
The options parameters.