Documentation
¶
Index ¶
- type AnalyticsSolution
- type AnalyticsSolutionArgs
- type AnalyticsSolutionArray
- type AnalyticsSolutionArrayInput
- type AnalyticsSolutionArrayOutput
- func (AnalyticsSolutionArrayOutput) ElementType() reflect.Type
- func (o AnalyticsSolutionArrayOutput) Index(i pulumi.IntInput) AnalyticsSolutionOutput
- func (o AnalyticsSolutionArrayOutput) ToAnalyticsSolutionArrayOutput() AnalyticsSolutionArrayOutput
- func (o AnalyticsSolutionArrayOutput) ToAnalyticsSolutionArrayOutputWithContext(ctx context.Context) AnalyticsSolutionArrayOutput
- type AnalyticsSolutionInput
- type AnalyticsSolutionMap
- type AnalyticsSolutionMapInput
- type AnalyticsSolutionMapOutput
- func (AnalyticsSolutionMapOutput) ElementType() reflect.Type
- func (o AnalyticsSolutionMapOutput) MapIndex(k pulumi.StringInput) AnalyticsSolutionOutput
- func (o AnalyticsSolutionMapOutput) ToAnalyticsSolutionMapOutput() AnalyticsSolutionMapOutput
- func (o AnalyticsSolutionMapOutput) ToAnalyticsSolutionMapOutputWithContext(ctx context.Context) AnalyticsSolutionMapOutput
- type AnalyticsSolutionOutput
- func (AnalyticsSolutionOutput) ElementType() reflect.Type
- func (o AnalyticsSolutionOutput) Location() pulumi.StringOutput
- func (o AnalyticsSolutionOutput) Plan() AnalyticsSolutionPlanOutput
- func (o AnalyticsSolutionOutput) ResourceGroupName() pulumi.StringOutput
- func (o AnalyticsSolutionOutput) SolutionName() pulumi.StringOutput
- func (o AnalyticsSolutionOutput) Tags() pulumi.StringMapOutput
- func (o AnalyticsSolutionOutput) ToAnalyticsSolutionOutput() AnalyticsSolutionOutput
- func (o AnalyticsSolutionOutput) ToAnalyticsSolutionOutputWithContext(ctx context.Context) AnalyticsSolutionOutput
- func (o AnalyticsSolutionOutput) WorkspaceName() pulumi.StringOutput
- func (o AnalyticsSolutionOutput) WorkspaceResourceId() pulumi.StringOutput
- 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 AnalyticsWorkspaceArray
- type AnalyticsWorkspaceArrayInput
- type AnalyticsWorkspaceArrayOutput
- func (AnalyticsWorkspaceArrayOutput) ElementType() reflect.Type
- func (o AnalyticsWorkspaceArrayOutput) Index(i pulumi.IntInput) AnalyticsWorkspaceOutput
- func (o AnalyticsWorkspaceArrayOutput) ToAnalyticsWorkspaceArrayOutput() AnalyticsWorkspaceArrayOutput
- func (o AnalyticsWorkspaceArrayOutput) ToAnalyticsWorkspaceArrayOutputWithContext(ctx context.Context) AnalyticsWorkspaceArrayOutput
- type AnalyticsWorkspaceInput
- type AnalyticsWorkspaceMap
- type AnalyticsWorkspaceMapInput
- type AnalyticsWorkspaceMapOutput
- func (AnalyticsWorkspaceMapOutput) ElementType() reflect.Type
- func (o AnalyticsWorkspaceMapOutput) MapIndex(k pulumi.StringInput) AnalyticsWorkspaceOutput
- func (o AnalyticsWorkspaceMapOutput) ToAnalyticsWorkspaceMapOutput() AnalyticsWorkspaceMapOutput
- func (o AnalyticsWorkspaceMapOutput) ToAnalyticsWorkspaceMapOutputWithContext(ctx context.Context) AnalyticsWorkspaceMapOutput
- type AnalyticsWorkspaceOutput
- func (o AnalyticsWorkspaceOutput) DailyQuotaGb() pulumi.Float64PtrOutput
- func (AnalyticsWorkspaceOutput) ElementType() reflect.Type
- func (o AnalyticsWorkspaceOutput) InternetIngestionEnabled() pulumi.BoolPtrOutput
- func (o AnalyticsWorkspaceOutput) InternetQueryEnabled() pulumi.BoolPtrOutput
- func (o AnalyticsWorkspaceOutput) Location() pulumi.StringOutput
- func (o AnalyticsWorkspaceOutput) Name() pulumi.StringOutput
- func (o AnalyticsWorkspaceOutput) PrimarySharedKey() pulumi.StringOutput
- func (o AnalyticsWorkspaceOutput) ReservationCapacityInGbPerDay() pulumi.IntOutput
- func (o AnalyticsWorkspaceOutput) ResourceGroupName() pulumi.StringOutput
- func (o AnalyticsWorkspaceOutput) RetentionInDays() pulumi.IntOutput
- func (o AnalyticsWorkspaceOutput) SecondarySharedKey() pulumi.StringOutput
- func (o AnalyticsWorkspaceOutput) Sku() pulumi.StringPtrOutput
- func (o AnalyticsWorkspaceOutput) Tags() pulumi.StringMapOutput
- func (o AnalyticsWorkspaceOutput) ToAnalyticsWorkspaceOutput() AnalyticsWorkspaceOutput
- func (o AnalyticsWorkspaceOutput) ToAnalyticsWorkspaceOutputWithContext(ctx context.Context) AnalyticsWorkspaceOutput
- func (o AnalyticsWorkspaceOutput) WorkspaceId() pulumi.StringOutput
- type AnalyticsWorkspaceState
- type LookupAnalyticsWorkspaceArgs
- type LookupAnalyticsWorkspaceOutputArgs
- type LookupAnalyticsWorkspaceResult
- type LookupAnalyticsWorkspaceResultOutput
- func (o LookupAnalyticsWorkspaceResultOutput) DailyQuotaGb() pulumi.Float64Output
- func (LookupAnalyticsWorkspaceResultOutput) ElementType() reflect.Type
- func (o LookupAnalyticsWorkspaceResultOutput) Id() pulumi.StringOutput
- func (o LookupAnalyticsWorkspaceResultOutput) Location() pulumi.StringOutput
- func (o LookupAnalyticsWorkspaceResultOutput) Name() pulumi.StringOutput
- func (o LookupAnalyticsWorkspaceResultOutput) PrimarySharedKey() pulumi.StringOutput
- func (o LookupAnalyticsWorkspaceResultOutput) ResourceGroupName() pulumi.StringOutput
- func (o LookupAnalyticsWorkspaceResultOutput) RetentionInDays() pulumi.IntOutput
- func (o LookupAnalyticsWorkspaceResultOutput) SecondarySharedKey() pulumi.StringOutput
- func (o LookupAnalyticsWorkspaceResultOutput) Sku() pulumi.StringOutput
- func (o LookupAnalyticsWorkspaceResultOutput) Tags() pulumi.StringMapOutput
- func (o LookupAnalyticsWorkspaceResultOutput) ToLookupAnalyticsWorkspaceResultOutput() LookupAnalyticsWorkspaceResultOutput
- func (o LookupAnalyticsWorkspaceResultOutput) ToLookupAnalyticsWorkspaceResultOutputWithContext(ctx context.Context) LookupAnalyticsWorkspaceResultOutput
- func (o LookupAnalyticsWorkspaceResultOutput) WorkspaceId() pulumi.StringOutput
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/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/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/operationalinsights" "github.com/pulumi/pulumi-random/sdk/v4/go/random" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } _, err = random.NewRandomId(ctx, "workspace", &random.RandomIdArgs{ Keepers: pulumi.AnyMap{ "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 }) }
```
## Import
Log Analytics Solutions can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:operationalinsights/analyticsSolution:AnalyticsSolution solution1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.OperationsManagement/solutions/solution1
```
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.
func (*AnalyticsSolution) ElementType ¶
func (*AnalyticsSolution) ElementType() reflect.Type
func (*AnalyticsSolution) ToAnalyticsSolutionOutput ¶
func (i *AnalyticsSolution) ToAnalyticsSolutionOutput() AnalyticsSolutionOutput
func (*AnalyticsSolution) ToAnalyticsSolutionOutputWithContext ¶
func (i *AnalyticsSolution) ToAnalyticsSolutionOutputWithContext(ctx context.Context) AnalyticsSolutionOutput
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/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 AnalyticsSolutionArray ¶
type AnalyticsSolutionArray []AnalyticsSolutionInput
func (AnalyticsSolutionArray) ElementType ¶
func (AnalyticsSolutionArray) ElementType() reflect.Type
func (AnalyticsSolutionArray) ToAnalyticsSolutionArrayOutput ¶
func (i AnalyticsSolutionArray) ToAnalyticsSolutionArrayOutput() AnalyticsSolutionArrayOutput
func (AnalyticsSolutionArray) ToAnalyticsSolutionArrayOutputWithContext ¶
func (i AnalyticsSolutionArray) ToAnalyticsSolutionArrayOutputWithContext(ctx context.Context) AnalyticsSolutionArrayOutput
type AnalyticsSolutionArrayInput ¶
type AnalyticsSolutionArrayInput interface { pulumi.Input ToAnalyticsSolutionArrayOutput() AnalyticsSolutionArrayOutput ToAnalyticsSolutionArrayOutputWithContext(context.Context) AnalyticsSolutionArrayOutput }
AnalyticsSolutionArrayInput is an input type that accepts AnalyticsSolutionArray and AnalyticsSolutionArrayOutput values. You can construct a concrete instance of `AnalyticsSolutionArrayInput` via:
AnalyticsSolutionArray{ AnalyticsSolutionArgs{...} }
type AnalyticsSolutionArrayOutput ¶
type AnalyticsSolutionArrayOutput struct{ *pulumi.OutputState }
func (AnalyticsSolutionArrayOutput) ElementType ¶
func (AnalyticsSolutionArrayOutput) ElementType() reflect.Type
func (AnalyticsSolutionArrayOutput) Index ¶
func (o AnalyticsSolutionArrayOutput) Index(i pulumi.IntInput) AnalyticsSolutionOutput
func (AnalyticsSolutionArrayOutput) ToAnalyticsSolutionArrayOutput ¶
func (o AnalyticsSolutionArrayOutput) ToAnalyticsSolutionArrayOutput() AnalyticsSolutionArrayOutput
func (AnalyticsSolutionArrayOutput) ToAnalyticsSolutionArrayOutputWithContext ¶
func (o AnalyticsSolutionArrayOutput) ToAnalyticsSolutionArrayOutputWithContext(ctx context.Context) AnalyticsSolutionArrayOutput
type AnalyticsSolutionInput ¶
type AnalyticsSolutionInput interface { pulumi.Input ToAnalyticsSolutionOutput() AnalyticsSolutionOutput ToAnalyticsSolutionOutputWithContext(ctx context.Context) AnalyticsSolutionOutput }
type AnalyticsSolutionMap ¶
type AnalyticsSolutionMap map[string]AnalyticsSolutionInput
func (AnalyticsSolutionMap) ElementType ¶
func (AnalyticsSolutionMap) ElementType() reflect.Type
func (AnalyticsSolutionMap) ToAnalyticsSolutionMapOutput ¶
func (i AnalyticsSolutionMap) ToAnalyticsSolutionMapOutput() AnalyticsSolutionMapOutput
func (AnalyticsSolutionMap) ToAnalyticsSolutionMapOutputWithContext ¶
func (i AnalyticsSolutionMap) ToAnalyticsSolutionMapOutputWithContext(ctx context.Context) AnalyticsSolutionMapOutput
type AnalyticsSolutionMapInput ¶
type AnalyticsSolutionMapInput interface { pulumi.Input ToAnalyticsSolutionMapOutput() AnalyticsSolutionMapOutput ToAnalyticsSolutionMapOutputWithContext(context.Context) AnalyticsSolutionMapOutput }
AnalyticsSolutionMapInput is an input type that accepts AnalyticsSolutionMap and AnalyticsSolutionMapOutput values. You can construct a concrete instance of `AnalyticsSolutionMapInput` via:
AnalyticsSolutionMap{ "key": AnalyticsSolutionArgs{...} }
type AnalyticsSolutionMapOutput ¶
type AnalyticsSolutionMapOutput struct{ *pulumi.OutputState }
func (AnalyticsSolutionMapOutput) ElementType ¶
func (AnalyticsSolutionMapOutput) ElementType() reflect.Type
func (AnalyticsSolutionMapOutput) MapIndex ¶
func (o AnalyticsSolutionMapOutput) MapIndex(k pulumi.StringInput) AnalyticsSolutionOutput
func (AnalyticsSolutionMapOutput) ToAnalyticsSolutionMapOutput ¶
func (o AnalyticsSolutionMapOutput) ToAnalyticsSolutionMapOutput() AnalyticsSolutionMapOutput
func (AnalyticsSolutionMapOutput) ToAnalyticsSolutionMapOutputWithContext ¶
func (o AnalyticsSolutionMapOutput) ToAnalyticsSolutionMapOutputWithContext(ctx context.Context) AnalyticsSolutionMapOutput
type AnalyticsSolutionOutput ¶
type AnalyticsSolutionOutput struct{ *pulumi.OutputState }
func (AnalyticsSolutionOutput) ElementType ¶
func (AnalyticsSolutionOutput) ElementType() reflect.Type
func (AnalyticsSolutionOutput) Location ¶ added in v5.5.0
func (o AnalyticsSolutionOutput) Location() pulumi.StringOutput
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
func (AnalyticsSolutionOutput) Plan ¶ added in v5.5.0
func (o AnalyticsSolutionOutput) Plan() AnalyticsSolutionPlanOutput
A `plan` block as documented below.
func (AnalyticsSolutionOutput) ResourceGroupName ¶ added in v5.5.0
func (o AnalyticsSolutionOutput) ResourceGroupName() pulumi.StringOutput
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.
func (AnalyticsSolutionOutput) SolutionName ¶ added in v5.5.0
func (o AnalyticsSolutionOutput) SolutionName() pulumi.StringOutput
Specifies the name of the solution to be deployed. See [here for options](https://docs.microsoft.com/azure/log-analytics/log-analytics-add-solutions).Changing this forces a new resource to be created.
func (AnalyticsSolutionOutput) Tags ¶ added in v5.5.0
func (o AnalyticsSolutionOutput) Tags() pulumi.StringMapOutput
A mapping of tags to assign to the resource.
func (AnalyticsSolutionOutput) ToAnalyticsSolutionOutput ¶
func (o AnalyticsSolutionOutput) ToAnalyticsSolutionOutput() AnalyticsSolutionOutput
func (AnalyticsSolutionOutput) ToAnalyticsSolutionOutputWithContext ¶
func (o AnalyticsSolutionOutput) ToAnalyticsSolutionOutputWithContext(ctx context.Context) AnalyticsSolutionOutput
func (AnalyticsSolutionOutput) WorkspaceName ¶ added in v5.5.0
func (o AnalyticsSolutionOutput) WorkspaceName() pulumi.StringOutput
The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
func (AnalyticsSolutionOutput) WorkspaceResourceId ¶ added in v5.5.0
func (o AnalyticsSolutionOutput) WorkspaceResourceId() pulumi.StringOutput
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.
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/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) if omitted. DailyQuotaGb pulumi.Float64PtrOutput `pulumi:"dailyQuotaGb"` InternetIngestionEnabled pulumi.BoolPtrOutput `pulumi:"internetIngestionEnabled"` // Should the Log Analytics Workflow support querying over the Public Internet? Defaults to `true`. InternetQueryEnabled pulumi.BoolPtrOutput `pulumi:"internetQueryEnabled"` // 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"` PrimarySharedKey pulumi.StringOutput `pulumi:"primarySharedKey"` // The capacity reservation level in GB for this workspace. Must be in increments of 100 between 100 and 5000. ReservationCapacityInGbPerDay pulumi.IntOutput `pulumi:"reservationCapacityInGbPerDay"` // 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`, `CapacityReservation`, 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/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/operationalinsights" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) 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 }) }
```
## Import
Log Analytics Workspaces can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:operationalinsights/analyticsWorkspace:AnalyticsWorkspace workspace1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.OperationalInsights/workspaces/workspace1
```
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.
func (*AnalyticsWorkspace) ElementType ¶
func (*AnalyticsWorkspace) ElementType() reflect.Type
func (*AnalyticsWorkspace) ToAnalyticsWorkspaceOutput ¶
func (i *AnalyticsWorkspace) ToAnalyticsWorkspaceOutput() AnalyticsWorkspaceOutput
func (*AnalyticsWorkspace) ToAnalyticsWorkspaceOutputWithContext ¶
func (i *AnalyticsWorkspace) ToAnalyticsWorkspaceOutputWithContext(ctx context.Context) AnalyticsWorkspaceOutput
type AnalyticsWorkspaceArgs ¶
type AnalyticsWorkspaceArgs struct { // The workspace daily quota for ingestion in GB. Defaults to -1 (unlimited) if omitted. DailyQuotaGb pulumi.Float64PtrInput InternetIngestionEnabled pulumi.BoolPtrInput // Should the Log Analytics Workflow support querying over the Public Internet? Defaults to `true`. InternetQueryEnabled pulumi.BoolPtrInput // 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 capacity reservation level in GB for this workspace. Must be in increments of 100 between 100 and 5000. ReservationCapacityInGbPerDay pulumi.IntPtrInput // 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`, `CapacityReservation`, 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 AnalyticsWorkspaceArray ¶
type AnalyticsWorkspaceArray []AnalyticsWorkspaceInput
func (AnalyticsWorkspaceArray) ElementType ¶
func (AnalyticsWorkspaceArray) ElementType() reflect.Type
func (AnalyticsWorkspaceArray) ToAnalyticsWorkspaceArrayOutput ¶
func (i AnalyticsWorkspaceArray) ToAnalyticsWorkspaceArrayOutput() AnalyticsWorkspaceArrayOutput
func (AnalyticsWorkspaceArray) ToAnalyticsWorkspaceArrayOutputWithContext ¶
func (i AnalyticsWorkspaceArray) ToAnalyticsWorkspaceArrayOutputWithContext(ctx context.Context) AnalyticsWorkspaceArrayOutput
type AnalyticsWorkspaceArrayInput ¶
type AnalyticsWorkspaceArrayInput interface { pulumi.Input ToAnalyticsWorkspaceArrayOutput() AnalyticsWorkspaceArrayOutput ToAnalyticsWorkspaceArrayOutputWithContext(context.Context) AnalyticsWorkspaceArrayOutput }
AnalyticsWorkspaceArrayInput is an input type that accepts AnalyticsWorkspaceArray and AnalyticsWorkspaceArrayOutput values. You can construct a concrete instance of `AnalyticsWorkspaceArrayInput` via:
AnalyticsWorkspaceArray{ AnalyticsWorkspaceArgs{...} }
type AnalyticsWorkspaceArrayOutput ¶
type AnalyticsWorkspaceArrayOutput struct{ *pulumi.OutputState }
func (AnalyticsWorkspaceArrayOutput) ElementType ¶
func (AnalyticsWorkspaceArrayOutput) ElementType() reflect.Type
func (AnalyticsWorkspaceArrayOutput) Index ¶
func (o AnalyticsWorkspaceArrayOutput) Index(i pulumi.IntInput) AnalyticsWorkspaceOutput
func (AnalyticsWorkspaceArrayOutput) ToAnalyticsWorkspaceArrayOutput ¶
func (o AnalyticsWorkspaceArrayOutput) ToAnalyticsWorkspaceArrayOutput() AnalyticsWorkspaceArrayOutput
func (AnalyticsWorkspaceArrayOutput) ToAnalyticsWorkspaceArrayOutputWithContext ¶
func (o AnalyticsWorkspaceArrayOutput) ToAnalyticsWorkspaceArrayOutputWithContext(ctx context.Context) AnalyticsWorkspaceArrayOutput
type AnalyticsWorkspaceInput ¶
type AnalyticsWorkspaceInput interface { pulumi.Input ToAnalyticsWorkspaceOutput() AnalyticsWorkspaceOutput ToAnalyticsWorkspaceOutputWithContext(ctx context.Context) AnalyticsWorkspaceOutput }
type AnalyticsWorkspaceMap ¶
type AnalyticsWorkspaceMap map[string]AnalyticsWorkspaceInput
func (AnalyticsWorkspaceMap) ElementType ¶
func (AnalyticsWorkspaceMap) ElementType() reflect.Type
func (AnalyticsWorkspaceMap) ToAnalyticsWorkspaceMapOutput ¶
func (i AnalyticsWorkspaceMap) ToAnalyticsWorkspaceMapOutput() AnalyticsWorkspaceMapOutput
func (AnalyticsWorkspaceMap) ToAnalyticsWorkspaceMapOutputWithContext ¶
func (i AnalyticsWorkspaceMap) ToAnalyticsWorkspaceMapOutputWithContext(ctx context.Context) AnalyticsWorkspaceMapOutput
type AnalyticsWorkspaceMapInput ¶
type AnalyticsWorkspaceMapInput interface { pulumi.Input ToAnalyticsWorkspaceMapOutput() AnalyticsWorkspaceMapOutput ToAnalyticsWorkspaceMapOutputWithContext(context.Context) AnalyticsWorkspaceMapOutput }
AnalyticsWorkspaceMapInput is an input type that accepts AnalyticsWorkspaceMap and AnalyticsWorkspaceMapOutput values. You can construct a concrete instance of `AnalyticsWorkspaceMapInput` via:
AnalyticsWorkspaceMap{ "key": AnalyticsWorkspaceArgs{...} }
type AnalyticsWorkspaceMapOutput ¶
type AnalyticsWorkspaceMapOutput struct{ *pulumi.OutputState }
func (AnalyticsWorkspaceMapOutput) ElementType ¶
func (AnalyticsWorkspaceMapOutput) ElementType() reflect.Type
func (AnalyticsWorkspaceMapOutput) MapIndex ¶
func (o AnalyticsWorkspaceMapOutput) MapIndex(k pulumi.StringInput) AnalyticsWorkspaceOutput
func (AnalyticsWorkspaceMapOutput) ToAnalyticsWorkspaceMapOutput ¶
func (o AnalyticsWorkspaceMapOutput) ToAnalyticsWorkspaceMapOutput() AnalyticsWorkspaceMapOutput
func (AnalyticsWorkspaceMapOutput) ToAnalyticsWorkspaceMapOutputWithContext ¶
func (o AnalyticsWorkspaceMapOutput) ToAnalyticsWorkspaceMapOutputWithContext(ctx context.Context) AnalyticsWorkspaceMapOutput
type AnalyticsWorkspaceOutput ¶
type AnalyticsWorkspaceOutput struct{ *pulumi.OutputState }
func (AnalyticsWorkspaceOutput) DailyQuotaGb ¶ added in v5.5.0
func (o AnalyticsWorkspaceOutput) DailyQuotaGb() pulumi.Float64PtrOutput
The workspace daily quota for ingestion in GB. Defaults to -1 (unlimited) if omitted.
func (AnalyticsWorkspaceOutput) ElementType ¶
func (AnalyticsWorkspaceOutput) ElementType() reflect.Type
func (AnalyticsWorkspaceOutput) InternetIngestionEnabled ¶ added in v5.5.0
func (o AnalyticsWorkspaceOutput) InternetIngestionEnabled() pulumi.BoolPtrOutput
func (AnalyticsWorkspaceOutput) InternetQueryEnabled ¶ added in v5.5.0
func (o AnalyticsWorkspaceOutput) InternetQueryEnabled() pulumi.BoolPtrOutput
Should the Log Analytics Workflow support querying over the Public Internet? Defaults to `true`.
func (AnalyticsWorkspaceOutput) Location ¶ added in v5.5.0
func (o AnalyticsWorkspaceOutput) Location() pulumi.StringOutput
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
func (AnalyticsWorkspaceOutput) Name ¶ added in v5.5.0
func (o AnalyticsWorkspaceOutput) Name() pulumi.StringOutput
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.
func (AnalyticsWorkspaceOutput) PrimarySharedKey ¶ added in v5.5.0
func (o AnalyticsWorkspaceOutput) PrimarySharedKey() pulumi.StringOutput
The Primary shared key for the Log Analytics Workspace.
func (AnalyticsWorkspaceOutput) ReservationCapacityInGbPerDay ¶ added in v5.5.0
func (o AnalyticsWorkspaceOutput) ReservationCapacityInGbPerDay() pulumi.IntOutput
The capacity reservation level in GB for this workspace. Must be in increments of 100 between 100 and 5000.
func (AnalyticsWorkspaceOutput) ResourceGroupName ¶ added in v5.5.0
func (o AnalyticsWorkspaceOutput) ResourceGroupName() pulumi.StringOutput
The name of the resource group in which the Log Analytics workspace is created. Changing this forces a new resource to be created.
func (AnalyticsWorkspaceOutput) RetentionInDays ¶ added in v5.5.0
func (o AnalyticsWorkspaceOutput) RetentionInDays() pulumi.IntOutput
The workspace data retention in days. Possible values are either 7 (Free Tier only) or range between 30 and 730.
func (AnalyticsWorkspaceOutput) SecondarySharedKey ¶ added in v5.5.0
func (o AnalyticsWorkspaceOutput) SecondarySharedKey() pulumi.StringOutput
The Secondary shared key for the Log Analytics Workspace.
func (AnalyticsWorkspaceOutput) Sku ¶ added in v5.5.0
func (o AnalyticsWorkspaceOutput) Sku() pulumi.StringPtrOutput
Specifies the SKU of the Log Analytics Workspace. Possible values are `Free`, `PerNode`, `Premium`, `Standard`, `Standalone`, `Unlimited`, `CapacityReservation`, and `PerGB2018` (new SKU as of `2018-04-03`). Defaults to `PerGB2018`.
func (AnalyticsWorkspaceOutput) Tags ¶ added in v5.5.0
func (o AnalyticsWorkspaceOutput) Tags() pulumi.StringMapOutput
A mapping of tags to assign to the resource.
func (AnalyticsWorkspaceOutput) ToAnalyticsWorkspaceOutput ¶
func (o AnalyticsWorkspaceOutput) ToAnalyticsWorkspaceOutput() AnalyticsWorkspaceOutput
func (AnalyticsWorkspaceOutput) ToAnalyticsWorkspaceOutputWithContext ¶
func (o AnalyticsWorkspaceOutput) ToAnalyticsWorkspaceOutputWithContext(ctx context.Context) AnalyticsWorkspaceOutput
func (AnalyticsWorkspaceOutput) WorkspaceId ¶ added in v5.5.0
func (o AnalyticsWorkspaceOutput) WorkspaceId() pulumi.StringOutput
The Workspace (or Customer) ID for the Log Analytics Workspace.
type AnalyticsWorkspaceState ¶
type AnalyticsWorkspaceState struct { // The workspace daily quota for ingestion in GB. Defaults to -1 (unlimited) if omitted. DailyQuotaGb pulumi.Float64PtrInput InternetIngestionEnabled pulumi.BoolPtrInput // Should the Log Analytics Workflow support querying over the Public Internet? Defaults to `true`. InternetQueryEnabled pulumi.BoolPtrInput // 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 PrimarySharedKey pulumi.StringPtrInput // The capacity reservation level in GB for this workspace. Must be in increments of 100 between 100 and 5000. ReservationCapacityInGbPerDay pulumi.IntPtrInput // 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`, `CapacityReservation`, 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 LookupAnalyticsWorkspaceOutputArgs ¶
type LookupAnalyticsWorkspaceOutputArgs struct { // Specifies the name of the Log Analytics Workspace. Name pulumi.StringInput `pulumi:"name"` // The name of the resource group in which the Log Analytics workspace is located in. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getAnalyticsWorkspace.
func (LookupAnalyticsWorkspaceOutputArgs) ElementType ¶
func (LookupAnalyticsWorkspaceOutputArgs) ElementType() reflect.Type
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"` // 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/v5/go/azure/operationalinsights" "github.com/pulumi/pulumi/sdk/v3/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 }) }
```
type LookupAnalyticsWorkspaceResultOutput ¶
type LookupAnalyticsWorkspaceResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getAnalyticsWorkspace.
func LookupAnalyticsWorkspaceOutput ¶
func LookupAnalyticsWorkspaceOutput(ctx *pulumi.Context, args LookupAnalyticsWorkspaceOutputArgs, opts ...pulumi.InvokeOption) LookupAnalyticsWorkspaceResultOutput
func (LookupAnalyticsWorkspaceResultOutput) DailyQuotaGb ¶
func (o LookupAnalyticsWorkspaceResultOutput) DailyQuotaGb() pulumi.Float64Output
The workspace daily quota for ingestion in GB.
func (LookupAnalyticsWorkspaceResultOutput) ElementType ¶
func (LookupAnalyticsWorkspaceResultOutput) ElementType() reflect.Type
func (LookupAnalyticsWorkspaceResultOutput) Id ¶
func (o LookupAnalyticsWorkspaceResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupAnalyticsWorkspaceResultOutput) Location ¶
func (o LookupAnalyticsWorkspaceResultOutput) Location() pulumi.StringOutput
func (LookupAnalyticsWorkspaceResultOutput) Name ¶
func (o LookupAnalyticsWorkspaceResultOutput) Name() pulumi.StringOutput
func (LookupAnalyticsWorkspaceResultOutput) PrimarySharedKey ¶
func (o LookupAnalyticsWorkspaceResultOutput) PrimarySharedKey() pulumi.StringOutput
The Primary shared key for the Log Analytics Workspace.
func (LookupAnalyticsWorkspaceResultOutput) ResourceGroupName ¶
func (o LookupAnalyticsWorkspaceResultOutput) ResourceGroupName() pulumi.StringOutput
func (LookupAnalyticsWorkspaceResultOutput) RetentionInDays ¶
func (o LookupAnalyticsWorkspaceResultOutput) RetentionInDays() pulumi.IntOutput
The workspace data retention in days.
func (LookupAnalyticsWorkspaceResultOutput) SecondarySharedKey ¶
func (o LookupAnalyticsWorkspaceResultOutput) SecondarySharedKey() pulumi.StringOutput
The Secondary shared key for the Log Analytics Workspace.
func (LookupAnalyticsWorkspaceResultOutput) Sku ¶
func (o LookupAnalyticsWorkspaceResultOutput) Sku() pulumi.StringOutput
The SKU of the Log Analytics Workspace.
func (LookupAnalyticsWorkspaceResultOutput) Tags ¶
func (o LookupAnalyticsWorkspaceResultOutput) Tags() pulumi.StringMapOutput
A mapping of tags assigned to the resource.
func (LookupAnalyticsWorkspaceResultOutput) ToLookupAnalyticsWorkspaceResultOutput ¶
func (o LookupAnalyticsWorkspaceResultOutput) ToLookupAnalyticsWorkspaceResultOutput() LookupAnalyticsWorkspaceResultOutput
func (LookupAnalyticsWorkspaceResultOutput) ToLookupAnalyticsWorkspaceResultOutputWithContext ¶
func (o LookupAnalyticsWorkspaceResultOutput) ToLookupAnalyticsWorkspaceResultOutputWithContext(ctx context.Context) LookupAnalyticsWorkspaceResultOutput
func (LookupAnalyticsWorkspaceResultOutput) WorkspaceId ¶
func (o LookupAnalyticsWorkspaceResultOutput) WorkspaceId() pulumi.StringOutput
The Workspace (or Customer) ID for the Log Analytics Workspace.