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

134 lines (133 loc) 4.93 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Gets a workspace instance. * * Uses Azure REST API version 2023-09-01. * * Other available API versions: 2015-11-01-preview, 2020-03-01-preview, 2020-08-01, 2020-10-01, 2021-06-01, 2021-12-01-preview, 2022-10-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 getWorkspace(args: GetWorkspaceArgs, opts?: pulumi.InvokeOptions): Promise<GetWorkspaceResult>; export interface GetWorkspaceArgs { /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; /** * The name of the workspace. */ workspaceName: string; } /** * The top level Workspace resource container. */ export interface GetWorkspaceResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * Workspace creation date. */ readonly createdDate: string; /** * This is a read-only property. Represents the ID associated with the workspace. */ readonly customerId: string; /** * The resource ID of the default Data Collection Rule to use for this workspace. Expected format is - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}. */ readonly defaultDataCollectionRuleResourceId?: string; /** * The etag of the workspace. */ readonly etag?: string; /** * Workspace features. */ readonly features?: outputs.operationalinsights.WorkspaceFeaturesResponse; /** * Indicates whether customer managed storage is mandatory for query management. */ readonly forceCmkForQuery?: boolean; /** * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ readonly id: string; /** * The identity of the resource. */ readonly identity?: outputs.operationalinsights.IdentityResponse; /** * The geo-location where the resource lives */ readonly location: string; /** * Workspace modification date. */ readonly modifiedDate: string; /** * The name of the resource */ readonly name: string; /** * List of linked private link scope resources. */ readonly privateLinkScopedResources: outputs.operationalinsights.PrivateLinkScopedResourceResponse[]; /** * The provisioning state of the workspace. */ readonly provisioningState: string; /** * The network access type for accessing Log Analytics ingestion. */ readonly publicNetworkAccessForIngestion?: string; /** * The network access type for accessing Log Analytics query. */ readonly publicNetworkAccessForQuery?: string; /** * The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details. */ readonly retentionInDays?: number; /** * The SKU of the workspace. */ readonly sku?: outputs.operationalinsights.WorkspaceSkuResponse; /** * Metadata pertaining to creation and last modification of the resource. */ readonly systemData: outputs.operationalinsights.SystemDataResponse; /** * Resource tags. */ readonly tags?: { [key: string]: string; }; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: string; /** * The daily volume cap for ingestion. */ readonly workspaceCapping?: outputs.operationalinsights.WorkspaceCappingResponse; } /** * Gets a workspace instance. * * Uses Azure REST API version 2023-09-01. * * Other available API versions: 2015-11-01-preview, 2020-03-01-preview, 2020-08-01, 2020-10-01, 2021-06-01, 2021-12-01-preview, 2022-10-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 getWorkspaceOutput(args: GetWorkspaceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetWorkspaceResult>; export interface GetWorkspaceOutputArgs { /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; /** * The name of the workspace. */ workspaceName: pulumi.Input<string>; }