This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
getAccessPolicy.go
42 lines (37 loc) · 1.7 KB
/
getAccessPolicy.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
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20200515
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupAccessPolicy(ctx *pulumi.Context, args *LookupAccessPolicyArgs, opts ...pulumi.InvokeOption) (*LookupAccessPolicyResult, error) {
var rv LookupAccessPolicyResult
err := ctx.Invoke("azure-nextgen:timeseriesinsights/v20200515:getAccessPolicy", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupAccessPolicyArgs struct {
// The name of the Time Series Insights access policy associated with the specified environment.
AccessPolicyName string `pulumi:"accessPolicyName"`
// The name of the Time Series Insights environment associated with the specified resource group.
EnvironmentName string `pulumi:"environmentName"`
// Name of an Azure Resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// An access policy is used to grant users and applications access to the environment. Roles are assigned to service principals in Azure Active Directory. These roles define the actions the principal can perform through the Time Series Insights data plane APIs.
type LookupAccessPolicyResult struct {
// An description of the access policy.
Description *string `pulumi:"description"`
// Resource Id
Id string `pulumi:"id"`
// Resource name
Name string `pulumi:"name"`
// The objectId of the principal in Azure Active Directory.
PrincipalObjectId *string `pulumi:"principalObjectId"`
// The list of roles the principal is assigned on the environment.
Roles []string `pulumi:"roles"`
// Resource type
Type string `pulumi:"type"`
}