OpenStack

Pulumi Official
Package maintained by Pulumi
v3.8.0 published on Monday, Feb 7, 2022 by Pulumi

getQosMinimumBandwidthRule

Use this data source to get the ID of an available OpenStack QoS minimum bandwidth rule.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var qosMinBwRule1 = Output.Create(OpenStack.Networking.GetQosMinimumBandwidthRule.InvokeAsync(new OpenStack.Networking.GetQosMinimumBandwidthRuleArgs
        {
            MinKbps = 2000,
        }));
    }

}
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 {
		opt0 := 2000
		_, err := networking.LookupQosMinimumBandwidthRule(ctx, &networking.LookupQosMinimumBandwidthRuleArgs{
			MinKbps: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_openstack as openstack

qos_min_bw_rule1 = openstack.networking.get_qos_minimum_bandwidth_rule(min_kbps=2000)
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const qosMinBwRule1 = pulumi.output(openstack.networking.getQosMinimumBandwidthRule({
    minKbps: 2000,
}));

Coming soon!

Using getQosMinimumBandwidthRule

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getQosMinimumBandwidthRule(args: GetQosMinimumBandwidthRuleArgs, opts?: InvokeOptions): Promise<GetQosMinimumBandwidthRuleResult>
function getQosMinimumBandwidthRuleOutput(args: GetQosMinimumBandwidthRuleOutputArgs, opts?: InvokeOptions): Output<GetQosMinimumBandwidthRuleResult>
def get_qos_minimum_bandwidth_rule(direction: Optional[str] = None,
                                   min_kbps: Optional[int] = None,
                                   qos_policy_id: Optional[str] = None,
                                   region: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetQosMinimumBandwidthRuleResult
def get_qos_minimum_bandwidth_rule_output(direction: Optional[pulumi.Input[str]] = None,
                                   min_kbps: Optional[pulumi.Input[int]] = None,
                                   qos_policy_id: Optional[pulumi.Input[str]] = None,
                                   region: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetQosMinimumBandwidthRuleResult]
func LookupQosMinimumBandwidthRule(ctx *Context, args *LookupQosMinimumBandwidthRuleArgs, opts ...InvokeOption) (*LookupQosMinimumBandwidthRuleResult, error)
func LookupQosMinimumBandwidthRuleOutput(ctx *Context, args *LookupQosMinimumBandwidthRuleOutputArgs, opts ...InvokeOption) LookupQosMinimumBandwidthRuleResultOutput

> Note: This function is named LookupQosMinimumBandwidthRule in the Go SDK.

public static class GetQosMinimumBandwidthRule 
{
    public static Task<GetQosMinimumBandwidthRuleResult> InvokeAsync(GetQosMinimumBandwidthRuleArgs args, InvokeOptions? opts = null)
    public static Output<GetQosMinimumBandwidthRuleResult> Invoke(GetQosMinimumBandwidthRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetQosMinimumBandwidthRuleResult> getQosMinimumBandwidthRule(GetQosMinimumBandwidthRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: openstack:networking/getQosMinimumBandwidthRule:getQosMinimumBandwidthRule
  Arguments:
    # Arguments dictionary

The following arguments are supported:

QosPolicyId string

The QoS policy reference.

Direction string
MinKbps int

The value of a minimum kbps bandwidth.

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.

QosPolicyId string

The QoS policy reference.

Direction string
MinKbps int

The value of a minimum kbps bandwidth.

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.

qosPolicyId String

The QoS policy reference.

direction String
minKbps Integer

The value of a minimum kbps bandwidth.

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.

qosPolicyId string

The QoS policy reference.

direction string
minKbps number

The value of a minimum kbps bandwidth.

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.

qos_policy_id str

The QoS policy reference.

direction str
min_kbps int

The value of a minimum kbps bandwidth.

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.

qosPolicyId String

The QoS policy reference.

direction String
minKbps Number

The value of a minimum kbps bandwidth.

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.

getQosMinimumBandwidthRule Result

The following output properties are available:

Direction string
Id string

The provider-assigned unique ID for this managed resource.

MinKbps int

See Argument Reference above.

QosPolicyId string

See Argument Reference above.

Region string

See Argument Reference above.

Direction string
Id string

The provider-assigned unique ID for this managed resource.

MinKbps int

See Argument Reference above.

QosPolicyId string

See Argument Reference above.

Region string

See Argument Reference above.

direction String
id String

The provider-assigned unique ID for this managed resource.

minKbps Integer

See Argument Reference above.

qosPolicyId String

See Argument Reference above.

region String

See Argument Reference above.

direction string
id string

The provider-assigned unique ID for this managed resource.

minKbps number

See Argument Reference above.

qosPolicyId string

See Argument Reference above.

region string

See Argument Reference above.

direction str
id str

The provider-assigned unique ID for this managed resource.

min_kbps int

See Argument Reference above.

qos_policy_id str

See Argument Reference above.

region str

See Argument Reference above.

direction String
id String

The provider-assigned unique ID for this managed resource.

minKbps Number

See Argument Reference above.

qosPolicyId String

See Argument Reference above.

region String

See Argument Reference above.

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes

This Pulumi package is based on the openstack Terraform Provider.