QosBandwidthLimitRule

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

Example Usage

Create a QoS Policy with some bandwidth limit rule

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var qosPolicy1 = new OpenStack.Networking.QosPolicy("qosPolicy1", new OpenStack.Networking.QosPolicyArgs
        {
            Description = "bw_limit",
        });
        var bwLimitRule1 = new OpenStack.Networking.QosBandwidthLimitRule("bwLimitRule1", new OpenStack.Networking.QosBandwidthLimitRuleArgs
        {
            Direction = "egress",
            MaxBurstKbps = 300,
            MaxKbps = 3000,
            QosPolicyId = qosPolicy1.Id,
        });
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

qos_policy1 = openstack.networking.QosPolicy("qosPolicy1", description="bw_limit")
bw_limit_rule1 = openstack.networking.QosBandwidthLimitRule("bwLimitRule1",
    direction="egress",
    max_burst_kbps=300,
    max_kbps=3000,
    qos_policy_id=qos_policy1.id)
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const qosPolicy1 = new openstack.networking.QosPolicy("qos_policy_1", {
    description: "bw_limit",
});
const bwLimitRule1 = new openstack.networking.QosBandwidthLimitRule("bw_limit_rule_1", {
    direction: "egress",
    maxBurstKbps: 300,
    maxKbps: 3000,
    qosPolicyId: qosPolicy1.id,
});

Create a QosBandwidthLimitRule Resource

def QosBandwidthLimitRule(resource_name, opts=None, direction=None, max_burst_kbps=None, max_kbps=None, qos_policy_id=None, region=None, __props__=None);
name string
The unique name of the resource.
args QosBandwidthLimitRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args QosBandwidthLimitRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args QosBandwidthLimitRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

QosBandwidthLimitRule Resource Properties

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

Inputs

The QosBandwidthLimitRule resource accepts the following input properties:

MaxKbps int

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 string

The QoS policy reference. Changing this creates a new QoS bandwidth limit rule.

Direction string

The direction of traffic. Defaults to “egress”. Changing this updates the direction of the existing QoS bandwidth limit rule.

MaxBurstKbps int

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.

Region string

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.

MaxKbps int

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 string

The QoS policy reference. Changing this creates a new QoS bandwidth limit rule.

Direction string

The direction of traffic. Defaults to “egress”. Changing this updates the direction of the existing QoS bandwidth limit rule.

MaxBurstKbps int

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.

Region string

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.

maxKbps number

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 string

The QoS policy reference. Changing this creates a new QoS bandwidth limit rule.

direction string

The direction of traffic. Defaults to “egress”. Changing this updates the direction of the existing QoS bandwidth limit rule.

maxBurstKbps number

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.

region string

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.

max_kbps float

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.

qos_policy_id str

The QoS policy reference. Changing this creates a new QoS bandwidth limit rule.

direction str

The direction of traffic. Defaults to “egress”. Changing this updates the direction of the existing QoS bandwidth limit rule.

max_burst_kbps float

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.

region str

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.

Outputs

All input properties are implicitly available as output properties. Additionally, the QosBandwidthLimitRule 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing QosBandwidthLimitRule Resource

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

static get(resource_name, id, opts=None, direction=None, max_burst_kbps=None, max_kbps=None, qos_policy_id=None, region=None, __props__=None);
func GetQosBandwidthLimitRule(ctx *Context, name string, id IDInput, state *QosBandwidthLimitRuleState, opts ...ResourceOption) (*QosBandwidthLimitRule, error)
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.

The following state arguments are supported:

Direction string

The direction of traffic. Defaults to “egress”. Changing this updates the direction of the existing QoS bandwidth limit rule.

MaxBurstKbps int

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 int

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 string

The QoS policy reference. Changing this creates a new QoS bandwidth limit rule.

Region string

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.

Direction string

The direction of traffic. Defaults to “egress”. Changing this updates the direction of the existing QoS bandwidth limit rule.

MaxBurstKbps int

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 int

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 string

The QoS policy reference. Changing this creates a new QoS bandwidth limit rule.

Region string

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.

direction string

The direction of traffic. Defaults to “egress”. Changing this updates the direction of the existing QoS bandwidth limit rule.

maxBurstKbps number

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 number

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 string

The QoS policy reference. Changing this creates a new QoS bandwidth limit rule.

region string

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.

direction str

The direction of traffic. Defaults to “egress”. Changing this updates the direction of the existing QoS bandwidth limit rule.

max_burst_kbps float

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.

max_kbps float

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.

qos_policy_id str

The QoS policy reference. Changing this creates a new QoS bandwidth limit rule.

region str

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.

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.