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

opennebula.UserQuotas

Explore with Pulumi AI

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

    Provides an OpenNebula user quotas resource.

    This resource allows you to manage the quotas for an user.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opennebula from "@pulumi/opennebula";
    
    const datastoreExample = new opennebula.UserQuotas("datastoreExample", {
        userId: opennebula_user.example.id,
        datastores: [{
            id: 1,
            images: 5,
            size: 10000,
        }],
    });
    const vmExample = new opennebula.UserQuotas("vmExample", {
        userId: opennebula_user.example.id,
        vms: [{
            cpu: 3,
            runningCpu: 3,
            memory: 2048,
            runningMemory: 2048,
        }],
    });
    const networkExample = new opennebula.UserQuotas("networkExample", {
        userId: opennebula_user.example.id,
        networks: [
            {
                id: 10,
                leases: 6,
            },
            {
                id: 11,
                leases: 4,
            },
        ],
    });
    const imageExample = new opennebula.UserQuotas("imageExample", {
        userId: opennebula_user.example.id,
        images: [
            {
                id: 8,
                runningVms: 1,
            },
            {
                id: 9,
                runningVms: 1,
            },
        ],
    });
    
    import pulumi
    import pulumi_opennebula as opennebula
    
    datastore_example = opennebula.UserQuotas("datastoreExample",
        user_id=opennebula_user["example"]["id"],
        datastores=[{
            "id": 1,
            "images": 5,
            "size": 10000,
        }])
    vm_example = opennebula.UserQuotas("vmExample",
        user_id=opennebula_user["example"]["id"],
        vms=[{
            "cpu": 3,
            "running_cpu": 3,
            "memory": 2048,
            "running_memory": 2048,
        }])
    network_example = opennebula.UserQuotas("networkExample",
        user_id=opennebula_user["example"]["id"],
        networks=[
            {
                "id": 10,
                "leases": 6,
            },
            {
                "id": 11,
                "leases": 4,
            },
        ])
    image_example = opennebula.UserQuotas("imageExample",
        user_id=opennebula_user["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.NewUserQuotas(ctx, "datastoreExample", &opennebula.UserQuotasArgs{
    			UserId: pulumi.Any(opennebula_user.Example.Id),
    			Datastores: opennebula.UserQuotasDatastoreArray{
    				&opennebula.UserQuotasDatastoreArgs{
    					Id:     pulumi.Float64(1),
    					Images: pulumi.Float64(5),
    					Size:   pulumi.Float64(10000),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opennebula.NewUserQuotas(ctx, "vmExample", &opennebula.UserQuotasArgs{
    			UserId: pulumi.Any(opennebula_user.Example.Id),
    			Vms: opennebula.UserQuotasVmArray{
    				&opennebula.UserQuotasVmArgs{
    					Cpu:           pulumi.Float64(3),
    					RunningCpu:    pulumi.Float64(3),
    					Memory:        pulumi.Float64(2048),
    					RunningMemory: pulumi.Float64(2048),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opennebula.NewUserQuotas(ctx, "networkExample", &opennebula.UserQuotasArgs{
    			UserId: pulumi.Any(opennebula_user.Example.Id),
    			Networks: opennebula.UserQuotasNetworkArray{
    				&opennebula.UserQuotasNetworkArgs{
    					Id:     pulumi.Float64(10),
    					Leases: pulumi.Float64(6),
    				},
    				&opennebula.UserQuotasNetworkArgs{
    					Id:     pulumi.Float64(11),
    					Leases: pulumi.Float64(4),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opennebula.NewUserQuotas(ctx, "imageExample", &opennebula.UserQuotasArgs{
    			UserId: pulumi.Any(opennebula_user.Example.Id),
    			Images: opennebula.UserQuotasImageArray{
    				&opennebula.UserQuotasImageArgs{
    					Id:         pulumi.Float64(8),
    					RunningVms: pulumi.Float64(1),
    				},
    				&opennebula.UserQuotasImageArgs{
    					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 datastoreExample = new Opennebula.UserQuotas("datastoreExample", new()
        {
            UserId = opennebula_user.Example.Id,
            Datastores = new[]
            {
                new Opennebula.Inputs.UserQuotasDatastoreArgs
                {
                    Id = 1,
                    Images = 5,
                    Size = 10000,
                },
            },
        });
    
        var vmExample = new Opennebula.UserQuotas("vmExample", new()
        {
            UserId = opennebula_user.Example.Id,
            Vms = new[]
            {
                new Opennebula.Inputs.UserQuotasVmArgs
                {
                    Cpu = 3,
                    RunningCpu = 3,
                    Memory = 2048,
                    RunningMemory = 2048,
                },
            },
        });
    
        var networkExample = new Opennebula.UserQuotas("networkExample", new()
        {
            UserId = opennebula_user.Example.Id,
            Networks = new[]
            {
                new Opennebula.Inputs.UserQuotasNetworkArgs
                {
                    Id = 10,
                    Leases = 6,
                },
                new Opennebula.Inputs.UserQuotasNetworkArgs
                {
                    Id = 11,
                    Leases = 4,
                },
            },
        });
    
        var imageExample = new Opennebula.UserQuotas("imageExample", new()
        {
            UserId = opennebula_user.Example.Id,
            Images = new[]
            {
                new Opennebula.Inputs.UserQuotasImageArgs
                {
                    Id = 8,
                    RunningVms = 1,
                },
                new Opennebula.Inputs.UserQuotasImageArgs
                {
                    Id = 9,
                    RunningVms = 1,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opennebula.UserQuotas;
    import com.pulumi.opennebula.UserQuotasArgs;
    import com.pulumi.opennebula.inputs.UserQuotasDatastoreArgs;
    import com.pulumi.opennebula.inputs.UserQuotasVmArgs;
    import com.pulumi.opennebula.inputs.UserQuotasNetworkArgs;
    import com.pulumi.opennebula.inputs.UserQuotasImageArgs;
    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 datastoreExample = new UserQuotas("datastoreExample", UserQuotasArgs.builder()
                .userId(opennebula_user.example().id())
                .datastores(UserQuotasDatastoreArgs.builder()
                    .id(1)
                    .images(5)
                    .size(10000)
                    .build())
                .build());
    
            var vmExample = new UserQuotas("vmExample", UserQuotasArgs.builder()
                .userId(opennebula_user.example().id())
                .vms(UserQuotasVmArgs.builder()
                    .cpu(3)
                    .runningCpu(3)
                    .memory(2048)
                    .runningMemory(2048)
                    .build())
                .build());
    
            var networkExample = new UserQuotas("networkExample", UserQuotasArgs.builder()
                .userId(opennebula_user.example().id())
                .networks(            
                    UserQuotasNetworkArgs.builder()
                        .id(10)
                        .leases(6)
                        .build(),
                    UserQuotasNetworkArgs.builder()
                        .id(11)
                        .leases(4)
                        .build())
                .build());
    
            var imageExample = new UserQuotas("imageExample", UserQuotasArgs.builder()
                .userId(opennebula_user.example().id())
                .images(            
                    UserQuotasImageArgs.builder()
                        .id(8)
                        .runningVms(1)
                        .build(),
                    UserQuotasImageArgs.builder()
                        .id(9)
                        .runningVms(1)
                        .build())
                .build());
    
        }
    }
    
    resources:
      datastoreExample:
        type: opennebula:UserQuotas
        properties:
          userId: ${opennebula_user.example.id}
          datastores:
            - id: 1
              images: 5
              size: 10000
      vmExample:
        type: opennebula:UserQuotas
        properties:
          userId: ${opennebula_user.example.id}
          vms:
            - cpu: 3
              runningCpu: 3
              memory: 2048
              runningMemory: 2048
      networkExample:
        type: opennebula:UserQuotas
        properties:
          userId: ${opennebula_user.example.id}
          networks:
            - id: 10
              leases: 6
            - id: 11
              leases: 4
      imageExample:
        type: opennebula:UserQuotas
        properties:
          userId: ${opennebula_user.example.id}
          images:
            - id: 8
              runningVms: 1
            - id: 9
              runningVms: 1
    

    Create UserQuotas Resource

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

    Constructor syntax

    new UserQuotas(name: string, args: UserQuotasArgs, opts?: CustomResourceOptions);
    @overload
    def UserQuotas(resource_name: str,
                   args: UserQuotasArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def UserQuotas(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   user_id: Optional[float] = None,
                   datastores: Optional[Sequence[UserQuotasDatastoreArgs]] = None,
                   images: Optional[Sequence[UserQuotasImageArgs]] = None,
                   networks: Optional[Sequence[UserQuotasNetworkArgs]] = None,
                   user_quotas_id: Optional[str] = None,
                   vms: Optional[Sequence[UserQuotasVmArgs]] = None)
    func NewUserQuotas(ctx *Context, name string, args UserQuotasArgs, opts ...ResourceOption) (*UserQuotas, error)
    public UserQuotas(string name, UserQuotasArgs args, CustomResourceOptions? opts = null)
    public UserQuotas(String name, UserQuotasArgs args)
    public UserQuotas(String name, UserQuotasArgs args, CustomResourceOptions options)
    
    type: opennebula:UserQuotas
    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 UserQuotasArgs
    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 UserQuotasArgs
    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 UserQuotasArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UserQuotasArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UserQuotasArgs
    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 userQuotasResource = new Opennebula.UserQuotas("userQuotasResource", new()
    {
        UserId = 0,
        Datastores = new[]
        {
            new Opennebula.Inputs.UserQuotasDatastoreArgs
            {
                Id = 0,
                Images = 0,
                Size = 0,
            },
        },
        Images = new[]
        {
            new Opennebula.Inputs.UserQuotasImageArgs
            {
                Id = 0,
                RunningVms = 0,
            },
        },
        Networks = new[]
        {
            new Opennebula.Inputs.UserQuotasNetworkArgs
            {
                Id = 0,
                Leases = 0,
            },
        },
        UserQuotasId = "string",
        Vms = new[]
        {
            new Opennebula.Inputs.UserQuotasVmArgs
            {
                Cpu = 0,
                Memory = 0,
                RunningCpu = 0,
                RunningMemory = 0,
                RunningVms = 0,
                SystemDiskSize = 0,
                Vms = 0,
            },
        },
    });
    
    example, err := opennebula.NewUserQuotas(ctx, "userQuotasResource", &opennebula.UserQuotasArgs{
    UserId: pulumi.Float64(0),
    Datastores: .UserQuotasDatastoreArray{
    &.UserQuotasDatastoreArgs{
    Id: pulumi.Float64(0),
    Images: pulumi.Float64(0),
    Size: pulumi.Float64(0),
    },
    },
    Images: .UserQuotasImageArray{
    &.UserQuotasImageArgs{
    Id: pulumi.Float64(0),
    RunningVms: pulumi.Float64(0),
    },
    },
    Networks: .UserQuotasNetworkArray{
    &.UserQuotasNetworkArgs{
    Id: pulumi.Float64(0),
    Leases: pulumi.Float64(0),
    },
    },
    UserQuotasId: pulumi.String("string"),
    Vms: .UserQuotasVmArray{
    &.UserQuotasVmArgs{
    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 userQuotasResource = new UserQuotas("userQuotasResource", UserQuotasArgs.builder()
        .userId(0)
        .datastores(UserQuotasDatastoreArgs.builder()
            .id(0)
            .images(0)
            .size(0)
            .build())
        .images(UserQuotasImageArgs.builder()
            .id(0)
            .runningVms(0)
            .build())
        .networks(UserQuotasNetworkArgs.builder()
            .id(0)
            .leases(0)
            .build())
        .userQuotasId("string")
        .vms(UserQuotasVmArgs.builder()
            .cpu(0)
            .memory(0)
            .runningCpu(0)
            .runningMemory(0)
            .runningVms(0)
            .systemDiskSize(0)
            .vms(0)
            .build())
        .build());
    
    user_quotas_resource = opennebula.UserQuotas("userQuotasResource",
        user_id=0,
        datastores=[{
            "id": 0,
            "images": 0,
            "size": 0,
        }],
        images=[{
            "id": 0,
            "running_vms": 0,
        }],
        networks=[{
            "id": 0,
            "leases": 0,
        }],
        user_quotas_id="string",
        vms=[{
            "cpu": 0,
            "memory": 0,
            "running_cpu": 0,
            "running_memory": 0,
            "running_vms": 0,
            "system_disk_size": 0,
            "vms": 0,
        }])
    
    const userQuotasResource = new opennebula.UserQuotas("userQuotasResource", {
        userId: 0,
        datastores: [{
            id: 0,
            images: 0,
            size: 0,
        }],
        images: [{
            id: 0,
            runningVms: 0,
        }],
        networks: [{
            id: 0,
            leases: 0,
        }],
        userQuotasId: "string",
        vms: [{
            cpu: 0,
            memory: 0,
            runningCpu: 0,
            runningMemory: 0,
            runningVms: 0,
            systemDiskSize: 0,
            vms: 0,
        }],
    });
    
    type: opennebula:UserQuotas
    properties:
        datastores:
            - id: 0
              images: 0
              size: 0
        images:
            - id: 0
              runningVms: 0
        networks:
            - id: 0
              leases: 0
        userId: 0
        userQuotasId: string
        vms:
            - cpu: 0
              memory: 0
              runningCpu: 0
              runningMemory: 0
              runningVms: 0
              systemDiskSize: 0
              vms: 0
    

    UserQuotas 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 UserQuotas resource accepts the following input properties:

    UserId double
    The related user ID.
    Datastores List<UserQuotasDatastore>
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    Images List<UserQuotasImage>
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    Networks List<UserQuotasNetwork>
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    UserQuotasId string
    Vms List<UserQuotasVm>
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    UserId float64
    The related user ID.
    Datastores []UserQuotasDatastoreArgs
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    Images []UserQuotasImageArgs
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    Networks []UserQuotasNetworkArgs
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    UserQuotasId string
    Vms []UserQuotasVmArgs
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    userId Double
    The related user ID.
    datastores List<UserQuotasDatastore>
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    images List<UserQuotasImage>
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    networks List<UserQuotasNetwork>
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    userQuotasId String
    vms List<UserQuotasVm>
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    userId number
    The related user ID.
    datastores UserQuotasDatastore[]
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    images UserQuotasImage[]
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    networks UserQuotasNetwork[]
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    userQuotasId string
    vms UserQuotasVm[]
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    user_id float
    The related user ID.
    datastores Sequence[UserQuotasDatastoreArgs]
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    images Sequence[UserQuotasImageArgs]
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    networks Sequence[UserQuotasNetworkArgs]
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    user_quotas_id str
    vms Sequence[UserQuotasVmArgs]
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    userId Number
    The related user ID.
    datastores List<Property Map>
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    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.
    userQuotasId String
    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 UserQuotas 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 UserQuotas Resource

    Get an existing UserQuotas 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?: UserQuotasState, opts?: CustomResourceOptions): UserQuotas
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            datastores: Optional[Sequence[UserQuotasDatastoreArgs]] = None,
            images: Optional[Sequence[UserQuotasImageArgs]] = None,
            networks: Optional[Sequence[UserQuotasNetworkArgs]] = None,
            type: Optional[str] = None,
            user_id: Optional[float] = None,
            user_quotas_id: Optional[str] = None,
            vms: Optional[Sequence[UserQuotasVmArgs]] = None) -> UserQuotas
    func GetUserQuotas(ctx *Context, name string, id IDInput, state *UserQuotasState, opts ...ResourceOption) (*UserQuotas, error)
    public static UserQuotas Get(string name, Input<string> id, UserQuotasState? state, CustomResourceOptions? opts = null)
    public static UserQuotas get(String name, Output<String> id, UserQuotasState state, CustomResourceOptions options)
    resources:  _:    type: opennebula:UserQuotas    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<UserQuotasDatastore>
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    Images List<UserQuotasImage>
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    Networks List<UserQuotasNetwork>
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    Type string
    UserId double
    The related user ID.
    UserQuotasId string
    Vms List<UserQuotasVm>
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    Datastores []UserQuotasDatastoreArgs
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    Images []UserQuotasImageArgs
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    Networks []UserQuotasNetworkArgs
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    Type string
    UserId float64
    The related user ID.
    UserQuotasId string
    Vms []UserQuotasVmArgs
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    datastores List<UserQuotasDatastore>
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    images List<UserQuotasImage>
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    networks List<UserQuotasNetwork>
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    type String
    userId Double
    The related user ID.
    userQuotasId String
    vms List<UserQuotasVm>
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    datastores UserQuotasDatastore[]
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    images UserQuotasImage[]
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    networks UserQuotasNetwork[]
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    type string
    userId number
    The related user ID.
    userQuotasId string
    vms UserQuotasVm[]
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.
    datastores Sequence[UserQuotasDatastoreArgs]
    List of datastore quotas. See Datastore quotas parameters below for details. Conflicts with network, image, vm.
    images Sequence[UserQuotasImageArgs]
    List of image quotas. See Image quotas parameters below for details. Conflicts with datastore, network, vm.
    networks Sequence[UserQuotasNetworkArgs]
    List of network quotas. See Network quotas parameters below for details. Conflicts with datastore, image, vm.
    type str
    user_id float
    The related user ID.
    user_quotas_id str
    vms Sequence[UserQuotasVmArgs]
    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.
    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
    userId Number
    The related user ID.
    userQuotasId String
    vms List<Property Map>
    See Virtual Machine quotas parameters below for details. Conflicts with datastore, network, image.

    Supporting Types

    UserQuotasDatastore, UserQuotasDatastoreArgs

    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

    UserQuotasImage, UserQuotasImageArgs

    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

    UserQuotasNetwork, UserQuotasNetworkArgs

    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

    UserQuotasVm, UserQuotasVmArgs

    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_user_quotas can be imported using the user ID and the quotas section to import:

    $ pulumi import opennebula:index/userQuotas:UserQuotas example 123:datastore
    

    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