OpenStack

Pulumi Official
Package maintained by Pulumi
v3.8.0 published on Monday, Feb 7, 2022 by Pulumi

QuoteSetV3

Manages a V3 block storage quotaset resource within OpenStack.

Note: This usually requires admin privileges.

Note: This resource has a no-op deletion so no actual actions will be done against the OpenStack API in case of delete call.

Note: This resource has all-in creation so all optional quota arguments that were not specified are created with zero value. This excludes volume type quota.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var project1 = new OpenStack.Identity.Project("project1", new OpenStack.Identity.ProjectArgs
        {
        });
        var quotaset1 = new OpenStack.BlockStorage.QuoteSetV3("quotaset1", new OpenStack.BlockStorage.QuoteSetV3Args
        {
            ProjectId = project1.Id,
            Volumes = 10,
            Snapshots = 4,
            Gigabytes = 100,
            PerVolumeGigabytes = 10,
            Backups = 4,
            BackupGigabytes = 10,
            Groups = 100,
            VolumeTypeQuota = 
            {
                { "volumes_ssd", 30 },
                { "gigabytes_ssd", 500 },
                { "snapshots_ssd", 10 },
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/blockstorage"
	"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/identity"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		project1, err := identity.NewProject(ctx, "project1", nil)
		if err != nil {
			return err
		}
		_, err = blockstorage.NewQuoteSetV3(ctx, "quotaset1", &blockstorage.QuoteSetV3Args{
			ProjectId:          project1.ID(),
			Volumes:            pulumi.Int(10),
			Snapshots:          pulumi.Int(4),
			Gigabytes:          pulumi.Int(100),
			PerVolumeGigabytes: pulumi.Int(10),
			Backups:            pulumi.Int(4),
			BackupGigabytes:    pulumi.Int(10),
			Groups:             pulumi.Int(100),
			VolumeTypeQuota: pulumi.AnyMap{
				"volumes_ssd":   pulumi.Any(30),
				"gigabytes_ssd": pulumi.Any(500),
				"snapshots_ssd": pulumi.Any(10),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_openstack as openstack

project1 = openstack.identity.Project("project1")
quotaset1 = openstack.blockstorage.QuoteSetV3("quotaset1",
    project_id=project1.id,
    volumes=10,
    snapshots=4,
    gigabytes=100,
    per_volume_gigabytes=10,
    backups=4,
    backup_gigabytes=10,
    groups=100,
    volume_type_quota={
        "volumes_ssd": 30,
        "gigabytes_ssd": 500,
        "snapshots_ssd": 10,
    })
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const project1 = new openstack.identity.Project("project1", {});
const quotaset1 = new openstack.blockstorage.QuoteSetV3("quotaset1", {
    projectId: project1.id,
    volumes: 10,
    snapshots: 4,
    gigabytes: 100,
    perVolumeGigabytes: 10,
    backups: 4,
    backupGigabytes: 10,
    groups: 100,
    volumeTypeQuota: {
        volumes_ssd: 30,
        gigabytes_ssd: 500,
        snapshots_ssd: 10,
    },
});

Coming soon!

Create a QuoteSetV3 Resource

new QuoteSetV3(name: string, args: QuoteSetV3Args, opts?: CustomResourceOptions);
@overload
def QuoteSetV3(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               backup_gigabytes: Optional[int] = None,
               backups: Optional[int] = None,
               gigabytes: Optional[int] = None,
               groups: Optional[int] = None,
               per_volume_gigabytes: Optional[int] = None,
               project_id: Optional[str] = None,
               region: Optional[str] = None,
               snapshots: Optional[int] = None,
               volume_type_quota: Optional[Mapping[str, Any]] = None,
               volumes: Optional[int] = None)
@overload
def QuoteSetV3(resource_name: str,
               args: QuoteSetV3Args,
               opts: Optional[ResourceOptions] = None)
func NewQuoteSetV3(ctx *Context, name string, args QuoteSetV3Args, opts ...ResourceOption) (*QuoteSetV3, error)
public QuoteSetV3(string name, QuoteSetV3Args args, CustomResourceOptions? opts = null)
public QuoteSetV3(String name, QuoteSetV3Args args)
public QuoteSetV3(String name, QuoteSetV3Args args, CustomResourceOptions options)
type: openstack:blockstorage:QuoteSetV3
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args QuoteSetV3Args
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 QuoteSetV3Args
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 QuoteSetV3Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args QuoteSetV3Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args QuoteSetV3Args
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

QuoteSetV3 Resource Properties

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

Inputs

The QuoteSetV3 resource accepts the following input properties:

ProjectId string

ID of the project to manage quotas. Changing this creates a new quotaset.

BackupGigabytes int

Quota value for backup gigabytes. Changing this updates the existing quotaset.

Backups int

Quota value for backups. Changing this updates the existing quotaset.

Gigabytes int

Quota value for gigabytes. Changing this updates the existing quotaset.

Groups int

Quota value for groups. Changing this updates the existing quotaset.

PerVolumeGigabytes int

Quota value for gigabytes per volume . Changing this updates the existing quotaset.

Region string

The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new quotaset.

Snapshots int

Quota value for snapshots. Changing this updates the existing quotaset.

VolumeTypeQuota Dictionary<string, object>

Key/Value pairs for setting quota for volumes types. Possible keys are snapshots_<volume_type_name>, volumes_<volume_type_name> and gigabytes_<volume_type_name>.

Volumes int

Quota value for volumes. Changing this updates the existing quotaset.

ProjectId string

ID of the project to manage quotas. Changing this creates a new quotaset.

BackupGigabytes int

Quota value for backup gigabytes. Changing this updates the existing quotaset.

Backups int

Quota value for backups. Changing this updates the existing quotaset.

Gigabytes int

Quota value for gigabytes. Changing this updates the existing quotaset.

Groups int

Quota value for groups. Changing this updates the existing quotaset.

PerVolumeGigabytes int

Quota value for gigabytes per volume . Changing this updates the existing quotaset.

Region string

The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new quotaset.

Snapshots int

Quota value for snapshots. Changing this updates the existing quotaset.

VolumeTypeQuota map[string]interface{}

Key/Value pairs for setting quota for volumes types. Possible keys are snapshots_<volume_type_name>, volumes_<volume_type_name> and gigabytes_<volume_type_name>.

Volumes int

Quota value for volumes. Changing this updates the existing quotaset.

projectId String

ID of the project to manage quotas. Changing this creates a new quotaset.

backupGigabytes Integer

Quota value for backup gigabytes. Changing this updates the existing quotaset.

backups Integer

Quota value for backups. Changing this updates the existing quotaset.

gigabytes Integer

Quota value for gigabytes. Changing this updates the existing quotaset.

groups Integer

Quota value for groups. Changing this updates the existing quotaset.

perVolumeGigabytes Integer

Quota value for gigabytes per volume . Changing this updates the existing quotaset.

region String

The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new quotaset.

snapshots Integer

Quota value for snapshots. Changing this updates the existing quotaset.

volumeTypeQuota Map<String,Object>

Key/Value pairs for setting quota for volumes types. Possible keys are snapshots_<volume_type_name>, volumes_<volume_type_name> and gigabytes_<volume_type_name>.

volumes Integer

Quota value for volumes. Changing this updates the existing quotaset.

projectId string

ID of the project to manage quotas. Changing this creates a new quotaset.

backupGigabytes number

Quota value for backup gigabytes. Changing this updates the existing quotaset.

backups number

Quota value for backups. Changing this updates the existing quotaset.

gigabytes number

Quota value for gigabytes. Changing this updates the existing quotaset.

groups number

Quota value for groups. Changing this updates the existing quotaset.

perVolumeGigabytes number

Quota value for gigabytes per volume . Changing this updates the existing quotaset.

region string

The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new quotaset.

snapshots number

Quota value for snapshots. Changing this updates the existing quotaset.

volumeTypeQuota {[key: string]: any}

Key/Value pairs for setting quota for volumes types. Possible keys are snapshots_<volume_type_name>, volumes_<volume_type_name> and gigabytes_<volume_type_name>.

volumes number

Quota value for volumes. Changing this updates the existing quotaset.

project_id str

ID of the project to manage quotas. Changing this creates a new quotaset.

backup_gigabytes int

Quota value for backup gigabytes. Changing this updates the existing quotaset.

backups int

Quota value for backups. Changing this updates the existing quotaset.

gigabytes int

Quota value for gigabytes. Changing this updates the existing quotaset.

groups int

Quota value for groups. Changing this updates the existing quotaset.

per_volume_gigabytes int

Quota value for gigabytes per volume . Changing this updates the existing quotaset.

region str

The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new quotaset.

snapshots int

Quota value for snapshots. Changing this updates the existing quotaset.

volume_type_quota Mapping[str, Any]

Key/Value pairs for setting quota for volumes types. Possible keys are snapshots_<volume_type_name>, volumes_<volume_type_name> and gigabytes_<volume_type_name>.

volumes int

Quota value for volumes. Changing this updates the existing quotaset.

projectId String

ID of the project to manage quotas. Changing this creates a new quotaset.

backupGigabytes Number

Quota value for backup gigabytes. Changing this updates the existing quotaset.

backups Number

Quota value for backups. Changing this updates the existing quotaset.

gigabytes Number

Quota value for gigabytes. Changing this updates the existing quotaset.

groups Number

Quota value for groups. Changing this updates the existing quotaset.

perVolumeGigabytes Number

Quota value for gigabytes per volume . Changing this updates the existing quotaset.

region String

The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new quotaset.

snapshots Number

Quota value for snapshots. Changing this updates the existing quotaset.

volumeTypeQuota Map<Any>

Key/Value pairs for setting quota for volumes types. Possible keys are snapshots_<volume_type_name>, volumes_<volume_type_name> and gigabytes_<volume_type_name>.

volumes Number

Quota value for volumes. Changing this updates the existing quotaset.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing QuoteSetV3 Resource

Get an existing QuoteSetV3 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?: QuoteSetV3State, opts?: CustomResourceOptions): QuoteSetV3
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        backup_gigabytes: Optional[int] = None,
        backups: Optional[int] = None,
        gigabytes: Optional[int] = None,
        groups: Optional[int] = None,
        per_volume_gigabytes: Optional[int] = None,
        project_id: Optional[str] = None,
        region: Optional[str] = None,
        snapshots: Optional[int] = None,
        volume_type_quota: Optional[Mapping[str, Any]] = None,
        volumes: Optional[int] = None) -> QuoteSetV3
func GetQuoteSetV3(ctx *Context, name string, id IDInput, state *QuoteSetV3State, opts ...ResourceOption) (*QuoteSetV3, error)
public static QuoteSetV3 Get(string name, Input<string> id, QuoteSetV3State? state, CustomResourceOptions? opts = null)
public static QuoteSetV3 get(String name, Output<String> id, QuoteSetV3State state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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:
BackupGigabytes int

Quota value for backup gigabytes. Changing this updates the existing quotaset.

Backups int

Quota value for backups. Changing this updates the existing quotaset.

Gigabytes int

Quota value for gigabytes. Changing this updates the existing quotaset.

Groups int

Quota value for groups. Changing this updates the existing quotaset.

PerVolumeGigabytes int

Quota value for gigabytes per volume . Changing this updates the existing quotaset.

ProjectId string

ID of the project to manage quotas. Changing this creates a new quotaset.

Region string

The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new quotaset.

Snapshots int

Quota value for snapshots. Changing this updates the existing quotaset.

VolumeTypeQuota Dictionary<string, object>

Key/Value pairs for setting quota for volumes types. Possible keys are snapshots_<volume_type_name>, volumes_<volume_type_name> and gigabytes_<volume_type_name>.

Volumes int

Quota value for volumes. Changing this updates the existing quotaset.

BackupGigabytes int

Quota value for backup gigabytes. Changing this updates the existing quotaset.

Backups int

Quota value for backups. Changing this updates the existing quotaset.

Gigabytes int

Quota value for gigabytes. Changing this updates the existing quotaset.

Groups int

Quota value for groups. Changing this updates the existing quotaset.

PerVolumeGigabytes int

Quota value for gigabytes per volume . Changing this updates the existing quotaset.

ProjectId string

ID of the project to manage quotas. Changing this creates a new quotaset.

Region string

The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new quotaset.

Snapshots int

Quota value for snapshots. Changing this updates the existing quotaset.

VolumeTypeQuota map[string]interface{}

Key/Value pairs for setting quota for volumes types. Possible keys are snapshots_<volume_type_name>, volumes_<volume_type_name> and gigabytes_<volume_type_name>.

Volumes int

Quota value for volumes. Changing this updates the existing quotaset.

backupGigabytes Integer

Quota value for backup gigabytes. Changing this updates the existing quotaset.

backups Integer

Quota value for backups. Changing this updates the existing quotaset.

gigabytes Integer

Quota value for gigabytes. Changing this updates the existing quotaset.

groups Integer

Quota value for groups. Changing this updates the existing quotaset.

perVolumeGigabytes Integer

Quota value for gigabytes per volume . Changing this updates the existing quotaset.

projectId String

ID of the project to manage quotas. Changing this creates a new quotaset.

region String

The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new quotaset.

snapshots Integer

Quota value for snapshots. Changing this updates the existing quotaset.

volumeTypeQuota Map<String,Object>

Key/Value pairs for setting quota for volumes types. Possible keys are snapshots_<volume_type_name>, volumes_<volume_type_name> and gigabytes_<volume_type_name>.

volumes Integer

Quota value for volumes. Changing this updates the existing quotaset.

backupGigabytes number

Quota value for backup gigabytes. Changing this updates the existing quotaset.

backups number

Quota value for backups. Changing this updates the existing quotaset.

gigabytes number

Quota value for gigabytes. Changing this updates the existing quotaset.

groups number

Quota value for groups. Changing this updates the existing quotaset.

perVolumeGigabytes number

Quota value for gigabytes per volume . Changing this updates the existing quotaset.

projectId string

ID of the project to manage quotas. Changing this creates a new quotaset.

region string

The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new quotaset.

snapshots number

Quota value for snapshots. Changing this updates the existing quotaset.

volumeTypeQuota {[key: string]: any}

Key/Value pairs for setting quota for volumes types. Possible keys are snapshots_<volume_type_name>, volumes_<volume_type_name> and gigabytes_<volume_type_name>.

volumes number

Quota value for volumes. Changing this updates the existing quotaset.

backup_gigabytes int

Quota value for backup gigabytes. Changing this updates the existing quotaset.

backups int

Quota value for backups. Changing this updates the existing quotaset.

gigabytes int

Quota value for gigabytes. Changing this updates the existing quotaset.

groups int

Quota value for groups. Changing this updates the existing quotaset.

per_volume_gigabytes int

Quota value for gigabytes per volume . Changing this updates the existing quotaset.

project_id str

ID of the project to manage quotas. Changing this creates a new quotaset.

region str

The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new quotaset.

snapshots int

Quota value for snapshots. Changing this updates the existing quotaset.

volume_type_quota Mapping[str, Any]

Key/Value pairs for setting quota for volumes types. Possible keys are snapshots_<volume_type_name>, volumes_<volume_type_name> and gigabytes_<volume_type_name>.

volumes int

Quota value for volumes. Changing this updates the existing quotaset.

backupGigabytes Number

Quota value for backup gigabytes. Changing this updates the existing quotaset.

backups Number

Quota value for backups. Changing this updates the existing quotaset.

gigabytes Number

Quota value for gigabytes. Changing this updates the existing quotaset.

groups Number

Quota value for groups. Changing this updates the existing quotaset.

perVolumeGigabytes Number

Quota value for gigabytes per volume . Changing this updates the existing quotaset.

projectId String

ID of the project to manage quotas. Changing this creates a new quotaset.

region String

The region in which to create the volume. If omitted, the region argument of the provider is used. Changing this creates a new quotaset.

snapshots Number

Quota value for snapshots. Changing this updates the existing quotaset.

volumeTypeQuota Map<Any>

Key/Value pairs for setting quota for volumes types. Possible keys are snapshots_<volume_type_name>, volumes_<volume_type_name> and gigabytes_<volume_type_name>.

volumes Number

Quota value for volumes. Changing this updates the existing quotaset.

Import

Quotasets can be imported using the project_id/region, e.g.

 $ pulumi import openstack:blockstorage/quoteSetV3:QuoteSetV3 quotaset_1 2a0f2240-c5e6-41de-896d-e80d97428d6b/region_1

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes

This Pulumi package is based on the openstack Terraform Provider.