managementgroups

package
v4.6.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LookupManagementGroupArgs

type LookupManagementGroupArgs struct {
	// Specifies the display name of this Management Group.
	DisplayName *string `pulumi:"displayName"`
	// Specifies the name or UUID of this Management Group.
	//
	// Deprecated: Deprecated in favour of `name`
	GroupId *string `pulumi:"groupId"`
	// Specifies the name or UUID of this Management Group.
	Name *string `pulumi:"name"`
}

A collection of arguments for invoking getManagementGroup.

type LookupManagementGroupResult

type LookupManagementGroupResult struct {
	DisplayName string `pulumi:"displayName"`
	// Deprecated: Deprecated in favour of `name`
	GroupId string `pulumi:"groupId"`
	// The provider-assigned unique ID for this managed resource.
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
	// The ID of any Parent Management Group.
	ParentManagementGroupId string `pulumi:"parentManagementGroupId"`
	// A list of Subscription IDs which are assigned to the Management Group.
	SubscriptionIds []string `pulumi:"subscriptionIds"`
}

A collection of values returned by getManagementGroup.

func LookupManagementGroup deprecated

func LookupManagementGroup(ctx *pulumi.Context, args *LookupManagementGroupArgs, opts ...pulumi.InvokeOption) (*LookupManagementGroupResult, error)

Use this data source to access information about an existing Management Group.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/management"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "00000000-0000-0000-0000-000000000000"
		example, err := management.LookupGroup(ctx, &management.LookupGroupArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("displayName", example.DisplayName)
		return nil
	})
}

```

Deprecated: azure.managementgroups.getManagementGroup has been deprecated in favor of azure.management.getGroup

type ManagementGroup deprecated

type ManagementGroup struct {
	pulumi.CustomResourceState

	// A friendly name for this Management Group. If not specified, this'll be the same as the `name`.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// The name or UUID for this Management Group, which needs to be unique across your tenant. A new UUID will be generated if not provided. Changing this forces a new resource to be created.
	//
	// Deprecated: Deprecated in favour of `name`
	GroupId pulumi.StringOutput `pulumi:"groupId"`
	// The name or UUID for this Management Group, which needs to be unique across your tenant. A new UUID will be generated if not provided. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The ID of the Parent Management Group. Changing this forces a new resource to be created.
	ParentManagementGroupId pulumi.StringOutput `pulumi:"parentManagementGroupId"`
	// A list of Subscription GUIDs which should be assigned to the Management Group.
	SubscriptionIds pulumi.StringArrayOutput `pulumi:"subscriptionIds"`
}

Manages a Management Group.

!> **Note:** Configuring `subscriptionIds` is not supported when using the `management.GroupSubscriptionAssociation` resource, results will be unpredictable.

## 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/management"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		current, err := core.LookupSubscription(ctx, nil, nil)
		if err != nil {
			return err
		}
		exampleParent, err := management.NewGroup(ctx, "exampleParent", &management.GroupArgs{
			DisplayName: pulumi.String("ParentGroup"),
			SubscriptionIds: pulumi.StringArray{
				pulumi.String(current.SubscriptionId),
			},
		})
		if err != nil {
			return err
		}
		_, err = management.NewGroup(ctx, "exampleChild", &management.GroupArgs{
			DisplayName:             pulumi.String("ChildGroup"),
			ParentManagementGroupId: exampleParent.ID(),
			SubscriptionIds: pulumi.StringArray{
				pulumi.String(current.SubscriptionId),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Management Groups can be imported using the `management group resource id`, e.g.

```sh

$ pulumi import azure:managementgroups/managementGroup:ManagementGroup example /providers/Microsoft.Management/managementGroups/group1

```

Deprecated: azure.managementgroups.ManagementGroup has been deprecated in favor of azure.management.Group

func GetManagementGroup

func GetManagementGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ManagementGroupState, opts ...pulumi.ResourceOption) (*ManagementGroup, error)

GetManagementGroup gets an existing ManagementGroup 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 NewManagementGroup

func NewManagementGroup(ctx *pulumi.Context,
	name string, args *ManagementGroupArgs, opts ...pulumi.ResourceOption) (*ManagementGroup, error)

NewManagementGroup registers a new resource with the given unique name, arguments, and options.

func (*ManagementGroup) ElementType

func (*ManagementGroup) ElementType() reflect.Type

func (*ManagementGroup) ToManagementGroupOutput

func (i *ManagementGroup) ToManagementGroupOutput() ManagementGroupOutput

func (*ManagementGroup) ToManagementGroupOutputWithContext

func (i *ManagementGroup) ToManagementGroupOutputWithContext(ctx context.Context) ManagementGroupOutput

func (*ManagementGroup) ToManagementGroupPtrOutput

func (i *ManagementGroup) ToManagementGroupPtrOutput() ManagementGroupPtrOutput

func (*ManagementGroup) ToManagementGroupPtrOutputWithContext

func (i *ManagementGroup) ToManagementGroupPtrOutputWithContext(ctx context.Context) ManagementGroupPtrOutput

type ManagementGroupArgs

type ManagementGroupArgs struct {
	// A friendly name for this Management Group. If not specified, this'll be the same as the `name`.
	DisplayName pulumi.StringPtrInput
	// The name or UUID for this Management Group, which needs to be unique across your tenant. A new UUID will be generated if not provided. Changing this forces a new resource to be created.
	//
	// Deprecated: Deprecated in favour of `name`
	GroupId pulumi.StringPtrInput
	// The name or UUID for this Management Group, which needs to be unique across your tenant. A new UUID will be generated if not provided. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The ID of the Parent Management Group. Changing this forces a new resource to be created.
	ParentManagementGroupId pulumi.StringPtrInput
	// A list of Subscription GUIDs which should be assigned to the Management Group.
	SubscriptionIds pulumi.StringArrayInput
}

The set of arguments for constructing a ManagementGroup resource.

func (ManagementGroupArgs) ElementType

func (ManagementGroupArgs) ElementType() reflect.Type

type ManagementGroupArray

type ManagementGroupArray []ManagementGroupInput

func (ManagementGroupArray) ElementType

func (ManagementGroupArray) ElementType() reflect.Type

func (ManagementGroupArray) ToManagementGroupArrayOutput

func (i ManagementGroupArray) ToManagementGroupArrayOutput() ManagementGroupArrayOutput

func (ManagementGroupArray) ToManagementGroupArrayOutputWithContext

func (i ManagementGroupArray) ToManagementGroupArrayOutputWithContext(ctx context.Context) ManagementGroupArrayOutput

type ManagementGroupArrayInput

type ManagementGroupArrayInput interface {
	pulumi.Input

	ToManagementGroupArrayOutput() ManagementGroupArrayOutput
	ToManagementGroupArrayOutputWithContext(context.Context) ManagementGroupArrayOutput
}

ManagementGroupArrayInput is an input type that accepts ManagementGroupArray and ManagementGroupArrayOutput values. You can construct a concrete instance of `ManagementGroupArrayInput` via:

ManagementGroupArray{ ManagementGroupArgs{...} }

type ManagementGroupArrayOutput

type ManagementGroupArrayOutput struct{ *pulumi.OutputState }

func (ManagementGroupArrayOutput) ElementType

func (ManagementGroupArrayOutput) ElementType() reflect.Type

func (ManagementGroupArrayOutput) Index

func (ManagementGroupArrayOutput) ToManagementGroupArrayOutput

func (o ManagementGroupArrayOutput) ToManagementGroupArrayOutput() ManagementGroupArrayOutput

func (ManagementGroupArrayOutput) ToManagementGroupArrayOutputWithContext

func (o ManagementGroupArrayOutput) ToManagementGroupArrayOutputWithContext(ctx context.Context) ManagementGroupArrayOutput

type ManagementGroupInput

type ManagementGroupInput interface {
	pulumi.Input

	ToManagementGroupOutput() ManagementGroupOutput
	ToManagementGroupOutputWithContext(ctx context.Context) ManagementGroupOutput
}

type ManagementGroupMap

type ManagementGroupMap map[string]ManagementGroupInput

func (ManagementGroupMap) ElementType

func (ManagementGroupMap) ElementType() reflect.Type

func (ManagementGroupMap) ToManagementGroupMapOutput

func (i ManagementGroupMap) ToManagementGroupMapOutput() ManagementGroupMapOutput

func (ManagementGroupMap) ToManagementGroupMapOutputWithContext

func (i ManagementGroupMap) ToManagementGroupMapOutputWithContext(ctx context.Context) ManagementGroupMapOutput

type ManagementGroupMapInput

type ManagementGroupMapInput interface {
	pulumi.Input

	ToManagementGroupMapOutput() ManagementGroupMapOutput
	ToManagementGroupMapOutputWithContext(context.Context) ManagementGroupMapOutput
}

ManagementGroupMapInput is an input type that accepts ManagementGroupMap and ManagementGroupMapOutput values. You can construct a concrete instance of `ManagementGroupMapInput` via:

ManagementGroupMap{ "key": ManagementGroupArgs{...} }

type ManagementGroupMapOutput

type ManagementGroupMapOutput struct{ *pulumi.OutputState }

func (ManagementGroupMapOutput) ElementType

func (ManagementGroupMapOutput) ElementType() reflect.Type

func (ManagementGroupMapOutput) MapIndex

func (ManagementGroupMapOutput) ToManagementGroupMapOutput

func (o ManagementGroupMapOutput) ToManagementGroupMapOutput() ManagementGroupMapOutput

func (ManagementGroupMapOutput) ToManagementGroupMapOutputWithContext

func (o ManagementGroupMapOutput) ToManagementGroupMapOutputWithContext(ctx context.Context) ManagementGroupMapOutput

type ManagementGroupOutput

type ManagementGroupOutput struct {
	*pulumi.OutputState
}

func (ManagementGroupOutput) ElementType

func (ManagementGroupOutput) ElementType() reflect.Type

func (ManagementGroupOutput) ToManagementGroupOutput

func (o ManagementGroupOutput) ToManagementGroupOutput() ManagementGroupOutput

func (ManagementGroupOutput) ToManagementGroupOutputWithContext

func (o ManagementGroupOutput) ToManagementGroupOutputWithContext(ctx context.Context) ManagementGroupOutput

func (ManagementGroupOutput) ToManagementGroupPtrOutput

func (o ManagementGroupOutput) ToManagementGroupPtrOutput() ManagementGroupPtrOutput

func (ManagementGroupOutput) ToManagementGroupPtrOutputWithContext

func (o ManagementGroupOutput) ToManagementGroupPtrOutputWithContext(ctx context.Context) ManagementGroupPtrOutput

type ManagementGroupPtrInput

type ManagementGroupPtrInput interface {
	pulumi.Input

	ToManagementGroupPtrOutput() ManagementGroupPtrOutput
	ToManagementGroupPtrOutputWithContext(ctx context.Context) ManagementGroupPtrOutput
}

type ManagementGroupPtrOutput

type ManagementGroupPtrOutput struct {
	*pulumi.OutputState
}

func (ManagementGroupPtrOutput) ElementType

func (ManagementGroupPtrOutput) ElementType() reflect.Type

func (ManagementGroupPtrOutput) ToManagementGroupPtrOutput

func (o ManagementGroupPtrOutput) ToManagementGroupPtrOutput() ManagementGroupPtrOutput

func (ManagementGroupPtrOutput) ToManagementGroupPtrOutputWithContext

func (o ManagementGroupPtrOutput) ToManagementGroupPtrOutputWithContext(ctx context.Context) ManagementGroupPtrOutput

type ManagementGroupState

type ManagementGroupState struct {
	// A friendly name for this Management Group. If not specified, this'll be the same as the `name`.
	DisplayName pulumi.StringPtrInput
	// The name or UUID for this Management Group, which needs to be unique across your tenant. A new UUID will be generated if not provided. Changing this forces a new resource to be created.
	//
	// Deprecated: Deprecated in favour of `name`
	GroupId pulumi.StringPtrInput
	// The name or UUID for this Management Group, which needs to be unique across your tenant. A new UUID will be generated if not provided. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The ID of the Parent Management Group. Changing this forces a new resource to be created.
	ParentManagementGroupId pulumi.StringPtrInput
	// A list of Subscription GUIDs which should be assigned to the Management Group.
	SubscriptionIds pulumi.StringArrayInput
}

func (ManagementGroupState) ElementType

func (ManagementGroupState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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