DscpConfiguration

class DscpConfiguration : KotlinCustomResource

Differentiated Services Code Point configuration for any given network interface Uses Azure REST API version 2024-05-01. In version 2.x of the Azure Native provider, it used API version 2023-02-01. Other available API versions: 2020-06-01, 2020-07-01, 2020-08-01, 2020-11-01, 2021-02-01, 2021-03-01, 2021-05-01, 2021-08-01, 2022-01-01, 2022-05-01, 2022-07-01, 2022-09-01, 2022-11-01, 2023-02-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01, 2024-07-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native network [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create DSCP Configuration

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var dscpConfiguration = new AzureNative.Network.DscpConfiguration("dscpConfiguration", new()
{
DscpConfigurationName = "mydscpconfig",
Location = "eastus",
QosDefinitionCollection = new[]
{
new AzureNative.Network.Inputs.QosDefinitionArgs
{
DestinationIpRanges = new[]
{
new AzureNative.Network.Inputs.QosIpRangeArgs
{
EndIP = "127.0.10.2",
StartIP = "127.0.10.1",
},
},
DestinationPortRanges = new[]
{
new AzureNative.Network.Inputs.QosPortRangeArgs
{
End = 15,
Start = 15,
},
},
Markings = new[]
{
1,
},
Protocol = AzureNative.Network.ProtocolType.Tcp,
SourceIpRanges = new[]
{
new AzureNative.Network.Inputs.QosIpRangeArgs
{
EndIP = "127.0.0.2",
StartIP = "127.0.0.1",
},
},
SourcePortRanges = new[]
{
new AzureNative.Network.Inputs.QosPortRangeArgs
{
End = 11,
Start = 10,
},
new AzureNative.Network.Inputs.QosPortRangeArgs
{
End = 21,
Start = 20,
},
},
},
new AzureNative.Network.Inputs.QosDefinitionArgs
{
DestinationIpRanges = new[]
{
new AzureNative.Network.Inputs.QosIpRangeArgs
{
EndIP = "12.0.10.2",
StartIP = "12.0.10.1",
},
},
DestinationPortRanges = new[]
{
new AzureNative.Network.Inputs.QosPortRangeArgs
{
End = 52,
Start = 51,
},
},
Markings = new[]
{
2,
},
Protocol = AzureNative.Network.ProtocolType.Udp,
SourceIpRanges = new[]
{
new AzureNative.Network.Inputs.QosIpRangeArgs
{
EndIP = "12.0.0.2",
StartIP = "12.0.0.1",
},
},
SourcePortRanges = new[]
{
new AzureNative.Network.Inputs.QosPortRangeArgs
{
End = 12,
Start = 11,
},
},
},
},
ResourceGroupName = "rg1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewDscpConfiguration(ctx, "dscpConfiguration", &network.DscpConfigurationArgs{
DscpConfigurationName: pulumi.String("mydscpconfig"),
Location: pulumi.String("eastus"),
QosDefinitionCollection: network.QosDefinitionArray{
&network.QosDefinitionArgs{
DestinationIpRanges: network.QosIpRangeArray{
&network.QosIpRangeArgs{
EndIP: pulumi.String("127.0.10.2"),
StartIP: pulumi.String("127.0.10.1"),
},
},
DestinationPortRanges: network.QosPortRangeArray{
&network.QosPortRangeArgs{
End: pulumi.Int(15),
Start: pulumi.Int(15),
},
},
Markings: pulumi.IntArray{
pulumi.Int(1),
},
Protocol: pulumi.String(network.ProtocolTypeTcp),
SourceIpRanges: network.QosIpRangeArray{
&network.QosIpRangeArgs{
EndIP: pulumi.String("127.0.0.2"),
StartIP: pulumi.String("127.0.0.1"),
},
},
SourcePortRanges: network.QosPortRangeArray{
&network.QosPortRangeArgs{
End: pulumi.Int(11),
Start: pulumi.Int(10),
},
&network.QosPortRangeArgs{
End: pulumi.Int(21),
Start: pulumi.Int(20),
},
},
},
&network.QosDefinitionArgs{
DestinationIpRanges: network.QosIpRangeArray{
&network.QosIpRangeArgs{
EndIP: pulumi.String("12.0.10.2"),
StartIP: pulumi.String("12.0.10.1"),
},
},
DestinationPortRanges: network.QosPortRangeArray{
&network.QosPortRangeArgs{
End: pulumi.Int(52),
Start: pulumi.Int(51),
},
},
Markings: pulumi.IntArray{
pulumi.Int(2),
},
Protocol: pulumi.String(network.ProtocolTypeUdp),
SourceIpRanges: network.QosIpRangeArray{
&network.QosIpRangeArgs{
EndIP: pulumi.String("12.0.0.2"),
StartIP: pulumi.String("12.0.0.1"),
},
},
SourcePortRanges: network.QosPortRangeArray{
&network.QosPortRangeArgs{
End: pulumi.Int(12),
Start: pulumi.Int(11),
},
},
},
},
ResourceGroupName: pulumi.String("rg1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.DscpConfiguration;
import com.pulumi.azurenative.network.DscpConfigurationArgs;
import com.pulumi.azurenative.network.inputs.QosDefinitionArgs;
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 dscpConfiguration = new DscpConfiguration("dscpConfiguration", DscpConfigurationArgs.builder()
.dscpConfigurationName("mydscpconfig")
.location("eastus")
.qosDefinitionCollection(
QosDefinitionArgs.builder()
.destinationIpRanges(QosIpRangeArgs.builder()
.endIP("127.0.10.2")
.startIP("127.0.10.1")
.build())
.destinationPortRanges(QosPortRangeArgs.builder()
.end(15)
.start(15)
.build())
.markings(1)
.protocol("Tcp")
.sourceIpRanges(QosIpRangeArgs.builder()
.endIP("127.0.0.2")
.startIP("127.0.0.1")
.build())
.sourcePortRanges(
QosPortRangeArgs.builder()
.end(11)
.start(10)
.build(),
QosPortRangeArgs.builder()
.end(21)
.start(20)
.build())
.build(),
QosDefinitionArgs.builder()
.destinationIpRanges(QosIpRangeArgs.builder()
.endIP("12.0.10.2")
.startIP("12.0.10.1")
.build())
.destinationPortRanges(QosPortRangeArgs.builder()
.end(52)
.start(51)
.build())
.markings(2)
.protocol("Udp")
.sourceIpRanges(QosIpRangeArgs.builder()
.endIP("12.0.0.2")
.startIP("12.0.0.1")
.build())
.sourcePortRanges(QosPortRangeArgs.builder()
.end(12)
.start(11)
.build())
.build())
.resourceGroupName("rg1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:network:DscpConfiguration mydscpConfig /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations/{dscpConfigurationName}

Properties

Link copied to clipboard

Associated Network Interfaces to the DSCP Configuration.

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard

Destination IP ranges.

Link copied to clipboard

Destination port ranges.

Link copied to clipboard
val etag: Output<String>

A unique read-only string that changes whenever the resource is updated.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>?

Resource location.

Link copied to clipboard
val markings: Output<List<Int>>?

List of markings to be used in the configuration.

Link copied to clipboard
val name: Output<String>

Resource name.

Link copied to clipboard
val protocol: Output<String>?

RNM supported protocol types.

Link copied to clipboard

The provisioning state of the DSCP Configuration resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val qosCollectionId: Output<String>

Qos Collection ID generated by RNM.

Link copied to clipboard

QoS object definitions

Link copied to clipboard
val resourceGuid: Output<String>

The resource GUID property of the DSCP Configuration resource.

Link copied to clipboard

Source IP ranges.

Link copied to clipboard

Sources port ranges.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

Resource type.

Link copied to clipboard
val urn: Output<String>