OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi
openstack.compute.getLimitsV2
Explore with Pulumi AI
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",
});
import pulumi
import pulumi_openstack as openstack
limits = openstack.compute.get_limits_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.GetLimitsV2(ctx, &compute.GetLimitsV2Args{
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 limits = OpenStack.Compute.GetLimitsV2.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.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());
}
}
variables:
limits:
fn::invoke:
Function: openstack:compute:getLimitsV2
Arguments:
projectId: 2e367a3d29f94fd988e6ec54e305ec9d
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>
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]
func GetLimitsV2(ctx *Context, args *GetLimitsV2Args, opts ...InvokeOption) (*GetLimitsV2Result, error)
func GetLimitsV2Output(ctx *Context, args *GetLimitsV2OutputArgs, opts ...InvokeOption) GetLimitsV2ResultOutput
> 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)
}
public static CompletableFuture<GetLimitsV2Result> getLimitsV2(GetLimitsV2Args args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: openstack:compute/getLimitsV2:getLimitsV2
arguments:
# arguments dictionary
The following arguments are supported:
- project_
id str - The id of the project to retrieve the limits.
- region str
- 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.
- Max
Image intMeta - 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 intSize - The number of allowed bytes of content for each injected file. Available until version 2.56.
- Max
Security intGroup Rules - The number of allowed rules for each security group. Available until version 2.35.
- Max
Security intGroups - The number of allowed security groups for the tenant. Available until version 2.35.
- Max
Server intGroup Members - The number of allowed members for each server group.
- Max
Server intGroups - The number of allowed server groups for the tenant.
- Max
Server intMeta - The number of allowed server groups for the tenant.
- Max
Total intCores - The number of allowed server cores for the tenant.
- Max
Total intFloating Ips - The number of allowed floating IP addresses for each tenant. Available until version 2.35.
- Max
Total intInstances - The number of allowed servers for the tenant.
- Max
Total intKeypairs - The number of allowed key pairs for the user.
- Max
Total intRam Size - The number of allowed floating IP addresses for the tenant. Available until version 2.35.
- Project
Id string - See Argument Reference above.
- Region string
- See Argument Reference above.
- Total
Cores intUsed - The number of used server cores in the tenant.
- Total
Floating intIps Used - The number of used floating IP addresses in the tenant.
- Total
Instances intUsed - The number of used server cores in the tenant.
- Total
Ram intUsed - The amount of used server RAM in the tenant.
- Total
Security intGroups Used - The number of used security groups in the tenant. Available until version 2.35.
- Total
Server intGroups Used - The number of used server groups in each tenant.
- Id string
- The provider-assigned unique ID for this managed resource.
- Max
Image intMeta - 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 intSize - The number of allowed bytes of content for each injected file. Available until version 2.56.
- Max
Security intGroup Rules - The number of allowed rules for each security group. Available until version 2.35.
- Max
Security intGroups - The number of allowed security groups for the tenant. Available until version 2.35.
- Max
Server intGroup Members - The number of allowed members for each server group.
- Max
Server intGroups - The number of allowed server groups for the tenant.
- Max
Server intMeta - The number of allowed server groups for the tenant.
- Max
Total intCores - The number of allowed server cores for the tenant.
- Max
Total intFloating Ips - The number of allowed floating IP addresses for each tenant. Available until version 2.35.
- Max
Total intInstances - The number of allowed servers for the tenant.
- Max
Total intKeypairs - The number of allowed key pairs for the user.
- Max
Total intRam Size - The number of allowed floating IP addresses for the tenant. Available until version 2.35.
- Project
Id string - See Argument Reference above.
- Region string
- See Argument Reference above.
- Total
Cores intUsed - The number of used server cores in the tenant.
- Total
Floating intIps Used - The number of used floating IP addresses in the tenant.
- Total
Instances intUsed - The number of used server cores in the tenant.
- Total
Ram intUsed - The amount of used server RAM in the tenant.
- Total
Security intGroups Used - The number of used security groups in the tenant. Available until version 2.35.
- Total
Server intGroups Used - The number of used server groups in each tenant.
- id String
- The provider-assigned unique ID for this managed resource.
- max
Image IntegerMeta - 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 Integer - The number of allowed injected files for the tenant. Available until version 2.56.
- max
Personality IntegerSize - The number of allowed bytes of content for each injected file. Available until version 2.56.
- max
Security IntegerGroup Rules - The number of allowed rules for each security group. Available until version 2.35.
- max
Security IntegerGroups - The number of allowed security groups for the tenant. Available until version 2.35.
- max
Server IntegerGroup Members - The number of allowed members for each server group.
- max
Server IntegerGroups - The number of allowed server groups for the tenant.
- max
Server IntegerMeta - The number of allowed server groups for the tenant.
- max
Total IntegerCores - The number of allowed server cores for the tenant.
- max
Total IntegerFloating Ips - The number of allowed floating IP addresses for each tenant. Available until version 2.35.
- max
Total IntegerInstances - The number of allowed servers for the tenant.
- max
Total IntegerKeypairs - The number of allowed key pairs for the user.
- max
Total IntegerRam Size - The number of allowed floating IP addresses for the tenant. Available until version 2.35.
- project
Id String - See Argument Reference above.
- region String
- See Argument Reference above.
- total
Cores IntegerUsed - The number of used server cores in the tenant.
- total
Floating IntegerIps Used - The number of used floating IP addresses in the tenant.
- total
Instances IntegerUsed - The number of used server cores in the tenant.
- total
Ram IntegerUsed - The amount of used server RAM in the tenant.
- total
Security IntegerGroups Used - The number of used security groups in the tenant. Available until version 2.35.
- total
Server IntegerGroups Used - The number of used server groups in each tenant.
- id string
- The provider-assigned unique ID for this managed resource.
- max
Image numberMeta - 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 number - The number of allowed injected files for the tenant. Available until version 2.56.
- max
Personality numberSize - The number of allowed bytes of content for each injected file. Available until version 2.56.
- max
Security numberGroup Rules - The number of allowed rules for each security group. Available until version 2.35.
- max
Security numberGroups - The number of allowed security groups for the tenant. Available until version 2.35.
- max
Server numberGroup Members - The number of allowed members for each server group.
- max
Server numberGroups - The number of allowed server groups for the tenant.
- max
Server numberMeta - The number of allowed server groups for the tenant.
- max
Total numberCores - The number of allowed server cores for the tenant.
- max
Total numberFloating Ips - The number of allowed floating IP addresses for each tenant. Available until version 2.35.
- max
Total numberInstances - The number of allowed servers for the tenant.
- max
Total numberKeypairs - The number of allowed key pairs for the user.
- max
Total numberRam Size - The number of allowed floating IP addresses for the tenant. Available until version 2.35.
- project
Id string - See Argument Reference above.
- region string
- See Argument Reference above.
- total
Cores numberUsed - The number of used server cores in the tenant.
- total
Floating numberIps Used - The number of used floating IP addresses in the tenant.
- total
Instances numberUsed - The number of used server cores in the tenant.
- total
Ram numberUsed - The amount of used server RAM in the tenant.
- total
Security numberGroups Used - The number of used security groups in the tenant. Available until version 2.35.
- total
Server numberGroups Used - The number of used server groups in each tenant.
- id str
- The provider-assigned unique ID for this managed resource.
- max_
image_ intmeta - 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_ intsize - The number of allowed bytes of content for each injected file. Available until version 2.56.
- max_
security_ intgroup_ rules - The number of allowed rules for each security group. Available until version 2.35.
- max_
security_ intgroups - The number of allowed security groups for the tenant. Available until version 2.35.
- max_
server_ intgroup_ members - The number of allowed members for each server group.
- max_
server_ intgroups - The number of allowed server groups for the tenant.
- max_
server_ intmeta - The number of allowed server groups for the tenant.
- max_
total_ intcores - The number of allowed server cores for the tenant.
- max_
total_ intfloating_ ips - The number of allowed floating IP addresses for each tenant. Available until version 2.35.
- max_
total_ intinstances - The number of allowed servers for the tenant.
- max_
total_ intkeypairs - The number of allowed key pairs for the user.
- max_
total_ intram_ size - 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_ intused - The number of used server cores in the tenant.
- total_
floating_ intips_ used - The number of used floating IP addresses in the tenant.
- total_
instances_ intused - The number of used server cores in the tenant.
- total_
ram_ intused - The amount of used server RAM in the tenant.
- total_
security_ intgroups_ used - The number of used security groups in the tenant. Available until version 2.35.
- total_
server_ intgroups_ used - The number of used server groups in each tenant.
- id String
- The provider-assigned unique ID for this managed resource.
- max
Image NumberMeta - 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 Number - The number of allowed injected files for the tenant. Available until version 2.56.
- max
Personality NumberSize - The number of allowed bytes of content for each injected file. Available until version 2.56.
- max
Security NumberGroup Rules - The number of allowed rules for each security group. Available until version 2.35.
- max
Security NumberGroups - The number of allowed security groups for the tenant. Available until version 2.35.
- max
Server NumberGroup Members - The number of allowed members for each server group.
- max
Server NumberGroups - The number of allowed server groups for the tenant.
- max
Server NumberMeta - The number of allowed server groups for the tenant.
- max
Total NumberCores - The number of allowed server cores for the tenant.
- max
Total NumberFloating Ips - The number of allowed floating IP addresses for each tenant. Available until version 2.35.
- max
Total NumberInstances - The number of allowed servers for the tenant.
- max
Total NumberKeypairs - The number of allowed key pairs for the user.
- max
Total NumberRam Size - The number of allowed floating IP addresses for the tenant. Available until version 2.35.
- project
Id String - See Argument Reference above.
- region String
- See Argument Reference above.
- total
Cores NumberUsed - The number of used server cores in the tenant.
- total
Floating NumberIps Used - The number of used floating IP addresses in the tenant.
- total
Instances NumberUsed - The number of used server cores in the tenant.
- total
Ram NumberUsed - The amount of used server RAM in the tenant.
- total
Security NumberGroups Used - The number of used security groups in the tenant. Available until version 2.35.
- total
Server NumberGroups Used - 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.