1. Packages
  2. OpenStack
  3. API Docs
  4. networking
  5. getQosDscpMarkingRule
OpenStack v3.15.2 published on Friday, Mar 29, 2024 by Pulumi

openstack.networking.getQosDscpMarkingRule

Explore with Pulumi AI

openstack logo
OpenStack v3.15.2 published on Friday, Mar 29, 2024 by Pulumi

    Use this data source to get the ID of an available OpenStack QoS DSCP marking rule.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const qosDscpMarkingRule1 = openstack.networking.getQosDscpMarkingRule({
        dscpMark: 26,
    });
    
    import pulumi
    import pulumi_openstack as openstack
    
    qos_dscp_marking_rule1 = openstack.networking.get_qos_dscp_marking_rule(dscp_mark=26)
    
    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 {
    		_, err := networking.LookupQosDscpMarkingRule(ctx, &networking.LookupQosDscpMarkingRuleArgs{
    			DscpMark: pulumi.IntRef(26),
    		}, 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 qosDscpMarkingRule1 = OpenStack.Networking.GetQosDscpMarkingRule.Invoke(new()
        {
            DscpMark = 26,
        });
    
    });
    
    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.GetQosDscpMarkingRuleArgs;
    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 qosDscpMarkingRule1 = NetworkingFunctions.getQosDscpMarkingRule(GetQosDscpMarkingRuleArgs.builder()
                .dscpMark(26)
                .build());
    
        }
    }
    
    variables:
      qosDscpMarkingRule1:
        fn::invoke:
          Function: openstack:networking:getQosDscpMarkingRule
          Arguments:
            dscpMark: 26
    

    Using getQosDscpMarkingRule

    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 getQosDscpMarkingRule(args: GetQosDscpMarkingRuleArgs, opts?: InvokeOptions): Promise<GetQosDscpMarkingRuleResult>
    function getQosDscpMarkingRuleOutput(args: GetQosDscpMarkingRuleOutputArgs, opts?: InvokeOptions): Output<GetQosDscpMarkingRuleResult>
    def get_qos_dscp_marking_rule(dscp_mark: Optional[int] = None,
                                  qos_policy_id: Optional[str] = None,
                                  region: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetQosDscpMarkingRuleResult
    def get_qos_dscp_marking_rule_output(dscp_mark: Optional[pulumi.Input[int]] = None,
                                  qos_policy_id: Optional[pulumi.Input[str]] = None,
                                  region: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetQosDscpMarkingRuleResult]
    func LookupQosDscpMarkingRule(ctx *Context, args *LookupQosDscpMarkingRuleArgs, opts ...InvokeOption) (*LookupQosDscpMarkingRuleResult, error)
    func LookupQosDscpMarkingRuleOutput(ctx *Context, args *LookupQosDscpMarkingRuleOutputArgs, opts ...InvokeOption) LookupQosDscpMarkingRuleResultOutput

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

    public static class GetQosDscpMarkingRule 
    {
        public static Task<GetQosDscpMarkingRuleResult> InvokeAsync(GetQosDscpMarkingRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetQosDscpMarkingRuleResult> Invoke(GetQosDscpMarkingRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetQosDscpMarkingRuleResult> getQosDscpMarkingRule(GetQosDscpMarkingRuleArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: openstack:networking/getQosDscpMarkingRule:getQosDscpMarkingRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    QosPolicyId string
    The QoS policy reference.
    DscpMark int
    The value of a DSCP mark.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron QoS DSCP marking rule. If omitted, the region argument of the provider is used.
    QosPolicyId string
    The QoS policy reference.
    DscpMark int
    The value of a DSCP mark.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron QoS DSCP marking rule. If omitted, the region argument of the provider is used.
    qosPolicyId String
    The QoS policy reference.
    dscpMark Integer
    The value of a DSCP mark.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron QoS DSCP marking rule. If omitted, the region argument of the provider is used.
    qosPolicyId string
    The QoS policy reference.
    dscpMark number
    The value of a DSCP mark.
    region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron QoS DSCP marking rule. If omitted, the region argument of the provider is used.
    qos_policy_id str
    The QoS policy reference.
    dscp_mark int
    The value of a DSCP mark.
    region str
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron QoS DSCP marking rule. If omitted, the region argument of the provider is used.
    qosPolicyId String
    The QoS policy reference.
    dscpMark Number
    The value of a DSCP mark.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron QoS DSCP marking rule. If omitted, the region argument of the provider is used.

    getQosDscpMarkingRule Result

    The following output properties are available:

    DscpMark int
    See Argument Reference above.
    Id string
    The provider-assigned unique ID for this managed resource.
    QosPolicyId string
    See Argument Reference above.
    Region string
    See Argument Reference above.
    DscpMark int
    See Argument Reference above.
    Id string
    The provider-assigned unique ID for this managed resource.
    QosPolicyId string
    See Argument Reference above.
    Region string
    See Argument Reference above.
    dscpMark Integer
    See Argument Reference above.
    id String
    The provider-assigned unique ID for this managed resource.
    qosPolicyId String
    See Argument Reference above.
    region String
    See Argument Reference above.
    dscpMark number
    See Argument Reference above.
    id string
    The provider-assigned unique ID for this managed resource.
    qosPolicyId string
    See Argument Reference above.
    region string
    See Argument Reference above.
    dscp_mark int
    See Argument Reference above.
    id str
    The provider-assigned unique ID for this managed resource.
    qos_policy_id str
    See Argument Reference above.
    region str
    See Argument Reference above.
    dscpMark Number
    See Argument Reference above.
    id String
    The provider-assigned unique ID for this managed resource.
    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 v3.15.2 published on Friday, Mar 29, 2024 by Pulumi