UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

85 lines (84 loc) 2.9 kB
import * as pulumi from "@pulumi/pulumi"; /** * Gets a datasource instance. * * Uses Azure REST API version 2023-09-01. * * Other available API versions: 2015-11-01-preview, 2020-03-01-preview, 2020-08-01, 2025-02-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native operationalinsights [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getDataSource(args: GetDataSourceArgs, opts?: pulumi.InvokeOptions): Promise<GetDataSourceResult>; export interface GetDataSourceArgs { /** * Name of the datasource */ dataSourceName: string; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; /** * The name of the workspace. */ workspaceName: string; } /** * Datasources under OMS Workspace. */ export interface GetDataSourceResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * The ETag of the data source. */ readonly etag?: string; /** * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ readonly id: string; /** * The kind of the DataSource. */ readonly kind: string; /** * The name of the resource */ readonly name: string; /** * The data source properties in raw json format, each kind of data source have it's own schema. */ readonly properties: any; /** * Resource tags. */ readonly tags?: { [key: string]: string; }; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: string; } /** * Gets a datasource instance. * * Uses Azure REST API version 2023-09-01. * * Other available API versions: 2015-11-01-preview, 2020-03-01-preview, 2020-08-01, 2025-02-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native operationalinsights [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getDataSourceOutput(args: GetDataSourceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDataSourceResult>; export interface GetDataSourceOutputArgs { /** * Name of the datasource */ dataSourceName: pulumi.Input<string>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; /** * The name of the workspace. */ workspaceName: pulumi.Input<string>; }