OpenStack v5.3.3 published on Friday, Sep 12, 2025 by Pulumi
openstack.compute.getQuotaSetV2
Use this data source to get the compute quotaset of an OpenStack project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const quota = openstack.compute.getQuotaSetV2({
projectId: "2e367a3d29f94fd988e6ec54e305ec9d",
});
import pulumi
import pulumi_openstack as openstack
quota = openstack.compute.get_quota_set_v2(project_id="2e367a3d29f94fd988e6ec54e305ec9d")
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v5/go/openstack/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.LookupQuotaSetV2(ctx, &compute.LookupQuotaSetV2Args{
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.Compute.GetQuotaSetV2.Invoke(new()
{
ProjectId = "2e367a3d29f94fd988e6ec54e305ec9d",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.compute.ComputeFunctions;
import com.pulumi.openstack.compute.inputs.GetQuotaSetV2Args;
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 = ComputeFunctions.getQuotaSetV2(GetQuotaSetV2Args.builder()
.projectId("2e367a3d29f94fd988e6ec54e305ec9d")
.build());
}
}
variables:
quota:
fn::invoke:
function: openstack:compute:getQuotaSetV2
arguments:
projectId: 2e367a3d29f94fd988e6ec54e305ec9d
Using getQuotaSetV2
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 getQuotaSetV2(args: GetQuotaSetV2Args, opts?: InvokeOptions): Promise<GetQuotaSetV2Result>
function getQuotaSetV2Output(args: GetQuotaSetV2OutputArgs, opts?: InvokeOptions): Output<GetQuotaSetV2Result>
def get_quota_set_v2(project_id: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetQuotaSetV2Result
def get_quota_set_v2_output(project_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetQuotaSetV2Result]
func LookupQuotaSetV2(ctx *Context, args *LookupQuotaSetV2Args, opts ...InvokeOption) (*LookupQuotaSetV2Result, error)
func LookupQuotaSetV2Output(ctx *Context, args *LookupQuotaSetV2OutputArgs, opts ...InvokeOption) LookupQuotaSetV2ResultOutput
> Note: This function is named LookupQuotaSetV2
in the Go SDK.
public static class GetQuotaSetV2
{
public static Task<GetQuotaSetV2Result> InvokeAsync(GetQuotaSetV2Args args, InvokeOptions? opts = null)
public static Output<GetQuotaSetV2Result> Invoke(GetQuotaSetV2InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetQuotaSetV2Result> getQuotaSetV2(GetQuotaSetV2Args args, InvokeOptions options)
public static Output<GetQuotaSetV2Result> getQuotaSetV2(GetQuotaSetV2Args args, InvokeOptions options)
fn::invoke:
function: openstack:compute/getQuotaSetV2:getQuotaSetV2
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 V2 Compute client.
If omitted, the
region
argument of the provider is used.
getQuotaSetV2 Result
The following output properties are available:
- Cores int
- The number of allowed server cores.
- Fixed
Ips int - The number of allowed fixed IP addresses. Available until version 2.35.
- Floating
Ips int - The number of allowed floating IP addresses. Available until version 2.35.
- Id string
- The provider-assigned unique ID for this managed resource.
- Injected
File intContent Bytes - The number of allowed bytes of content for each injected file. Available until version 2.56.
- Injected
File intPath Bytes - The number of allowed bytes for each injected file path. Available until version 2.56.
- Injected
Files int - The number of allowed injected files. Available until version 2.56.
- Instances int
- The number of allowed servers.
- Key
Pairs int - The number of allowed key pairs for each user.
- Metadata
Items int - The number of allowed metadata items for each server.
- Project
Id string - See Argument Reference above.
- Ram int
- The amount of allowed server RAM, in MiB.
- Region string
- See Argument Reference above.
- Security
Group intRules - The number of allowed rules for each security group. Available until version 2.35.
- Security
Groups int - The number of allowed security groups. Available until version 2.35.
- Server
Group intMembers - The number of allowed members for each server group.
- Server
Groups int - The number of allowed server groups.
- Cores int
- The number of allowed server cores.
- Fixed
Ips int - The number of allowed fixed IP addresses. Available until version 2.35.
- Floating
Ips int - The number of allowed floating IP addresses. Available until version 2.35.
- Id string
- The provider-assigned unique ID for this managed resource.
- Injected
File intContent Bytes - The number of allowed bytes of content for each injected file. Available until version 2.56.
- Injected
File intPath Bytes - The number of allowed bytes for each injected file path. Available until version 2.56.
- Injected
Files int - The number of allowed injected files. Available until version 2.56.
- Instances int
- The number of allowed servers.
- Key
Pairs int - The number of allowed key pairs for each user.
- Metadata
Items int - The number of allowed metadata items for each server.
- Project
Id string - See Argument Reference above.
- Ram int
- The amount of allowed server RAM, in MiB.
- Region string
- See Argument Reference above.
- Security
Group intRules - The number of allowed rules for each security group. Available until version 2.35.
- Security
Groups int - The number of allowed security groups. Available until version 2.35.
- Server
Group intMembers - The number of allowed members for each server group.
- Server
Groups int - The number of allowed server groups.
- cores Integer
- The number of allowed server cores.
- fixed
Ips Integer - The number of allowed fixed IP addresses. Available until version 2.35.
- floating
Ips Integer - The number of allowed floating IP addresses. Available until version 2.35.
- id String
- The provider-assigned unique ID for this managed resource.
- injected
File IntegerContent Bytes - The number of allowed bytes of content for each injected file. Available until version 2.56.
- injected
File IntegerPath Bytes - The number of allowed bytes for each injected file path. Available until version 2.56.
- injected
Files Integer - The number of allowed injected files. Available until version 2.56.
- instances Integer
- The number of allowed servers.
- key
Pairs Integer - The number of allowed key pairs for each user.
- metadata
Items Integer - The number of allowed metadata items for each server.
- project
Id String - See Argument Reference above.
- ram Integer
- The amount of allowed server RAM, in MiB.
- region String
- See Argument Reference above.
- security
Group IntegerRules - The number of allowed rules for each security group. Available until version 2.35.
- security
Groups Integer - The number of allowed security groups. Available until version 2.35.
- server
Group IntegerMembers - The number of allowed members for each server group.
- server
Groups Integer - The number of allowed server groups.
- cores number
- The number of allowed server cores.
- fixed
Ips number - The number of allowed fixed IP addresses. Available until version 2.35.
- floating
Ips number - The number of allowed floating IP addresses. Available until version 2.35.
- id string
- The provider-assigned unique ID for this managed resource.
- injected
File numberContent Bytes - The number of allowed bytes of content for each injected file. Available until version 2.56.
- injected
File numberPath Bytes - The number of allowed bytes for each injected file path. Available until version 2.56.
- injected
Files number - The number of allowed injected files. Available until version 2.56.
- instances number
- The number of allowed servers.
- key
Pairs number - The number of allowed key pairs for each user.
- metadata
Items number - The number of allowed metadata items for each server.
- project
Id string - See Argument Reference above.
- ram number
- The amount of allowed server RAM, in MiB.
- region string
- See Argument Reference above.
- security
Group numberRules - The number of allowed rules for each security group. Available until version 2.35.
- security
Groups number - The number of allowed security groups. Available until version 2.35.
- server
Group numberMembers - The number of allowed members for each server group.
- server
Groups number - The number of allowed server groups.
- cores int
- The number of allowed server cores.
- fixed_
ips int - The number of allowed fixed IP addresses. Available until version 2.35.
- floating_
ips int - The number of allowed floating IP addresses. Available until version 2.35.
- id str
- The provider-assigned unique ID for this managed resource.
- injected_
file_ intcontent_ bytes - The number of allowed bytes of content for each injected file. Available until version 2.56.
- injected_
file_ intpath_ bytes - The number of allowed bytes for each injected file path. Available until version 2.56.
- injected_
files int - The number of allowed injected files. Available until version 2.56.
- instances int
- The number of allowed servers.
- key_
pairs int - The number of allowed key pairs for each user.
- metadata_
items int - The number of allowed metadata items for each server.
- project_
id str - See Argument Reference above.
- ram int
- The amount of allowed server RAM, in MiB.
- region str
- See Argument Reference above.
- security_
group_ intrules - The number of allowed rules for each security group. Available until version 2.35.
- security_
groups int - The number of allowed security groups. Available until version 2.35.
- server_
group_ intmembers - The number of allowed members for each server group.
- server_
groups int - The number of allowed server groups.
- cores Number
- The number of allowed server cores.
- fixed
Ips Number - The number of allowed fixed IP addresses. Available until version 2.35.
- floating
Ips Number - The number of allowed floating IP addresses. Available until version 2.35.
- id String
- The provider-assigned unique ID for this managed resource.
- injected
File NumberContent Bytes - The number of allowed bytes of content for each injected file. Available until version 2.56.
- injected
File NumberPath Bytes - The number of allowed bytes for each injected file path. Available until version 2.56.
- injected
Files Number - The number of allowed injected files. Available until version 2.56.
- instances Number
- The number of allowed servers.
- key
Pairs Number - The number of allowed key pairs for each user.
- metadata
Items Number - The number of allowed metadata items for each server.
- project
Id String - See Argument Reference above.
- ram Number
- The amount of allowed server RAM, in MiB.
- region String
- See Argument Reference above.
- security
Group NumberRules - The number of allowed rules for each security group. Available until version 2.35.
- security
Groups Number - The number of allowed security groups. Available until version 2.35.
- server
Group NumberMembers - The number of allowed members for each server group.
- server
Groups Number - The number of allowed server groups.
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstack
Terraform Provider.