1. Packages
  2. Openstack Provider
  3. API Docs
  4. networking
  5. getQuotaV2
OpenStack v4.1.3 published on Wednesday, Aug 21, 2024 by Pulumi

openstack.networking.getQuotaV2

Explore with Pulumi AI

openstack logo
OpenStack v4.1.3 published on Wednesday, Aug 21, 2024 by Pulumi

    Use this data source to get the networking quota of an OpenStack project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const quota = openstack.networking.getQuotaV2({
        projectId: "2e367a3d29f94fd988e6ec54e305ec9d",
    });
    
    import pulumi
    import pulumi_openstack as openstack
    
    quota = openstack.networking.get_quota_v2(project_id="2e367a3d29f94fd988e6ec54e305ec9d")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/networking"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := networking.LookupQuotaV2(ctx, &networking.LookupQuotaV2Args{
    			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.Networking.GetQuotaV2.Invoke(new()
        {
            ProjectId = "2e367a3d29f94fd988e6ec54e305ec9d",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.openstack.networking.NetworkingFunctions;
    import com.pulumi.openstack.networking.inputs.GetQuotaV2Args;
    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 = NetworkingFunctions.getQuotaV2(GetQuotaV2Args.builder()
                .projectId("2e367a3d29f94fd988e6ec54e305ec9d")
                .build());
    
        }
    }
    
    variables:
      quota:
        fn::invoke:
          Function: openstack:networking:getQuotaV2
          Arguments:
            projectId: 2e367a3d29f94fd988e6ec54e305ec9d
    

    Using getQuotaV2

    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 getQuotaV2(args: GetQuotaV2Args, opts?: InvokeOptions): Promise<GetQuotaV2Result>
    function getQuotaV2Output(args: GetQuotaV2OutputArgs, opts?: InvokeOptions): Output<GetQuotaV2Result>
    def get_quota_v2(project_id: Optional[str] = None,
                     region: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetQuotaV2Result
    def get_quota_v2_output(project_id: Optional[pulumi.Input[str]] = None,
                     region: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetQuotaV2Result]
    func LookupQuotaV2(ctx *Context, args *LookupQuotaV2Args, opts ...InvokeOption) (*LookupQuotaV2Result, error)
    func LookupQuotaV2Output(ctx *Context, args *LookupQuotaV2OutputArgs, opts ...InvokeOption) LookupQuotaV2ResultOutput

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

    public static class GetQuotaV2 
    {
        public static Task<GetQuotaV2Result> InvokeAsync(GetQuotaV2Args args, InvokeOptions? opts = null)
        public static Output<GetQuotaV2Result> Invoke(GetQuotaV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetQuotaV2Result> getQuotaV2(GetQuotaV2Args args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: openstack:networking/getQuotaV2:getQuotaV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string
    The id of the project to retrieve the quota.
    Region string
    The region in which to obtain the V2 Network client. If omitted, the region argument of the provider is used.
    ProjectId string
    The id of the project to retrieve the quota.
    Region string
    The region in which to obtain the V2 Network client. If omitted, the region argument of the provider is used.
    projectId String
    The id of the project to retrieve the quota.
    region String
    The region in which to obtain the V2 Network client. If omitted, the region argument of the provider is used.
    projectId string
    The id of the project to retrieve the quota.
    region string
    The region in which to obtain the V2 Network client. If omitted, the region argument of the provider is used.
    project_id str
    The id of the project to retrieve the quota.
    region str
    The region in which to obtain the V2 Network client. If omitted, the region argument of the provider is used.
    projectId String
    The id of the project to retrieve the quota.
    region String
    The region in which to obtain the V2 Network client. If omitted, the region argument of the provider is used.

    getQuotaV2 Result

    The following output properties are available:

    Floatingip int
    The number of allowed floating ips.
    Id string
    The provider-assigned unique ID for this managed resource.
    Network int
    The number of allowed networks.
    Port int
    The number of allowed ports.
    ProjectId string
    See Argument Reference above.
    RbacPolicy int
    The number of allowed rbac policies.
    Region string
    See Argument Reference above.
    Router int
    The amount of allowed routers.
    SecurityGroup int
    The number of allowed security groups.
    SecurityGroupRule int
    The number of allowed security group rules.
    Subnet int
    The number of allowed subnets.

    • subnetpool- - The number of allowed subnet pools.
    Subnetpool int
    Floatingip int
    The number of allowed floating ips.
    Id string
    The provider-assigned unique ID for this managed resource.
    Network int
    The number of allowed networks.
    Port int
    The number of allowed ports.
    ProjectId string
    See Argument Reference above.
    RbacPolicy int
    The number of allowed rbac policies.
    Region string
    See Argument Reference above.
    Router int
    The amount of allowed routers.
    SecurityGroup int
    The number of allowed security groups.
    SecurityGroupRule int
    The number of allowed security group rules.
    Subnet int
    The number of allowed subnets.

    • subnetpool- - The number of allowed subnet pools.
    Subnetpool int
    floatingip Integer
    The number of allowed floating ips.
    id String
    The provider-assigned unique ID for this managed resource.
    network Integer
    The number of allowed networks.
    port Integer
    The number of allowed ports.
    projectId String
    See Argument Reference above.
    rbacPolicy Integer
    The number of allowed rbac policies.
    region String
    See Argument Reference above.
    router Integer
    The amount of allowed routers.
    securityGroup Integer
    The number of allowed security groups.
    securityGroupRule Integer
    The number of allowed security group rules.
    subnet Integer
    The number of allowed subnets.

    • subnetpool- - The number of allowed subnet pools.
    subnetpool Integer
    floatingip number
    The number of allowed floating ips.
    id string
    The provider-assigned unique ID for this managed resource.
    network number
    The number of allowed networks.
    port number
    The number of allowed ports.
    projectId string
    See Argument Reference above.
    rbacPolicy number
    The number of allowed rbac policies.
    region string
    See Argument Reference above.
    router number
    The amount of allowed routers.
    securityGroup number
    The number of allowed security groups.
    securityGroupRule number
    The number of allowed security group rules.
    subnet number
    The number of allowed subnets.

    • subnetpool- - The number of allowed subnet pools.
    subnetpool number
    floatingip int
    The number of allowed floating ips.
    id str
    The provider-assigned unique ID for this managed resource.
    network int
    The number of allowed networks.
    port int
    The number of allowed ports.
    project_id str
    See Argument Reference above.
    rbac_policy int
    The number of allowed rbac policies.
    region str
    See Argument Reference above.
    router int
    The amount of allowed routers.
    security_group int
    The number of allowed security groups.
    security_group_rule int
    The number of allowed security group rules.
    subnet int
    The number of allowed subnets.

    • subnetpool- - The number of allowed subnet pools.
    subnetpool int
    floatingip Number
    The number of allowed floating ips.
    id String
    The provider-assigned unique ID for this managed resource.
    network Number
    The number of allowed networks.
    port Number
    The number of allowed ports.
    projectId String
    See Argument Reference above.
    rbacPolicy Number
    The number of allowed rbac policies.
    region String
    See Argument Reference above.
    router Number
    The amount of allowed routers.
    securityGroup Number
    The number of allowed security groups.
    securityGroupRule Number
    The number of allowed security group rules.
    subnet Number
    The number of allowed subnets.

    • subnetpool- - The number of allowed subnet pools.
    subnetpool Number

    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.1.3 published on Wednesday, Aug 21, 2024 by Pulumi