Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
scm.getQosPolicyRule
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
QosPolicyRule data source
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
const testQosPolicyRule = new scm.QosPolicyRule("test_qos_policy_rule", {
name: "data-source-qos-test",
description: "Rule created specifically for data source testing with DSCP/TOS.",
folder: "All",
position: "pre",
schedule: "non-work-hours",
action: {
"class": "1",
},
dscpTos: {
codepoints: [{
name: "Expedited Forwarding",
type: {
ef: {},
},
}],
},
});
const singleRuleById = scm.getQosPolicyRuleOutput({
id: testQosPolicyRule.id,
});
export const singleQosPolicyRuleDump = singleRuleById;
import pulumi
import pulumi_scm as scm
test_qos_policy_rule = scm.QosPolicyRule("test_qos_policy_rule",
name="data-source-qos-test",
description="Rule created specifically for data source testing with DSCP/TOS.",
folder="All",
position="pre",
schedule="non-work-hours",
action={
"class_": "1",
},
dscp_tos={
"codepoints": [{
"name": "Expedited Forwarding",
"type": {
"ef": {},
},
}],
})
single_rule_by_id = scm.get_qos_policy_rule_output(id=test_qos_policy_rule.id)
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 {
testQosPolicyRule, err := scm.NewQosPolicyRule(ctx, "test_qos_policy_rule", &scm.QosPolicyRuleArgs{
Name: pulumi.String("data-source-qos-test"),
Description: pulumi.String("Rule created specifically for data source testing with DSCP/TOS."),
Folder: pulumi.String("All"),
Position: pulumi.String("pre"),
Schedule: pulumi.String("non-work-hours"),
Action: &scm.QosPolicyRuleActionArgs{
Class: pulumi.String("1"),
},
DscpTos: &scm.QosPolicyRuleDscpTosArgs{
Codepoints: scm.QosPolicyRuleDscpTosCodepointArray{
&scm.QosPolicyRuleDscpTosCodepointArgs{
Name: pulumi.String("Expedited Forwarding"),
Type: &scm.QosPolicyRuleDscpTosCodepointTypeArgs{
Ef: &scm.QosPolicyRuleDscpTosCodepointTypeEfArgs{},
},
},
},
},
})
if err != nil {
return err
}
singleRuleById := scm.LookupQosPolicyRuleOutput(ctx, scm.GetQosPolicyRuleOutputArgs{
Id: testQosPolicyRule.ID(),
}, nil)
ctx.Export("singleQosPolicyRuleDump", singleRuleById)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
var testQosPolicyRule = new Scm.QosPolicyRule("test_qos_policy_rule", new()
{
Name = "data-source-qos-test",
Description = "Rule created specifically for data source testing with DSCP/TOS.",
Folder = "All",
Position = "pre",
Schedule = "non-work-hours",
Action = new Scm.Inputs.QosPolicyRuleActionArgs
{
Class = "1",
},
DscpTos = new Scm.Inputs.QosPolicyRuleDscpTosArgs
{
Codepoints = new[]
{
new Scm.Inputs.QosPolicyRuleDscpTosCodepointArgs
{
Name = "Expedited Forwarding",
Type = new Scm.Inputs.QosPolicyRuleDscpTosCodepointTypeArgs
{
Ef = null,
},
},
},
},
});
var singleRuleById = Scm.GetQosPolicyRule.Invoke(new()
{
Id = testQosPolicyRule.Id,
});
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.QosPolicyRule;
import com.pulumi.scm.QosPolicyRuleArgs;
import com.pulumi.scm.inputs.QosPolicyRuleActionArgs;
import com.pulumi.scm.inputs.QosPolicyRuleDscpTosArgs;
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) {
var testQosPolicyRule = new QosPolicyRule("testQosPolicyRule", QosPolicyRuleArgs.builder()
.name("data-source-qos-test")
.description("Rule created specifically for data source testing with DSCP/TOS.")
.folder("All")
.position("pre")
.schedule("non-work-hours")
.action(QosPolicyRuleActionArgs.builder()
.class_("1")
.build())
.dscpTos(QosPolicyRuleDscpTosArgs.builder()
.codepoints(QosPolicyRuleDscpTosCodepointArgs.builder()
.name("Expedited Forwarding")
.type(QosPolicyRuleDscpTosCodepointTypeArgs.builder()
.ef(QosPolicyRuleDscpTosCodepointTypeEfArgs.builder()
.build())
.build())
.build())
.build())
.build());
final var singleRuleById = ScmFunctions.getQosPolicyRule(GetQosPolicyRuleArgs.builder()
.id(testQosPolicyRule.id())
.build());
ctx.export("singleQosPolicyRuleDump", singleRuleById);
}
}
resources:
testQosPolicyRule:
type: scm:QosPolicyRule
name: test_qos_policy_rule
properties:
name: data-source-qos-test
description: Rule created specifically for data source testing with DSCP/TOS.
folder: All
position: pre
schedule: non-work-hours
action:
class: '1'
dscpTos:
codepoints:
- name: Expedited Forwarding
type:
ef: {}
variables:
singleRuleById:
fn::invoke:
function: scm:getQosPolicyRule
arguments:
id: ${testQosPolicyRule.id}
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 dictionaryThe following arguments are supported:
getQosPolicyRule Result
The following output properties are available:
- Action
Get
Qos Policy Rule Action - Action
- Description string
- Description
- Device string
- The device in which the resource is defined
- Dscp
Tos GetQos Policy Rule Dscp Tos - Dscp tos
- Folder string
- The folder in which the resource is defined
- Id string
- UUID of the resource
- Name string
- Name
- Position string
- The relative position of the rule
- Relative
Position string - Relative positioning rule. String must be one of these:
"before","after","top","bottom". If not specified, rule is created at the bottom of the ruleset. - Schedule string
- Schedule
- Snippet string
- The snippet in which the resource is defined
- Target
Rule string - The name or UUID of the rule to position this rule relative to. Required when
relative_positionis"before"or"after". - Tfid string
- Action
Get
Qos Policy Rule Action - Action
- Description string
- Description
- Device string
- The device in which the resource is defined
- Dscp
Tos GetQos Policy Rule Dscp Tos - Dscp tos
- Folder string
- The folder in which the resource is defined
- Id string
- UUID of the resource
- Name string
- Name
- Position string
- The relative position of the rule
- Relative
Position string - Relative positioning rule. String must be one of these:
"before","after","top","bottom". If not specified, rule is created at the bottom of the ruleset. - Schedule string
- Schedule
- Snippet string
- The snippet in which the resource is defined
- Target
Rule string - The name or UUID of the rule to position this rule relative to. Required when
relative_positionis"before"or"after". - Tfid string
- action
Get
Qos Policy Rule Action - Action
- description String
- Description
- device String
- The device in which the resource is defined
- dscp
Tos GetQos Policy Rule Dscp Tos - Dscp tos
- folder String
- The folder in which the resource is defined
- id String
- UUID of the resource
- name String
- Name
- position String
- The relative position of the rule
- relative
Position String - Relative positioning rule. String must be one of these:
"before","after","top","bottom". If not specified, rule is created at the bottom of the ruleset. - schedule String
- Schedule
- snippet String
- The snippet in which the resource is defined
- target
Rule String - The name or UUID of the rule to position this rule relative to. Required when
relative_positionis"before"or"after". - tfid String
- action
Get
Qos Policy Rule Action - Action
- description string
- Description
- device string
- The device in which the resource is defined
- dscp
Tos GetQos Policy Rule Dscp Tos - Dscp tos
- folder string
- The folder in which the resource is defined
- id string
- UUID of the resource
- name string
- Name
- position string
- The relative position of the rule
- relative
Position string - Relative positioning rule. String must be one of these:
"before","after","top","bottom". If not specified, rule is created at the bottom of the ruleset. - schedule string
- Schedule
- snippet string
- The snippet in which the resource is defined
- target
Rule string - The name or UUID of the rule to position this rule relative to. Required when
relative_positionis"before"or"after". - tfid string
- action
Get
Qos Policy Rule Action - Action
- description str
- Description
- device str
- The device in which the resource is defined
- dscp_
tos GetQos Policy Rule Dscp Tos - Dscp tos
- folder str
- The folder in which the resource is defined
- id str
- UUID of the resource
- name str
- Name
- position str
- The relative position of the rule
- relative_
position str - Relative positioning rule. String must be one of these:
"before","after","top","bottom". If not specified, rule is created at the bottom of the ruleset. - schedule str
- Schedule
- snippet str
- The snippet in which the resource is defined
- target_
rule str - The name or UUID of the rule to position this rule relative to. Required when
relative_positionis"before"or"after". - tfid str
- action Property Map
- Action
- description String
- Description
- device String
- The device in which the resource is defined
- dscp
Tos Property Map - Dscp tos
- folder String
- The folder in which the resource is defined
- id String
- UUID of the resource
- name String
- Name
- position String
- The relative position of the rule
- relative
Position String - Relative positioning rule. String must be one of these:
"before","after","top","bottom". If not specified, rule is created at the bottom of the ruleset. - schedule String
- Schedule
- snippet String
- The snippet in which the resource is defined
- target
Rule String - The name or UUID of the rule to position this rule relative to. Required when
relative_positionis"before"or"after". - tfid String
Supporting Types
GetQosPolicyRuleAction
- Class string
- Class
- Class string
- Class
- class_ String
- Class
- class string
- Class
- class_ str
- Class
- class String
- Class
GetQosPolicyRuleDscpTos
- Codepoints
[]Get
Qos Policy Rule Dscp Tos Codepoint - Codepoints
- codepoints
Get
Qos Policy Rule Dscp Tos Codepoint[] - Codepoints
- codepoints List<Property Map>
- Codepoints
GetQosPolicyRuleDscpTosCodepoint
- Name string
- Name
- Type
Get
Qos Policy Rule Dscp Tos Codepoint Type - Type
- Name string
- Name
- Type
Get
Qos Policy Rule Dscp Tos Codepoint Type - Type
- name String
- Name
- type
Get
Qos Policy Rule Dscp Tos Codepoint Type - Type
- name string
- Name
- type
Get
Qos Policy Rule Dscp Tos Codepoint Type - Type
- name str
- Name
- type
Get
Qos Policy Rule Dscp Tos Codepoint Type - Type
- name String
- Name
- type Property Map
- Type
GetQosPolicyRuleDscpTosCodepointType
- af Property Map
- Af
- cs Property Map
- Cs
- custom Property Map
- Custom
- ef Property Map
- Ef
- tos Property Map
- 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
- codepoint Property Map
- Codepoint
GetQosPolicyRuleDscpTosCodepointTypeCustomCodepoint
- Binary
Value string - Binary value
- Codepoint
Name string - Codepoint name
- Binary
Value string - Binary value
- Codepoint
Name string - Codepoint name
- binary
Value String - Binary value
- codepoint
Name String - Codepoint name
- binary
Value string - Binary value
- codepoint
Name string - Codepoint name
- binary_
value str - Binary value
- codepoint_
name str - Codepoint name
- binary
Value String - Binary value
- codepoint
Name 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
scmTerraform Provider.
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
