1. Packages
  2. Openstack Provider
  3. API Docs
  4. networking
  5. getQosBandwidthLimitRule
OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi

openstack.networking.getQosBandwidthLimitRule

Explore with Pulumi AI

openstack logo
OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi

    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:

    QosPolicyId string
    The QoS policy reference.
    MaxBurstKbps int
    The maximum burst size in kilobits of a QoS bandwidth limit rule.
    MaxKbps 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.
    QosPolicyId string
    The QoS policy reference.
    MaxBurstKbps int
    The maximum burst size in kilobits of a QoS bandwidth limit rule.
    MaxKbps 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.
    qosPolicyId String
    The QoS policy reference.
    maxBurstKbps Integer
    The maximum burst size in kilobits of a QoS bandwidth limit rule.
    maxKbps 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.
    qosPolicyId string
    The QoS policy reference.
    maxBurstKbps number
    The maximum burst size in kilobits of a QoS bandwidth limit rule.
    maxKbps 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_id str
    The QoS policy reference.
    max_burst_kbps int
    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.
    qosPolicyId String
    The QoS policy reference.
    maxBurstKbps Number
    The maximum burst size in kilobits of a QoS bandwidth limit rule.
    maxKbps 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.
    MaxBurstKbps int
    See Argument Reference above.
    MaxKbps int
    See Argument Reference above.
    QosPolicyId string
    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.
    MaxBurstKbps int
    See Argument Reference above.
    MaxKbps int
    See Argument Reference above.
    QosPolicyId string
    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.
    maxBurstKbps Integer
    See Argument Reference above.
    maxKbps Integer
    See Argument Reference above.
    qosPolicyId String
    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.
    maxBurstKbps number
    See Argument Reference above.
    maxKbps number
    See Argument Reference above.
    qosPolicyId string
    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_kbps int
    See Argument Reference above.
    max_kbps int
    See Argument Reference above.
    qos_policy_id str
    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.
    maxBurstKbps Number
    See Argument Reference above.
    maxKbps Number
    See Argument Reference above.
    qosPolicyId String
    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.
    openstack logo
    OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi