1. Packages
  2. Openstack Provider
  3. API Docs
  4. blockstorage
  5. getQuotasetV3
OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi

openstack.blockstorage.getQuotasetV3

Explore with Pulumi AI

openstack logo
OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi

    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/v5/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:

    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, string>
    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]string
    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,String>
    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]: string}
    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, str]
    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<String>
    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.
    openstack logo
    OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi