Package com.pulumi.openstack.networking
Class QosBandwidthLimitRule
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.openstack.networking.QosBandwidthLimitRule
-
public class QosBandwidthLimitRule extends com.pulumi.resources.CustomResourceManages a V2 Neutron QoS bandwidth limit rule resource within OpenStack. ## Example Usage ### Create a QoS Policy with some bandwidth limit rule ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.openstack.networking.QosPolicy; import com.pulumi.openstack.networking.QosPolicyArgs; import com.pulumi.openstack.networking.QosBandwidthLimitRule; import com.pulumi.openstack.networking.QosBandwidthLimitRuleArgs; 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 qosPolicy1 = new QosPolicy("qosPolicy1", QosPolicyArgs.builder() .description("bw_limit") .build()); var bwLimitRule1 = new QosBandwidthLimitRule("bwLimitRule1", QosBandwidthLimitRuleArgs.builder() .qosPolicyId(qosPolicy1.id()) .maxKbps(3000) .maxBurstKbps(300) .direction("egress") .build()); } } ``` ## Import QoS bandwidth limit rules can be imported using the `qos_policy_id/bandwidth_limit_rule` format, e.g. ```sh $ pulumi import openstack:networking/qosBandwidthLimitRule:QosBandwidthLimitRule bw_limit_rule_1 d6ae28ce-fcb5-4180-aa62-d260a27e09ae/46dfb556-b92f-48ce-94c5-9a9e2140de94 ```
-
-
Constructor Summary
Constructors Constructor Description QosBandwidthLimitRule(java.lang.String name)QosBandwidthLimitRule(java.lang.String name, QosBandwidthLimitRuleArgs args)QosBandwidthLimitRule(java.lang.String name, QosBandwidthLimitRuleArgs 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.util.Optional<java.lang.String>>direction()static QosBandwidthLimitRuleget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, QosBandwidthLimitRuleState 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.util.Optional<java.lang.Integer>>maxBurstKbps()com.pulumi.core.Output<java.lang.Integer>maxKbps()com.pulumi.core.Output<java.lang.String>qosPolicyId()com.pulumi.core.Output<java.lang.String>region()
-
-
-
Constructor Detail
-
QosBandwidthLimitRule
public QosBandwidthLimitRule(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
QosBandwidthLimitRule
public QosBandwidthLimitRule(java.lang.String name, QosBandwidthLimitRuleArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
QosBandwidthLimitRule
public QosBandwidthLimitRule(java.lang.String name, QosBandwidthLimitRuleArgs 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
-
direction
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> direction()
- Returns:
- The direction of traffic. Defaults to "egress". Changing this updates the direction of the existing QoS bandwidth limit rule.
-
maxBurstKbps
public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> maxBurstKbps()
- Returns:
- The maximum burst size in kilobits of a QoS bandwidth limit rule. Changing this updates the maximum burst size in kilobits of the existing QoS bandwidth limit rule.
-
maxKbps
public com.pulumi.core.Output<java.lang.Integer> maxKbps()
- Returns:
- The maximum kilobits per second of a QoS bandwidth limit rule. Changing this updates the maximum kilobits per second of the existing QoS bandwidth limit rule.
-
qosPolicyId
public com.pulumi.core.Output<java.lang.String> qosPolicyId()
- Returns:
- The QoS policy reference. Changing this creates a new QoS bandwidth limit rule.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron QoS bandwidth limit rule. If omitted, the `region` argument of the provider is used. Changing this creates a new QoS bandwidth limit rule.
-
get
public static QosBandwidthLimitRule get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable QosBandwidthLimitRuleState 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.
-
-