1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. getQosPolicyRule
Strata Cloud Manager v1.0.1 published on Wednesday, Nov 26, 2025 by Pulumi
scm logo
Strata Cloud Manager v1.0.1 published on Wednesday, Nov 26, 2025 by Pulumi

    QosPolicyRule data source

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    const singleRuleById = scm.getQosPolicyRule({
        id: "fbc3fdb2-8513-4949-be8a-f1be03b492da",
    });
    export const singleQosPolicyRuleDump = singleRuleById;
    
    import pulumi
    import pulumi_scm as scm
    
    single_rule_by_id = scm.get_qos_policy_rule(id="fbc3fdb2-8513-4949-be8a-f1be03b492da")
    pulumi.export("singleQosPolicyRuleDump", single_rule_by_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-scm/sdk/go/scm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		singleRuleById, err := scm.LookupQosPolicyRule(ctx, &scm.LookupQosPolicyRuleArgs{
    			Id: "fbc3fdb2-8513-4949-be8a-f1be03b492da",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("singleQosPolicyRuleDump", singleRuleById)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        var singleRuleById = Scm.GetQosPolicyRule.Invoke(new()
        {
            Id = "fbc3fdb2-8513-4949-be8a-f1be03b492da",
        });
    
        return new Dictionary<string, object?>
        {
            ["singleQosPolicyRuleDump"] = singleRuleById,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scm.ScmFunctions;
    import com.pulumi.scm.inputs.GetQosPolicyRuleArgs;
    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 singleRuleById = ScmFunctions.getQosPolicyRule(GetQosPolicyRuleArgs.builder()
                .id("fbc3fdb2-8513-4949-be8a-f1be03b492da")
                .build());
    
            ctx.export("singleQosPolicyRuleDump", singleRuleById);
        }
    }
    
    variables:
      singleRuleById:
        fn::invoke:
          function: scm:getQosPolicyRule
          arguments:
            id: fbc3fdb2-8513-4949-be8a-f1be03b492da
    outputs:
      singleQosPolicyRuleDump: ${singleRuleById}
    

    Using getQosPolicyRule

    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 getQosPolicyRule(args: GetQosPolicyRuleArgs, opts?: InvokeOptions): Promise<GetQosPolicyRuleResult>
    function getQosPolicyRuleOutput(args: GetQosPolicyRuleOutputArgs, opts?: InvokeOptions): Output<GetQosPolicyRuleResult>
    def get_qos_policy_rule(id: Optional[str] = None,
                            name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetQosPolicyRuleResult
    def get_qos_policy_rule_output(id: Optional[pulumi.Input[str]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetQosPolicyRuleResult]
    func LookupQosPolicyRule(ctx *Context, args *LookupQosPolicyRuleArgs, opts ...InvokeOption) (*LookupQosPolicyRuleResult, error)
    func LookupQosPolicyRuleOutput(ctx *Context, args *LookupQosPolicyRuleOutputArgs, opts ...InvokeOption) LookupQosPolicyRuleResultOutput

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

    public static class GetQosPolicyRule 
    {
        public static Task<GetQosPolicyRuleResult> InvokeAsync(GetQosPolicyRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetQosPolicyRuleResult> Invoke(GetQosPolicyRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetQosPolicyRuleResult> getQosPolicyRule(GetQosPolicyRuleArgs args, InvokeOptions options)
    public static Output<GetQosPolicyRuleResult> getQosPolicyRule(GetQosPolicyRuleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scm:index/getQosPolicyRule:getQosPolicyRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    UUID of the resource
    Name string
    Name
    Id string
    UUID of the resource
    Name string
    Name
    id String
    UUID of the resource
    name String
    Name
    id string
    UUID of the resource
    name string
    Name
    id str
    UUID of the resource
    name str
    Name
    id String
    UUID of the resource
    name String
    Name

    getQosPolicyRule Result

    The following output properties are available:

    Action GetQosPolicyRuleAction
    Action
    Description string
    Description
    Device string
    The device in which the resource is defined
    DscpTos GetQosPolicyRuleDscpTos
    Folder string
    Id string
    UUID of the resource
    Name string
    Name
    Position string
    RelativePosition string
    Schedule string
    Snippet string
    TargetRule string
    Tfid string
    Action GetQosPolicyRuleAction
    Action
    Description string
    Description
    Device string
    The device in which the resource is defined
    DscpTos GetQosPolicyRuleDscpTos
    Folder string
    Id string
    UUID of the resource
    Name string
    Name
    Position string
    RelativePosition string
    Schedule string
    Snippet string
    TargetRule string
    Tfid string
    action GetQosPolicyRuleAction
    Action
    description String
    Description
    device String
    The device in which the resource is defined
    dscpTos GetQosPolicyRuleDscpTos
    folder String
    id String
    UUID of the resource
    name String
    Name
    position String
    relativePosition String
    schedule String
    snippet String
    targetRule String
    tfid String
    action GetQosPolicyRuleAction
    Action
    description string
    Description
    device string
    The device in which the resource is defined
    dscpTos GetQosPolicyRuleDscpTos
    folder string
    id string
    UUID of the resource
    name string
    Name
    position string
    relativePosition string
    schedule string
    snippet string
    targetRule string
    tfid string
    action GetQosPolicyRuleAction
    Action
    description str
    Description
    device str
    The device in which the resource is defined
    dscp_tos GetQosPolicyRuleDscpTos
    folder str
    id str
    UUID of the resource
    name str
    Name
    position str
    relative_position str
    schedule str
    snippet str
    target_rule str
    tfid str
    action Property Map
    Action
    description String
    Description
    device String
    The device in which the resource is defined
    dscpTos Property Map
    folder String
    id String
    UUID of the resource
    name String
    Name
    position String
    relativePosition String
    schedule String
    snippet String
    targetRule String
    tfid String

    Supporting Types

    GetQosPolicyRuleAction

    Class string
    Class
    Class string
    Class
    class_ String
    Class
    class string
    Class
    class_ str
    Class
    class String
    Class

    GetQosPolicyRuleDscpTos

    GetQosPolicyRuleDscpTosCodepoint

    name String
    Name
    type Property Map
    Type

    GetQosPolicyRuleDscpTosCodepointType

    Af GetQosPolicyRuleDscpTosCodepointTypeAf
    Af
    Cs GetQosPolicyRuleDscpTosCodepointTypeCs

    Cs

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    Custom GetQosPolicyRuleDscpTosCodepointTypeCustom

    Custom

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    Ef GetQosPolicyRuleDscpTosCodepointTypeEf

    Ef

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    Tos GetQosPolicyRuleDscpTosCodepointTypeTos

    Tos

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    Af GetQosPolicyRuleDscpTosCodepointTypeAf
    Af
    Cs GetQosPolicyRuleDscpTosCodepointTypeCs

    Cs

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    Custom GetQosPolicyRuleDscpTosCodepointTypeCustom

    Custom

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    Ef GetQosPolicyRuleDscpTosCodepointTypeEf

    Ef

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    Tos GetQosPolicyRuleDscpTosCodepointTypeTos

    Tos

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    af GetQosPolicyRuleDscpTosCodepointTypeAf
    Af
    cs GetQosPolicyRuleDscpTosCodepointTypeCs

    Cs

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    custom GetQosPolicyRuleDscpTosCodepointTypeCustom

    Custom

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    ef GetQosPolicyRuleDscpTosCodepointTypeEf

    Ef

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    tos GetQosPolicyRuleDscpTosCodepointTypeTos

    Tos

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    af GetQosPolicyRuleDscpTosCodepointTypeAf
    Af
    cs GetQosPolicyRuleDscpTosCodepointTypeCs

    Cs

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    custom GetQosPolicyRuleDscpTosCodepointTypeCustom

    Custom

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    ef GetQosPolicyRuleDscpTosCodepointTypeEf

    Ef

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    tos GetQosPolicyRuleDscpTosCodepointTypeTos

    Tos

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    af GetQosPolicyRuleDscpTosCodepointTypeAf
    Af
    cs GetQosPolicyRuleDscpTosCodepointTypeCs

    Cs

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    custom GetQosPolicyRuleDscpTosCodepointTypeCustom

    Custom

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    ef GetQosPolicyRuleDscpTosCodepointTypeEf

    Ef

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    tos GetQosPolicyRuleDscpTosCodepointTypeTos

    Tos

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    af Property Map
    Af
    cs Property Map

    Cs

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    custom Property Map

    Custom

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    ef Property Map

    Ef

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    tos Property Map

    Tos

    ℹ️ Note: You must specify exactly one of af, cs, custom, ef, and tos.

    GetQosPolicyRuleDscpTosCodepointTypeAf

    Codepoint string
    Codepoint
    Codepoint string
    Codepoint
    codepoint String
    Codepoint
    codepoint string
    Codepoint
    codepoint str
    Codepoint
    codepoint String
    Codepoint

    GetQosPolicyRuleDscpTosCodepointTypeCs

    Codepoint string
    Codepoint
    Codepoint string
    Codepoint
    codepoint String
    Codepoint
    codepoint string
    Codepoint
    codepoint str
    Codepoint
    codepoint String
    Codepoint

    GetQosPolicyRuleDscpTosCodepointTypeCustom

    GetQosPolicyRuleDscpTosCodepointTypeCustomCodepoint

    BinaryValue string
    Binary value
    CodepointName string
    Codepoint name
    BinaryValue string
    Binary value
    CodepointName string
    Codepoint name
    binaryValue String
    Binary value
    codepointName String
    Codepoint name
    binaryValue string
    Binary value
    codepointName string
    Codepoint name
    binary_value str
    Binary value
    codepoint_name str
    Codepoint name
    binaryValue String
    Binary value
    codepointName String
    Codepoint name

    GetQosPolicyRuleDscpTosCodepointTypeTos

    Codepoint string
    Codepoint
    Codepoint string
    Codepoint
    codepoint String
    Codepoint
    codepoint string
    Codepoint
    codepoint str
    Codepoint
    codepoint String
    Codepoint

    Package Details

    Repository
    scm pulumi/pulumi-scm
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scm Terraform Provider.
    scm logo
    Strata Cloud Manager v1.0.1 published on Wednesday, Nov 26, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate