Class QosPolicy
Manages a V2 Neutron QoS policy resource within OpenStack.
Example Usage
Create a QoS Policy
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",
});
}
}
Inherited Members
Namespace: Pulumi.OpenStack.Networking
Assembly: Pulumi.OpenStack.dll
Syntax
public class QosPolicy : CustomResource
Constructors
View SourceQosPolicy(String, QosPolicyArgs, CustomResourceOptions)
Create a QosPolicy resource with the given unique name, arguments, and options.
Declaration
public QosPolicy(string name, QosPolicyArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| QosPolicyArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAllTags
The collection of tags assigned on the QoS policy, which have been explicitly and implicitly added.
Declaration
public Output<ImmutableArray<string>> AllTags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
CreatedAt
The time at which QoS policy was created.
Declaration
public Output<string> CreatedAt { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
The human-readable description for the QoS policy. Changing this updates the description of the existing QoS policy.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
IsDefault
Indicates whether the QoS policy is default QoS policy or not. Changing this updates the default status of the existing QoS policy.
Declaration
public Output<bool?> IsDefault { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Name
The name of the QoS policy. Changing this updates the name of the existing QoS policy.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ProjectId
The owner of the QoS policy. Required if admin wants to create a QoS policy for another project. Changing this creates a new QoS policy.
Declaration
public Output<string> ProjectId { 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 policy. If omitted, the
region argument of the provider is used. Changing this creates a new
QoS policy.
Declaration
public Output<string> Region { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RevisionNumber
The revision number of the QoS policy.
Declaration
public Output<int> RevisionNumber { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Shared
Indicates whether this QoS policy is shared across all projects. Changing this updates the shared status of the existing QoS policy.
Declaration
public Output<bool?> Shared { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Tags
A set of string tags for the QoS policy.
Declaration
public Output<ImmutableArray<string>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
UpdatedAt
The time at which QoS policy was created.
Declaration
public Output<string> UpdatedAt { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ValueSpecs
Map of additional options.
Declaration
public Output<ImmutableDictionary<string, object>> ValueSpecs { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Methods
View SourceGet(String, Input<String>, QosPolicyState, CustomResourceOptions)
Get an existing QosPolicy resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static QosPolicy Get(string name, Input<string> id, QosPolicyState 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. |
| QosPolicyState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| QosPolicy |