1. Packages
  2. OpenStack
  3. API Docs
  4. networking
  5. QosMinimumBandwidthRule
OpenStack v3.15.1 published on Thursday, Feb 1, 2024 by Pulumi

openstack.networking.QosMinimumBandwidthRule

Explore with Pulumi AI

openstack logo
OpenStack v3.15.1 published on Thursday, Feb 1, 2024 by Pulumi

    Manages a V2 Neutron QoS minimum bandwidth rule resource within OpenStack.

    Example Usage

    Create a QoS Policy with some minimum bandwidth rule

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using OpenStack = Pulumi.OpenStack;
    
    return await Deployment.RunAsync(() => 
    {
        var qosPolicy1 = new OpenStack.Networking.QosPolicy("qosPolicy1", new()
        {
            Description = "min_kbps",
        });
    
        var minimumBandwidthRule1 = new OpenStack.Networking.QosMinimumBandwidthRule("minimumBandwidthRule1", new()
        {
            QosPolicyId = qosPolicy1.Id,
            MinKbps = 200,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/networking"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		qosPolicy1, err := networking.NewQosPolicy(ctx, "qosPolicy1", &networking.QosPolicyArgs{
    			Description: pulumi.String("min_kbps"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = networking.NewQosMinimumBandwidthRule(ctx, "minimumBandwidthRule1", &networking.QosMinimumBandwidthRuleArgs{
    			QosPolicyId: qosPolicy1.ID(),
    			MinKbps:     pulumi.Int(200),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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 pulumi
    import pulumi_openstack as openstack
    
    qos_policy1 = openstack.networking.QosPolicy("qosPolicy1", description="min_kbps")
    minimum_bandwidth_rule1 = openstack.networking.QosMinimumBandwidthRule("minimumBandwidthRule1",
        qos_policy_id=qos_policy1.id,
        min_kbps=200)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const qosPolicy1 = new openstack.networking.QosPolicy("qosPolicy1", {description: "min_kbps"});
    const minimumBandwidthRule1 = new openstack.networking.QosMinimumBandwidthRule("minimumBandwidthRule1", {
        qosPolicyId: qosPolicy1.id,
        minKbps: 200,
    });
    
    resources:
      qosPolicy1:
        type: openstack:networking:QosPolicy
        properties:
          description: min_kbps
      minimumBandwidthRule1:
        type: openstack:networking:QosMinimumBandwidthRule
        properties:
          qosPolicyId: ${qosPolicy1.id}
          minKbps: 200
    

    Create QosMinimumBandwidthRule Resource

    new QosMinimumBandwidthRule(name: string, args: QosMinimumBandwidthRuleArgs, opts?: CustomResourceOptions);
    @overload
    def QosMinimumBandwidthRule(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                direction: Optional[str] = None,
                                min_kbps: Optional[int] = None,
                                qos_policy_id: Optional[str] = None,
                                region: Optional[str] = None)
    @overload
    def QosMinimumBandwidthRule(resource_name: str,
                                args: QosMinimumBandwidthRuleArgs,
                                opts: Optional[ResourceOptions] = None)
    func NewQosMinimumBandwidthRule(ctx *Context, name string, args QosMinimumBandwidthRuleArgs, opts ...ResourceOption) (*QosMinimumBandwidthRule, error)
    public QosMinimumBandwidthRule(string name, QosMinimumBandwidthRuleArgs args, CustomResourceOptions? opts = null)
    public QosMinimumBandwidthRule(String name, QosMinimumBandwidthRuleArgs args)
    public QosMinimumBandwidthRule(String name, QosMinimumBandwidthRuleArgs args, CustomResourceOptions options)
    
    type: openstack:networking:QosMinimumBandwidthRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args QosMinimumBandwidthRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args QosMinimumBandwidthRuleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args QosMinimumBandwidthRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args QosMinimumBandwidthRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args QosMinimumBandwidthRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    QosMinimumBandwidthRule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The QosMinimumBandwidthRule resource accepts the following input properties:

    MinKbps int
    The minimum kilobits per second. Changing this updates the min kbps value of the existing QoS minimum bandwidth rule.
    QosPolicyId string
    The QoS policy reference. Changing this creates a new QoS minimum bandwidth rule.
    Direction string
    The direction of traffic. Defaults to "egress". Changing this updates the direction of the existing QoS minimum bandwidth rule.
    Region string
    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.
    MinKbps int
    The minimum kilobits per second. Changing this updates the min kbps value of the existing QoS minimum bandwidth rule.
    QosPolicyId string
    The QoS policy reference. Changing this creates a new QoS minimum bandwidth rule.
    Direction string
    The direction of traffic. Defaults to "egress". Changing this updates the direction of the existing QoS minimum bandwidth rule.
    Region string
    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.
    minKbps Integer
    The minimum kilobits per second. Changing this updates the min kbps value of the existing QoS minimum bandwidth rule.
    qosPolicyId String
    The QoS policy reference. Changing this creates a new QoS minimum bandwidth rule.
    direction String
    The direction of traffic. Defaults to "egress". Changing this updates the direction of the existing QoS minimum bandwidth rule.
    region String
    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.
    minKbps number
    The minimum kilobits per second. Changing this updates the min kbps value of the existing QoS minimum bandwidth rule.
    qosPolicyId string
    The QoS policy reference. Changing this creates a new QoS minimum bandwidth rule.
    direction string
    The direction of traffic. Defaults to "egress". Changing this updates the direction of the existing QoS minimum bandwidth rule.
    region string
    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.
    min_kbps int
    The minimum kilobits per second. Changing this updates the min kbps value of the existing QoS minimum bandwidth rule.
    qos_policy_id str
    The QoS policy reference. Changing this creates a new QoS minimum bandwidth rule.
    direction str
    The direction of traffic. Defaults to "egress". Changing this updates the direction of the existing QoS minimum bandwidth rule.
    region str
    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.
    minKbps Number
    The minimum kilobits per second. Changing this updates the min kbps value of the existing QoS minimum bandwidth rule.
    qosPolicyId String
    The QoS policy reference. Changing this creates a new QoS minimum bandwidth rule.
    direction String
    The direction of traffic. Defaults to "egress". Changing this updates the direction of the existing QoS minimum bandwidth rule.
    region String
    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the QosMinimumBandwidthRule resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing QosMinimumBandwidthRule Resource

    Get an existing QosMinimumBandwidthRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: QosMinimumBandwidthRuleState, opts?: CustomResourceOptions): QosMinimumBandwidthRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            direction: Optional[str] = None,
            min_kbps: Optional[int] = None,
            qos_policy_id: Optional[str] = None,
            region: Optional[str] = None) -> QosMinimumBandwidthRule
    func GetQosMinimumBandwidthRule(ctx *Context, name string, id IDInput, state *QosMinimumBandwidthRuleState, opts ...ResourceOption) (*QosMinimumBandwidthRule, error)
    public static QosMinimumBandwidthRule Get(string name, Input<string> id, QosMinimumBandwidthRuleState? state, CustomResourceOptions? opts = null)
    public static QosMinimumBandwidthRule get(String name, Output<String> id, QosMinimumBandwidthRuleState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Direction string
    The direction of traffic. Defaults to "egress". Changing this updates the direction of the existing QoS minimum bandwidth rule.
    MinKbps int
    The minimum kilobits per second. Changing this updates the min kbps value of the existing QoS minimum bandwidth rule.
    QosPolicyId string
    The QoS policy reference. Changing this creates a new QoS minimum bandwidth rule.
    Region string
    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.
    Direction string
    The direction of traffic. Defaults to "egress". Changing this updates the direction of the existing QoS minimum bandwidth rule.
    MinKbps int
    The minimum kilobits per second. Changing this updates the min kbps value of the existing QoS minimum bandwidth rule.
    QosPolicyId string
    The QoS policy reference. Changing this creates a new QoS minimum bandwidth rule.
    Region string
    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.
    direction String
    The direction of traffic. Defaults to "egress". Changing this updates the direction of the existing QoS minimum bandwidth rule.
    minKbps Integer
    The minimum kilobits per second. Changing this updates the min kbps value of the existing QoS minimum bandwidth rule.
    qosPolicyId String
    The QoS policy reference. Changing this creates a new QoS minimum bandwidth rule.
    region String
    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.
    direction string
    The direction of traffic. Defaults to "egress". Changing this updates the direction of the existing QoS minimum bandwidth rule.
    minKbps number
    The minimum kilobits per second. Changing this updates the min kbps value of the existing QoS minimum bandwidth rule.
    qosPolicyId string
    The QoS policy reference. Changing this creates a new QoS minimum bandwidth rule.
    region string
    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.
    direction str
    The direction of traffic. Defaults to "egress". Changing this updates the direction of the existing QoS minimum bandwidth rule.
    min_kbps int
    The minimum kilobits per second. Changing this updates the min kbps value of the existing QoS minimum bandwidth rule.
    qos_policy_id str
    The QoS policy reference. Changing this creates a new QoS minimum bandwidth rule.
    region str
    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.
    direction String
    The direction of traffic. Defaults to "egress". Changing this updates the direction of the existing QoS minimum bandwidth rule.
    minKbps Number
    The minimum kilobits per second. Changing this updates the min kbps value of the existing QoS minimum bandwidth rule.
    qosPolicyId String
    The QoS policy reference. Changing this creates a new QoS minimum bandwidth rule.
    region String
    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.

    Import

    QoS minimum bandwidth rules can be imported using the qos_policy_id/minimum_bandwidth_rule_id format, e.g.

     $ pulumi import openstack:networking/qosMinimumBandwidthRule:QosMinimumBandwidthRule minimum_bandwidth_rule_1 d6ae28ce-fcb5-4180-aa62-d260a27e09ae/46dfb556-b92f-48ce-94c5-9a9e2140de94
    

    Package Details

    Repository
    OpenStack pulumi/pulumi-openstack
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the openstack Terraform Provider.
    openstack logo
    OpenStack v3.15.1 published on Thursday, Feb 1, 2024 by Pulumi