operationalinsights

package
v4.42.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

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/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/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/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 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) Index

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 (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) ToAnalyticsSolutionOutput

func (o AnalyticsSolutionOutput) ToAnalyticsSolutionOutput() AnalyticsSolutionOutput

func (AnalyticsSolutionOutput) ToAnalyticsSolutionOutputWithContext

func (o AnalyticsSolutionOutput) ToAnalyticsSolutionOutputWithContext(ctx context.Context) AnalyticsSolutionOutput

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) Name

func (AnalyticsSolutionPlanOutput) Product

The product name of the solution. For example `OMSGallery/Containers`. Changing this forces a new resource to be created.

func (AnalyticsSolutionPlanOutput) PromotionCode

A promotion code to be used with the solution.

func (AnalyticsSolutionPlanOutput) Publisher

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

type AnalyticsSolutionPlanPtrOutput

type AnalyticsSolutionPlanPtrOutput struct{ *pulumi.OutputState }

func (AnalyticsSolutionPlanPtrOutput) Elem

func (AnalyticsSolutionPlanPtrOutput) ElementType

func (AnalyticsSolutionPlanPtrOutput) Name

func (AnalyticsSolutionPlanPtrOutput) Product

The product name of the solution. For example `OMSGallery/Containers`. Changing this forces a new resource to be created.

func (AnalyticsSolutionPlanPtrOutput) PromotionCode

A promotion code to be used with the solution.

func (AnalyticsSolutionPlanPtrOutput) Publisher

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) 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"`
	// 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"`
	// The Primary shared key for the Log Analytics Workspace.
	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"`
	// Deprecated: As this property name contained a typo originally, please switch to using 'reservation_capacity_in_gb_per_day' instead.
	ReservationCapcityInGbPerDay pulumi.IntOutput `pulumi:"reservationCapcityInGbPerDay"`
	// 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"`
	// The Secondary shared key for the Log Analytics Workspace.
	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/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/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
	// Deprecated: As this property name contained a typo originally, please switch to using 'reservation_capacity_in_gb_per_day' instead.
	ReservationCapcityInGbPerDay 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) Index

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) MapIndex

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) ElementType

func (AnalyticsWorkspaceOutput) ElementType() reflect.Type

func (AnalyticsWorkspaceOutput) ToAnalyticsWorkspaceOutput

func (o AnalyticsWorkspaceOutput) ToAnalyticsWorkspaceOutput() AnalyticsWorkspaceOutput

func (AnalyticsWorkspaceOutput) ToAnalyticsWorkspaceOutputWithContext

func (o AnalyticsWorkspaceOutput) ToAnalyticsWorkspaceOutputWithContext(ctx context.Context) AnalyticsWorkspaceOutput

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
	// Deprecated: this property has been removed from the API and will be removed in version 3.0 of the provider
	PortalUrl pulumi.StringPtrInput
	// The Primary shared key for the Log Analytics Workspace.
	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
	// Deprecated: As this property name contained a typo originally, please switch to using 'reservation_capacity_in_gb_per_day' instead.
	ReservationCapcityInGbPerDay 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
	// The Secondary shared key for the Log Analytics Workspace.
	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 added in v4.20.0

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 added in v4.20.0

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.
	PrimarySharedKey  string `pulumi:"primarySharedKey"`
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// The workspace data retention in days.
	RetentionInDays int `pulumi:"retentionInDays"`
	// The Secondary shared key for the Log Analytics Workspace.
	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/v4/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 added in v4.20.0

type LookupAnalyticsWorkspaceResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAnalyticsWorkspace.

func (LookupAnalyticsWorkspaceResultOutput) DailyQuotaGb added in v4.20.0

The workspace daily quota for ingestion in GB.

func (LookupAnalyticsWorkspaceResultOutput) ElementType added in v4.20.0

func (LookupAnalyticsWorkspaceResultOutput) Id added in v4.20.0

The provider-assigned unique ID for this managed resource.

func (LookupAnalyticsWorkspaceResultOutput) Location added in v4.20.0

func (LookupAnalyticsWorkspaceResultOutput) Name added in v4.20.0

func (LookupAnalyticsWorkspaceResultOutput) PortalUrl deprecated added in v4.20.0

Deprecated: this property has been removed from the API and will be removed in version 3.0 of the provider

func (LookupAnalyticsWorkspaceResultOutput) PrimarySharedKey added in v4.20.0

The Primary shared key for the Log Analytics Workspace.

func (LookupAnalyticsWorkspaceResultOutput) ResourceGroupName added in v4.20.0

func (LookupAnalyticsWorkspaceResultOutput) RetentionInDays added in v4.20.0

The workspace data retention in days.

func (LookupAnalyticsWorkspaceResultOutput) SecondarySharedKey added in v4.20.0

The Secondary shared key for the Log Analytics Workspace.

func (LookupAnalyticsWorkspaceResultOutput) Sku added in v4.20.0

The Sku of the Log Analytics Workspace.

func (LookupAnalyticsWorkspaceResultOutput) Tags added in v4.20.0

A mapping of tags assigned to the resource.

func (LookupAnalyticsWorkspaceResultOutput) ToLookupAnalyticsWorkspaceResultOutput added in v4.20.0

func (o LookupAnalyticsWorkspaceResultOutput) ToLookupAnalyticsWorkspaceResultOutput() LookupAnalyticsWorkspaceResultOutput

func (LookupAnalyticsWorkspaceResultOutput) ToLookupAnalyticsWorkspaceResultOutputWithContext added in v4.20.0

func (o LookupAnalyticsWorkspaceResultOutput) ToLookupAnalyticsWorkspaceResultOutputWithContext(ctx context.Context) LookupAnalyticsWorkspaceResultOutput

func (LookupAnalyticsWorkspaceResultOutput) WorkspaceId added in v4.20.0

The Workspace (or Customer) ID for the Log Analytics Workspace.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL