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
new QosBandwidthLimitRule(name: string, args: QosBandwidthLimitRuleArgs, opts?: CustomResourceOptions);def QosBandwidthLimitRule(resource_name, opts=None, direction=None, max_burst_kbps=None, max_kbps=None, qos_policy_id=None, region=None, __props__=None);func NewQosBandwidthLimitRule(ctx *Context, name string, args QosBandwidthLimitRuleArgs, opts ...ResourceOption) (*QosBandwidthLimitRule, error)public QosBandwidthLimitRule(string name, QosBandwidthLimitRuleArgs args, CustomResourceOptions? opts = null)- 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:
- Max
Kbps 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.
- Qos
Policy stringId 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.
- Max
Burst intKbps 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
regionargument of the provider is used. Changing this creates a new QoS bandwidth limit rule.
- Max
Kbps 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.
- Qos
Policy stringId 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.
- Max
Burst intKbps 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
regionargument of the provider is used. Changing this creates a new QoS bandwidth limit rule.
- max
Kbps 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.
- qos
Policy stringId 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.
- max
Burst numberKbps 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
regionargument 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_ strid 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_ floatkbps 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
regionargument 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:
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.
public static get(name: string, id: Input<ID>, state?: QosBandwidthLimitRuleState, opts?: CustomResourceOptions): QosBandwidthLimitRulestatic 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)public static QosBandwidthLimitRule Get(string name, Input<string> id, QosBandwidthLimitRuleState? state, CustomResourceOptions? opts = null)- 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.
- Max
Burst intKbps 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 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.
- Qos
Policy stringId 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
regionargument 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.
- Max
Burst intKbps 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 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.
- Qos
Policy stringId 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
regionargument 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.
- max
Burst numberKbps 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 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.
- qos
Policy stringId 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
regionargument 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_ floatkbps 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_ strid 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
regionargument 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
openstackTerraform Provider.