This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getHierarchySetting.go
38 lines (33 loc) · 1.98 KB
/
getHierarchySetting.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
// *** 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 v20200201
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupHierarchySetting(ctx *pulumi.Context, args *LookupHierarchySettingArgs, opts ...pulumi.InvokeOption) (*LookupHierarchySettingResult, error) {
var rv LookupHierarchySettingResult
err := ctx.Invoke("azure-nextgen:management/v20200201:getHierarchySetting", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupHierarchySettingArgs struct {
// Management Group ID.
GroupId string `pulumi:"groupId"`
}
// Settings defined at the Management Group scope.
type LookupHierarchySettingResult struct {
// Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup
DefaultManagementGroup *string `pulumi:"defaultManagementGroup"`
// The fully qualified ID for the settings object. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/settings/default.
Id string `pulumi:"id"`
// The name of the object. In this case, default.
Name string `pulumi:"name"`
// Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access.
RequireAuthorizationForGroupCreation *bool `pulumi:"requireAuthorizationForGroupCreation"`
// The AAD Tenant ID associated with the hierarchy settings. For example, 00000000-0000-0000-0000-000000000000
TenantId *string `pulumi:"tenantId"`
// The type of the resource. For example, Microsoft.Management/managementGroups/settings.
Type string `pulumi:"type"`
}