Package com.pulumi.openstack.networking
Class QuotaV2
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.openstack.networking.QuotaV2
-
public class QuotaV2 extends com.pulumi.resources.CustomResourceManages a V2 networking 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. ## 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.networking.QuotaV2; import com.pulumi.openstack.networking.QuotaV2Args; 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 QuotaV2("quota1", QuotaV2Args.builder() .projectId(project1.id()) .floatingip(10) .network(4) .port(100) .rbacPolicy(10) .router(4) .securityGroup(10) .securityGroupRule(100) .subnet(8) .subnetpool(2) .build()); } } ``` ## Import Quotas can be imported using the `project_id/region_name`, e.g. ```sh $ pulumi import openstack:networking/quotaV2:QuotaV2 quota_1 2a0f2240-c5e6-41de-896d-e80d97428d6b/region_1 ```
-
-
Constructor Summary
Constructors Constructor Description QuotaV2(java.lang.String name)QuotaV2(java.lang.String name, QuotaV2Args args)QuotaV2(java.lang.String name, QuotaV2Args args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.Integer>floatingip()static QuotaV2get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, QuotaV2State 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>network()com.pulumi.core.Output<java.lang.Integer>port()com.pulumi.core.Output<java.lang.String>projectId()com.pulumi.core.Output<java.lang.Integer>rbacPolicy()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.Integer>router()com.pulumi.core.Output<java.lang.Integer>securityGroup()com.pulumi.core.Output<java.lang.Integer>securityGroupRule()com.pulumi.core.Output<java.lang.Integer>subnet()com.pulumi.core.Output<java.lang.Integer>subnetpool()
-
-
-
Constructor Detail
-
QuotaV2
public QuotaV2(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
QuotaV2
public QuotaV2(java.lang.String name, QuotaV2Args args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
QuotaV2
public QuotaV2(java.lang.String name, QuotaV2Args 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
-
floatingip
public com.pulumi.core.Output<java.lang.Integer> floatingip()
- Returns:
- Quota value for floating IPs. Changing this updates the existing quota.
-
network
public com.pulumi.core.Output<java.lang.Integer> network()
- Returns:
- Quota value for networks. Changing this updates the existing quota.
-
port
public com.pulumi.core.Output<java.lang.Integer> port()
- Returns:
- Quota value for ports. Changing this updates the existing quota.
-
projectId
public com.pulumi.core.Output<java.lang.String> projectId()
- Returns:
- ID of the project to manage quota. Changing this creates new quota.
-
rbacPolicy
public com.pulumi.core.Output<java.lang.Integer> rbacPolicy()
- Returns:
- Quota value for RBAC policies. Changing this updates the existing quota.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- The region in which to create the quota. If omitted, the `region` argument of the provider is used. Changing this creates new quota.
-
router
public com.pulumi.core.Output<java.lang.Integer> router()
- Returns:
- Quota value for routers. Changing this updates the existing quota.
-
securityGroup
public com.pulumi.core.Output<java.lang.Integer> securityGroup()
- Returns:
- Quota value for security groups. Changing this updates the existing quota.
-
securityGroupRule
public com.pulumi.core.Output<java.lang.Integer> securityGroupRule()
- Returns:
- Quota value for security group rules. Changing this updates the existing quota.
-
subnet
public com.pulumi.core.Output<java.lang.Integer> subnet()
- Returns:
- Quota value for subnets. Changing this updates the existing quota.
-
subnetpool
public com.pulumi.core.Output<java.lang.Integer> subnetpool()
- Returns:
- Quota value for subnetpools. Changing this updates the existing quota.
-
get
public static QuotaV2 get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable QuotaV2State 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.
-
-