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

openstack.loadbalancer.Quota

Explore with Pulumi AI

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

    Manages a V2 load balancer quota resource within OpenStack.

    Note: This usually requires admin privileges.

    Note: This resource has a no-op deletion so no actual actions will be done against the OpenStack API in case of delete call.

    Note: This resource has all-in creation so all optional quota arguments that were not specified are created with zero value.

    Note: This resource has attributes that depend on octavia minor versions. Please ensure your Openstack cloud supports the required minor version.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const project1 = new openstack.identity.Project("project_1", {name: "project_1"});
    const quota1 = new openstack.loadbalancer.Quota("quota_1", {
        projectId: project1.id,
        loadbalancer: 6,
        listener: 7,
        member: 8,
        pool: 9,
        healthMonitor: 10,
        l7Policy: 11,
        l7Rule: 12,
    });
    
    import pulumi
    import pulumi_openstack as openstack
    
    project1 = openstack.identity.Project("project_1", name="project_1")
    quota1 = openstack.loadbalancer.Quota("quota_1",
        project_id=project1.id,
        loadbalancer=6,
        listener=7,
        member=8,
        pool=9,
        health_monitor=10,
        l7_policy=11,
        l7_rule=12)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/identity"
    	"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/loadbalancer"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		project1, err := identity.NewProject(ctx, "project_1", &identity.ProjectArgs{
    			Name: pulumi.String("project_1"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = loadbalancer.NewQuota(ctx, "quota_1", &loadbalancer.QuotaArgs{
    			ProjectId:     project1.ID(),
    			Loadbalancer:  pulumi.Int(6),
    			Listener:      pulumi.Int(7),
    			Member:        pulumi.Int(8),
    			Pool:          pulumi.Int(9),
    			HealthMonitor: pulumi.Int(10),
    			L7Policy:      pulumi.Int(11),
    			L7Rule:        pulumi.Int(12),
    		})
    		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 project1 = new OpenStack.Identity.Project("project_1", new()
        {
            Name = "project_1",
        });
    
        var quota1 = new OpenStack.LoadBalancer.Quota("quota_1", new()
        {
            ProjectId = project1.Id,
            Loadbalancer = 6,
            Listener = 7,
            Member = 8,
            Pool = 9,
            HealthMonitor = 10,
            L7Policy = 11,
            L7Rule = 12,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.openstack.identity.Project;
    import com.pulumi.openstack.identity.ProjectArgs;
    import com.pulumi.openstack.loadbalancer.Quota;
    import com.pulumi.openstack.loadbalancer.QuotaArgs;
    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) {
            var project1 = new Project("project1", ProjectArgs.builder()        
                .name("project_1")
                .build());
    
            var quota1 = new Quota("quota1", QuotaArgs.builder()        
                .projectId(project1.id())
                .loadbalancer(6)
                .listener(7)
                .member(8)
                .pool(9)
                .healthMonitor(10)
                .l7Policy(11)
                .l7Rule(12)
                .build());
    
        }
    }
    
    resources:
      project1:
        type: openstack:identity:Project
        name: project_1
        properties:
          name: project_1
      quota1:
        type: openstack:loadbalancer:Quota
        name: quota_1
        properties:
          projectId: ${project1.id}
          loadbalancer: 6
          listener: 7
          member: 8
          pool: 9
          healthMonitor: 10
          l7Policy: 11
          l7Rule: 12
    

    Create Quota Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Quota(name: string, args: QuotaArgs, opts?: CustomResourceOptions);
    @overload
    def Quota(resource_name: str,
              args: QuotaArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Quota(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              project_id: Optional[str] = None,
              health_monitor: Optional[int] = None,
              l7_policy: Optional[int] = None,
              l7_rule: Optional[int] = None,
              listener: Optional[int] = None,
              loadbalancer: Optional[int] = None,
              member: Optional[int] = None,
              pool: Optional[int] = None,
              region: Optional[str] = None)
    func NewQuota(ctx *Context, name string, args QuotaArgs, opts ...ResourceOption) (*Quota, error)
    public Quota(string name, QuotaArgs args, CustomResourceOptions? opts = null)
    public Quota(String name, QuotaArgs args)
    public Quota(String name, QuotaArgs args, CustomResourceOptions options)
    
    type: openstack:loadbalancer:Quota
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args QuotaArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args QuotaArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args QuotaArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args QuotaArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args QuotaArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var quotaResource = new OpenStack.LoadBalancer.Quota("quotaResource", new()
    {
        ProjectId = "string",
        HealthMonitor = 0,
        L7Policy = 0,
        L7Rule = 0,
        Listener = 0,
        Loadbalancer = 0,
        Member = 0,
        Pool = 0,
        Region = "string",
    });
    
    example, err := loadbalancer.NewQuota(ctx, "quotaResource", &loadbalancer.QuotaArgs{
    	ProjectId:     pulumi.String("string"),
    	HealthMonitor: pulumi.Int(0),
    	L7Policy:      pulumi.Int(0),
    	L7Rule:        pulumi.Int(0),
    	Listener:      pulumi.Int(0),
    	Loadbalancer:  pulumi.Int(0),
    	Member:        pulumi.Int(0),
    	Pool:          pulumi.Int(0),
    	Region:        pulumi.String("string"),
    })
    
    var quotaResource = new Quota("quotaResource", QuotaArgs.builder()
        .projectId("string")
        .healthMonitor(0)
        .l7Policy(0)
        .l7Rule(0)
        .listener(0)
        .loadbalancer(0)
        .member(0)
        .pool(0)
        .region("string")
        .build());
    
    quota_resource = openstack.loadbalancer.Quota("quotaResource",
        project_id="string",
        health_monitor=0,
        l7_policy=0,
        l7_rule=0,
        listener=0,
        loadbalancer=0,
        member=0,
        pool=0,
        region="string")
    
    const quotaResource = new openstack.loadbalancer.Quota("quotaResource", {
        projectId: "string",
        healthMonitor: 0,
        l7Policy: 0,
        l7Rule: 0,
        listener: 0,
        loadbalancer: 0,
        member: 0,
        pool: 0,
        region: "string",
    });
    
    type: openstack:loadbalancer:Quota
    properties:
        healthMonitor: 0
        l7Policy: 0
        l7Rule: 0
        listener: 0
        loadbalancer: 0
        member: 0
        pool: 0
        projectId: string
        region: string
    

    Quota Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Quota resource accepts the following input properties:

    ProjectId string
    ID of the project to manage quotas. Changing this creates a new quota.
    HealthMonitor int
    Quota value for health_monitors. Changing this updates the existing quota. Omitting it sets it to 0.
    L7Policy int
    Quota value for l7_policies. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    L7Rule int
    Quota value for l7_rules. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    Listener int
    Quota value for listeners. Changing this updates the existing quota. Omitting it sets it to 0.
    Loadbalancer int
    Quota value for loadbalancers. Changing this updates the existing quota. Omitting it sets it to 0.
    Member int
    Quota value for members. Changing this updates the existing quota. Omitting it sets it to 0.
    Pool int
    Quota value for pools. Changing this updates the the existing quota. Omitting it sets it to 0.
    Region string
    Region in which to manage quotas. Changing this creates a new quota. If ommited, the region of the credentials is used.
    ProjectId string
    ID of the project to manage quotas. Changing this creates a new quota.
    HealthMonitor int
    Quota value for health_monitors. Changing this updates the existing quota. Omitting it sets it to 0.
    L7Policy int
    Quota value for l7_policies. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    L7Rule int
    Quota value for l7_rules. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    Listener int
    Quota value for listeners. Changing this updates the existing quota. Omitting it sets it to 0.
    Loadbalancer int
    Quota value for loadbalancers. Changing this updates the existing quota. Omitting it sets it to 0.
    Member int
    Quota value for members. Changing this updates the existing quota. Omitting it sets it to 0.
    Pool int
    Quota value for pools. Changing this updates the the existing quota. Omitting it sets it to 0.
    Region string
    Region in which to manage quotas. Changing this creates a new quota. If ommited, the region of the credentials is used.
    projectId String
    ID of the project to manage quotas. Changing this creates a new quota.
    healthMonitor Integer
    Quota value for health_monitors. Changing this updates the existing quota. Omitting it sets it to 0.
    l7Policy Integer
    Quota value for l7_policies. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    l7Rule Integer
    Quota value for l7_rules. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    listener Integer
    Quota value for listeners. Changing this updates the existing quota. Omitting it sets it to 0.
    loadbalancer Integer
    Quota value for loadbalancers. Changing this updates the existing quota. Omitting it sets it to 0.
    member Integer
    Quota value for members. Changing this updates the existing quota. Omitting it sets it to 0.
    pool Integer
    Quota value for pools. Changing this updates the the existing quota. Omitting it sets it to 0.
    region String
    Region in which to manage quotas. Changing this creates a new quota. If ommited, the region of the credentials is used.
    projectId string
    ID of the project to manage quotas. Changing this creates a new quota.
    healthMonitor number
    Quota value for health_monitors. Changing this updates the existing quota. Omitting it sets it to 0.
    l7Policy number
    Quota value for l7_policies. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    l7Rule number
    Quota value for l7_rules. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    listener number
    Quota value for listeners. Changing this updates the existing quota. Omitting it sets it to 0.
    loadbalancer number
    Quota value for loadbalancers. Changing this updates the existing quota. Omitting it sets it to 0.
    member number
    Quota value for members. Changing this updates the existing quota. Omitting it sets it to 0.
    pool number
    Quota value for pools. Changing this updates the the existing quota. Omitting it sets it to 0.
    region string
    Region in which to manage quotas. Changing this creates a new quota. If ommited, the region of the credentials is used.
    project_id str
    ID of the project to manage quotas. Changing this creates a new quota.
    health_monitor int
    Quota value for health_monitors. Changing this updates the existing quota. Omitting it sets it to 0.
    l7_policy int
    Quota value for l7_policies. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    l7_rule int
    Quota value for l7_rules. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    listener int
    Quota value for listeners. Changing this updates the existing quota. Omitting it sets it to 0.
    loadbalancer int
    Quota value for loadbalancers. Changing this updates the existing quota. Omitting it sets it to 0.
    member int
    Quota value for members. Changing this updates the existing quota. Omitting it sets it to 0.
    pool int
    Quota value for pools. Changing this updates the the existing quota. Omitting it sets it to 0.
    region str
    Region in which to manage quotas. Changing this creates a new quota. If ommited, the region of the credentials is used.
    projectId String
    ID of the project to manage quotas. Changing this creates a new quota.
    healthMonitor Number
    Quota value for health_monitors. Changing this updates the existing quota. Omitting it sets it to 0.
    l7Policy Number
    Quota value for l7_policies. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    l7Rule Number
    Quota value for l7_rules. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    listener Number
    Quota value for listeners. Changing this updates the existing quota. Omitting it sets it to 0.
    loadbalancer Number
    Quota value for loadbalancers. Changing this updates the existing quota. Omitting it sets it to 0.
    member Number
    Quota value for members. Changing this updates the existing quota. Omitting it sets it to 0.
    pool Number
    Quota value for pools. Changing this updates the the existing quota. Omitting it sets it to 0.
    region String
    Region in which to manage quotas. Changing this creates a new quota. If ommited, the region of the credentials is used.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Quota resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Quota Resource

    Get an existing Quota resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: QuotaState, opts?: CustomResourceOptions): Quota
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            health_monitor: Optional[int] = None,
            l7_policy: Optional[int] = None,
            l7_rule: Optional[int] = None,
            listener: Optional[int] = None,
            loadbalancer: Optional[int] = None,
            member: Optional[int] = None,
            pool: Optional[int] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None) -> Quota
    func GetQuota(ctx *Context, name string, id IDInput, state *QuotaState, opts ...ResourceOption) (*Quota, error)
    public static Quota Get(string name, Input<string> id, QuotaState? state, CustomResourceOptions? opts = null)
    public static Quota get(String name, Output<String> id, QuotaState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    HealthMonitor int
    Quota value for health_monitors. Changing this updates the existing quota. Omitting it sets it to 0.
    L7Policy int
    Quota value for l7_policies. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    L7Rule int
    Quota value for l7_rules. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    Listener int
    Quota value for listeners. Changing this updates the existing quota. Omitting it sets it to 0.
    Loadbalancer int
    Quota value for loadbalancers. Changing this updates the existing quota. Omitting it sets it to 0.
    Member int
    Quota value for members. Changing this updates the existing quota. Omitting it sets it to 0.
    Pool int
    Quota value for pools. Changing this updates the the existing quota. Omitting it sets it to 0.
    ProjectId string
    ID of the project to manage quotas. Changing this creates a new quota.
    Region string
    Region in which to manage quotas. Changing this creates a new quota. If ommited, the region of the credentials is used.
    HealthMonitor int
    Quota value for health_monitors. Changing this updates the existing quota. Omitting it sets it to 0.
    L7Policy int
    Quota value for l7_policies. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    L7Rule int
    Quota value for l7_rules. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    Listener int
    Quota value for listeners. Changing this updates the existing quota. Omitting it sets it to 0.
    Loadbalancer int
    Quota value for loadbalancers. Changing this updates the existing quota. Omitting it sets it to 0.
    Member int
    Quota value for members. Changing this updates the existing quota. Omitting it sets it to 0.
    Pool int
    Quota value for pools. Changing this updates the the existing quota. Omitting it sets it to 0.
    ProjectId string
    ID of the project to manage quotas. Changing this creates a new quota.
    Region string
    Region in which to manage quotas. Changing this creates a new quota. If ommited, the region of the credentials is used.
    healthMonitor Integer
    Quota value for health_monitors. Changing this updates the existing quota. Omitting it sets it to 0.
    l7Policy Integer
    Quota value for l7_policies. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    l7Rule Integer
    Quota value for l7_rules. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    listener Integer
    Quota value for listeners. Changing this updates the existing quota. Omitting it sets it to 0.
    loadbalancer Integer
    Quota value for loadbalancers. Changing this updates the existing quota. Omitting it sets it to 0.
    member Integer
    Quota value for members. Changing this updates the existing quota. Omitting it sets it to 0.
    pool Integer
    Quota value for pools. Changing this updates the the existing quota. Omitting it sets it to 0.
    projectId String
    ID of the project to manage quotas. Changing this creates a new quota.
    region String
    Region in which to manage quotas. Changing this creates a new quota. If ommited, the region of the credentials is used.
    healthMonitor number
    Quota value for health_monitors. Changing this updates the existing quota. Omitting it sets it to 0.
    l7Policy number
    Quota value for l7_policies. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    l7Rule number
    Quota value for l7_rules. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    listener number
    Quota value for listeners. Changing this updates the existing quota. Omitting it sets it to 0.
    loadbalancer number
    Quota value for loadbalancers. Changing this updates the existing quota. Omitting it sets it to 0.
    member number
    Quota value for members. Changing this updates the existing quota. Omitting it sets it to 0.
    pool number
    Quota value for pools. Changing this updates the the existing quota. Omitting it sets it to 0.
    projectId string
    ID of the project to manage quotas. Changing this creates a new quota.
    region string
    Region in which to manage quotas. Changing this creates a new quota. If ommited, the region of the credentials is used.
    health_monitor int
    Quota value for health_monitors. Changing this updates the existing quota. Omitting it sets it to 0.
    l7_policy int
    Quota value for l7_policies. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    l7_rule int
    Quota value for l7_rules. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    listener int
    Quota value for listeners. Changing this updates the existing quota. Omitting it sets it to 0.
    loadbalancer int
    Quota value for loadbalancers. Changing this updates the existing quota. Omitting it sets it to 0.
    member int
    Quota value for members. Changing this updates the existing quota. Omitting it sets it to 0.
    pool int
    Quota value for pools. Changing this updates the the existing quota. Omitting it sets it to 0.
    project_id str
    ID of the project to manage quotas. Changing this creates a new quota.
    region str
    Region in which to manage quotas. Changing this creates a new quota. If ommited, the region of the credentials is used.
    healthMonitor Number
    Quota value for health_monitors. Changing this updates the existing quota. Omitting it sets it to 0.
    l7Policy Number
    Quota value for l7_policies. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    l7Rule Number
    Quota value for l7_rules. Changing this updates the existing quota. Omitting it sets it to 0. Available in Octavia minor version 2.19.
    listener Number
    Quota value for listeners. Changing this updates the existing quota. Omitting it sets it to 0.
    loadbalancer Number
    Quota value for loadbalancers. Changing this updates the existing quota. Omitting it sets it to 0.
    member Number
    Quota value for members. Changing this updates the existing quota. Omitting it sets it to 0.
    pool Number
    Quota value for pools. Changing this updates the the existing quota. Omitting it sets it to 0.
    projectId String
    ID of the project to manage quotas. Changing this creates a new quota.
    region String
    Region in which to manage quotas. Changing this creates a new quota. If ommited, the region of the credentials is used.

    Import

    Quotas can be imported using the project_id/region_name, where region_name is the one defined is the Openstack credentials that are in use. E.g.

    $ pulumi import openstack:loadbalancer/quota:Quota quota_1 2a0f2240-c5e6-41de-896d-e80d97428d6b/region_1
    

    To learn more about importing existing cloud resources, see Importing resources.

    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