Documentation ¶
Index ¶
- type LookupManagementGroupArgs
- type LookupManagementGroupOutputArgs
- type LookupManagementGroupResult
- type LookupManagementGroupResultOutput
- func (o LookupManagementGroupResultOutput) DisplayName() pulumi.StringOutput
- func (LookupManagementGroupResultOutput) ElementType() reflect.Type
- func (o LookupManagementGroupResultOutput) GroupId() pulumi.StringOutputdeprecated
- func (o LookupManagementGroupResultOutput) Id() pulumi.StringOutput
- func (o LookupManagementGroupResultOutput) Name() pulumi.StringOutput
- func (o LookupManagementGroupResultOutput) ParentManagementGroupId() pulumi.StringOutput
- func (o LookupManagementGroupResultOutput) SubscriptionIds() pulumi.StringArrayOutput
- func (o LookupManagementGroupResultOutput) ToLookupManagementGroupResultOutput() LookupManagementGroupResultOutput
- func (o LookupManagementGroupResultOutput) ToLookupManagementGroupResultOutputWithContext(ctx context.Context) LookupManagementGroupResultOutput
- type ManagementGroupdeprecated
- type ManagementGroupArgs
- type ManagementGroupArray
- type ManagementGroupArrayInput
- type ManagementGroupArrayOutput
- func (ManagementGroupArrayOutput) ElementType() reflect.Type
- func (o ManagementGroupArrayOutput) Index(i pulumi.IntInput) ManagementGroupOutput
- func (o ManagementGroupArrayOutput) ToManagementGroupArrayOutput() ManagementGroupArrayOutput
- func (o ManagementGroupArrayOutput) ToManagementGroupArrayOutputWithContext(ctx context.Context) ManagementGroupArrayOutput
- type ManagementGroupInput
- type ManagementGroupMap
- type ManagementGroupMapInput
- type ManagementGroupMapOutput
- func (ManagementGroupMapOutput) ElementType() reflect.Type
- func (o ManagementGroupMapOutput) MapIndex(k pulumi.StringInput) ManagementGroupOutput
- func (o ManagementGroupMapOutput) ToManagementGroupMapOutput() ManagementGroupMapOutput
- func (o ManagementGroupMapOutput) ToManagementGroupMapOutputWithContext(ctx context.Context) ManagementGroupMapOutput
- type ManagementGroupOutput
- type ManagementGroupState
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 LookupManagementGroupOutputArgs ¶ added in v4.20.0
type LookupManagementGroupOutputArgs struct { // Specifies the display name of this Management Group. DisplayName pulumi.StringPtrInput `pulumi:"displayName"` // Specifies the name or UUID of this Management Group. // // Deprecated: Deprecated in favour of `name` GroupId pulumi.StringPtrInput `pulumi:"groupId"` // Specifies the name or UUID of this Management Group. Name pulumi.StringPtrInput `pulumi:"name"` }
A collection of arguments for invoking getManagementGroup.
func (LookupManagementGroupOutputArgs) ElementType ¶ added in v4.20.0
func (LookupManagementGroupOutputArgs) ElementType() reflect.Type
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 { example, err := management.LookupGroup(ctx, &management.LookupGroupArgs{ Name: pulumi.StringRef("00000000-0000-0000-0000-000000000000"), }, 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 LookupManagementGroupResultOutput ¶ added in v4.20.0
type LookupManagementGroupResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getManagementGroup.
func LookupManagementGroupOutput ¶ added in v4.20.0
func LookupManagementGroupOutput(ctx *pulumi.Context, args LookupManagementGroupOutputArgs, opts ...pulumi.InvokeOption) LookupManagementGroupResultOutput
func (LookupManagementGroupResultOutput) DisplayName ¶ added in v4.20.0
func (o LookupManagementGroupResultOutput) DisplayName() pulumi.StringOutput
func (LookupManagementGroupResultOutput) ElementType ¶ added in v4.20.0
func (LookupManagementGroupResultOutput) ElementType() reflect.Type
func (LookupManagementGroupResultOutput) GroupId
deprecated
added in
v4.20.0
func (o LookupManagementGroupResultOutput) GroupId() pulumi.StringOutput
Deprecated: Deprecated in favour of `name`
func (LookupManagementGroupResultOutput) Id ¶ added in v4.20.0
func (o LookupManagementGroupResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupManagementGroupResultOutput) Name ¶ added in v4.20.0
func (o LookupManagementGroupResultOutput) Name() pulumi.StringOutput
func (LookupManagementGroupResultOutput) ParentManagementGroupId ¶ added in v4.20.0
func (o LookupManagementGroupResultOutput) ParentManagementGroupId() pulumi.StringOutput
The ID of any Parent Management Group.
func (LookupManagementGroupResultOutput) SubscriptionIds ¶ added in v4.20.0
func (o LookupManagementGroupResultOutput) SubscriptionIds() pulumi.StringArrayOutput
A list of Subscription IDs which are assigned to the Management Group.
func (LookupManagementGroupResultOutput) ToLookupManagementGroupResultOutput ¶ added in v4.20.0
func (o LookupManagementGroupResultOutput) ToLookupManagementGroupResultOutput() LookupManagementGroupResultOutput
func (LookupManagementGroupResultOutput) ToLookupManagementGroupResultOutputWithContext ¶ added in v4.20.0
func (o LookupManagementGroupResultOutput) ToLookupManagementGroupResultOutputWithContext(ctx context.Context) LookupManagementGroupResultOutput
type ManagementGroup
deprecated
type ManagementGroup struct { pulumi.CustomResourceState // A friendly name for this Management Group. If not specified, this will 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
type ManagementGroupArgs ¶
type ManagementGroupArgs struct { // A friendly name for this Management Group. If not specified, this will 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 (o ManagementGroupArrayOutput) Index(i pulumi.IntInput) ManagementGroupOutput
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 (o ManagementGroupMapOutput) MapIndex(k pulumi.StringInput) ManagementGroupOutput
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
type ManagementGroupState ¶
type ManagementGroupState struct { // A friendly name for this Management Group. If not specified, this will 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