Share via


Microsoft.Network IpAllocations 2023-04-01

Bicep 資源定義

IpAllocations 資源類型可以使用目標作業來部署:

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

資源格式

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

resource symbolicname 'Microsoft.Network/IpAllocations@2023-04-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    allocationTags: {}
    ipamAllocationId: 'string'
    prefix: 'string'
    prefixLength: int
    prefixType: 'string'
    type: 'string'
  }
}

屬性值

IpAllocations

名稱 描述
NAME 資源名稱 字串 (必要)
location 資源位置。 字串
tags 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標記
properties IpAllocation 的屬性。 IpAllocationPropertiesFormat

IpAllocationPropertiesFormat

名稱 描述
allocationTags IpAllocation 標籤。 物件 (object)
ipamAllocationId IPAM 配置標識碼。 字串
prefix IpAllocation 的位址前置詞。 字串
prefixLength IpAllocation 的位址前置詞長度。 int
prefixType IpAllocation 的位址前置詞類型。 'IPv4'
'IPv6'
類型 IpAllocation 的類型。 'Hypernet'
'Undefined'

ARM 範本資源定義

IpAllocations 資源類型可以使用目標作業來部署:

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

資源格式

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

{
  "type": "Microsoft.Network/IpAllocations",
  "apiVersion": "2023-04-01",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "allocationTags": {},
    "ipamAllocationId": "string",
    "prefix": "string",
    "prefixLength": "int",
    "prefixType": "string",
    "type": "string"
  }
}

屬性值

IpAllocations

名稱 描述
類型 資源類型 'Microsoft.Network/IpAllocations'
apiVersion 資源 API 版本 '2023-04-01'
NAME 資源名稱 字串 (必要)
location 資源位置。 字串
tags 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標記
properties IpAllocation 的屬性。 IpAllocationPropertiesFormat

IpAllocationPropertiesFormat

名稱 描述
allocationTags IpAllocation 標籤。 物件 (object)
ipamAllocationId IPAM 配置標識碼。 字串
prefix IpAllocation 的位址前置詞。 字串
prefixLength IpAllocation 的位址前綴長度。 int
prefixType IpAllocation 的地址前綴 Type。 'IPv4'
'IPv6'
類型 IpAllocation 的類型。 'Hypernet'
'Undefined'

Terraform (AzAPI 提供者) 資源定義

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

  • 資源群組

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

資源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Network/IpAllocations@2023-04-01"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      allocationTags = {}
      ipamAllocationId = "string"
      prefix = "string"
      prefixLength = int
      prefixType = "string"
      type = "string"
    }
  })
}

屬性值

IpAllocations

名稱 描述
類型 資源類型 “Microsoft.Network/IpAllocations@2023-04-01”
NAME 資源名稱 需要字串 ()
location 資源位置。 字串
parent_id 若要部署至資源群組,請使用該資源群組的標識碼。 需要字串 ()
tags 資源標籤。 標記名稱和值的字典。
properties IpAllocation 的屬性。 IpAllocationPropertiesFormat

IpAllocationPropertiesFormat

名稱 描述
allocationTags IpAllocation 標籤。 物件 (object)
ipamAllocationId IPAM 配置標識碼。 字串
prefix IpAllocation 的位址前置詞。 字串
prefixLength IpAllocation 的位址前綴長度。 int
prefixType IpAllocation 的地址前綴 Type。 “IPv4”
“IPv6”
類型 IpAllocation 的類型。 “Hypernet”
“Undefined”