Group Quota Args
data class GroupQuotaArgs(val groupQuotaName: Output<String>? = null, val mgId: Output<String>? = null, val properties: Output<GroupQuotasEntityBaseArgs>? = null) : ConvertibleToJava<GroupQuotaArgs>
Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified. Azure REST API version: 2023-06-01-preview.
Example Usage
GroupQuotas_Put_Request_ForCompute
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var groupQuota = new AzureNative.Quota.GroupQuota("groupQuota", new()
{
GroupQuotaName = "groupquota1",
MgId = "E7EC67B3-7657-4966-BFFC-41EFD36BAA09",
Properties = new AzureNative.Quota.Inputs.GroupQuotasEntityBaseArgs
{
AdditionalAttributes = new AzureNative.Quota.Inputs.AdditionalAttributesArgs
{
Environment = "Production",
GroupId = new AzureNative.Quota.Inputs.GroupingIdArgs
{
GroupingIdType = "ServiceTreeId",
Value = "yourServiceTreeIdHere",
},
},
DisplayName = "GroupQuota1",
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/quota/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := quota.NewGroupQuota(ctx, "groupQuota", "a.GroupQuotaArgs{
GroupQuotaName: pulumi.String("groupquota1"),
MgId: pulumi.String("E7EC67B3-7657-4966-BFFC-41EFD36BAA09"),
Properties: quota.GroupQuotasEntityBaseResponse{
AdditionalAttributes: interface{}{
Environment: pulumi.Any("Production"),
GroupId: "a.GroupingIdArgs{
GroupingIdType: pulumi.String("ServiceTreeId"),
Value: pulumi.String("yourServiceTreeIdHere"),
},
},
DisplayName: pulumi.String("GroupQuota1"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.quota.GroupQuota;
import com.pulumi.azurenative.quota.GroupQuotaArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var groupQuota = new GroupQuota("groupQuota", GroupQuotaArgs.builder()
.groupQuotaName("groupquota1")
.mgId("E7EC67B3-7657-4966-BFFC-41EFD36BAA09")
.properties(Map.ofEntries(
Map.entry("additionalAttributes", Map.ofEntries(
Map.entry("environment", "Production"),
Map.entry("groupId", Map.ofEntries(
Map.entry("groupingIdType", "ServiceTreeId"),
Map.entry("value", "yourServiceTreeIdHere")
))
)),
Map.entry("displayName", "GroupQuota1")
))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:quota:GroupQuota groupquota1 /providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}
Content copied to clipboard
Constructors
Link copied to clipboard
fun GroupQuotaArgs(groupQuotaName: Output<String>? = null, mgId: Output<String>? = null, properties: Output<GroupQuotasEntityBaseArgs>? = null)