Share via


Microsoft.Network dscpConfigurations 2022-09-01

Bicep 資源定義

dscpConfigurations 資源類型可以使用目標作業進行部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

資源格式

若要建立 Microsoft.Network/dscpConfigurations 資源,請將下列 Bicep 新增至您的範本。

resource symbolicname 'Microsoft.Network/dscpConfigurations@2022-09-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    destinationIpRanges: [
      {
        endIP: 'string'
        startIP: 'string'
      }
    ]
    destinationPortRanges: [
      {
        end: int
        start: int
      }
    ]
    markings: [
      int
    ]
    protocol: 'string'
    qosDefinitionCollection: [
      {
        destinationIpRanges: [
          {
            endIP: 'string'
            startIP: 'string'
          }
        ]
        destinationPortRanges: [
          {
            end: int
            start: int
          }
        ]
        markings: [
          int
        ]
        protocol: 'string'
        sourceIpRanges: [
          {
            endIP: 'string'
            startIP: 'string'
          }
        ]
        sourcePortRanges: [
          {
            end: int
            start: int
          }
        ]
      }
    ]
    sourceIpRanges: [
      {
        endIP: 'string'
        startIP: 'string'
      }
    ]
    sourcePortRanges: [
      {
        end: int
        start: int
      }
    ]
  }
}

屬性值

dscpConfigurations

名稱 描述
NAME 資源名稱 需要字串 ()
location 資源位置。 字串
tags 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標籤
properties 網路介面的屬性。 DscpConfigurationPropertiesFormat

DscpConfigurationPropertiesFormat

名稱 描述
destinationIpRanges 目的地IP範圍。 QosIpRange[]
destinationPortRanges 目的地埠範圍。 QosPortRange[]
標記 組態中要使用的標記清單。 int[]
protocol RNM 支援的通訊協議類型。 'Ah'
'All'
'DoNotUse'
'Esp'
'Gre'
'Icmp'
'Tcp'
'Udp'
'Vxlan'
qosDefinitionCollection QoS 物件定義 QosDefinition[]
sourceIpRanges 來源IP範圍。 QosIpRange[]
sourcePortRanges 來源埠範圍。 QosPortRange[]

QosIpRange

名稱 描述
endIP 結束IP位址。 字串
startIP 啟動IP位址。 字串

QosPortRange

名稱 描述
end Qos 埠範圍結束。 int
start Qos 埠範圍啟動。 int

QosDefinition

名稱 描述
destinationIpRanges 目的地IP範圍。 QosIpRange[]
destinationPortRanges 目的地埠範圍。 QosPortRange[]
標記 組態中要使用的標記清單。 int[]
protocol RNM 支援的通訊協議類型。 'Ah'
'All'
'DoNotUse'
'Esp'
'Gre'
'Icmp'
'Tcp'
'Udp'
'Vxlan'
sourceIpRanges 來源IP範圍。 QosIpRange[]
sourcePortRanges 來源埠範圍。 QosPortRange[]

ARM 範本資源定義

dscpConfigurations 資源類型可以使用目標作業進行部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

資源格式

若要建立 Microsoft.Network/dscpConfigurations 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.Network/dscpConfigurations",
  "apiVersion": "2022-09-01",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "destinationIpRanges": [
      {
        "endIP": "string",
        "startIP": "string"
      }
    ],
    "destinationPortRanges": [
      {
        "end": "int",
        "start": "int"
      }
    ],
    "markings": [ "int" ],
    "protocol": "string",
    "qosDefinitionCollection": [
      {
        "destinationIpRanges": [
          {
            "endIP": "string",
            "startIP": "string"
          }
        ],
        "destinationPortRanges": [
          {
            "end": "int",
            "start": "int"
          }
        ],
        "markings": [ "int" ],
        "protocol": "string",
        "sourceIpRanges": [
          {
            "endIP": "string",
            "startIP": "string"
          }
        ],
        "sourcePortRanges": [
          {
            "end": "int",
            "start": "int"
          }
        ]
      }
    ],
    "sourceIpRanges": [
      {
        "endIP": "string",
        "startIP": "string"
      }
    ],
    "sourcePortRanges": [
      {
        "end": "int",
        "start": "int"
      }
    ]
  }
}

屬性值

dscpConfigurations

名稱 描述
類型 資源類型 'Microsoft.Network/dscpConfigurations'
apiVersion 資源 API 版本 '2022-09-01'
NAME 資源名稱 需要字串 ()
location 資源位置。 字串
tags 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標籤
properties 網路介面的屬性。 DscpConfigurationPropertiesFormat

DscpConfigurationPropertiesFormat

名稱 描述
destinationIpRanges 目的地IP範圍。 QosIpRange[]
destinationPortRanges 目的地埠範圍。 QosPortRange[]
標記 組態中要使用的標記清單。 int[]
protocol RNM 支援的通訊協議類型。 'Ah'
'All'
'DoNotUse'
'Esp'
'Gre'
'Icmp'
'Tcp'
'Udp'
'Vxlan'
qosDefinitionCollection QoS 物件定義 QosDefinition[]
sourceIpRanges 來源IP範圍。 QosIpRange[]
sourcePortRanges 來源埠範圍。 QosPortRange[]

QosIpRange

名稱 描述
endIP 結束IP位址。 字串
startIP 啟動IP位址。 字串

QosPortRange

名稱 描述
end Qos 埠範圍結束。 int
start Qos 埠範圍啟動。 int

QosDefinition

名稱 描述
destinationIpRanges 目的地IP範圍。 QosIpRange[]
destinationPortRanges 目的地埠範圍。 QosPortRange[]
標記 要用於組態的標記清單。 int[]
protocol RNM 支援的通訊協議類型。 'Ah'
'All'
'DoNotUse'
'Esp'
'Gre'
'Icmp'
'Tcp'
'Udp'
'Vxlan'
sourceIpRanges 來源IP範圍。 QosIpRange[]
sourcePortRanges 來源埠範圍。 QosPortRange[]

Terraform (AzAPI 提供者) 資源定義

dscpConfigurations 資源類型可以使用目標作業進行部署:

  • 資源群組

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄

資源格式

若要建立 Microsoft.Network/dscpConfigurations 資源,請將下列 Terraform 新增至您的範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Network/dscpConfigurations@2022-09-01"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      destinationIpRanges = [
        {
          endIP = "string"
          startIP = "string"
        }
      ]
      destinationPortRanges = [
        {
          end = int
          start = int
        }
      ]
      markings = [
        int
      ]
      protocol = "string"
      qosDefinitionCollection = [
        {
          destinationIpRanges = [
            {
              endIP = "string"
              startIP = "string"
            }
          ]
          destinationPortRanges = [
            {
              end = int
              start = int
            }
          ]
          markings = [
            int
          ]
          protocol = "string"
          sourceIpRanges = [
            {
              endIP = "string"
              startIP = "string"
            }
          ]
          sourcePortRanges = [
            {
              end = int
              start = int
            }
          ]
        }
      ]
      sourceIpRanges = [
        {
          endIP = "string"
          startIP = "string"
        }
      ]
      sourcePortRanges = [
        {
          end = int
          start = int
        }
      ]
    }
  })
}

屬性值

dscpConfigurations

名稱 描述
類型 資源類型 “Microsoft.Network/dscpConfigurations@2022-09-01”
NAME 資源名稱 字串 (必要)
location 資源位置。 字串
parent_id 若要部署至資源群組,請使用該資源群組的標識碼。 字串 (必要)
tags 資源標籤。 標記名稱和值的字典。
properties 網路介面的屬性。 DscpConfigurationPropertiesFormat

DscpConfigurationPropertiesFormat

名稱 描述
destinationIpRanges 目的地IP範圍。 QosIpRange[]
destinationPortRanges 目的地埠範圍。 QosPortRange[]
標記 要用於組態的標記清單。 int[]
protocol RNM 支援的通訊協議類型。 “Ah”
"All"
“DoNotUse”
“Esp”
“Gre”
“Icmp”
“Tcp”
“Udp”
“Vxlan”
qosDefinitionCollection QoS 物件定義 QosDefinition[]
sourceIpRanges 來源IP範圍。 QosIpRange[]
sourcePortRanges 來源埠範圍。 QosPortRange[]

QosIpRange

名稱 描述
endIP 結束IP位址。 字串
startIP 啟動IP位址。 字串

QosPortRange

名稱 描述
end Qos 埠範圍結束。 int
start Qos 埠範圍啟動。 int

QosDefinition

名稱 描述
destinationIpRanges 目的地IP範圍。 QosIpRange[]
destinationPortRanges 目的地埠範圍。 QosPortRange[]
標記 組態中要使用的標記清單。 int[]
protocol RNM 支援的通訊協議類型。 “Ah”
"All"
“DoNotUse”
“Esp”
“Gre”
“Icmp”
“Tcp”
“Udp”
“Vxlan”
sourceIpRanges 來源IP範圍。 QosIpRange[]
sourcePortRanges 來源埠範圍。 QosPortRange[]