-
Notifications
You must be signed in to change notification settings - Fork 51
/
getAnalyticsWorkspace.go
61 lines (56 loc) · 2.17 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
53
54
55
56
57
58
59
60
61
// *** 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! ***
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.
func LookupAnalyticsWorkspace(ctx *pulumi.Context, args *GetAnalyticsWorkspaceArgs) (*GetAnalyticsWorkspaceResult, error) {
inputs := make(map[string]interface{})
if args != nil {
inputs["name"] = args.Name
inputs["resourceGroupName"] = args.ResourceGroupName
}
outputs, err := ctx.Invoke("azure:operationalinsights/getAnalyticsWorkspace:getAnalyticsWorkspace", inputs)
if err != nil {
return nil, err
}
return &GetAnalyticsWorkspaceResult{
Location: outputs["location"],
PortalUrl: outputs["portalUrl"],
PrimarySharedKey: outputs["primarySharedKey"],
RetentionInDays: outputs["retentionInDays"],
SecondarySharedKey: outputs["secondarySharedKey"],
Sku: outputs["sku"],
Tags: outputs["tags"],
WorkspaceId: outputs["workspaceId"],
Id: outputs["id"],
}, nil
}
// A collection of arguments for invoking getAnalyticsWorkspace.
type GetAnalyticsWorkspaceArgs struct {
// Specifies the name of the Log Analytics Workspace.
Name interface{}
// The name of the resource group in which the Log Analytics workspace is located in.
ResourceGroupName interface{}
}
// A collection of values returned by getAnalyticsWorkspace.
type GetAnalyticsWorkspaceResult struct {
Location interface{}
// The Portal URL for the Log Analytics Workspace.
PortalUrl interface{}
// The Primary shared key for the Log Analytics Workspace.
PrimarySharedKey interface{}
// The workspace data retention in days.
RetentionInDays interface{}
// The Secondary shared key for the Log Analytics Workspace.
SecondarySharedKey interface{}
// The Sku of the Log Analytics Workspace.
Sku interface{}
// A mapping of tags assigned to the resource.
Tags interface{}
// The Workspace (or Customer) ID for the Log Analytics Workspace.
WorkspaceId interface{}
// id is the provider-assigned unique ID for this managed resource.
Id interface{}
}