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

openstack.compute.getLimitsV2

Explore with Pulumi AI

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

Use this data source to get the compute limits of an OpenStack project.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const limits = openstack.compute.getLimitsV2({
    projectId: "2e367a3d29f94fd988e6ec54e305ec9d",
});
Copy
import pulumi
import pulumi_openstack as openstack

limits = openstack.compute.get_limits_v2(project_id="2e367a3d29f94fd988e6ec54e305ec9d")
Copy
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.GetLimitsV2(ctx, &compute.GetLimitsV2Args{
			ProjectId: "2e367a3d29f94fd988e6ec54e305ec9d",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;

return await Deployment.RunAsync(() => 
{
    var limits = OpenStack.Compute.GetLimitsV2.Invoke(new()
    {
        ProjectId = "2e367a3d29f94fd988e6ec54e305ec9d",
    });

});
Copy
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.GetLimitsV2Args;
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 limits = ComputeFunctions.getLimitsV2(GetLimitsV2Args.builder()
            .projectId("2e367a3d29f94fd988e6ec54e305ec9d")
            .build());

    }
}
Copy
variables:
  limits:
    fn::invoke:
      Function: openstack:compute:getLimitsV2
      Arguments:
        projectId: 2e367a3d29f94fd988e6ec54e305ec9d
Copy

Using getLimitsV2

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 getLimitsV2(args: GetLimitsV2Args, opts?: InvokeOptions): Promise<GetLimitsV2Result>
function getLimitsV2Output(args: GetLimitsV2OutputArgs, opts?: InvokeOptions): Output<GetLimitsV2Result>
Copy
def get_limits_v2(project_id: Optional[str] = None,
                  region: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetLimitsV2Result
def get_limits_v2_output(project_id: Optional[pulumi.Input[str]] = None,
                  region: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetLimitsV2Result]
Copy
func GetLimitsV2(ctx *Context, args *GetLimitsV2Args, opts ...InvokeOption) (*GetLimitsV2Result, error)
func GetLimitsV2Output(ctx *Context, args *GetLimitsV2OutputArgs, opts ...InvokeOption) GetLimitsV2ResultOutput
Copy

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

public static class GetLimitsV2 
{
    public static Task<GetLimitsV2Result> InvokeAsync(GetLimitsV2Args args, InvokeOptions? opts = null)
    public static Output<GetLimitsV2Result> Invoke(GetLimitsV2InvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetLimitsV2Result> getLimitsV2(GetLimitsV2Args args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Copy
fn::invoke:
  function: openstack:compute/getLimitsV2:getLimitsV2
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ProjectId
This property is required.
Changes to this property will trigger replacement.
string
The id of the project to retrieve the limits.
Region Changes to this property will trigger replacement. string
The region in which to obtain the V2 Compute client. If omitted, the region argument of the provider is used.
ProjectId
This property is required.
Changes to this property will trigger replacement.
string
The id of the project to retrieve the limits.
Region Changes to this property will trigger replacement. string
The region in which to obtain the V2 Compute client. If omitted, the region argument of the provider is used.
projectId
This property is required.
Changes to this property will trigger replacement.
String
The id of the project to retrieve the limits.
region Changes to this property will trigger replacement. String
The region in which to obtain the V2 Compute client. If omitted, the region argument of the provider is used.
projectId
This property is required.
Changes to this property will trigger replacement.
string
The id of the project to retrieve the limits.
region Changes to this property will trigger replacement. string
The region in which to obtain the V2 Compute client. If omitted, the region argument of the provider is used.
project_id
This property is required.
Changes to this property will trigger replacement.
str
The id of the project to retrieve the limits.
region Changes to this property will trigger replacement. str
The region in which to obtain the V2 Compute client. If omitted, the region argument of the provider is used.
projectId
This property is required.
Changes to this property will trigger replacement.
String
The id of the project to retrieve the limits.
region Changes to this property will trigger replacement. String
The region in which to obtain the V2 Compute client. If omitted, the region argument of the provider is used.

getLimitsV2 Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
MaxImageMeta int
The number of allowed metadata items for each image. Starting from version 2.39 this field is dropped from ‘os-limits’ response, because ‘image-metadata’ proxy API was deprecated. Available until version 2.38.
MaxPersonality int
The number of allowed injected files for the tenant. Available until version 2.56.
MaxPersonalitySize int
The number of allowed bytes of content for each injected file. Available until version 2.56.
MaxSecurityGroupRules int
The number of allowed rules for each security group. Available until version 2.35.
MaxSecurityGroups int
The number of allowed security groups for the tenant. Available until version 2.35.
MaxServerGroupMembers int
The number of allowed members for each server group.
MaxServerGroups int
The number of allowed server groups for the tenant.
MaxServerMeta int
The number of allowed server groups for the tenant.
MaxTotalCores int
The number of allowed server cores for the tenant.
MaxTotalFloatingIps int
The number of allowed floating IP addresses for each tenant. Available until version 2.35.
MaxTotalInstances int
The number of allowed servers for the tenant.
MaxTotalKeypairs int
The number of allowed key pairs for the user.
MaxTotalRamSize int
The number of allowed floating IP addresses for the tenant. Available until version 2.35.
ProjectId string
See Argument Reference above.
Region string
See Argument Reference above.
TotalCoresUsed int
The number of used server cores in the tenant.
TotalFloatingIpsUsed int
The number of used floating IP addresses in the tenant.
TotalInstancesUsed int
The number of used server cores in the tenant.
TotalRamUsed int
The amount of used server RAM in the tenant.
TotalSecurityGroupsUsed int
The number of used security groups in the tenant. Available until version 2.35.
TotalServerGroupsUsed int
The number of used server groups in each tenant.
Id string
The provider-assigned unique ID for this managed resource.
MaxImageMeta int
The number of allowed metadata items for each image. Starting from version 2.39 this field is dropped from ‘os-limits’ response, because ‘image-metadata’ proxy API was deprecated. Available until version 2.38.
MaxPersonality int
The number of allowed injected files for the tenant. Available until version 2.56.
MaxPersonalitySize int
The number of allowed bytes of content for each injected file. Available until version 2.56.
MaxSecurityGroupRules int
The number of allowed rules for each security group. Available until version 2.35.
MaxSecurityGroups int
The number of allowed security groups for the tenant. Available until version 2.35.
MaxServerGroupMembers int
The number of allowed members for each server group.
MaxServerGroups int
The number of allowed server groups for the tenant.
MaxServerMeta int
The number of allowed server groups for the tenant.
MaxTotalCores int
The number of allowed server cores for the tenant.
MaxTotalFloatingIps int
The number of allowed floating IP addresses for each tenant. Available until version 2.35.
MaxTotalInstances int
The number of allowed servers for the tenant.
MaxTotalKeypairs int
The number of allowed key pairs for the user.
MaxTotalRamSize int
The number of allowed floating IP addresses for the tenant. Available until version 2.35.
ProjectId string
See Argument Reference above.
Region string
See Argument Reference above.
TotalCoresUsed int
The number of used server cores in the tenant.
TotalFloatingIpsUsed int
The number of used floating IP addresses in the tenant.
TotalInstancesUsed int
The number of used server cores in the tenant.
TotalRamUsed int
The amount of used server RAM in the tenant.
TotalSecurityGroupsUsed int
The number of used security groups in the tenant. Available until version 2.35.
TotalServerGroupsUsed int
The number of used server groups in each tenant.
id String
The provider-assigned unique ID for this managed resource.
maxImageMeta Integer
The number of allowed metadata items for each image. Starting from version 2.39 this field is dropped from ‘os-limits’ response, because ‘image-metadata’ proxy API was deprecated. Available until version 2.38.
maxPersonality Integer
The number of allowed injected files for the tenant. Available until version 2.56.
maxPersonalitySize Integer
The number of allowed bytes of content for each injected file. Available until version 2.56.
maxSecurityGroupRules Integer
The number of allowed rules for each security group. Available until version 2.35.
maxSecurityGroups Integer
The number of allowed security groups for the tenant. Available until version 2.35.
maxServerGroupMembers Integer
The number of allowed members for each server group.
maxServerGroups Integer
The number of allowed server groups for the tenant.
maxServerMeta Integer
The number of allowed server groups for the tenant.
maxTotalCores Integer
The number of allowed server cores for the tenant.
maxTotalFloatingIps Integer
The number of allowed floating IP addresses for each tenant. Available until version 2.35.
maxTotalInstances Integer
The number of allowed servers for the tenant.
maxTotalKeypairs Integer
The number of allowed key pairs for the user.
maxTotalRamSize Integer
The number of allowed floating IP addresses for the tenant. Available until version 2.35.
projectId String
See Argument Reference above.
region String
See Argument Reference above.
totalCoresUsed Integer
The number of used server cores in the tenant.
totalFloatingIpsUsed Integer
The number of used floating IP addresses in the tenant.
totalInstancesUsed Integer
The number of used server cores in the tenant.
totalRamUsed Integer
The amount of used server RAM in the tenant.
totalSecurityGroupsUsed Integer
The number of used security groups in the tenant. Available until version 2.35.
totalServerGroupsUsed Integer
The number of used server groups in each tenant.
id string
The provider-assigned unique ID for this managed resource.
maxImageMeta number
The number of allowed metadata items for each image. Starting from version 2.39 this field is dropped from ‘os-limits’ response, because ‘image-metadata’ proxy API was deprecated. Available until version 2.38.
maxPersonality number
The number of allowed injected files for the tenant. Available until version 2.56.
maxPersonalitySize number
The number of allowed bytes of content for each injected file. Available until version 2.56.
maxSecurityGroupRules number
The number of allowed rules for each security group. Available until version 2.35.
maxSecurityGroups number
The number of allowed security groups for the tenant. Available until version 2.35.
maxServerGroupMembers number
The number of allowed members for each server group.
maxServerGroups number
The number of allowed server groups for the tenant.
maxServerMeta number
The number of allowed server groups for the tenant.
maxTotalCores number
The number of allowed server cores for the tenant.
maxTotalFloatingIps number
The number of allowed floating IP addresses for each tenant. Available until version 2.35.
maxTotalInstances number
The number of allowed servers for the tenant.
maxTotalKeypairs number
The number of allowed key pairs for the user.
maxTotalRamSize number
The number of allowed floating IP addresses for the tenant. Available until version 2.35.
projectId string
See Argument Reference above.
region string
See Argument Reference above.
totalCoresUsed number
The number of used server cores in the tenant.
totalFloatingIpsUsed number
The number of used floating IP addresses in the tenant.
totalInstancesUsed number
The number of used server cores in the tenant.
totalRamUsed number
The amount of used server RAM in the tenant.
totalSecurityGroupsUsed number
The number of used security groups in the tenant. Available until version 2.35.
totalServerGroupsUsed number
The number of used server groups in each tenant.
id str
The provider-assigned unique ID for this managed resource.
max_image_meta int
The number of allowed metadata items for each image. Starting from version 2.39 this field is dropped from ‘os-limits’ response, because ‘image-metadata’ proxy API was deprecated. Available until version 2.38.
max_personality int
The number of allowed injected files for the tenant. Available until version 2.56.
max_personality_size int
The number of allowed bytes of content for each injected file. Available until version 2.56.
max_security_group_rules int
The number of allowed rules for each security group. Available until version 2.35.
max_security_groups int
The number of allowed security groups for the tenant. Available until version 2.35.
max_server_group_members int
The number of allowed members for each server group.
max_server_groups int
The number of allowed server groups for the tenant.
max_server_meta int
The number of allowed server groups for the tenant.
max_total_cores int
The number of allowed server cores for the tenant.
max_total_floating_ips int
The number of allowed floating IP addresses for each tenant. Available until version 2.35.
max_total_instances int
The number of allowed servers for the tenant.
max_total_keypairs int
The number of allowed key pairs for the user.
max_total_ram_size int
The number of allowed floating IP addresses for the tenant. Available until version 2.35.
project_id str
See Argument Reference above.
region str
See Argument Reference above.
total_cores_used int
The number of used server cores in the tenant.
total_floating_ips_used int
The number of used floating IP addresses in the tenant.
total_instances_used int
The number of used server cores in the tenant.
total_ram_used int
The amount of used server RAM in the tenant.
total_security_groups_used int
The number of used security groups in the tenant. Available until version 2.35.
total_server_groups_used int
The number of used server groups in each tenant.
id String
The provider-assigned unique ID for this managed resource.
maxImageMeta Number
The number of allowed metadata items for each image. Starting from version 2.39 this field is dropped from ‘os-limits’ response, because ‘image-metadata’ proxy API was deprecated. Available until version 2.38.
maxPersonality Number
The number of allowed injected files for the tenant. Available until version 2.56.
maxPersonalitySize Number
The number of allowed bytes of content for each injected file. Available until version 2.56.
maxSecurityGroupRules Number
The number of allowed rules for each security group. Available until version 2.35.
maxSecurityGroups Number
The number of allowed security groups for the tenant. Available until version 2.35.
maxServerGroupMembers Number
The number of allowed members for each server group.
maxServerGroups Number
The number of allowed server groups for the tenant.
maxServerMeta Number
The number of allowed server groups for the tenant.
maxTotalCores Number
The number of allowed server cores for the tenant.
maxTotalFloatingIps Number
The number of allowed floating IP addresses for each tenant. Available until version 2.35.
maxTotalInstances Number
The number of allowed servers for the tenant.
maxTotalKeypairs Number
The number of allowed key pairs for the user.
maxTotalRamSize Number
The number of allowed floating IP addresses for the tenant. Available until version 2.35.
projectId String
See Argument Reference above.
region String
See Argument Reference above.
totalCoresUsed Number
The number of used server cores in the tenant.
totalFloatingIpsUsed Number
The number of used floating IP addresses in the tenant.
totalInstancesUsed Number
The number of used server cores in the tenant.
totalRamUsed Number
The amount of used server RAM in the tenant.
totalSecurityGroupsUsed Number
The number of used security groups in the tenant. Available until version 2.35.
totalServerGroupsUsed Number
The number of used server groups in each tenant.

Package Details

Repository
OpenStack pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.
OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi