Microsoft.Network customIpPrefixes 2022-01-01
Bicep 資源定義
customIpPrefixes 資源類型可以使用目標作業進行部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Network/customIpPrefixes 資源,請將下列 Bicep 新增至您的範本。
resource symbolicname 'Microsoft.Network/customIpPrefixes@2022-01-01' = {
name: 'string'
location: 'string'
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
extendedLocation: {
name: 'string'
type: 'EdgeZone'
}
properties: {
authorizationMessage: 'string'
cidr: 'string'
commissionedState: 'string'
customIpPrefixParent: {
id: 'string'
}
noInternetAdvertise: bool
signedMessage: 'string'
}
zones: [
'string'
]
}
屬性值
customIpPrefixes
名稱 | 描述 | 值 |
---|---|---|
NAME | 資源名稱 | 需要字串 () |
location | 資源位置。 | 字串 |
tags | 資源標籤。 | 標記名稱和值的字典。 請參閱 範本中的標籤 |
extendedLocation | 自定義IP前置詞的擴充位置。 | ExtendedLocation |
properties | 自定義IP前置詞屬性。 | CustomIpPrefixPropertiesFormat |
zones (區域) | 可用性區域清單,指出為資源配置的IP需要來自。 | string[] |
ExtendedLocation
名稱 | 描述 | 值 |
---|---|---|
NAME | 擴充位置的名稱。 | 字串 |
type | 擴充位置的類型。 | 'EdgeZone' |
CustomIpPrefixPropertiesFormat
名稱 | 描述 | 值 |
---|---|---|
authorizationMessage | WAN 驗證的授權訊息。 | 字串 |
cidr | CIDR 表示法中的前置範圍。 應該包含開始位址和前置詞長度。 | 字串 |
commissionedState | 自定義IP前置詞的委派狀態。 | 'Commissioned' 'CommissionedNoInternetAdvertise' 'Commissioning' '解除委任' 'Deprovisioning' 'Provisioned' 'Provisioning' |
customIpPrefixParent | IPv6 /64 CustomIpPrefix 的父 CustomIpPrefix。 | SubResource |
noInternetAdvertise | 是否要將範圍公告至因特網。 | bool |
signedMessage | WAN 驗證的已簽署訊息。 | 字串 |
SubResource
名稱 | 描述 | 值 |
---|---|---|
id | 資源識別碼。 | 字串 |
ARM 範本資源定義
customIpPrefixes 資源類型可以使用目標作業進行部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.Network/customIpPrefixes 資源,請將下列 JSON 新增至您的範本。
{
"type": "Microsoft.Network/customIpPrefixes",
"apiVersion": "2022-01-01",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"extendedLocation": {
"name": "string",
"type": "EdgeZone"
},
"properties": {
"authorizationMessage": "string",
"cidr": "string",
"commissionedState": "string",
"customIpPrefixParent": {
"id": "string"
},
"noInternetAdvertise": "bool",
"signedMessage": "string"
},
"zones": [ "string" ]
}
屬性值
customIpPrefixes
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | 'Microsoft.Network/customIpPrefixes' |
apiVersion | 資源 API 版本 | '2022-01-01' |
NAME | 資源名稱 | 字串 (必要) |
location | 資源位置。 | 字串 |
tags | 資源標籤。 | 標記名稱和值的字典。 請參閱 範本中的標記 |
extendedLocation | 自定義IP前置詞的擴充位置。 | ExtendedLocation |
properties | 自定義IP前置詞屬性。 | CustomIpPrefixPropertiesFormat |
zones (區域) | 可用性區域清單,指出為資源配置的IP必須來自。 | string[] |
ExtendedLocation
名稱 | 描述 | 值 |
---|---|---|
NAME | 擴充位置的名稱。 | 字串 |
type | 擴充位置的類型。 | 'EdgeZone' |
CustomIpPrefixPropertiesFormat
名稱 | 描述 | 值 |
---|---|---|
authorizationMessage | WAN 驗證的授權訊息。 | 字串 |
cidr | CIDR 表示法中的前置詞範圍。 應該包含開始位址和前置詞長度。 | 字串 |
commissionedState | 自定義IP前置詞的委派狀態。 | 「已委任」 'CommissionedNoInternetAdvertise' 'Commissioning' '解除委任' '取消布建' 'Provisioned' 'Provisioning' |
customIpPrefixParent | IPv6 /64 CustomIpPrefix 的父 CustomIpPrefix。 | SubResource |
noInternetAdvertise | 是否要將範圍公告為因特網。 | bool |
signedMessage | 用於 WAN 驗證的已簽署訊息。 | 字串 |
SubResource
名稱 | 描述 | 值 |
---|---|---|
id | 資源識別碼。 | 字串 |
Terraform (AzAPI 提供者) 資源定義
customIpPrefixes 資源類型可以使用目標作業來部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.Network/customIpPrefixes 資源,請將下列 Terraform 新增至您的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/customIpPrefixes@2022-01-01"
name = "string"
location = "string"
parent_id = "string"
tags = {
tagName1 = "tagValue1"
tagName2 = "tagValue2"
}
body = jsonencode({
properties = {
authorizationMessage = "string"
cidr = "string"
commissionedState = "string"
customIpPrefixParent = {
id = "string"
}
noInternetAdvertise = bool
signedMessage = "string"
}
zones = [
"string"
]
extendedLocation = {
name = "string"
type = "EdgeZone"
}
})
}
屬性值
customIpPrefixes
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | “Microsoft.Network/customIpPrefixes@2022-01-01” |
NAME | 資源名稱 | 字串 (必要) |
location | 資源位置。 | 字串 |
parent_id | 若要部署至資源群組,請使用該資源群組的標識碼。 | 需要字串 () |
tags | 資源標籤。 | 標記名稱和值的字典。 |
extendedLocation | 自定義IP前置詞的擴充位置。 | ExtendedLocation |
properties | 自定義IP前置詞屬性。 | CustomIpPrefixPropertiesFormat |
zones (區域) | 可用性區域清單,指出為資源配置的IP需要來自。 | string[] |
ExtendedLocation
名稱 | 描述 | 值 |
---|---|---|
NAME | 擴充位置的名稱。 | 字串 |
type | 擴充位置的類型。 | “EdgeZone” |
CustomIpPrefixPropertiesFormat
名稱 | 描述 | 值 |
---|---|---|
authorizationMessage | WAN 驗證的授權訊息。 | 字串 |
cidr | CIDR 表示法中的前置範圍。 應該包含開始位址和前置詞長度。 | 字串 |
commissionedState | 自定義IP前置詞的委派狀態。 | 「已委任」 “CommissionedNoInternetAdvertise” 「委派」 “解除委任” “取消布建” 「已佈建」 「布建」 |
customIpPrefixParent | IPv6 /64 CustomIpPrefix 的父 CustomIpPrefix。 | SubResource |
noInternetAdvertise | 是否要將範圍公告至因特網。 | bool |
signedMessage | WAN 驗證的已簽署訊息。 | 字串 |
SubResource
名稱 | 描述 | 值 |
---|---|---|
id | 資源識別碼。 | 字串 |
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應