Documentation ¶
Index ¶
- type Account
- type AccountArgs
- type AccountArray
- type AccountArrayInput
- type AccountArrayOutput
- type AccountInput
- type AccountMap
- type AccountMapInput
- type AccountMapOutput
- type AccountOutput
- func (o AccountOutput) ApplicationId() pulumi.StringOutput
- func (o AccountOutput) BillingPlanId() pulumi.StringOutput
- func (AccountOutput) ElementType() reflect.Type
- func (o AccountOutput) Name() pulumi.StringOutput
- func (o AccountOutput) ResourceGroupName() pulumi.StringOutput
- func (o AccountOutput) Tags() pulumi.StringMapOutput
- func (o AccountOutput) ToAccountOutput() AccountOutput
- func (o AccountOutput) ToAccountOutputWithContext(ctx context.Context) AccountOutput
- type AccountState
- type ServicesAccount
- type ServicesAccountArgs
- type ServicesAccountArray
- type ServicesAccountArrayInput
- type ServicesAccountArrayOutput
- func (ServicesAccountArrayOutput) ElementType() reflect.Type
- func (o ServicesAccountArrayOutput) Index(i pulumi.IntInput) ServicesAccountOutput
- func (o ServicesAccountArrayOutput) ToServicesAccountArrayOutput() ServicesAccountArrayOutput
- func (o ServicesAccountArrayOutput) ToServicesAccountArrayOutputWithContext(ctx context.Context) ServicesAccountArrayOutput
- type ServicesAccountInput
- type ServicesAccountMap
- type ServicesAccountMapInput
- type ServicesAccountMapOutput
- func (ServicesAccountMapOutput) ElementType() reflect.Type
- func (o ServicesAccountMapOutput) MapIndex(k pulumi.StringInput) ServicesAccountOutput
- func (o ServicesAccountMapOutput) ToServicesAccountMapOutput() ServicesAccountMapOutput
- func (o ServicesAccountMapOutput) ToServicesAccountMapOutputWithContext(ctx context.Context) ServicesAccountMapOutput
- type ServicesAccountOutput
- func (o ServicesAccountOutput) ApplicationId() pulumi.StringOutput
- func (o ServicesAccountOutput) BillingPlanId() pulumi.StringOutput
- func (ServicesAccountOutput) ElementType() reflect.Type
- func (o ServicesAccountOutput) Name() pulumi.StringOutput
- func (o ServicesAccountOutput) ResourceGroupName() pulumi.StringOutput
- func (o ServicesAccountOutput) Tags() pulumi.StringMapOutput
- func (o ServicesAccountOutput) ToServicesAccountOutput() ServicesAccountOutput
- func (o ServicesAccountOutput) ToServicesAccountOutputWithContext(ctx context.Context) ServicesAccountOutput
- type ServicesAccountState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { pulumi.CustomResourceState // Customer owned application ID. Changing this forces a new Account to be created. ApplicationId pulumi.StringOutput `pulumi:"applicationId"` // Billing Plan Id. BillingPlanId pulumi.StringOutput `pulumi:"billingPlanId"` // Specifies the name of this Account. Changing this forces a new Account to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Account. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages a Microsoft Graph Services Account.
!> **NOTE:** This resource has been deprecated in version 5.0 of the provider and will be removed in version 6.0. Please use `graph.ServicesAccount` resource instead.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/graph" "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := azuread.NewApplication(ctx, "example", &azuread.ApplicationArgs{ DisplayName: pulumi.String("example-app"), }) if err != nil { return err } exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ Name: pulumi.String("example-resources"), Location: pulumi.String("West Europe"), }) if err != nil { return err } _, err = graph.NewAccount(ctx, "example", &graph.AccountArgs{ Name: pulumi.String("example"), ResourceGroupName: exampleResourceGroup.Name, ApplicationId: example.ApplicationId, Tags: pulumi.StringMap{ "environment": pulumi.String("Production"), }, }) if err != nil { return err } return nil }) }
```
## Import
An existing Account can be imported into Terraform using the `resource id`, e.g.
```sh $ pulumi import azure:graph/account:Account example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.GraphServices/accounts/account1 ```
func GetAccount ¶
func GetAccount(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AccountState, opts ...pulumi.ResourceOption) (*Account, error)
GetAccount gets an existing Account 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 NewAccount ¶
func NewAccount(ctx *pulumi.Context, name string, args *AccountArgs, opts ...pulumi.ResourceOption) (*Account, error)
NewAccount registers a new resource with the given unique name, arguments, and options.
func (*Account) ElementType ¶
func (*Account) ToAccountOutput ¶
func (i *Account) ToAccountOutput() AccountOutput
func (*Account) ToAccountOutputWithContext ¶
func (i *Account) ToAccountOutputWithContext(ctx context.Context) AccountOutput
type AccountArgs ¶
type AccountArgs struct { // Customer owned application ID. Changing this forces a new Account to be created. ApplicationId pulumi.StringInput // Specifies the name of this Account. Changing this forces a new Account to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created. ResourceGroupName pulumi.StringInput // A mapping of tags which should be assigned to the Account. Tags pulumi.StringMapInput }
The set of arguments for constructing a Account resource.
func (AccountArgs) ElementType ¶
func (AccountArgs) ElementType() reflect.Type
type AccountArray ¶
type AccountArray []AccountInput
func (AccountArray) ElementType ¶
func (AccountArray) ElementType() reflect.Type
func (AccountArray) ToAccountArrayOutput ¶
func (i AccountArray) ToAccountArrayOutput() AccountArrayOutput
func (AccountArray) ToAccountArrayOutputWithContext ¶
func (i AccountArray) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput
type AccountArrayInput ¶
type AccountArrayInput interface { pulumi.Input ToAccountArrayOutput() AccountArrayOutput ToAccountArrayOutputWithContext(context.Context) AccountArrayOutput }
AccountArrayInput is an input type that accepts AccountArray and AccountArrayOutput values. You can construct a concrete instance of `AccountArrayInput` via:
AccountArray{ AccountArgs{...} }
type AccountArrayOutput ¶
type AccountArrayOutput struct{ *pulumi.OutputState }
func (AccountArrayOutput) ElementType ¶
func (AccountArrayOutput) ElementType() reflect.Type
func (AccountArrayOutput) Index ¶
func (o AccountArrayOutput) Index(i pulumi.IntInput) AccountOutput
func (AccountArrayOutput) ToAccountArrayOutput ¶
func (o AccountArrayOutput) ToAccountArrayOutput() AccountArrayOutput
func (AccountArrayOutput) ToAccountArrayOutputWithContext ¶
func (o AccountArrayOutput) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput
type AccountInput ¶
type AccountInput interface { pulumi.Input ToAccountOutput() AccountOutput ToAccountOutputWithContext(ctx context.Context) AccountOutput }
type AccountMap ¶
type AccountMap map[string]AccountInput
func (AccountMap) ElementType ¶
func (AccountMap) ElementType() reflect.Type
func (AccountMap) ToAccountMapOutput ¶
func (i AccountMap) ToAccountMapOutput() AccountMapOutput
func (AccountMap) ToAccountMapOutputWithContext ¶
func (i AccountMap) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput
type AccountMapInput ¶
type AccountMapInput interface { pulumi.Input ToAccountMapOutput() AccountMapOutput ToAccountMapOutputWithContext(context.Context) AccountMapOutput }
AccountMapInput is an input type that accepts AccountMap and AccountMapOutput values. You can construct a concrete instance of `AccountMapInput` via:
AccountMap{ "key": AccountArgs{...} }
type AccountMapOutput ¶
type AccountMapOutput struct{ *pulumi.OutputState }
func (AccountMapOutput) ElementType ¶
func (AccountMapOutput) ElementType() reflect.Type
func (AccountMapOutput) MapIndex ¶
func (o AccountMapOutput) MapIndex(k pulumi.StringInput) AccountOutput
func (AccountMapOutput) ToAccountMapOutput ¶
func (o AccountMapOutput) ToAccountMapOutput() AccountMapOutput
func (AccountMapOutput) ToAccountMapOutputWithContext ¶
func (o AccountMapOutput) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput
type AccountOutput ¶
type AccountOutput struct{ *pulumi.OutputState }
func (AccountOutput) ApplicationId ¶
func (o AccountOutput) ApplicationId() pulumi.StringOutput
Customer owned application ID. Changing this forces a new Account to be created.
func (AccountOutput) BillingPlanId ¶
func (o AccountOutput) BillingPlanId() pulumi.StringOutput
Billing Plan Id.
func (AccountOutput) ElementType ¶
func (AccountOutput) ElementType() reflect.Type
func (AccountOutput) Name ¶
func (o AccountOutput) Name() pulumi.StringOutput
Specifies the name of this Account. Changing this forces a new Account to be created.
func (AccountOutput) ResourceGroupName ¶
func (o AccountOutput) ResourceGroupName() pulumi.StringOutput
Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created.
func (AccountOutput) Tags ¶
func (o AccountOutput) Tags() pulumi.StringMapOutput
A mapping of tags which should be assigned to the Account.
func (AccountOutput) ToAccountOutput ¶
func (o AccountOutput) ToAccountOutput() AccountOutput
func (AccountOutput) ToAccountOutputWithContext ¶
func (o AccountOutput) ToAccountOutputWithContext(ctx context.Context) AccountOutput
type AccountState ¶
type AccountState struct { // Customer owned application ID. Changing this forces a new Account to be created. ApplicationId pulumi.StringPtrInput // Billing Plan Id. BillingPlanId pulumi.StringPtrInput // Specifies the name of this Account. Changing this forces a new Account to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags which should be assigned to the Account. Tags pulumi.StringMapInput }
func (AccountState) ElementType ¶
func (AccountState) ElementType() reflect.Type
type ServicesAccount ¶ added in v5.49.0
type ServicesAccount struct { pulumi.CustomResourceState // Customer owned application ID. Changing this forces a new Account to be created. ApplicationId pulumi.StringOutput `pulumi:"applicationId"` // Billing Plan Id. BillingPlanId pulumi.StringOutput `pulumi:"billingPlanId"` // Specifies the name of this Account. Changing this forces a new Account to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Account. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages a Microsoft Graph Services Account.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/graph" "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := azuread.NewApplication(ctx, "example", &azuread.ApplicationArgs{ DisplayName: pulumi.String("example-app"), }) if err != nil { return err } exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ Name: pulumi.String("example-resources"), Location: pulumi.String("West Europe"), }) if err != nil { return err } _, err = graph.NewServicesAccount(ctx, "example", &graph.ServicesAccountArgs{ Name: pulumi.String("example"), ResourceGroupName: exampleResourceGroup.Name, ApplicationId: example.ApplicationId, Tags: pulumi.StringMap{ "environment": pulumi.String("Production"), }, }) if err != nil { return err } return nil }) }
```
## Import
An existing Account can be imported into Terraform using the `resource id`, e.g.
```sh $ pulumi import azure:graph/servicesAccount:ServicesAccount example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.GraphServices/accounts/account1 ```
func GetServicesAccount ¶ added in v5.49.0
func GetServicesAccount(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ServicesAccountState, opts ...pulumi.ResourceOption) (*ServicesAccount, error)
GetServicesAccount gets an existing ServicesAccount 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 NewServicesAccount ¶ added in v5.49.0
func NewServicesAccount(ctx *pulumi.Context, name string, args *ServicesAccountArgs, opts ...pulumi.ResourceOption) (*ServicesAccount, error)
NewServicesAccount registers a new resource with the given unique name, arguments, and options.
func (*ServicesAccount) ElementType ¶ added in v5.49.0
func (*ServicesAccount) ElementType() reflect.Type
func (*ServicesAccount) ToServicesAccountOutput ¶ added in v5.49.0
func (i *ServicesAccount) ToServicesAccountOutput() ServicesAccountOutput
func (*ServicesAccount) ToServicesAccountOutputWithContext ¶ added in v5.49.0
func (i *ServicesAccount) ToServicesAccountOutputWithContext(ctx context.Context) ServicesAccountOutput
type ServicesAccountArgs ¶ added in v5.49.0
type ServicesAccountArgs struct { // Customer owned application ID. Changing this forces a new Account to be created. ApplicationId pulumi.StringInput // Specifies the name of this Account. Changing this forces a new Account to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created. ResourceGroupName pulumi.StringInput // A mapping of tags which should be assigned to the Account. Tags pulumi.StringMapInput }
The set of arguments for constructing a ServicesAccount resource.
func (ServicesAccountArgs) ElementType ¶ added in v5.49.0
func (ServicesAccountArgs) ElementType() reflect.Type
type ServicesAccountArray ¶ added in v5.49.0
type ServicesAccountArray []ServicesAccountInput
func (ServicesAccountArray) ElementType ¶ added in v5.49.0
func (ServicesAccountArray) ElementType() reflect.Type
func (ServicesAccountArray) ToServicesAccountArrayOutput ¶ added in v5.49.0
func (i ServicesAccountArray) ToServicesAccountArrayOutput() ServicesAccountArrayOutput
func (ServicesAccountArray) ToServicesAccountArrayOutputWithContext ¶ added in v5.49.0
func (i ServicesAccountArray) ToServicesAccountArrayOutputWithContext(ctx context.Context) ServicesAccountArrayOutput
type ServicesAccountArrayInput ¶ added in v5.49.0
type ServicesAccountArrayInput interface { pulumi.Input ToServicesAccountArrayOutput() ServicesAccountArrayOutput ToServicesAccountArrayOutputWithContext(context.Context) ServicesAccountArrayOutput }
ServicesAccountArrayInput is an input type that accepts ServicesAccountArray and ServicesAccountArrayOutput values. You can construct a concrete instance of `ServicesAccountArrayInput` via:
ServicesAccountArray{ ServicesAccountArgs{...} }
type ServicesAccountArrayOutput ¶ added in v5.49.0
type ServicesAccountArrayOutput struct{ *pulumi.OutputState }
func (ServicesAccountArrayOutput) ElementType ¶ added in v5.49.0
func (ServicesAccountArrayOutput) ElementType() reflect.Type
func (ServicesAccountArrayOutput) Index ¶ added in v5.49.0
func (o ServicesAccountArrayOutput) Index(i pulumi.IntInput) ServicesAccountOutput
func (ServicesAccountArrayOutput) ToServicesAccountArrayOutput ¶ added in v5.49.0
func (o ServicesAccountArrayOutput) ToServicesAccountArrayOutput() ServicesAccountArrayOutput
func (ServicesAccountArrayOutput) ToServicesAccountArrayOutputWithContext ¶ added in v5.49.0
func (o ServicesAccountArrayOutput) ToServicesAccountArrayOutputWithContext(ctx context.Context) ServicesAccountArrayOutput
type ServicesAccountInput ¶ added in v5.49.0
type ServicesAccountInput interface { pulumi.Input ToServicesAccountOutput() ServicesAccountOutput ToServicesAccountOutputWithContext(ctx context.Context) ServicesAccountOutput }
type ServicesAccountMap ¶ added in v5.49.0
type ServicesAccountMap map[string]ServicesAccountInput
func (ServicesAccountMap) ElementType ¶ added in v5.49.0
func (ServicesAccountMap) ElementType() reflect.Type
func (ServicesAccountMap) ToServicesAccountMapOutput ¶ added in v5.49.0
func (i ServicesAccountMap) ToServicesAccountMapOutput() ServicesAccountMapOutput
func (ServicesAccountMap) ToServicesAccountMapOutputWithContext ¶ added in v5.49.0
func (i ServicesAccountMap) ToServicesAccountMapOutputWithContext(ctx context.Context) ServicesAccountMapOutput
type ServicesAccountMapInput ¶ added in v5.49.0
type ServicesAccountMapInput interface { pulumi.Input ToServicesAccountMapOutput() ServicesAccountMapOutput ToServicesAccountMapOutputWithContext(context.Context) ServicesAccountMapOutput }
ServicesAccountMapInput is an input type that accepts ServicesAccountMap and ServicesAccountMapOutput values. You can construct a concrete instance of `ServicesAccountMapInput` via:
ServicesAccountMap{ "key": ServicesAccountArgs{...} }
type ServicesAccountMapOutput ¶ added in v5.49.0
type ServicesAccountMapOutput struct{ *pulumi.OutputState }
func (ServicesAccountMapOutput) ElementType ¶ added in v5.49.0
func (ServicesAccountMapOutput) ElementType() reflect.Type
func (ServicesAccountMapOutput) MapIndex ¶ added in v5.49.0
func (o ServicesAccountMapOutput) MapIndex(k pulumi.StringInput) ServicesAccountOutput
func (ServicesAccountMapOutput) ToServicesAccountMapOutput ¶ added in v5.49.0
func (o ServicesAccountMapOutput) ToServicesAccountMapOutput() ServicesAccountMapOutput
func (ServicesAccountMapOutput) ToServicesAccountMapOutputWithContext ¶ added in v5.49.0
func (o ServicesAccountMapOutput) ToServicesAccountMapOutputWithContext(ctx context.Context) ServicesAccountMapOutput
type ServicesAccountOutput ¶ added in v5.49.0
type ServicesAccountOutput struct{ *pulumi.OutputState }
func (ServicesAccountOutput) ApplicationId ¶ added in v5.49.0
func (o ServicesAccountOutput) ApplicationId() pulumi.StringOutput
Customer owned application ID. Changing this forces a new Account to be created.
func (ServicesAccountOutput) BillingPlanId ¶ added in v5.49.0
func (o ServicesAccountOutput) BillingPlanId() pulumi.StringOutput
Billing Plan Id.
func (ServicesAccountOutput) ElementType ¶ added in v5.49.0
func (ServicesAccountOutput) ElementType() reflect.Type
func (ServicesAccountOutput) Name ¶ added in v5.49.0
func (o ServicesAccountOutput) Name() pulumi.StringOutput
Specifies the name of this Account. Changing this forces a new Account to be created.
func (ServicesAccountOutput) ResourceGroupName ¶ added in v5.49.0
func (o ServicesAccountOutput) ResourceGroupName() pulumi.StringOutput
Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created.
func (ServicesAccountOutput) Tags ¶ added in v5.49.0
func (o ServicesAccountOutput) Tags() pulumi.StringMapOutput
A mapping of tags which should be assigned to the Account.
func (ServicesAccountOutput) ToServicesAccountOutput ¶ added in v5.49.0
func (o ServicesAccountOutput) ToServicesAccountOutput() ServicesAccountOutput
func (ServicesAccountOutput) ToServicesAccountOutputWithContext ¶ added in v5.49.0
func (o ServicesAccountOutput) ToServicesAccountOutputWithContext(ctx context.Context) ServicesAccountOutput
type ServicesAccountState ¶ added in v5.49.0
type ServicesAccountState struct { // Customer owned application ID. Changing this forces a new Account to be created. ApplicationId pulumi.StringPtrInput // Billing Plan Id. BillingPlanId pulumi.StringPtrInput // Specifies the name of this Account. Changing this forces a new Account to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags which should be assigned to the Account. Tags pulumi.StringMapInput }
func (ServicesAccountState) ElementType ¶ added in v5.49.0
func (ServicesAccountState) ElementType() reflect.Type