1. Packages
  2. Opennebula Provider
  3. API Docs
  4. GroupQuotas
opennebula 1.4.1 published on Monday, Apr 14, 2025 by opennebula

opennebula.GroupQuotas

Explore with Pulumi AI

opennebula logo
opennebula 1.4.1 published on Monday, Apr 14, 2025 by opennebula

    Provides an OpenNebula group quotas resource.

    This resource allows you to manage the quotas for a group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opennebula from "@pulumi/opennebula";
    
    const exampleGroupQuotas = new opennebula.GroupQuotas("exampleGroupQuotas", {
        groupId: opennebula_group.example.id,
        datastores: [{
            id: 1,
            images: 5,
            size: 10000,
        }],
    });
    const exampleIndex_groupQuotasGroupQuotas = new opennebula.GroupQuotas("exampleIndex/groupQuotasGroupQuotas", {
        groupId: opennebula_group.example.id,
        vms: [{
            cpu: 3,
            runningCpu: 3,
            memory: 2048,
            runningMemory: 2048,
        }],
    });
    const exampleOpennebulaIndex_groupQuotasGroupQuotas = new opennebula.GroupQuotas("exampleOpennebulaIndex/groupQuotasGroupQuotas", {
        groupId: opennebula_group.example.id,
        networks: [
            {
                id: 10,
                leases: 6,
            },
            {
                id: 11,
                leases: 4,
            },
        ],
    });
    const exampleOpennebulaIndex_groupQuotasGroupQuotas1 = new opennebula.GroupQuotas("exampleOpennebulaIndex/groupQuotasGroupQuotas1", {
        groupId: opennebula_group.example.id,
        images: [
            {
                id: 8,
                runningVms: 1,
            },
            {
                id: 9,
                runningVms: 1,
            },
        ],
    });
    
    import pulumi
    import pulumi_opennebula as opennebula
    
    example_group_quotas = opennebula.GroupQuotas("exampleGroupQuotas",
        group_id=opennebula_group["example"]["id"],
        datastores=[{
            "id": 1,
            "images": 5,
            "size": 10000,
        }])
    example_index_group_quotas_group_quotas = opennebula.GroupQuotas("exampleIndex/groupQuotasGroupQuotas",
        group_id=opennebula_group["example"]["id"],
        vms=[{
            "cpu": 3,
            "running_cpu": 3,
            "memory": 2048,
            "running_memory": 2048,
        }])
    example_opennebula_index_group_quotas_group_quotas = opennebula.GroupQuotas("exampleOpennebulaIndex/groupQuotasGroupQuotas",
        group_id=opennebula_group["example"]["id"],
        networks=[
            {
                "id": 10,
                "leases": 6,
            },
            {
                "id": 11,
                "leases": 4,
            },
        ])
    example_opennebula_index_group_quotas_group_quotas1 = opennebula.GroupQuotas("exampleOpennebulaIndex/groupQuotasGroupQuotas1",
        group_id=opennebula_group["example"]["id"],
        images=[
            {
                "id": 8,
                "running_vms": 1,
            },
            {
                "id": 9,
                "running_vms": 1,
            },
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opennebula/opennebula"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opennebula.NewGroupQuotas(ctx, "exampleGroupQuotas", &opennebula.GroupQuotasArgs{
    			GroupId: pulumi.Any(opennebula_group.Example.Id),
    			Datastores: opennebula.GroupQuotasDatastoreArray{
    				&opennebula.GroupQuotasDatastoreArgs{
    					Id:     pulumi.Float64(1),
    					Images: pulumi.Float64(5),
    					Size:   pulumi.Float64(10000),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opennebula.NewGroupQuotas(ctx, "exampleIndex/groupQuotasGroupQuotas", &opennebula.GroupQuotasArgs{
    			GroupId: pulumi.Any(opennebula_group.Example.Id),
    			Vms: opennebula.GroupQuotasVmArray{
    				&opennebula.GroupQuotasVmArgs{
    					Cpu:           pulumi.Float64(3),
    					RunningCpu:    pulumi.Float64(3),
    					Memory:        pulumi.Float64(2048),
    					RunningMemory: pulumi.Float64(2048),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opennebula.NewGroupQuotas(ctx, "exampleOpennebulaIndex/groupQuotasGroupQuotas", &opennebula.GroupQuotasArgs{
    			GroupId: pulumi.Any(opennebula_group.Example.Id),
    			Networks: opennebula.GroupQuotasNetworkArray{
    				&opennebula.GroupQuotasNetworkArgs{
    					Id:     pulumi.Float64(10),
    					Leases: pulumi.Float64(6),
    				},
    				&opennebula.GroupQuotasNetworkArgs{
    					Id:     pulumi.Float64(11),
    					Leases: pulumi.Float64(4),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opennebula.NewGroupQuotas(ctx, "exampleOpennebulaIndex/groupQuotasGroupQuotas1", &opennebula.GroupQuotasArgs{
    			GroupId: pulumi.Any(opennebula_group.Example.Id),
    			Images: opennebula.GroupQuotasImageArray{
    				&opennebula.GroupQuotasImageArgs{
    					Id:         pulumi.Float64(8),
    					RunningVms: pulumi.Float64(1),
    				},
    				&opennebula.GroupQuotasImageArgs{
    					Id:         pulumi.Float64(9),
    					RunningVms: pulumi.Float64(1),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opennebula = Pulumi.Opennebula;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleGroupQuotas = new Opennebula.GroupQuotas("exampleGroupQuotas", new()
        {
            GroupId = opennebula_group.Example.Id,
            Datastores = new[]
            {
                new Opennebula.Inputs.GroupQuotasDatastoreArgs
                {
                    Id = 1,
                    Images = 5,
                    Size = 10000,
                },
            },
        });
    
        var exampleIndex_groupQuotasGroupQuotas = new Opennebula.GroupQuotas("exampleIndex/groupQuotasGroupQuotas", new()
        {
            GroupId = opennebula_group.Example.Id,
            Vms = new[]
            {
                new Opennebula.Inputs.GroupQuotasVmArgs
                {
                    Cpu = 3,
                    RunningCpu = 3,
                    Memory = 2048,
                    RunningMemory = 2048,
                },
            },
        });
    
        var exampleOpennebulaIndex_groupQuotasGroupQuotas = new Opennebula.GroupQuotas("exampleOpennebulaIndex/groupQuotasGroupQuotas", new()
        {
            GroupId = opennebula_group.Example.Id,
            Networks = new[]
            {
                new Opennebula.Inputs.GroupQuotasNetworkArgs
                {
                    Id = 10,
                    Leases = 6,
                },
                new Opennebula.Inputs.GroupQuotasNetworkArgs
                {
                    Id = 11,
                    Leases = 4,
                },
            },
        });
    
        var exampleOpennebulaIndex_groupQuotasGroupQuotas1 = new Opennebula.GroupQuotas("exampleOpennebulaIndex/groupQuotasGroupQuotas1", new()
        {
            GroupId = opennebula_group.Example.Id,
            Images = new[]
            {
                new Opennebula.Inputs.GroupQuotasImageArgs
                {
                    Id = 8,
                    RunningVms = 1,
                },
                new Opennebula.Inputs.GroupQuotasImageArgs
                {
                    Id = 9,
                    RunningVms = 1,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opennebula.GroupQuotas;
    import com.pulumi.opennebula.GroupQuotasArgs;
    import com.pulumi.opennebula.inputs.GroupQuotasDatastoreArgs;
    import com.pulumi.opennebula.inputs.GroupQuotasVmArgs;
    import com.pulumi.opennebula.inputs.GroupQuotasNetworkArgs;
    import com.pulumi.opennebula.inputs.GroupQuotasImageArgs;
    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 exampleGroupQuotas = new GroupQuotas("exampleGroupQuotas", GroupQuotasArgs.builder()
                .groupId(opennebula_group.example().id())
                .datastores(GroupQuotasDatastoreArgs.builder()
                    .id(1)
                    .images(5)
                    .size(10000)
                    .build())
                .build());
    
            var exampleIndex_groupQuotasGroupQuotas = new GroupQuotas("exampleIndex/groupQuotasGroupQuotas", GroupQuotasArgs.builder()
                .groupId(opennebula_group.example().id())
                .vms(GroupQuotasVmArgs.builder()
                    .cpu(3)
                    .runningCpu(3)
                    .memory(2048)
                    .runningMemory(2048)
                    .build())
                .build());
    
            var exampleOpennebulaIndex_groupQuotasGroupQuotas = new GroupQuotas("exampleOpennebulaIndex/groupQuotasGroupQuotas", GroupQuotasArgs.builder()
                .groupId(opennebula_group.example().id())
                .networks(            
                    GroupQuotasNetworkArgs.builder()
                        .id(10)
                        .leases(6)
                        .build(),
                    GroupQuotasNetworkArgs.builder()
                        .id(11)
                        .leases(4)
                        .build())
                .build());
    
            var exampleOpennebulaIndex_groupQuotasGroupQuotas1 = new GroupQuotas("exampleOpennebulaIndex/groupQuotasGroupQuotas1", GroupQuotasArgs.builder()
                .groupId(opennebula_group.example().id())
                .images(            
                    GroupQuotasImageArgs.builder()
                        .id(8)
                        .runningVms(1)
                        .build(),
                    GroupQuotasImageArgs.builder()
                        .id(9)
                        .runningVms(1)
                        .build())
                .build());
    
        }
    }
    
    resources:
      exampleGroupQuotas:
        type: opennebula:GroupQuotas
        properties:
          groupId: ${opennebula_group.example.id}
          datastores:
            - id: 1
              images: 5
              size: 10000
      exampleIndex/groupQuotasGroupQuotas:
        type: opennebula:GroupQuotas
        properties:
          groupId: ${opennebula_group.example.id}
          vms:
            - cpu: 3
              runningCpu: 3
              memory: 2048
              runningMemory: 2048
      exampleOpennebulaIndex/groupQuotasGroupQuotas:
        type: opennebula:GroupQuotas
        properties:
          groupId: ${opennebula_group.example.id}
          networks:
            - id: 10
              leases: 6
            - id: 11
              leases: 4
      exampleOpennebulaIndex/groupQuotasGroupQuotas1:
        type: opennebula:GroupQuotas
        properties:
          groupId: ${opennebula_group.example.id}
          images:
            - id: 8
              runningVms: 1
            - id: 9
              runningVms: 1
    

    Create GroupQuotas Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GroupQuotas(name: string, args: GroupQuotasArgs, opts?: CustomResourceOptions);
    @overload
    def GroupQuotas(resource_name: str,
                    args: GroupQuotasArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def GroupQuotas(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    group_id: Optional[float] = None,
                    datastores: Optional[Sequence[GroupQuotasDatastoreArgs]] = None,
                    group_quotas_id: Optional[str] = None,
                    images: Optional[Sequence[GroupQuotasImageArgs]] = None,
                    networks: Optional[Sequence[GroupQuotasNetworkArgs]] = None,
                    vms: Optional[Sequence[GroupQuotasVmArgs]] = None)
    func NewGroupQuotas(ctx *Context, name string, args GroupQuotasArgs, opts ...ResourceOption) (*GroupQuotas, error)
    public GroupQuotas(string name, GroupQuotasArgs args, CustomResourceOptions? opts = null)
    public GroupQuotas(String name, GroupQuotasArgs args)
    public GroupQuotas(String name, GroupQuotasArgs args, CustomResourceOptions options)
    
    type: opennebula:GroupQuotas
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args GroupQuotasArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args GroupQuotasArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args GroupQuotasArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GroupQuotasArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GroupQuotasArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var groupQuotasResource = new Opennebula.GroupQuotas("groupQuotasResource", new()
    {
        GroupId = 0,
        Datastores = new[]
        {
            new Opennebula.Inputs.GroupQuotasDatastoreArgs
            {
                Id = 0,
                Images = 0,
                Size = 0,
            },
        },
        GroupQuotasId = "string",
        Images = new[]
        {
            new Opennebula.Inputs.GroupQuotasImageArgs
            {
                Id = 0,
                RunningVms = 0,
            },
        },
        Networks = new[]
        {
            new Opennebula.Inputs.GroupQuotasNetworkArgs
            {
                Id = 0,
                Leases = 0,
            },
        },
        Vms = new[]
        {
            new Opennebula.Inputs.GroupQuotasVmArgs
            {
                Cpu = 0,
                Memory = 0,
                RunningCpu = 0,
                RunningMemory = 0,
                RunningVms = 0,
                SystemDiskSize = 0,
                Vms = 0,
            },
        },
    });
    
    example, err := opennebula.NewGroupQuotas(ctx, "groupQuotasResource", &opennebula.GroupQuotasArgs{
    	GroupId: pulumi.Float64(0),
    	Datastores: opennebula.GroupQuotasDatastoreArray{
    		&opennebula.GroupQuotasDatastoreArgs{
    			Id:     pulumi.Float64(0),
    			Images: pulumi.Float64(0),
    			Size:   pulumi.Float64(0),
    		},
    	},
    	GroupQuotasId: pulumi.String("string"),
    	Images: opennebula.GroupQuotasImageArray{
    		&opennebula.GroupQuotasImageArgs{
    			Id:         pulumi.Float64(0),
    			RunningVms: pulumi.Float64(0),
    		},
    	},
    	Networks: opennebula.GroupQuotasNetworkArray{
    		&opennebula.GroupQuotasNetworkArgs{
    			Id:     pulumi.Float64(0),
    			Leases: pulumi.Float64(0),
    		},
    	},
    	Vms: opennebula.GroupQuotasVmArray{
    		&opennebula.GroupQuotasVmArgs{
    			Cpu:            pulumi.Float64(0),
    			Memory:         pulumi.Float64(0),
    			RunningCpu:     pulumi.Float64(0),
    			RunningMemory:  pulumi.Float64(0),
    			RunningVms:     pulumi.Float64(0),
    			SystemDiskSize: pulumi.Float64(0),
    			Vms:            pulumi.Float64(0),
    		},
    	},
    })
    
    var groupQuotasResource = new GroupQuotas("groupQuotasResource", GroupQuotasArgs.builder()
        .groupId(0)
        .datastores(GroupQuotasDatastoreArgs.builder()
            .id(0)
            .images(0)
            .size(0)
            .build())
        .groupQuotasId("string")
        .images(GroupQuotasImageArgs.builder()
            .id(0)
            .runningVms(0)
            .build())
        .networks(GroupQuotasNetworkArgs.builder()
            .id(0)
            .leases(0)
            .build())
        .vms(GroupQuotasVmArgs.builder()
            .cpu(0)
            .memory(0)
            .runningCpu(0)
            .runningMemory(0)
            .runningVms(0)
            .systemDiskSize(0)
            .vms(0)
            .build())
        .build());
    
    group_quotas_resource = opennebula.GroupQuotas("groupQuotasResource",
        group_id=0,
        datastores=[{
            "id": 0,
            "images": 0,
            "size": 0,
        }],
        group_quotas_id="string",
        images=[{
            "id": 0,
            "running_vms": 0,
        }],
        networks=[{
            "id": 0,
            "leases": 0,
        }],
        vms=[{
            "cpu": 0,
            "memory": 0,
            "running_cpu": 0,
            "running_memory": 0,
            "running_vms": 0,
            "system_disk_size": 0,
            "vms": 0,
        }])
    
    const groupQuotasResource = new opennebula.GroupQuotas("groupQuotasResource", {
        groupId: 0,
        datastores: [{
            id: 0,
            images: 0,
            size: 0,
        }],
        groupQuotasId: "string",
        images: [{
            id: 0,
            runningVms: 0,
        }],
        networks: [{
            id: 0,
            leases: 0,
        }],
        vms: [{
            cpu: 0,
            memory: 0,
            runningCpu: 0,
            runningMemory: 0,
            runningVms: 0,
            systemDiskSize: 0,
            vms: 0,
        }],
    });
    
    type: opennebula:GroupQuotas
    properties:
        datastores:
            - id: 0
              images: 0
              size: 0
        groupId: 0
        groupQuotasId: string
        images:
            - id: 0
              runningVms: 0
        networks:
            - id: 0
              leases: 0
        vms:
            - cpu: 0
              memory: 0
              runningCpu: 0
              runningMemory: 0
              runningVms: 0
              systemDiskSize: 0
              vms: 0
    

    GroupQuotas Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The GroupQuotas resource accepts the following input properties:

    GroupId double
    The related group ID.
    Datastores List<GroupQuotasDatastore>
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    GroupQuotasId string
    Images List<GroupQuotasImage>
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    Networks List<GroupQuotasNetwork>
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    Vms List<GroupQuotasVm>
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    GroupId float64
    The related group ID.
    Datastores []GroupQuotasDatastoreArgs
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    GroupQuotasId string
    Images []GroupQuotasImageArgs
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    Networks []GroupQuotasNetworkArgs
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    Vms []GroupQuotasVmArgs
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    groupId Double
    The related group ID.
    datastores List<GroupQuotasDatastore>
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    groupQuotasId String
    images List<GroupQuotasImage>
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    networks List<GroupQuotasNetwork>
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    vms List<GroupQuotasVm>
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    groupId number
    The related group ID.
    datastores GroupQuotasDatastore[]
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    groupQuotasId string
    images GroupQuotasImage[]
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    networks GroupQuotasNetwork[]
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    vms GroupQuotasVm[]
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    group_id float
    The related group ID.
    datastores Sequence[GroupQuotasDatastoreArgs]
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    group_quotas_id str
    images Sequence[GroupQuotasImageArgs]
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    networks Sequence[GroupQuotasNetworkArgs]
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    vms Sequence[GroupQuotasVmArgs]
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    groupId Number
    The related group ID.
    datastores List<Property Map>
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    groupQuotasId String
    images List<Property Map>
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    networks List<Property Map>
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    vms List<Property Map>
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GroupQuotas resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    id string
    The provider-assigned unique ID for this managed resource.
    type string
    id str
    The provider-assigned unique ID for this managed resource.
    type str
    id String
    The provider-assigned unique ID for this managed resource.
    type String

    Look up Existing GroupQuotas Resource

    Get an existing GroupQuotas resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: GroupQuotasState, opts?: CustomResourceOptions): GroupQuotas
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            datastores: Optional[Sequence[GroupQuotasDatastoreArgs]] = None,
            group_id: Optional[float] = None,
            group_quotas_id: Optional[str] = None,
            images: Optional[Sequence[GroupQuotasImageArgs]] = None,
            networks: Optional[Sequence[GroupQuotasNetworkArgs]] = None,
            type: Optional[str] = None,
            vms: Optional[Sequence[GroupQuotasVmArgs]] = None) -> GroupQuotas
    func GetGroupQuotas(ctx *Context, name string, id IDInput, state *GroupQuotasState, opts ...ResourceOption) (*GroupQuotas, error)
    public static GroupQuotas Get(string name, Input<string> id, GroupQuotasState? state, CustomResourceOptions? opts = null)
    public static GroupQuotas get(String name, Output<String> id, GroupQuotasState state, CustomResourceOptions options)
    resources:  _:    type: opennebula:GroupQuotas    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Datastores List<GroupQuotasDatastore>
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    GroupId double
    The related group ID.
    GroupQuotasId string
    Images List<GroupQuotasImage>
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    Networks List<GroupQuotasNetwork>
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    Type string
    Vms List<GroupQuotasVm>
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    Datastores []GroupQuotasDatastoreArgs
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    GroupId float64
    The related group ID.
    GroupQuotasId string
    Images []GroupQuotasImageArgs
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    Networks []GroupQuotasNetworkArgs
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    Type string
    Vms []GroupQuotasVmArgs
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    datastores List<GroupQuotasDatastore>
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    groupId Double
    The related group ID.
    groupQuotasId String
    images List<GroupQuotasImage>
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    networks List<GroupQuotasNetwork>
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    type String
    vms List<GroupQuotasVm>
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    datastores GroupQuotasDatastore[]
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    groupId number
    The related group ID.
    groupQuotasId string
    images GroupQuotasImage[]
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    networks GroupQuotasNetwork[]
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    type string
    vms GroupQuotasVm[]
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    datastores Sequence[GroupQuotasDatastoreArgs]
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    group_id float
    The related group ID.
    group_quotas_id str
    images Sequence[GroupQuotasImageArgs]
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    networks Sequence[GroupQuotasNetworkArgs]
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    type str
    vms Sequence[GroupQuotasVmArgs]
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    datastores List<Property Map>
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    groupId Number
    The related group ID.
    groupQuotasId String
    images List<Property Map>
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    networks List<Property Map>
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    type String
    vms List<Property Map>
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.

    Supporting Types

    GroupQuotasDatastore, GroupQuotasDatastoreArgs

    Id double
    Datastore ID.
    Images double
    Maximum number of images allowed on the datastore. Defaults to default quota
    Size double
    Total size in MB allowed on the datastore. Defaults to default quota
    Id float64
    Datastore ID.
    Images float64
    Maximum number of images allowed on the datastore. Defaults to default quota
    Size float64
    Total size in MB allowed on the datastore. Defaults to default quota
    id Double
    Datastore ID.
    images Double
    Maximum number of images allowed on the datastore. Defaults to default quota
    size Double
    Total size in MB allowed on the datastore. Defaults to default quota
    id number
    Datastore ID.
    images number
    Maximum number of images allowed on the datastore. Defaults to default quota
    size number
    Total size in MB allowed on the datastore. Defaults to default quota
    id float
    Datastore ID.
    images float
    Maximum number of images allowed on the datastore. Defaults to default quota
    size float
    Total size in MB allowed on the datastore. Defaults to default quota
    id Number
    Datastore ID.
    images Number
    Maximum number of images allowed on the datastore. Defaults to default quota
    size Number
    Total size in MB allowed on the datastore. Defaults to default quota

    GroupQuotasImage, GroupQuotasImageArgs

    Id double
    Image ID.
    RunningVms double
    Maximum number of Virtual Machines in RUNNING state with this image ID attached. Defaults to default quota
    Id float64
    Image ID.
    RunningVms float64
    Maximum number of Virtual Machines in RUNNING state with this image ID attached. Defaults to default quota
    id Double
    Image ID.
    runningVms Double
    Maximum number of Virtual Machines in RUNNING state with this image ID attached. Defaults to default quota
    id number
    Image ID.
    runningVms number
    Maximum number of Virtual Machines in RUNNING state with this image ID attached. Defaults to default quota
    id float
    Image ID.
    running_vms float
    Maximum number of Virtual Machines in RUNNING state with this image ID attached. Defaults to default quota
    id Number
    Image ID.
    runningVms Number
    Maximum number of Virtual Machines in RUNNING state with this image ID attached. Defaults to default quota

    GroupQuotasNetwork, GroupQuotasNetworkArgs

    Id double
    Network ID.
    Leases double
    Maximum number of ip leases allowed on the network. Defaults to default quota
    Id float64
    Network ID.
    Leases float64
    Maximum number of ip leases allowed on the network. Defaults to default quota
    id Double
    Network ID.
    leases Double
    Maximum number of ip leases allowed on the network. Defaults to default quota
    id number
    Network ID.
    leases number
    Maximum number of ip leases allowed on the network. Defaults to default quota
    id float
    Network ID.
    leases float
    Maximum number of ip leases allowed on the network. Defaults to default quota
    id Number
    Network ID.
    leases Number
    Maximum number of ip leases allowed on the network. Defaults to default quota

    GroupQuotasVm, GroupQuotasVmArgs

    Cpu double
    Total of CPUs allowed. Defaults to default quota.
    Memory double
    Total of memory (in MB) allowed. Defaults to default quota.
    RunningCpu double
    Virtual Machine CPUs allowed in RUNNING state. Defaults to default quota.
    RunningMemory double
    Virtual Machine Memory (in MB) allowed in RUNNING state. Defaults to default quota.
    RunningVms double
    Number of Virtual Machines allowed in RUNNING state. Defaults to default quota.
    SystemDiskSize double
    Maximum disk global size (in MB) allowed on a SYSTEM datastore. Defaults to default quota.
    Vms double
    Maximum number of Virtual Machines allowed. Defaults to default quota.
    Cpu float64
    Total of CPUs allowed. Defaults to default quota.
    Memory float64
    Total of memory (in MB) allowed. Defaults to default quota.
    RunningCpu float64
    Virtual Machine CPUs allowed in RUNNING state. Defaults to default quota.
    RunningMemory float64
    Virtual Machine Memory (in MB) allowed in RUNNING state. Defaults to default quota.
    RunningVms float64
    Number of Virtual Machines allowed in RUNNING state. Defaults to default quota.
    SystemDiskSize float64
    Maximum disk global size (in MB) allowed on a SYSTEM datastore. Defaults to default quota.
    Vms float64
    Maximum number of Virtual Machines allowed. Defaults to default quota.
    cpu Double
    Total of CPUs allowed. Defaults to default quota.
    memory Double
    Total of memory (in MB) allowed. Defaults to default quota.
    runningCpu Double
    Virtual Machine CPUs allowed in RUNNING state. Defaults to default quota.
    runningMemory Double
    Virtual Machine Memory (in MB) allowed in RUNNING state. Defaults to default quota.
    runningVms Double
    Number of Virtual Machines allowed in RUNNING state. Defaults to default quota.
    systemDiskSize Double
    Maximum disk global size (in MB) allowed on a SYSTEM datastore. Defaults to default quota.
    vms Double
    Maximum number of Virtual Machines allowed. Defaults to default quota.
    cpu number
    Total of CPUs allowed. Defaults to default quota.
    memory number
    Total of memory (in MB) allowed. Defaults to default quota.
    runningCpu number
    Virtual Machine CPUs allowed in RUNNING state. Defaults to default quota.
    runningMemory number
    Virtual Machine Memory (in MB) allowed in RUNNING state. Defaults to default quota.
    runningVms number
    Number of Virtual Machines allowed in RUNNING state. Defaults to default quota.
    systemDiskSize number
    Maximum disk global size (in MB) allowed on a SYSTEM datastore. Defaults to default quota.
    vms number
    Maximum number of Virtual Machines allowed. Defaults to default quota.
    cpu float
    Total of CPUs allowed. Defaults to default quota.
    memory float
    Total of memory (in MB) allowed. Defaults to default quota.
    running_cpu float
    Virtual Machine CPUs allowed in RUNNING state. Defaults to default quota.
    running_memory float
    Virtual Machine Memory (in MB) allowed in RUNNING state. Defaults to default quota.
    running_vms float
    Number of Virtual Machines allowed in RUNNING state. Defaults to default quota.
    system_disk_size float
    Maximum disk global size (in MB) allowed on a SYSTEM datastore. Defaults to default quota.
    vms float
    Maximum number of Virtual Machines allowed. Defaults to default quota.
    cpu Number
    Total of CPUs allowed. Defaults to default quota.
    memory Number
    Total of memory (in MB) allowed. Defaults to default quota.
    runningCpu Number
    Virtual Machine CPUs allowed in RUNNING state. Defaults to default quota.
    runningMemory Number
    Virtual Machine Memory (in MB) allowed in RUNNING state. Defaults to default quota.
    runningVms Number
    Number of Virtual Machines allowed in RUNNING state. Defaults to default quota.
    systemDiskSize Number
    Maximum disk global size (in MB) allowed on a SYSTEM datastore. Defaults to default quota.
    vms Number
    Maximum number of Virtual Machines allowed. Defaults to default quota.

    Import

    opennebula_group_quotas can be imported using the group ID and the quota section to import:

    $ pulumi import opennebula:index/groupQuotas:GroupQuotas example 123:image
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opennebula opennebula/terraform-provider-opennebula
    License
    Notes
    This Pulumi package is based on the opennebula Terraform Provider.
    opennebula logo
    opennebula 1.4.1 published on Monday, Apr 14, 2025 by opennebula