OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi
openstack.blockstorage.getQuotasetV3
Explore with Pulumi AI
Use this data source to get the blockstorage quotaset v3 of an OpenStack project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const quota = openstack.blockstorage.getQuotasetV3({
projectId: "2e367a3d29f94fd988e6ec54e305ec9d",
});
import pulumi
import pulumi_openstack as openstack
quota = openstack.blockstorage.get_quotaset_v3(project_id="2e367a3d29f94fd988e6ec54e305ec9d")
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v4/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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var quota = OpenStack.BlockStorage.GetQuotasetV3.Invoke(new()
{
ProjectId = "2e367a3d29f94fd988e6ec54e305ec9d",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.blockstorage.BlockstorageFunctions;
import com.pulumi.openstack.blockstorage.inputs.GetQuotasetV3Args;
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) {
final var quota = BlockstorageFunctions.getQuotasetV3(GetQuotasetV3Args.builder()
.projectId("2e367a3d29f94fd988e6ec54e305ec9d")
.build());
}
}
variables:
quota:
fn::invoke:
Function: openstack:blockstorage:getQuotasetV3
Arguments:
projectId: 2e367a3d29f94fd988e6ec54e305ec9d
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:
- 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.
getQuotasetV3 Result
The following output properties are available:
- 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 string
- The provider-assigned unique ID for this managed resource.
- Per
Volume intGigabytes - The size (GB) of volumes that are allowed for each volume.
- Project
Id string - See Argument Reference above.
- Region string
- See Argument Reference above.
- Snapshots int
- The number of snapshots that are allowed.
- Volume
Type Dictionary<string, object>Quota - Map with gigabytes_{volume_type}, snapshots_{volume_type}, volumes_{volume_type} for each volume type.
- Volumes int
- 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 string
- The provider-assigned unique ID for this managed resource.
- Per
Volume intGigabytes - The size (GB) of volumes that are allowed for each volume.
- Project
Id string - See Argument Reference above.
- Region string
- See Argument Reference above.
- Snapshots int
- The number of snapshots that are allowed.
- Volume
Type map[string]interface{}Quota - Map with gigabytes_{volume_type}, snapshots_{volume_type}, volumes_{volume_type} for each volume type.
- Volumes int
- The number of volumes that are allowed.
- backup
Gigabytes 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.
- per
Volume IntegerGigabytes - The size (GB) of volumes that are allowed for each volume.
- project
Id String - See Argument Reference above.
- region String
- See Argument Reference above.
- snapshots Integer
- The number of snapshots that are allowed.
- volume
Type Map<String,Object>Quota - Map with gigabytes_{volume_type}, snapshots_{volume_type}, volumes_{volume_type} for each volume type.
- volumes Integer
- The number of volumes that are allowed.
- backup
Gigabytes 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.
- per
Volume numberGigabytes - The size (GB) of volumes that are allowed for each volume.
- project
Id string - See Argument Reference above.
- region string
- See Argument Reference above.
- snapshots number
- The number of snapshots that are allowed.
- volume
Type {[key: string]: any}Quota - 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_ intgigabytes - 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_ Mapping[str, Any]quota - Map with gigabytes_{volume_type}, snapshots_{volume_type}, volumes_{volume_type} for each volume type.
- volumes int
- The number of volumes that are allowed.
- backup
Gigabytes 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.
- per
Volume NumberGigabytes - The size (GB) of volumes that are allowed for each volume.
- project
Id String - See Argument Reference above.
- region String
- See Argument Reference above.
- snapshots Number
- The number of snapshots that are allowed.
- volume
Type Map<Any>Quota - 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
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstack
Terraform Provider.