Class QuoteSetV2
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.openstack.blockstorage.QuoteSetV2
-
public class QuoteSetV2 extends com.pulumi.resources.CustomResourceManages a V2 block storage 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. This excludes volume type quota. ## 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.blockstorage.QuoteSetV2; import com.pulumi.openstack.blockstorage.QuoteSetV2Args; 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 QuoteSetV2("quotaset1", QuoteSetV2Args.builder() .projectId(project1.id()) .volumes(10) .snapshots(4) .gigabytes(100) .perVolumeGigabytes(10) .backups(4) .backupGigabytes(10) .groups(100) .volumeTypeQuota(Map.ofEntries( Map.entry("volumes_ssd", 30), Map.entry("gigabytes_ssd", 500), Map.entry("snapshots_ssd", 10) )) .build()); } } ``` ## Import Quotasets can be imported using the `project_id/region`, e.g. ```sh $ pulumi import openstack:blockstorage/quoteSetV2:QuoteSetV2 quotaset_1 2a0f2240-c5e6-41de-896d-e80d97428d6b/region_1 ```
-
-
Constructor Summary
Constructors Constructor Description QuoteSetV2(java.lang.String name)QuoteSetV2(java.lang.String name, QuoteSetV2Args args)QuoteSetV2(java.lang.String name, QuoteSetV2Args 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>backupGigabytes()com.pulumi.core.Output<java.lang.Integer>backups()static QuoteSetV2get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, QuoteSetV2State 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>gigabytes()com.pulumi.core.Output<java.lang.Integer>groups()com.pulumi.core.Output<java.lang.Integer>perVolumeGigabytes()com.pulumi.core.Output<java.lang.String>projectId()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.Integer>snapshots()com.pulumi.core.Output<java.lang.Integer>volumes()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>>>volumeTypeQuota()
-
-
-
Constructor Detail
-
QuoteSetV2
public QuoteSetV2(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
QuoteSetV2
public QuoteSetV2(java.lang.String name, QuoteSetV2Args args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
QuoteSetV2
public QuoteSetV2(java.lang.String name, QuoteSetV2Args 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
-
backupGigabytes
public com.pulumi.core.Output<java.lang.Integer> backupGigabytes()
- Returns:
- Quota value for backup gigabytes. Changing this updates the existing quotaset.
-
backups
public com.pulumi.core.Output<java.lang.Integer> backups()
- Returns:
- Quota value for backups. Changing this updates the existing quotaset.
-
gigabytes
public com.pulumi.core.Output<java.lang.Integer> gigabytes()
- Returns:
- Quota value for gigabytes. Changing this updates the existing quotaset.
-
groups
public com.pulumi.core.Output<java.lang.Integer> groups()
- Returns:
- Quota value for groups. Changing this updates the existing quotaset.
-
perVolumeGigabytes
public com.pulumi.core.Output<java.lang.Integer> perVolumeGigabytes()
- Returns:
- Quota value for gigabytes per volume . 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.
-
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.
-
snapshots
public com.pulumi.core.Output<java.lang.Integer> snapshots()
- Returns:
- Quota value for snapshots. Changing this updates the existing quotaset.
-
volumeTypeQuota
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>>> volumeTypeQuota()
- Returns:
- Key/Value pairs for setting quota for volumes types. Possible keys are `snapshots_<volume_type_name>`, `volumes_<volume_type_name>` and `gigabytes_<volume_type_name>`.
-
volumes
public com.pulumi.core.Output<java.lang.Integer> volumes()
- Returns:
- Quota value for volumes. Changing this updates the existing quotaset.
-
get
public static QuoteSetV2 get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable QuoteSetV2State 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.
-
-