OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi
openstack.networking.getQosBandwidthLimitRule
Explore with Pulumi AI
Use this data source to get the ID of an available OpenStack QoS bandwidth limit rule.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const qosBandwidthLimitRule1 = openstack.networking.getQosBandwidthLimitRule({
maxKbps: 300,
});
import pulumi
import pulumi_openstack as openstack
qos_bandwidth_limit_rule1 = openstack.networking.get_qos_bandwidth_limit_rule(max_kbps=300)
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v5/go/openstack/networking"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networking.LookupQosBandwidthLimitRule(ctx, &networking.LookupQosBandwidthLimitRuleArgs{
MaxKbps: pulumi.IntRef(300),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var qosBandwidthLimitRule1 = OpenStack.Networking.GetQosBandwidthLimitRule.Invoke(new()
{
MaxKbps = 300,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.networking.NetworkingFunctions;
import com.pulumi.openstack.networking.inputs.GetQosBandwidthLimitRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var qosBandwidthLimitRule1 = NetworkingFunctions.getQosBandwidthLimitRule(GetQosBandwidthLimitRuleArgs.builder()
.maxKbps(300)
.build());
}
}
variables:
qosBandwidthLimitRule1:
fn::invoke:
Function: openstack:networking:getQosBandwidthLimitRule
Arguments:
maxKbps: 300
Using getQosBandwidthLimitRule
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 getQosBandwidthLimitRule(args: GetQosBandwidthLimitRuleArgs, opts?: InvokeOptions): Promise<GetQosBandwidthLimitRuleResult>
function getQosBandwidthLimitRuleOutput(args: GetQosBandwidthLimitRuleOutputArgs, opts?: InvokeOptions): Output<GetQosBandwidthLimitRuleResult>
def get_qos_bandwidth_limit_rule(max_burst_kbps: Optional[int] = None,
max_kbps: Optional[int] = None,
qos_policy_id: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetQosBandwidthLimitRuleResult
def get_qos_bandwidth_limit_rule_output(max_burst_kbps: Optional[pulumi.Input[int]] = None,
max_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[GetQosBandwidthLimitRuleResult]
func LookupQosBandwidthLimitRule(ctx *Context, args *LookupQosBandwidthLimitRuleArgs, opts ...InvokeOption) (*LookupQosBandwidthLimitRuleResult, error)
func LookupQosBandwidthLimitRuleOutput(ctx *Context, args *LookupQosBandwidthLimitRuleOutputArgs, opts ...InvokeOption) LookupQosBandwidthLimitRuleResultOutput
> Note: This function is named LookupQosBandwidthLimitRule
in the Go SDK.
public static class GetQosBandwidthLimitRule
{
public static Task<GetQosBandwidthLimitRuleResult> InvokeAsync(GetQosBandwidthLimitRuleArgs args, InvokeOptions? opts = null)
public static Output<GetQosBandwidthLimitRuleResult> Invoke(GetQosBandwidthLimitRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetQosBandwidthLimitRuleResult> getQosBandwidthLimitRule(GetQosBandwidthLimitRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: openstack:networking/getQosBandwidthLimitRule:getQosBandwidthLimitRule
arguments:
# arguments dictionary
The following arguments are supported:
- Qos
Policy stringId - The QoS policy reference.
- Max
Burst intKbps - The maximum burst size in kilobits of a QoS bandwidth limit rule.
- Max
Kbps int - The maximum kilobits per second of a 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.
- Qos
Policy stringId - The QoS policy reference.
- Max
Burst intKbps - The maximum burst size in kilobits of a QoS bandwidth limit rule.
- Max
Kbps int - The maximum kilobits per second of a 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.
- qos
Policy StringId - The QoS policy reference.
- max
Burst IntegerKbps - The maximum burst size in kilobits of a QoS bandwidth limit rule.
- max
Kbps Integer - The maximum kilobits per second of a 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.
- qos
Policy stringId - The QoS policy reference.
- max
Burst numberKbps - The maximum burst size in kilobits of a QoS bandwidth limit rule.
- max
Kbps number - The maximum kilobits per second of a 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.
- qos_
policy_ strid - The QoS policy reference.
- max_
burst_ intkbps - The maximum burst size in kilobits of a QoS bandwidth limit rule.
- max_
kbps int - The maximum kilobits per second of a 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.
- qos
Policy StringId - The QoS policy reference.
- max
Burst NumberKbps - The maximum burst size in kilobits of a QoS bandwidth limit rule.
- max
Kbps Number - The maximum kilobits per second of a 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.
getQosBandwidthLimitRule Result
The following output properties are available:
- Direction string
- See Argument Reference above.
- Id string
- The provider-assigned unique ID for this managed resource.
- Max
Burst intKbps - See Argument Reference above.
- Max
Kbps int - See Argument Reference above.
- Qos
Policy stringId - See Argument Reference above.
- Region string
- See Argument Reference above.
- Direction string
- See Argument Reference above.
- Id string
- The provider-assigned unique ID for this managed resource.
- Max
Burst intKbps - See Argument Reference above.
- Max
Kbps int - See Argument Reference above.
- Qos
Policy stringId - See Argument Reference above.
- Region string
- See Argument Reference above.
- direction String
- See Argument Reference above.
- id String
- The provider-assigned unique ID for this managed resource.
- max
Burst IntegerKbps - See Argument Reference above.
- max
Kbps Integer - See Argument Reference above.
- qos
Policy StringId - See Argument Reference above.
- region String
- See Argument Reference above.
- direction string
- See Argument Reference above.
- id string
- The provider-assigned unique ID for this managed resource.
- max
Burst numberKbps - See Argument Reference above.
- max
Kbps number - See Argument Reference above.
- qos
Policy stringId - See Argument Reference above.
- region string
- See Argument Reference above.
- direction str
- See Argument Reference above.
- id str
- The provider-assigned unique ID for this managed resource.
- max_
burst_ intkbps - See Argument Reference above.
- max_
kbps int - See Argument Reference above.
- qos_
policy_ strid - See Argument Reference above.
- region str
- See Argument Reference above.
- direction String
- See Argument Reference above.
- id String
- The provider-assigned unique ID for this managed resource.
- max
Burst NumberKbps - See Argument Reference above.
- max
Kbps Number - See Argument Reference above.
- qos
Policy StringId - See Argument Reference above.
- region String
- See Argument Reference above.
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstack
Terraform Provider.