1. Packages
  2. OpenStack
  3. API Docs
  4. compute
  5. getQuotaSetV2
OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi

openstack.compute.getQuotaSetV2

Explore with Pulumi AI

openstack logo
OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi

    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/v4/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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: openstack:compute/getQuotaSetV2:getQuotaSetV2
      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 V2 Compute 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 V2 Compute 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 V2 Compute 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 V2 Compute 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 V2 Compute 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 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.
    FixedIps int
    The number of allowed fixed IP addresses. Available until version 2.35.
    FloatingIps int
    The number of allowed floating IP addresses. Available until version 2.35.
    Id string
    The provider-assigned unique ID for this managed resource.
    InjectedFileContentBytes int
    The number of allowed bytes of content for each injected file. Available until version 2.56.
    InjectedFilePathBytes int
    The number of allowed bytes for each injected file path. Available until version 2.56.
    InjectedFiles int
    The number of allowed injected files. Available until version 2.56.
    Instances int
    The number of allowed servers.
    KeyPairs int
    The number of allowed key pairs for each user.
    MetadataItems int
    The number of allowed metadata items for each server.
    ProjectId string
    See Argument Reference above.
    Ram int
    The amount of allowed server RAM, in MiB.
    Region string
    See Argument Reference above.
    SecurityGroupRules int
    The number of allowed rules for each security group. Available until version 2.35.
    SecurityGroups int
    The number of allowed security groups. Available until version 2.35.
    ServerGroupMembers int
    The number of allowed members for each server group.
    ServerGroups int
    The number of allowed server groups.
    Cores int
    The number of allowed server cores.
    FixedIps int
    The number of allowed fixed IP addresses. Available until version 2.35.
    FloatingIps int
    The number of allowed floating IP addresses. Available until version 2.35.
    Id string
    The provider-assigned unique ID for this managed resource.
    InjectedFileContentBytes int
    The number of allowed bytes of content for each injected file. Available until version 2.56.
    InjectedFilePathBytes int
    The number of allowed bytes for each injected file path. Available until version 2.56.
    InjectedFiles int
    The number of allowed injected files. Available until version 2.56.
    Instances int
    The number of allowed servers.
    KeyPairs int
    The number of allowed key pairs for each user.
    MetadataItems int
    The number of allowed metadata items for each server.
    ProjectId string
    See Argument Reference above.
    Ram int
    The amount of allowed server RAM, in MiB.
    Region string
    See Argument Reference above.
    SecurityGroupRules int
    The number of allowed rules for each security group. Available until version 2.35.
    SecurityGroups int
    The number of allowed security groups. Available until version 2.35.
    ServerGroupMembers int
    The number of allowed members for each server group.
    ServerGroups int
    The number of allowed server groups.
    cores Integer
    The number of allowed server cores.
    fixedIps Integer
    The number of allowed fixed IP addresses. Available until version 2.35.
    floatingIps Integer
    The number of allowed floating IP addresses. Available until version 2.35.
    id String
    The provider-assigned unique ID for this managed resource.
    injectedFileContentBytes Integer
    The number of allowed bytes of content for each injected file. Available until version 2.56.
    injectedFilePathBytes Integer
    The number of allowed bytes for each injected file path. Available until version 2.56.
    injectedFiles Integer
    The number of allowed injected files. Available until version 2.56.
    instances Integer
    The number of allowed servers.
    keyPairs Integer
    The number of allowed key pairs for each user.
    metadataItems Integer
    The number of allowed metadata items for each server.
    projectId String
    See Argument Reference above.
    ram Integer
    The amount of allowed server RAM, in MiB.
    region String
    See Argument Reference above.
    securityGroupRules Integer
    The number of allowed rules for each security group. Available until version 2.35.
    securityGroups Integer
    The number of allowed security groups. Available until version 2.35.
    serverGroupMembers Integer
    The number of allowed members for each server group.
    serverGroups Integer
    The number of allowed server groups.
    cores number
    The number of allowed server cores.
    fixedIps number
    The number of allowed fixed IP addresses. Available until version 2.35.
    floatingIps number
    The number of allowed floating IP addresses. Available until version 2.35.
    id string
    The provider-assigned unique ID for this managed resource.
    injectedFileContentBytes number
    The number of allowed bytes of content for each injected file. Available until version 2.56.
    injectedFilePathBytes number
    The number of allowed bytes for each injected file path. Available until version 2.56.
    injectedFiles number
    The number of allowed injected files. Available until version 2.56.
    instances number
    The number of allowed servers.
    keyPairs number
    The number of allowed key pairs for each user.
    metadataItems number
    The number of allowed metadata items for each server.
    projectId string
    See Argument Reference above.
    ram number
    The amount of allowed server RAM, in MiB.
    region string
    See Argument Reference above.
    securityGroupRules number
    The number of allowed rules for each security group. Available until version 2.35.
    securityGroups number
    The number of allowed security groups. Available until version 2.35.
    serverGroupMembers number
    The number of allowed members for each server group.
    serverGroups 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_content_bytes int
    The number of allowed bytes of content for each injected file. Available until version 2.56.
    injected_file_path_bytes int
    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_rules int
    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_members int
    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.
    fixedIps Number
    The number of allowed fixed IP addresses. Available until version 2.35.
    floatingIps Number
    The number of allowed floating IP addresses. Available until version 2.35.
    id String
    The provider-assigned unique ID for this managed resource.
    injectedFileContentBytes Number
    The number of allowed bytes of content for each injected file. Available until version 2.56.
    injectedFilePathBytes Number
    The number of allowed bytes for each injected file path. Available until version 2.56.
    injectedFiles Number
    The number of allowed injected files. Available until version 2.56.
    instances Number
    The number of allowed servers.
    keyPairs Number
    The number of allowed key pairs for each user.
    metadataItems Number
    The number of allowed metadata items for each server.
    projectId String
    See Argument Reference above.
    ram Number
    The amount of allowed server RAM, in MiB.
    region String
    See Argument Reference above.
    securityGroupRules Number
    The number of allowed rules for each security group. Available until version 2.35.
    securityGroups Number
    The number of allowed security groups. Available until version 2.35.
    serverGroupMembers Number
    The number of allowed members for each server group.
    serverGroups 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.
    openstack logo
    OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi