Class QuotaSetV2


  • public class QuotaSetV2
    extends com.pulumi.resources.CustomResource
    Manages a V2 compute quotaset 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. ## 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.compute.QuotaSetV2; import com.pulumi.openstack.compute.QuotaSetV2Args; 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 quotaset1 = new QuotaSetV2("quotaset1", QuotaSetV2Args.builder() .projectId(project1.id()) .keyPairs(10) .ram(40960) .cores(32) .instances(20) .serverGroups(4) .serverGroupMembers(8) .build()); } } ``` ## Import Quotasets can be imported using the `project_id/region_name`, e.g. ```sh $ pulumi import openstack:compute/quotaSetV2:QuotaSetV2 quotaset_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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.Integer> cores()  
      com.pulumi.core.Output<java.lang.Integer> fixedIps()  
      com.pulumi.core.Output<java.lang.Integer> floatingIps()  
      static QuotaSetV2 get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, QuotaSetV2State 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> injectedFileContentBytes()  
      com.pulumi.core.Output<java.lang.Integer> injectedFilePathBytes()  
      com.pulumi.core.Output<java.lang.Integer> injectedFiles()  
      com.pulumi.core.Output<java.lang.Integer> instances()  
      com.pulumi.core.Output<java.lang.Integer> keyPairs()  
      com.pulumi.core.Output<java.lang.Integer> metadataItems()  
      com.pulumi.core.Output<java.lang.String> projectId()  
      com.pulumi.core.Output<java.lang.Integer> ram()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.lang.Integer> securityGroupRules()  
      com.pulumi.core.Output<java.lang.Integer> securityGroups()  
      com.pulumi.core.Output<java.lang.Integer> serverGroupMembers()  
      com.pulumi.core.Output<java.lang.Integer> serverGroups()  
      • 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

      • QuotaSetV2

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

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

        public QuotaSetV2​(java.lang.String name,
                          QuotaSetV2Args 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

      • cores

        public com.pulumi.core.Output<java.lang.Integer> cores()
        Returns:
        Quota value for cores. Changing this updates the existing quotaset.
      • fixedIps

        public com.pulumi.core.Output<java.lang.Integer> fixedIps()
        Returns:
        Quota value for fixed IPs. Changing this updates the existing quotaset.
      • floatingIps

        public com.pulumi.core.Output<java.lang.Integer> floatingIps()
        Returns:
        Quota value for floating IPs. Changing this updates the existing quotaset.
      • injectedFileContentBytes

        public com.pulumi.core.Output<java.lang.Integer> injectedFileContentBytes()
        Returns:
        Quota value for content bytes of injected files. Changing this updates the existing quotaset.
      • injectedFilePathBytes

        public com.pulumi.core.Output<java.lang.Integer> injectedFilePathBytes()
        Returns:
        Quota value for path bytes of injected files. Changing this updates the existing quotaset.
      • injectedFiles

        public com.pulumi.core.Output<java.lang.Integer> injectedFiles()
        Returns:
        Quota value for injected files. Changing this updates the existing quotaset.
      • instances

        public com.pulumi.core.Output<java.lang.Integer> instances()
        Returns:
        Quota value for instances. Changing this updates the existing quotaset.
      • keyPairs

        public com.pulumi.core.Output<java.lang.Integer> keyPairs()
        Returns:
        Quota value for key pairs. Changing this updates the existing quotaset.
      • metadataItems

        public com.pulumi.core.Output<java.lang.Integer> metadataItems()
        Returns:
        Quota value for metadata items. Changing this updates the existing quotaset.
      • projectId

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

        public com.pulumi.core.Output<java.lang.Integer> ram()
        Returns:
        Quota value for RAM. Changing this updates the existing quotaset.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        The region in which to create the volume. If omitted, the `region` argument of the provider is used. Changing this creates a new quotaset.
      • securityGroupRules

        public com.pulumi.core.Output<java.lang.Integer> securityGroupRules()
        Returns:
        Quota value for security group rules. Changing this updates the existing quotaset.
      • securityGroups

        public com.pulumi.core.Output<java.lang.Integer> securityGroups()
        Returns:
        Quota value for security groups. Changing this updates the existing quotaset.
      • serverGroupMembers

        public com.pulumi.core.Output<java.lang.Integer> serverGroupMembers()
        Returns:
        Quota value for server groups members. Changing this updates the existing quotaset.
      • serverGroups

        public com.pulumi.core.Output<java.lang.Integer> serverGroups()
        Returns:
        Quota value for server groups. Changing this updates the existing quotaset.
      • get

        public static QuotaSetV2 get​(java.lang.String name,
                                     com.pulumi.core.Output<java.lang.String> id,
                                     @Nullable
                                     QuotaSetV2State 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.