Documentation
¶
Index ¶
- type AnalyticsSolution
- type AnalyticsSolutionArgs
- type AnalyticsSolutionPlan
- type AnalyticsSolutionPlanArgs
- func (AnalyticsSolutionPlanArgs) ElementType() reflect.Type
- func (i AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanOutput() AnalyticsSolutionPlanOutput
- func (i AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanOutputWithContext(ctx context.Context) AnalyticsSolutionPlanOutput
- func (i AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanPtrOutput() AnalyticsSolutionPlanPtrOutput
- func (i AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanPtrOutputWithContext(ctx context.Context) AnalyticsSolutionPlanPtrOutput
- type AnalyticsSolutionPlanInput
- type AnalyticsSolutionPlanOutput
- func (AnalyticsSolutionPlanOutput) ElementType() reflect.Type
- func (o AnalyticsSolutionPlanOutput) Name() pulumi.StringPtrOutput
- func (o AnalyticsSolutionPlanOutput) Product() pulumi.StringOutput
- func (o AnalyticsSolutionPlanOutput) PromotionCode() pulumi.StringPtrOutput
- func (o AnalyticsSolutionPlanOutput) Publisher() pulumi.StringOutput
- func (o AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanOutput() AnalyticsSolutionPlanOutput
- func (o AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanOutputWithContext(ctx context.Context) AnalyticsSolutionPlanOutput
- func (o AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanPtrOutput() AnalyticsSolutionPlanPtrOutput
- func (o AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanPtrOutputWithContext(ctx context.Context) AnalyticsSolutionPlanPtrOutput
- type AnalyticsSolutionPlanPtrInput
- type AnalyticsSolutionPlanPtrOutput
- func (o AnalyticsSolutionPlanPtrOutput) Elem() AnalyticsSolutionPlanOutput
- func (AnalyticsSolutionPlanPtrOutput) ElementType() reflect.Type
- func (o AnalyticsSolutionPlanPtrOutput) Name() pulumi.StringPtrOutput
- func (o AnalyticsSolutionPlanPtrOutput) Product() pulumi.StringPtrOutput
- func (o AnalyticsSolutionPlanPtrOutput) PromotionCode() pulumi.StringPtrOutput
- func (o AnalyticsSolutionPlanPtrOutput) Publisher() pulumi.StringPtrOutput
- func (o AnalyticsSolutionPlanPtrOutput) ToAnalyticsSolutionPlanPtrOutput() AnalyticsSolutionPlanPtrOutput
- func (o AnalyticsSolutionPlanPtrOutput) ToAnalyticsSolutionPlanPtrOutputWithContext(ctx context.Context) AnalyticsSolutionPlanPtrOutput
- type AnalyticsSolutionState
- type AnalyticsWorkspace
- type AnalyticsWorkspaceArgs
- type AnalyticsWorkspaceState
- type LookupAnalyticsWorkspaceArgs
- type LookupAnalyticsWorkspaceResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyticsSolution ¶
type AnalyticsSolution struct { pulumi.CustomResourceState // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // A `plan` block as documented below. Plan AnalyticsSolutionPlanOutput `pulumi:"plan"` // The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and its related workspace can only exist in the same resource group. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // Specifies the name of the solution to be deployed. See [here for options](https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-add-solutions).Changing this forces a new resource to be created. SolutionName pulumi.StringOutput `pulumi:"solutionName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created. WorkspaceName pulumi.StringOutput `pulumi:"workspaceName"` // The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created. WorkspaceResourceId pulumi.StringOutput `pulumi:"workspaceResourceId"` }
Manages a Log Analytics (formally Operational Insights) Solution.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/operationalinsights" "github.com/pulumi/pulumi-random/sdk/v2/go/random" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("westeurope"), }) if err != nil { return err } _, err = random.NewRandomId(ctx, "workspace", &random.RandomIdArgs{ Keepers: pulumi.StringMap{ "group_name": exampleResourceGroup.Name, }, ByteLength: pulumi.Int(8), }) if err != nil { return err } exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "exampleAnalyticsWorkspace", &operationalinsights.AnalyticsWorkspaceArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, Sku: pulumi.String("PerGB2018"), }) if err != nil { return err } _, err = operationalinsights.NewAnalyticsSolution(ctx, "exampleAnalyticsSolution", &operationalinsights.AnalyticsSolutionArgs{ SolutionName: pulumi.String("ContainerInsights"), Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, WorkspaceResourceId: exampleAnalyticsWorkspace.ID(), WorkspaceName: exampleAnalyticsWorkspace.Name, Plan: &operationalinsights.AnalyticsSolutionPlanArgs{ Publisher: pulumi.String("Microsoft"), Product: pulumi.String("OMSGallery/ContainerInsights"), }, }) if err != nil { return err } return nil }) }
```
func GetAnalyticsSolution ¶
func GetAnalyticsSolution(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AnalyticsSolutionState, opts ...pulumi.ResourceOption) (*AnalyticsSolution, error)
GetAnalyticsSolution gets an existing AnalyticsSolution resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAnalyticsSolution ¶
func NewAnalyticsSolution(ctx *pulumi.Context, name string, args *AnalyticsSolutionArgs, opts ...pulumi.ResourceOption) (*AnalyticsSolution, error)
NewAnalyticsSolution registers a new resource with the given unique name, arguments, and options.
type AnalyticsSolutionArgs ¶
type AnalyticsSolutionArgs struct { // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `plan` block as documented below. Plan AnalyticsSolutionPlanInput // The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and its related workspace can only exist in the same resource group. ResourceGroupName pulumi.StringInput // Specifies the name of the solution to be deployed. See [here for options](https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-add-solutions).Changing this forces a new resource to be created. SolutionName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created. WorkspaceName pulumi.StringInput // The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created. WorkspaceResourceId pulumi.StringInput }
The set of arguments for constructing a AnalyticsSolution resource.
func (AnalyticsSolutionArgs) ElementType ¶
func (AnalyticsSolutionArgs) ElementType() reflect.Type
type AnalyticsSolutionPlan ¶
type AnalyticsSolutionPlan struct { Name *string `pulumi:"name"` // The product name of the solution. For example `OMSGallery/Containers`. Changing this forces a new resource to be created. Product string `pulumi:"product"` // A promotion code to be used with the solution. PromotionCode *string `pulumi:"promotionCode"` // The publisher of the solution. For example `Microsoft`. Changing this forces a new resource to be created. Publisher string `pulumi:"publisher"` }
type AnalyticsSolutionPlanArgs ¶
type AnalyticsSolutionPlanArgs struct { Name pulumi.StringPtrInput `pulumi:"name"` // The product name of the solution. For example `OMSGallery/Containers`. Changing this forces a new resource to be created. Product pulumi.StringInput `pulumi:"product"` // A promotion code to be used with the solution. PromotionCode pulumi.StringPtrInput `pulumi:"promotionCode"` // The publisher of the solution. For example `Microsoft`. Changing this forces a new resource to be created. Publisher pulumi.StringInput `pulumi:"publisher"` }
func (AnalyticsSolutionPlanArgs) ElementType ¶
func (AnalyticsSolutionPlanArgs) ElementType() reflect.Type
func (AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanOutput ¶
func (i AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanOutput() AnalyticsSolutionPlanOutput
func (AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanOutputWithContext ¶
func (i AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanOutputWithContext(ctx context.Context) AnalyticsSolutionPlanOutput
func (AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanPtrOutput ¶
func (i AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanPtrOutput() AnalyticsSolutionPlanPtrOutput
func (AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanPtrOutputWithContext ¶
func (i AnalyticsSolutionPlanArgs) ToAnalyticsSolutionPlanPtrOutputWithContext(ctx context.Context) AnalyticsSolutionPlanPtrOutput
type AnalyticsSolutionPlanInput ¶
type AnalyticsSolutionPlanInput interface { pulumi.Input ToAnalyticsSolutionPlanOutput() AnalyticsSolutionPlanOutput ToAnalyticsSolutionPlanOutputWithContext(context.Context) AnalyticsSolutionPlanOutput }
AnalyticsSolutionPlanInput is an input type that accepts AnalyticsSolutionPlanArgs and AnalyticsSolutionPlanOutput values. You can construct a concrete instance of `AnalyticsSolutionPlanInput` via:
AnalyticsSolutionPlanArgs{...}
type AnalyticsSolutionPlanOutput ¶
type AnalyticsSolutionPlanOutput struct{ *pulumi.OutputState }
func (AnalyticsSolutionPlanOutput) ElementType ¶
func (AnalyticsSolutionPlanOutput) ElementType() reflect.Type
func (AnalyticsSolutionPlanOutput) Name ¶
func (o AnalyticsSolutionPlanOutput) Name() pulumi.StringPtrOutput
func (AnalyticsSolutionPlanOutput) Product ¶
func (o AnalyticsSolutionPlanOutput) Product() pulumi.StringOutput
The product name of the solution. For example `OMSGallery/Containers`. Changing this forces a new resource to be created.
func (AnalyticsSolutionPlanOutput) PromotionCode ¶
func (o AnalyticsSolutionPlanOutput) PromotionCode() pulumi.StringPtrOutput
A promotion code to be used with the solution.
func (AnalyticsSolutionPlanOutput) Publisher ¶
func (o AnalyticsSolutionPlanOutput) Publisher() pulumi.StringOutput
The publisher of the solution. For example `Microsoft`. Changing this forces a new resource to be created.
func (AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanOutput ¶
func (o AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanOutput() AnalyticsSolutionPlanOutput
func (AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanOutputWithContext ¶
func (o AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanOutputWithContext(ctx context.Context) AnalyticsSolutionPlanOutput
func (AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanPtrOutput ¶
func (o AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanPtrOutput() AnalyticsSolutionPlanPtrOutput
func (AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanPtrOutputWithContext ¶
func (o AnalyticsSolutionPlanOutput) ToAnalyticsSolutionPlanPtrOutputWithContext(ctx context.Context) AnalyticsSolutionPlanPtrOutput
type AnalyticsSolutionPlanPtrInput ¶
type AnalyticsSolutionPlanPtrInput interface { pulumi.Input ToAnalyticsSolutionPlanPtrOutput() AnalyticsSolutionPlanPtrOutput ToAnalyticsSolutionPlanPtrOutputWithContext(context.Context) AnalyticsSolutionPlanPtrOutput }
AnalyticsSolutionPlanPtrInput is an input type that accepts AnalyticsSolutionPlanArgs, AnalyticsSolutionPlanPtr and AnalyticsSolutionPlanPtrOutput values. You can construct a concrete instance of `AnalyticsSolutionPlanPtrInput` via:
AnalyticsSolutionPlanArgs{...} or: nil
func AnalyticsSolutionPlanPtr ¶
func AnalyticsSolutionPlanPtr(v *AnalyticsSolutionPlanArgs) AnalyticsSolutionPlanPtrInput
type AnalyticsSolutionPlanPtrOutput ¶
type AnalyticsSolutionPlanPtrOutput struct{ *pulumi.OutputState }
func (AnalyticsSolutionPlanPtrOutput) Elem ¶
func (o AnalyticsSolutionPlanPtrOutput) Elem() AnalyticsSolutionPlanOutput
func (AnalyticsSolutionPlanPtrOutput) ElementType ¶
func (AnalyticsSolutionPlanPtrOutput) ElementType() reflect.Type
func (AnalyticsSolutionPlanPtrOutput) Name ¶
func (o AnalyticsSolutionPlanPtrOutput) Name() pulumi.StringPtrOutput
func (AnalyticsSolutionPlanPtrOutput) Product ¶
func (o AnalyticsSolutionPlanPtrOutput) Product() pulumi.StringPtrOutput
The product name of the solution. For example `OMSGallery/Containers`. Changing this forces a new resource to be created.
func (AnalyticsSolutionPlanPtrOutput) PromotionCode ¶
func (o AnalyticsSolutionPlanPtrOutput) PromotionCode() pulumi.StringPtrOutput
A promotion code to be used with the solution.
func (AnalyticsSolutionPlanPtrOutput) Publisher ¶
func (o AnalyticsSolutionPlanPtrOutput) Publisher() pulumi.StringPtrOutput
The publisher of the solution. For example `Microsoft`. Changing this forces a new resource to be created.
func (AnalyticsSolutionPlanPtrOutput) ToAnalyticsSolutionPlanPtrOutput ¶
func (o AnalyticsSolutionPlanPtrOutput) ToAnalyticsSolutionPlanPtrOutput() AnalyticsSolutionPlanPtrOutput
func (AnalyticsSolutionPlanPtrOutput) ToAnalyticsSolutionPlanPtrOutputWithContext ¶
func (o AnalyticsSolutionPlanPtrOutput) ToAnalyticsSolutionPlanPtrOutputWithContext(ctx context.Context) AnalyticsSolutionPlanPtrOutput
type AnalyticsSolutionState ¶
type AnalyticsSolutionState struct { // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // A `plan` block as documented below. Plan AnalyticsSolutionPlanPtrInput // The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and its related workspace can only exist in the same resource group. ResourceGroupName pulumi.StringPtrInput // Specifies the name of the solution to be deployed. See [here for options](https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-add-solutions).Changing this forces a new resource to be created. SolutionName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created. WorkspaceName pulumi.StringPtrInput // The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created. WorkspaceResourceId pulumi.StringPtrInput }
func (AnalyticsSolutionState) ElementType ¶
func (AnalyticsSolutionState) ElementType() reflect.Type
type AnalyticsWorkspace ¶
type AnalyticsWorkspace struct { pulumi.CustomResourceState // The workspace daily quota for ingestion in GB. Defaults to -1 (unlimited). DailyQuotaGb pulumi.Float64PtrOutput `pulumi:"dailyQuotaGb"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of the Log Analytics Workspace. Workspace name should include 4-63 letters, digits or '-'. The '-' shouldn't be the first or the last symbol. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Deprecated: this property has been removed from the API and will be removed in version 3.0 of the provider PortalUrl pulumi.StringOutput `pulumi:"portalUrl"` PrimarySharedKey pulumi.StringOutput `pulumi:"primarySharedKey"` // The name of the resource group in which the Log Analytics workspace is created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The workspace data retention in days. Possible values are either 7 (Free Tier only) or range between 30 and 730. RetentionInDays pulumi.IntOutput `pulumi:"retentionInDays"` SecondarySharedKey pulumi.StringOutput `pulumi:"secondarySharedKey"` // Specifies the Sku of the Log Analytics Workspace. Possible values are `Free`, `PerNode`, `Premium`, `Standard`, `Standalone`, `Unlimited`, and `PerGB2018` (new Sku as of `2018-04-03`). Defaults to `PerGB2018`. Sku pulumi.StringPtrOutput `pulumi:"sku"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // The Workspace (or Customer) ID for the Log Analytics Workspace. WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"` }
Manages a Log Analytics (formally Operational Insights) Workspace.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/operationalinsights" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("East US"), }) if err != nil { return err } _, err = operationalinsights.NewAnalyticsWorkspace(ctx, "exampleAnalyticsWorkspace", &operationalinsights.AnalyticsWorkspaceArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, Sku: pulumi.String("PerGB2018"), RetentionInDays: pulumi.Int(30), }) if err != nil { return err } return nil }) }
```
func GetAnalyticsWorkspace ¶
func GetAnalyticsWorkspace(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AnalyticsWorkspaceState, opts ...pulumi.ResourceOption) (*AnalyticsWorkspace, error)
GetAnalyticsWorkspace gets an existing AnalyticsWorkspace resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAnalyticsWorkspace ¶
func NewAnalyticsWorkspace(ctx *pulumi.Context, name string, args *AnalyticsWorkspaceArgs, opts ...pulumi.ResourceOption) (*AnalyticsWorkspace, error)
NewAnalyticsWorkspace registers a new resource with the given unique name, arguments, and options.
type AnalyticsWorkspaceArgs ¶
type AnalyticsWorkspaceArgs struct { // The workspace daily quota for ingestion in GB. Defaults to -1 (unlimited). DailyQuotaGb pulumi.Float64PtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the Log Analytics Workspace. Workspace name should include 4-63 letters, digits or '-'. The '-' shouldn't be the first or the last symbol. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which the Log Analytics workspace is created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The workspace data retention in days. Possible values are either 7 (Free Tier only) or range between 30 and 730. RetentionInDays pulumi.IntPtrInput // Specifies the Sku of the Log Analytics Workspace. Possible values are `Free`, `PerNode`, `Premium`, `Standard`, `Standalone`, `Unlimited`, and `PerGB2018` (new Sku as of `2018-04-03`). Defaults to `PerGB2018`. Sku pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a AnalyticsWorkspace resource.
func (AnalyticsWorkspaceArgs) ElementType ¶
func (AnalyticsWorkspaceArgs) ElementType() reflect.Type
type AnalyticsWorkspaceState ¶
type AnalyticsWorkspaceState struct { // The workspace daily quota for ingestion in GB. Defaults to -1 (unlimited). DailyQuotaGb pulumi.Float64PtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the Log Analytics Workspace. Workspace name should include 4-63 letters, digits or '-'. The '-' shouldn't be the first or the last symbol. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Deprecated: this property has been removed from the API and will be removed in version 3.0 of the provider PortalUrl pulumi.StringPtrInput PrimarySharedKey pulumi.StringPtrInput // The name of the resource group in which the Log Analytics workspace is created. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The workspace data retention in days. Possible values are either 7 (Free Tier only) or range between 30 and 730. RetentionInDays pulumi.IntPtrInput SecondarySharedKey pulumi.StringPtrInput // Specifies the Sku of the Log Analytics Workspace. Possible values are `Free`, `PerNode`, `Premium`, `Standard`, `Standalone`, `Unlimited`, and `PerGB2018` (new Sku as of `2018-04-03`). Defaults to `PerGB2018`. Sku pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // The Workspace (or Customer) ID for the Log Analytics Workspace. WorkspaceId pulumi.StringPtrInput }
func (AnalyticsWorkspaceState) ElementType ¶
func (AnalyticsWorkspaceState) ElementType() reflect.Type
type LookupAnalyticsWorkspaceArgs ¶
type LookupAnalyticsWorkspaceArgs struct { // Specifies the name of the Log Analytics Workspace. Name string `pulumi:"name"` // The name of the resource group in which the Log Analytics workspace is located in. ResourceGroupName string `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getAnalyticsWorkspace.
type LookupAnalyticsWorkspaceResult ¶
type LookupAnalyticsWorkspaceResult struct { // The workspace daily quota for ingestion in GB. DailyQuotaGb float64 `pulumi:"dailyQuotaGb"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Location string `pulumi:"location"` Name string `pulumi:"name"` // Deprecated: this property has been removed from the API and will be removed in version 3.0 of the provider PortalUrl string `pulumi:"portalUrl"` // The Primary shared key for the Log Analytics Workspace. ResourceGroupName string `pulumi:"resourceGroupName"` // The workspace data retention in days. RetentionInDays int `pulumi:"retentionInDays"` SecondarySharedKey string `pulumi:"secondarySharedKey"` // The Sku of the Log Analytics Workspace. Sku string `pulumi:"sku"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` // The Workspace (or Customer) ID for the Log Analytics Workspace. WorkspaceId string `pulumi:"workspaceId"` }
A collection of values returned by getAnalyticsWorkspace.
func LookupAnalyticsWorkspace ¶
func LookupAnalyticsWorkspace(ctx *pulumi.Context, args *LookupAnalyticsWorkspaceArgs, opts ...pulumi.InvokeOption) (*LookupAnalyticsWorkspaceResult, error)
Use this data source to access information about an existing Log Analytics (formally Operational Insights) Workspace.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/operationalinsights" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := operationalinsights.LookupAnalyticsWorkspace(ctx, &operationalinsights.LookupAnalyticsWorkspaceArgs{ Name: "acctest-01", ResourceGroupName: "acctest", }, nil) if err != nil { return err } ctx.Export("logAnalyticsWorkspaceId", example.WorkspaceId) return nil }) }
```