你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RecordSets interface

表示 RecordSet 的接口。

方法

createOrUpdate(string, string, string, RecordType, RecordSet, RecordSetsCreateOrUpdateOptionalParams)

在 DNS 区域中创建或更新记录集。

delete(string, string, string, RecordType, RecordSetsDeleteOptionalParams)

从 DNS 区域删除记录集。 此作无法撤消。

get(string, string, string, RecordType, RecordSetsGetOptionalParams)

获取记录集。

listAllByDnsZone(string, string, RecordSetsListAllByDnsZoneOptionalParams)

列出 DNS 区域中的所有记录集。

listByDnsZone(string, string, RecordSetsListByDnsZoneOptionalParams)

列出 DNS 区域中的所有记录集。

listByType(string, string, RecordType, RecordSetsListByTypeOptionalParams)

列出 DNS 区域中指定类型的记录集。

update(string, string, string, RecordType, RecordSet, RecordSetsUpdateOptionalParams)

更新 DNS 区域中的记录集。

方法详细信息

createOrUpdate(string, string, string, RecordType, RecordSet, RecordSetsCreateOrUpdateOptionalParams)

在 DNS 区域中创建或更新记录集。

function createOrUpdate(resourceGroupName: string, zoneName: string, relativeRecordSetName: string, recordType: RecordType, parameters: RecordSet, options?: RecordSetsCreateOrUpdateOptionalParams): Promise<RecordSet>

参数

resourceGroupName

string

资源组的名称。

zoneName

string

DNS 区域的名称(没有终止点)。

relativeRecordSetName

string

记录集的名称,相对于区域的名称。

recordType
RecordType

此记录集中 DNS 记录的类型。 可以更新 SOA 类型的记录集,但不能创建(在创建 DNS 区域时创建这些记录集)。

parameters
RecordSet

提供给 CreateOrUpdate作的参数。

options
RecordSetsCreateOrUpdateOptionalParams

选项参数。

返回

Promise<RecordSet>

delete(string, string, string, RecordType, RecordSetsDeleteOptionalParams)

从 DNS 区域删除记录集。 此作无法撤消。

function delete(resourceGroupName: string, zoneName: string, relativeRecordSetName: string, recordType: RecordType, options?: RecordSetsDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组的名称。

zoneName

string

DNS 区域的名称(没有终止点)。

relativeRecordSetName

string

记录集的名称,相对于区域的名称。

recordType
RecordType

此记录集中 DNS 记录的类型。 无法删除类型 SOA 的记录集(删除 DNS 区域时会删除这些记录集)。

options
RecordSetsDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, string, RecordType, RecordSetsGetOptionalParams)

获取记录集。

function get(resourceGroupName: string, zoneName: string, relativeRecordSetName: string, recordType: RecordType, options?: RecordSetsGetOptionalParams): Promise<RecordSet>

参数

resourceGroupName

string

资源组的名称。

zoneName

string

DNS 区域的名称(没有终止点)。

relativeRecordSetName

string

记录集的名称,相对于区域的名称。

recordType
RecordType

此记录集中 DNS 记录的类型。

options
RecordSetsGetOptionalParams

选项参数。

返回

Promise<RecordSet>

listAllByDnsZone(string, string, RecordSetsListAllByDnsZoneOptionalParams)

列出 DNS 区域中的所有记录集。

function listAllByDnsZone(resourceGroupName: string, zoneName: string, options?: RecordSetsListAllByDnsZoneOptionalParams): PagedAsyncIterableIterator<RecordSet, RecordSet[], PageSettings>

参数

resourceGroupName

string

资源组的名称。

zoneName

string

DNS 区域的名称(没有终止点)。

返回

listByDnsZone(string, string, RecordSetsListByDnsZoneOptionalParams)

列出 DNS 区域中的所有记录集。

function listByDnsZone(resourceGroupName: string, zoneName: string, options?: RecordSetsListByDnsZoneOptionalParams): PagedAsyncIterableIterator<RecordSet, RecordSet[], PageSettings>

参数

resourceGroupName

string

资源组的名称。

zoneName

string

DNS 区域的名称(没有终止点)。

options
RecordSetsListByDnsZoneOptionalParams

选项参数。

返回

listByType(string, string, RecordType, RecordSetsListByTypeOptionalParams)

列出 DNS 区域中指定类型的记录集。

function listByType(resourceGroupName: string, zoneName: string, recordType: RecordType, options?: RecordSetsListByTypeOptionalParams): PagedAsyncIterableIterator<RecordSet, RecordSet[], PageSettings>

参数

resourceGroupName

string

资源组的名称。

zoneName

string

DNS 区域的名称(没有终止点)。

recordType
RecordType

要枚举的记录集的类型。

options
RecordSetsListByTypeOptionalParams

选项参数。

返回

update(string, string, string, RecordType, RecordSet, RecordSetsUpdateOptionalParams)

更新 DNS 区域中的记录集。

function update(resourceGroupName: string, zoneName: string, relativeRecordSetName: string, recordType: RecordType, parameters: RecordSet, options?: RecordSetsUpdateOptionalParams): Promise<RecordSet>

参数

resourceGroupName

string

资源组的名称。

zoneName

string

DNS 区域的名称(没有终止点)。

relativeRecordSetName

string

记录集的名称,相对于区域的名称。

recordType
RecordType

此记录集中 DNS 记录的类型。

parameters
RecordSet

提供给更新作的参数。

options
RecordSetsUpdateOptionalParams

选项参数。

返回

Promise<RecordSet>