Class 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,
});
}
}
Inherited Members
Namespace: Pulumi.OpenStack.Networking
Assembly: Pulumi.OpenStack.dll
Syntax
public class QosBandwidthLimitRule : CustomResource
Constructors
View SourceQosBandwidthLimitRule(String, QosBandwidthLimitRuleArgs, CustomResourceOptions)
Create a QosBandwidthLimitRule resource with the given unique name, arguments, and options.
Declaration
public QosBandwidthLimitRule(string name, QosBandwidthLimitRuleArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| QosBandwidthLimitRuleArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDirection
The direction of traffic. Defaults to "egress". Changing this updates the direction of the existing QoS bandwidth limit rule.
Declaration
public Output<string> Direction { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MaxBurstKbps
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.
Declaration
public Output<int?> MaxBurstKbps { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
MaxKbps
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.
Declaration
public Output<int> MaxKbps { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
QosPolicyId
The QoS policy reference. Changing this creates a new QoS bandwidth limit rule.
Declaration
public Output<string> QosPolicyId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Region
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.
Declaration
public Output<string> Region { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, QosBandwidthLimitRuleState, CustomResourceOptions)
Get an existing QosBandwidthLimitRule resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static QosBandwidthLimitRule Get(string name, Input<string> id, QosBandwidthLimitRuleState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| QosBandwidthLimitRuleState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| QosBandwidthLimitRule |