-
Notifications
You must be signed in to change notification settings - Fork 50
/
getAnalyticsWorkspace.go
52 lines (47 loc) · 2.23 KB
/
getAnalyticsWorkspace.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
// nolint: lll
package operationalinsights
import (
"github.com/pulumi/pulumi/sdk/go/pulumi"
)
// Use this data source to access information about an existing Log Analytics (formally Operational Insights) Workspace.
//
// > This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/d/log_analytics_workspace.html.markdown.
func LookupAnalyticsWorkspace(ctx *pulumi.Context, args *LookupAnalyticsWorkspaceArgs, opts ...pulumi.InvokeOption) (*LookupAnalyticsWorkspaceResult, error) {
var rv LookupAnalyticsWorkspaceResult
err := ctx.Invoke("azure:operationalinsights/getAnalyticsWorkspace:getAnalyticsWorkspace", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getAnalyticsWorkspace.
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 values returned by getAnalyticsWorkspace.
type LookupAnalyticsWorkspaceResult struct {
// id is the provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
Location string `pulumi:"location"`
Name string `pulumi:"name"`
// The Portal URL for the Log Analytics Workspace.
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"`
}