Bicep 資源定義
dnsZones/NS 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.Network/dnsZones/NS 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Network/dnsZones/NS@2023-07-01-preview' = {
parent: resourceSymbolicName
etag: 'string'
name: 'string'
properties: {
AAAARecords: [
{
ipv6Address: 'string'
}
]
ARecords: [
{
ipv4Address: 'string'
}
]
caaRecords: [
{
flags: int
tag: 'string'
value: 'string'
}
]
CNAMERecord: {
cname: 'string'
}
DSRecords: [
{
algorithm: int
digest: {
algorithmType: int
value: 'string'
}
keyTag: int
}
]
metadata: {
{customized property}: 'string'
}
MXRecords: [
{
exchange: 'string'
preference: int
}
]
NAPTRRecords: [
{
flags: 'string'
order: int
preference: int
regexp: 'string'
replacement: 'string'
services: 'string'
}
]
NSRecords: [
{
nsdname: 'string'
}
]
PTRRecords: [
{
ptrdname: 'string'
}
]
SOARecord: {
email: 'string'
expireTime: int
host: 'string'
minimumTTL: int
refreshTime: int
retryTime: int
serialNumber: int
}
SRVRecords: [
{
port: int
priority: int
target: 'string'
weight: int
}
]
targetResource: {
id: 'string'
}
TLSARecords: [
{
certAssociationData: 'string'
matchingType: int
selector: int
usage: int
}
]
trafficManagementProfile: {
id: 'string'
}
TTL: int
TXTRecords: [
{
value: [
'string'
]
}
]
}
}
屬性值
Microsoft.Network/dnsZones/NS
AaaaRecord
名稱 |
說明 |
價值 |
ipv6 位址 |
此 AAAA 記錄的 IPv6 位址。 |
字串 |
阿
名稱 |
說明 |
價值 |
ipv4位址 |
此 A 記錄的 IPv4 位址。 |
字串 |
CaaRecord
名稱 |
說明 |
價值 |
旗幟 |
此 CAA 記錄的旗標為介於 0 到 255 之間的整數。 |
整數 (int) |
標記 |
此 CAA 記錄的標記。 |
字串 |
價值 |
此 CAA 記錄的值。 |
字串 |
CnameRecord
名稱 |
說明 |
價值 |
cname (標準名稱) |
此 CNAME 記錄的正式名稱。 |
字串 |
摘要
DsRecord
MxRecord
名稱 |
說明 |
價值 |
交換 |
此 MX 記錄之郵件主機的功能變數名稱。 |
字串 |
偏好 |
此 MX 記錄的喜好設定值。 |
整數 (int) |
NaptrRecord
名稱 |
說明 |
價值 |
旗幟 |
DDDS 應用程式特有的旗標。 RFC 3404 中目前定義的值為大寫和小寫字母 “A”、“P”、“S” 和 “U”,以及空字串串 “”。 以引號括住旗標。 |
字串 |
訂單 |
NAPTR 記錄必須處理的順序,才能正確表示規則的排序列表。 排序是從最低到最高。 有效值:0-65535。 |
整數 (int) |
偏好 |
喜好設定會指定 NAPTR 記錄應以相等 『order』 值處理的順序,在高數位之前處理低數位。 有效值:0-65535。 |
整數 (int) |
正則表達式 |
DDDS 應用程式用來將輸入值轉換成輸出值的正則表示式。 例如:IP 電話系統可能會使用正規表達式,將使用者輸入的電話號碼轉換成 SIP URI。 以引號括住正則表達式。 指定 'regexp' 的值或 'replacement' 的值。 |
字串 |
更換 |
取代是您要讓 DDDS 應用程式提交 DNS 查詢之下一個功能變數名稱的完整功能變數名稱 (FQDN)。 DDDS 應用程式會將輸入值取代為指定的取代值。 指定 'regexp' 的值或 'replacement' 的值。 如果您指定 'regexp' 的值,請指定 'replacement' 的點 (.)。 |
字串 |
服務 |
DDDS 應用程式特有的服務。 以引號括住 Services。 |
字串 |
NsRecord
名稱 |
說明 |
價值 |
nsd名稱 |
此 NS 記錄的名稱伺服器名稱。 |
字串 |
PtrRecord
名稱 |
說明 |
價值 |
ptrdname |
此 PTR 記錄的 PTR 目標功能變數名稱。 |
字串 |
RecordSetProperties
SoaRecord
名稱 |
說明 |
價值 |
電子郵件 |
此 SOA 記錄的電子郵件連絡人。 |
字串 |
過期時間 |
此 SOA 記錄的到期時間。 |
整數 (int) |
主機 |
此 SOA 記錄之授權名稱伺服器的功能變數名稱。 |
字串 |
最小 TTL |
此 SOA 記錄的最小值。 依照慣例,這會用來判斷負快取持續時間。 |
整數 (int) |
刷新時間 |
此 SOA 記錄的重新整理值。 |
整數 (int) |
重試時間 |
此 SOA 記錄的重試時間。 |
整數 (int) |
序列號 |
此 SOA 記錄的序號。 |
整數 (int) |
SrvRecord
名稱 |
說明 |
價值 |
連接埠 |
此 SRV 記錄的埠值。 |
整數 (int) |
優先權 |
此 SRV 記錄的優先順序值。 |
整數 (int) |
目標 |
此 SRV 記錄的目標功能變數名稱。 |
字串 |
重量 |
此 SRV 記錄的權數值。 |
整數 (int) |
子資源
TlsaRecord (英语)
名稱 |
說明 |
價值 |
certAssociation數據 |
這會指定要比對的憑證關聯數據。 |
字串 |
匹配類型 |
比對類型會指定如何呈現憑證關聯。 |
整數 (int) |
選擇器 |
選取器會指定伺服器呈現的 TLS 憑證哪個部分將會與關聯數據相符。 |
整數 (int) |
用法 |
使用方式會指定提供的關聯,該關聯將用來比對 TLS 交握中顯示的憑證。 |
整數 (int) |
TxtRecord (英文)
名稱 |
說明 |
價值 |
價值 |
此 TXT 記錄的文字值。 |
字串[] |
ARM 樣本資源定義
dnsZones/NS 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.Network/dnsZones/NS 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Network/dnsZones/NS",
"apiVersion": "2023-07-01-preview",
"name": "string",
"etag": "string",
"properties": {
"AAAARecords": [
{
"ipv6Address": "string"
}
],
"ARecords": [
{
"ipv4Address": "string"
}
],
"caaRecords": [
{
"flags": "int",
"tag": "string",
"value": "string"
}
],
"CNAMERecord": {
"cname": "string"
},
"DSRecords": [
{
"algorithm": "int",
"digest": {
"algorithmType": "int",
"value": "string"
},
"keyTag": "int"
}
],
"metadata": {
"{customized property}": "string"
},
"MXRecords": [
{
"exchange": "string",
"preference": "int"
}
],
"NAPTRRecords": [
{
"flags": "string",
"order": "int",
"preference": "int",
"regexp": "string",
"replacement": "string",
"services": "string"
}
],
"NSRecords": [
{
"nsdname": "string"
}
],
"PTRRecords": [
{
"ptrdname": "string"
}
],
"SOARecord": {
"email": "string",
"expireTime": "int",
"host": "string",
"minimumTTL": "int",
"refreshTime": "int",
"retryTime": "int",
"serialNumber": "int"
},
"SRVRecords": [
{
"port": "int",
"priority": "int",
"target": "string",
"weight": "int"
}
],
"targetResource": {
"id": "string"
},
"TLSARecords": [
{
"certAssociationData": "string",
"matchingType": "int",
"selector": "int",
"usage": "int"
}
],
"trafficManagementProfile": {
"id": "string"
},
"TTL": "int",
"TXTRecords": [
{
"value": [ "string" ]
}
]
}
}
屬性值
Microsoft.Network/dnsZones/NS
名稱 |
說明 |
價值 |
apiVersion |
API 版本 |
“2023-07-01-預覽” |
ETAG |
記錄集的 etag。 |
字串 |
名稱 |
資源名稱 |
字串 (必要) |
屬性 |
記錄集的屬性。 |
RecordSetProperties |
類型 |
資源類型 |
“Microsoft.Network/dnsZones/NS” |
AaaaRecord
名稱 |
說明 |
價值 |
ipv6 位址 |
此 AAAA 記錄的 IPv6 位址。 |
字串 |
阿
名稱 |
說明 |
價值 |
ipv4位址 |
此 A 記錄的 IPv4 位址。 |
字串 |
CaaRecord
名稱 |
說明 |
價值 |
旗幟 |
此 CAA 記錄的旗標為介於 0 到 255 之間的整數。 |
整數 (int) |
標記 |
此 CAA 記錄的標記。 |
字串 |
價值 |
此 CAA 記錄的值。 |
字串 |
CnameRecord
名稱 |
說明 |
價值 |
cname (標準名稱) |
此 CNAME 記錄的正式名稱。 |
字串 |
摘要
DsRecord
MxRecord
名稱 |
說明 |
價值 |
交換 |
此 MX 記錄之郵件主機的功能變數名稱。 |
字串 |
偏好 |
此 MX 記錄的喜好設定值。 |
整數 (int) |
NaptrRecord
名稱 |
說明 |
價值 |
旗幟 |
DDDS 應用程式特有的旗標。 RFC 3404 中目前定義的值為大寫和小寫字母 “A”、“P”、“S” 和 “U”,以及空字串串 “”。 以引號括住旗標。 |
字串 |
訂單 |
NAPTR 記錄必須處理的順序,才能正確表示規則的排序列表。 排序是從最低到最高。 有效值:0-65535。 |
整數 (int) |
偏好 |
喜好設定會指定 NAPTR 記錄應以相等 『order』 值處理的順序,在高數位之前處理低數位。 有效值:0-65535。 |
整數 (int) |
正則表達式 |
DDDS 應用程式用來將輸入值轉換成輸出值的正則表示式。 例如:IP 電話系統可能會使用正規表達式,將使用者輸入的電話號碼轉換成 SIP URI。 以引號括住正則表達式。 指定 'regexp' 的值或 'replacement' 的值。 |
字串 |
更換 |
取代是您要讓 DDDS 應用程式提交 DNS 查詢之下一個功能變數名稱的完整功能變數名稱 (FQDN)。 DDDS 應用程式會將輸入值取代為指定的取代值。 指定 'regexp' 的值或 'replacement' 的值。 如果您指定 'regexp' 的值,請指定 'replacement' 的點 (.)。 |
字串 |
服務 |
DDDS 應用程式特有的服務。 以引號括住 Services。 |
字串 |
NsRecord
名稱 |
說明 |
價值 |
nsd名稱 |
此 NS 記錄的名稱伺服器名稱。 |
字串 |
PtrRecord
名稱 |
說明 |
價值 |
ptrdname |
此 PTR 記錄的 PTR 目標功能變數名稱。 |
字串 |
RecordSetProperties
SoaRecord
名稱 |
說明 |
價值 |
電子郵件 |
此 SOA 記錄的電子郵件連絡人。 |
字串 |
過期時間 |
此 SOA 記錄的到期時間。 |
整數 (int) |
主機 |
此 SOA 記錄之授權名稱伺服器的功能變數名稱。 |
字串 |
最小 TTL |
此 SOA 記錄的最小值。 依照慣例,這會用來判斷負快取持續時間。 |
整數 (int) |
刷新時間 |
此 SOA 記錄的重新整理值。 |
整數 (int) |
重試時間 |
此 SOA 記錄的重試時間。 |
整數 (int) |
序列號 |
此 SOA 記錄的序號。 |
整數 (int) |
SrvRecord
名稱 |
說明 |
價值 |
連接埠 |
此 SRV 記錄的埠值。 |
整數 (int) |
優先權 |
此 SRV 記錄的優先順序值。 |
整數 (int) |
目標 |
此 SRV 記錄的目標功能變數名稱。 |
字串 |
重量 |
此 SRV 記錄的權數值。 |
整數 (int) |
子資源
TlsaRecord (英语)
名稱 |
說明 |
價值 |
certAssociation數據 |
這會指定要比對的憑證關聯數據。 |
字串 |
匹配類型 |
比對類型會指定如何呈現憑證關聯。 |
整數 (int) |
選擇器 |
選取器會指定伺服器呈現的 TLS 憑證哪個部分將會與關聯數據相符。 |
整數 (int) |
用法 |
使用方式會指定提供的關聯,該關聯將用來比對 TLS 交握中顯示的憑證。 |
整數 (int) |
TxtRecord (英文)
名稱 |
說明 |
價值 |
價值 |
此 TXT 記錄的文字值。 |
字串[] |
使用範例
dnsZones/NS 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.Network/dnsZones/NS 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/dnsZones/NS@2023-07-01-preview"
name = "string"
parent_id = "string"
body = {
etag = "string"
properties = {
AAAARecords = [
{
ipv6Address = "string"
}
]
ARecords = [
{
ipv4Address = "string"
}
]
caaRecords = [
{
flags = int
tag = "string"
value = "string"
}
]
CNAMERecord = {
cname = "string"
}
DSRecords = [
{
algorithm = int
digest = {
algorithmType = int
value = "string"
}
keyTag = int
}
]
metadata = {
{customized property} = "string"
}
MXRecords = [
{
exchange = "string"
preference = int
}
]
NAPTRRecords = [
{
flags = "string"
order = int
preference = int
regexp = "string"
replacement = "string"
services = "string"
}
]
NSRecords = [
{
nsdname = "string"
}
]
PTRRecords = [
{
ptrdname = "string"
}
]
SOARecord = {
email = "string"
expireTime = int
host = "string"
minimumTTL = int
refreshTime = int
retryTime = int
serialNumber = int
}
SRVRecords = [
{
port = int
priority = int
target = "string"
weight = int
}
]
targetResource = {
id = "string"
}
TLSARecords = [
{
certAssociationData = "string"
matchingType = int
selector = int
usage = int
}
]
trafficManagementProfile = {
id = "string"
}
TTL = int
TXTRecords = [
{
value = [
"string"
]
}
]
}
}
}
屬性值
Microsoft.Network/dnsZones/NS
名稱 |
說明 |
價值 |
ETAG |
記錄集的 etag。 |
字串 |
名稱 |
資源名稱 |
字串 (必要) |
父項識別碼 |
此資源為父系之資源的標識碼。 |
類型資源的標識碼:dnsZones |
屬性 |
記錄集的屬性。 |
RecordSetProperties |
類型 |
資源類型 |
“Microsoft.Network/dnsZones/NS@2023-07-01-preview” |
AaaaRecord
名稱 |
說明 |
價值 |
ipv6 位址 |
此 AAAA 記錄的 IPv6 位址。 |
字串 |
阿
名稱 |
說明 |
價值 |
ipv4位址 |
此 A 記錄的 IPv4 位址。 |
字串 |
CaaRecord
名稱 |
說明 |
價值 |
旗幟 |
此 CAA 記錄的旗標為介於 0 到 255 之間的整數。 |
整數 (int) |
標記 |
此 CAA 記錄的標記。 |
字串 |
價值 |
此 CAA 記錄的值。 |
字串 |
CnameRecord
名稱 |
說明 |
價值 |
cname (標準名稱) |
此 CNAME 記錄的正式名稱。 |
字串 |
摘要
DsRecord
MxRecord
名稱 |
說明 |
價值 |
交換 |
此 MX 記錄之郵件主機的功能變數名稱。 |
字串 |
偏好 |
此 MX 記錄的喜好設定值。 |
整數 (int) |
NaptrRecord
名稱 |
說明 |
價值 |
旗幟 |
DDDS 應用程式特有的旗標。 RFC 3404 中目前定義的值為大寫和小寫字母 “A”、“P”、“S” 和 “U”,以及空字串串 “”。 以引號括住旗標。 |
字串 |
訂單 |
NAPTR 記錄必須處理的順序,才能正確表示規則的排序列表。 排序是從最低到最高。 有效值:0-65535。 |
整數 (int) |
偏好 |
喜好設定會指定 NAPTR 記錄應以相等 『order』 值處理的順序,在高數位之前處理低數位。 有效值:0-65535。 |
整數 (int) |
正則表達式 |
DDDS 應用程式用來將輸入值轉換成輸出值的正則表示式。 例如:IP 電話系統可能會使用正規表達式,將使用者輸入的電話號碼轉換成 SIP URI。 以引號括住正則表達式。 指定 'regexp' 的值或 'replacement' 的值。 |
字串 |
更換 |
取代是您要讓 DDDS 應用程式提交 DNS 查詢之下一個功能變數名稱的完整功能變數名稱 (FQDN)。 DDDS 應用程式會將輸入值取代為指定的取代值。 指定 'regexp' 的值或 'replacement' 的值。 如果您指定 'regexp' 的值,請指定 'replacement' 的點 (.)。 |
字串 |
服務 |
DDDS 應用程式特有的服務。 以引號括住 Services。 |
字串 |
NsRecord
名稱 |
說明 |
價值 |
nsd名稱 |
此 NS 記錄的名稱伺服器名稱。 |
字串 |
PtrRecord
名稱 |
說明 |
價值 |
ptrdname |
此 PTR 記錄的 PTR 目標功能變數名稱。 |
字串 |
RecordSetProperties
SoaRecord
名稱 |
說明 |
價值 |
電子郵件 |
此 SOA 記錄的電子郵件連絡人。 |
字串 |
過期時間 |
此 SOA 記錄的到期時間。 |
整數 (int) |
主機 |
此 SOA 記錄之授權名稱伺服器的功能變數名稱。 |
字串 |
最小 TTL |
此 SOA 記錄的最小值。 依照慣例,這會用來判斷負快取持續時間。 |
整數 (int) |
刷新時間 |
此 SOA 記錄的重新整理值。 |
整數 (int) |
重試時間 |
此 SOA 記錄的重試時間。 |
整數 (int) |
序列號 |
此 SOA 記錄的序號。 |
整數 (int) |
SrvRecord
名稱 |
說明 |
價值 |
連接埠 |
此 SRV 記錄的埠值。 |
整數 (int) |
優先權 |
此 SRV 記錄的優先順序值。 |
整數 (int) |
目標 |
此 SRV 記錄的目標功能變數名稱。 |
字串 |
重量 |
此 SRV 記錄的權數值。 |
整數 (int) |
子資源
TlsaRecord (英语)
名稱 |
說明 |
價值 |
certAssociation數據 |
這會指定要比對的憑證關聯數據。 |
字串 |
匹配類型 |
比對類型會指定如何呈現憑證關聯。 |
整數 (int) |
選擇器 |
選取器會指定伺服器呈現的 TLS 憑證哪個部分將會與關聯數據相符。 |
整數 (int) |
用法 |
使用方式會指定提供的關聯,該關聯將用來比對 TLS 交握中顯示的憑證。 |
整數 (int) |
TxtRecord (英文)
名稱 |
說明 |
價值 |
價值 |
此 TXT 記錄的文字值。 |
字串[] |