Class Quota


  • public class Quota
    extends com.pulumi.resources.CustomResource
    Manages a V2 load balancer quota resource within OpenStack. > **Note:** This usually requires admin privileges. > **Note:** This resource is only available for Octavia. > **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 ```java 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.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"); 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()); } } ``` ## 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. ```sh $ pulumi import openstack:loadbalancer/quota:Quota quota_1 2a0f2240-c5e6-41de-896d-e80d97428d6b/region_1 ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Constructor Summary

      Constructors 
      Constructor Description
      Quota​(java.lang.String name)  
      Quota​(java.lang.String name, QuotaArgs args)  
      Quota​(java.lang.String name, QuotaArgs args, com.pulumi.resources.CustomResourceOptions options)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Quota get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, QuotaState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.lang.Integer> healthMonitor()  
      com.pulumi.core.Output<java.lang.Integer> l7Policy()  
      com.pulumi.core.Output<java.lang.Integer> l7Rule()  
      com.pulumi.core.Output<java.lang.Integer> listener()  
      com.pulumi.core.Output<java.lang.Integer> loadbalancer()  
      com.pulumi.core.Output<java.lang.Integer> member()  
      com.pulumi.core.Output<java.lang.Integer> pool()  
      com.pulumi.core.Output<java.lang.String> projectId()  
      com.pulumi.core.Output<java.lang.String> region()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Quota

        public Quota​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • Quota

        public Quota​(java.lang.String name,
                     QuotaArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • Quota

        public Quota​(java.lang.String name,
                     QuotaArgs args,
                     @Nullable
                     com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • healthMonitor

        public com.pulumi.core.Output<java.lang.Integer> healthMonitor()
        Returns:
        Quota value for health_monitors. Changing this updates the existing quota. Omitting it sets it to 0.
      • l7Policy

        public com.pulumi.core.Output<java.lang.Integer> l7Policy()
        Returns:
        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

        public com.pulumi.core.Output<java.lang.Integer> l7Rule()
        Returns:
        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

        public com.pulumi.core.Output<java.lang.Integer> listener()
        Returns:
        Quota value for listeners. Changing this updates the existing quota. Omitting it sets it to 0.
      • loadbalancer

        public com.pulumi.core.Output<java.lang.Integer> loadbalancer()
        Returns:
        Quota value for loadbalancers. Changing this updates the existing quota. Omitting it sets it to 0.
      • member

        public com.pulumi.core.Output<java.lang.Integer> member()
        Returns:
        Quota value for members. Changing this updates the existing quota. Omitting it sets it to 0.
      • pool

        public com.pulumi.core.Output<java.lang.Integer> pool()
        Returns:
        Quota value for pools. Changing this updates the the existing quota. Omitting it sets it to 0.
      • projectId

        public com.pulumi.core.Output<java.lang.String> projectId()
        Returns:
        ID of the project to manage quotas. Changing this creates a new quota.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        Region in which to manage quotas. Changing this creates a new quota. If ommited, the region of the credentials is used.
      • get

        public static Quota get​(java.lang.String name,
                                com.pulumi.core.Output<java.lang.String> id,
                                @Nullable
                                QuotaState state,
                                @Nullable
                                com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.