Class QosMinimumBandwidthRule


  • public class QosMinimumBandwidthRule
    extends com.pulumi.resources.CustomResource
    Manages a V2 Neutron QoS minimum bandwidth rule resource within OpenStack. ## Example Usage ### Create a QoS Policy with some minimum bandwidth 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.QosMinimumBandwidthRule; import com.pulumi.openstack.networking.QosMinimumBandwidthRuleArgs; 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("min_kbps") .build()); var minimumBandwidthRule1 = new QosMinimumBandwidthRule("minimumBandwidthRule1", QosMinimumBandwidthRuleArgs.builder() .qosPolicyId(qosPolicy1.id()) .minKbps(200) .build()); } } ``` ## Import QoS minimum bandwidth rules can be imported using the `qos_policy_id/minimum_bandwidth_rule_id` format, e.g. ```sh $ pulumi import openstack:networking/qosMinimumBandwidthRule:QosMinimumBandwidthRule minimum_bandwidth_rule_1 d6ae28ce-fcb5-4180-aa62-d260a27e09ae/46dfb556-b92f-48ce-94c5-9a9e2140de94 ```
    • 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.util.Optional<java.lang.String>> direction()  
      static QosMinimumBandwidthRule get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, QosMinimumBandwidthRuleState 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> minKbps()  
      com.pulumi.core.Output<java.lang.String> qosPolicyId()  
      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

      • QosMinimumBandwidthRule

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

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

        public QosMinimumBandwidthRule​(java.lang.String name,
                                       QosMinimumBandwidthRuleArgs 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 minimum bandwidth rule.
      • minKbps

        public com.pulumi.core.Output<java.lang.Integer> minKbps()
        Returns:
        The minimum kilobits per second. Changing this updates the min kbps value of the existing QoS minimum bandwidth rule.
      • qosPolicyId

        public com.pulumi.core.Output<java.lang.String> qosPolicyId()
        Returns:
        The QoS policy reference. Changing this creates a new QoS minimum bandwidth 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 minimum bandwidth rule. If omitted, the `region` argument of the provider is used. Changing this creates a new QoS minimum bandwidth rule.
      • get

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