OpenStack

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

getQuotasetV3

Use this data source to get the blockstorage quotaset v3 of an OpenStack project.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var quota = Output.Create(OpenStack.BlockStorage.GetQuotasetV3.InvokeAsync(new OpenStack.BlockStorage.GetQuotasetV3Args
        {
            ProjectId = "2e367a3d29f94fd988e6ec54e305ec9d",
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := blockstorage.GetQuotasetV3(ctx, &blockstorage.GetQuotasetV3Args{
			ProjectId: "2e367a3d29f94fd988e6ec54e305ec9d",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_openstack as openstack

quota = openstack.blockstorage.get_quotaset_v3(project_id="2e367a3d29f94fd988e6ec54e305ec9d")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const quota = pulumi.output(openstack.blockstorage.getQuotasetV3({
    projectId: "2e367a3d29f94fd988e6ec54e305ec9d",
}));

Coming soon!

Using getQuotasetV3

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getQuotasetV3(args: GetQuotasetV3Args, opts?: InvokeOptions): Promise<GetQuotasetV3Result>
function getQuotasetV3Output(args: GetQuotasetV3OutputArgs, opts?: InvokeOptions): Output<GetQuotasetV3Result>
def get_quotaset_v3(project_id: Optional[str] = None,
                    region: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetQuotasetV3Result
def get_quotaset_v3_output(project_id: Optional[pulumi.Input[str]] = None,
                    region: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetQuotasetV3Result]
func GetQuotasetV3(ctx *Context, args *GetQuotasetV3Args, opts ...InvokeOption) (*GetQuotasetV3Result, error)
func GetQuotasetV3Output(ctx *Context, args *GetQuotasetV3OutputArgs, opts ...InvokeOption) GetQuotasetV3ResultOutput

> Note: This function is named GetQuotasetV3 in the Go SDK.

public static class GetQuotasetV3 
{
    public static Task<GetQuotasetV3Result> InvokeAsync(GetQuotasetV3Args args, InvokeOptions? opts = null)
    public static Output<GetQuotasetV3Result> Invoke(GetQuotasetV3InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetQuotasetV3Result> getQuotasetV3(GetQuotasetV3Args args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: openstack:blockstorage/getQuotasetV3:getQuotasetV3
  Arguments:
    # Arguments dictionary

The following arguments are supported:

ProjectId string

The id of the project to retrieve the quotaset.

Region string

The region in which to obtain the V3 Blockstorage client. If omitted, the region argument of the provider is used.

ProjectId string

The id of the project to retrieve the quotaset.

Region string

The region in which to obtain the V3 Blockstorage client. If omitted, the region argument of the provider is used.

projectId String

The id of the project to retrieve the quotaset.

region String

The region in which to obtain the V3 Blockstorage client. If omitted, the region argument of the provider is used.

projectId string

The id of the project to retrieve the quotaset.

region string

The region in which to obtain the V3 Blockstorage client. If omitted, the region argument of the provider is used.

project_id str

The id of the project to retrieve the quotaset.

region str

The region in which to obtain the V3 Blockstorage client. If omitted, the region argument of the provider is used.

projectId String

The id of the project to retrieve the quotaset.

region String

The region in which to obtain the V3 Blockstorage client. If omitted, the region argument of the provider is used.

getQuotasetV3 Result

The following output properties are available:

BackupGigabytes int

The size (GB) of backups that are allowed.

Backups int

The number of backups that are allowed.

Gigabytes int

The size (GB) of volumes and snapshots that are allowed.

Groups int

The number of groups that are allowed.

Id string

The provider-assigned unique ID for this managed resource.

PerVolumeGigabytes int

The size (GB) of volumes that are allowed for each volume.

ProjectId string

See Argument Reference above.

Region string

See Argument Reference above.

Snapshots int

The number of snapshots that are allowed.

VolumeTypeQuota Dictionary<string, object>

Map with gigabytes_{volume_type}, snapshots_{volume_type}, volumes_{volume_type} for each volume type.

Volumes int

The number of volumes that are allowed.

BackupGigabytes int

The size (GB) of backups that are allowed.

Backups int

The number of backups that are allowed.

Gigabytes int

The size (GB) of volumes and snapshots that are allowed.

Groups int

The number of groups that are allowed.

Id string

The provider-assigned unique ID for this managed resource.

PerVolumeGigabytes int

The size (GB) of volumes that are allowed for each volume.

ProjectId string

See Argument Reference above.

Region string

See Argument Reference above.

Snapshots int

The number of snapshots that are allowed.

VolumeTypeQuota map[string]interface{}

Map with gigabytes_{volume_type}, snapshots_{volume_type}, volumes_{volume_type} for each volume type.

Volumes int

The number of volumes that are allowed.

backupGigabytes Integer

The size (GB) of backups that are allowed.

backups Integer

The number of backups that are allowed.

gigabytes Integer

The size (GB) of volumes and snapshots that are allowed.

groups Integer

The number of groups that are allowed.

id String

The provider-assigned unique ID for this managed resource.

perVolumeGigabytes Integer

The size (GB) of volumes that are allowed for each volume.

projectId String

See Argument Reference above.

region String

See Argument Reference above.

snapshots Integer

The number of snapshots that are allowed.

volumeTypeQuota Map<String,Object>

Map with gigabytes_{volume_type}, snapshots_{volume_type}, volumes_{volume_type} for each volume type.

volumes Integer

The number of volumes that are allowed.

backupGigabytes number

The size (GB) of backups that are allowed.

backups number

The number of backups that are allowed.

gigabytes number

The size (GB) of volumes and snapshots that are allowed.

groups number

The number of groups that are allowed.

id string

The provider-assigned unique ID for this managed resource.

perVolumeGigabytes number

The size (GB) of volumes that are allowed for each volume.

projectId string

See Argument Reference above.

region string

See Argument Reference above.

snapshots number

The number of snapshots that are allowed.

volumeTypeQuota {[key: string]: any}

Map with gigabytes_{volume_type}, snapshots_{volume_type}, volumes_{volume_type} for each volume type.

volumes number

The number of volumes that are allowed.

backup_gigabytes int

The size (GB) of backups that are allowed.

backups int

The number of backups that are allowed.

gigabytes int

The size (GB) of volumes and snapshots that are allowed.

groups int

The number of groups that are allowed.

id str

The provider-assigned unique ID for this managed resource.

per_volume_gigabytes int

The size (GB) of volumes that are allowed for each volume.

project_id str

See Argument Reference above.

region str

See Argument Reference above.

snapshots int

The number of snapshots that are allowed.

volume_type_quota Mapping[str, Any]

Map with gigabytes_{volume_type}, snapshots_{volume_type}, volumes_{volume_type} for each volume type.

volumes int

The number of volumes that are allowed.

backupGigabytes Number

The size (GB) of backups that are allowed.

backups Number

The number of backups that are allowed.

gigabytes Number

The size (GB) of volumes and snapshots that are allowed.

groups Number

The number of groups that are allowed.

id String

The provider-assigned unique ID for this managed resource.

perVolumeGigabytes Number

The size (GB) of volumes that are allowed for each volume.

projectId String

See Argument Reference above.

region String

See Argument Reference above.

snapshots Number

The number of snapshots that are allowed.

volumeTypeQuota Map<Any>

Map with gigabytes_{volume_type}, snapshots_{volume_type}, volumes_{volume_type} for each volume type.

volumes Number

The number of volumes that are allowed.

Package Details

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

This Pulumi package is based on the openstack Terraform Provider.