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

Namespaces interface

表示命名空间的接口。

方法

beginCreateOrUpdate(string, string, SBNamespace, NamespacesCreateOrUpdateOptionalParams)

创建或更新服务命名空间。 创建后,此命名空间的资源清单是不可变的。 此作是幂等的。

beginCreateOrUpdateAndWait(string, string, SBNamespace, NamespacesCreateOrUpdateOptionalParams)

创建或更新服务命名空间。 创建后,此命名空间的资源清单是不可变的。 此作是幂等的。

beginDelete(string, string, NamespacesDeleteOptionalParams)

删除现有命名空间。 此作还会删除命名空间下的所有关联资源。

beginDeleteAndWait(string, string, NamespacesDeleteOptionalParams)

删除现有命名空间。 此作还会删除命名空间下的所有关联资源。

checkNameAvailability(CheckNameAvailability, NamespacesCheckNameAvailabilityOptionalParams)

检查提供命名空间名称的可用性。

createOrUpdateAuthorizationRule(string, string, string, SBAuthorizationRule, NamespacesCreateOrUpdateAuthorizationRuleOptionalParams)

为命名空间创建或更新授权规则。

createOrUpdateNetworkRuleSet(string, string, NetworkRuleSet, NamespacesCreateOrUpdateNetworkRuleSetOptionalParams)

为命名空间创建或更新 NetworkRuleSet。

deleteAuthorizationRule(string, string, string, NamespacesDeleteAuthorizationRuleOptionalParams)

删除命名空间授权规则。

get(string, string, NamespacesGetOptionalParams)

获取指定命名空间的说明。

getAuthorizationRule(string, string, string, NamespacesGetAuthorizationRuleOptionalParams)

按规则名称获取命名空间的授权规则。

getNetworkRuleSet(string, string, NamespacesGetNetworkRuleSetOptionalParams)

获取命名空间的 NetworkRuleSet。

list(NamespacesListOptionalParams)

获取订阅中的所有可用命名空间,而不考虑资源组。

listAuthorizationRules(string, string, NamespacesListAuthorizationRulesOptionalParams)

获取命名空间的授权规则。

listByResourceGroup(string, NamespacesListByResourceGroupOptionalParams)

获取资源组中的可用命名空间。

listKeys(string, string, string, NamespacesListKeysOptionalParams)

获取命名空间的主连接字符串和辅助连接字符串。

listNetworkRuleSets(string, string, NamespacesListNetworkRuleSetsOptionalParams)

获取命名空间的 NetworkRuleSet 列表。

regenerateKeys(string, string, string, RegenerateAccessKeyParameters, NamespacesRegenerateKeysOptionalParams)

重新生成命名空间的主连接字符串或辅助连接字符串。

update(string, string, SBNamespaceUpdateParameters, NamespacesUpdateOptionalParams)

更新服务命名空间。 创建后,此命名空间的资源清单是不可变的。 此作是幂等的。

方法详细信息

beginCreateOrUpdate(string, string, SBNamespace, NamespacesCreateOrUpdateOptionalParams)

创建或更新服务命名空间。 创建后,此命名空间的资源清单是不可变的。 此作是幂等的。

function beginCreateOrUpdate(resourceGroupName: string, namespaceName: string, parameters: SBNamespace, options?: NamespacesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<SBNamespace>, SBNamespace>>

参数

resourceGroupName

string

Azure 订阅中的资源组的名称。

namespaceName

string

命名空间名称。

parameters
SBNamespace

提供用于创建命名空间资源的参数。

options
NamespacesCreateOrUpdateOptionalParams

选项参数。

返回

Promise<PollerLike<@azure/core-lro.PollOperationState<SBNamespace>, SBNamespace>>

beginCreateOrUpdateAndWait(string, string, SBNamespace, NamespacesCreateOrUpdateOptionalParams)

创建或更新服务命名空间。 创建后,此命名空间的资源清单是不可变的。 此作是幂等的。

function beginCreateOrUpdateAndWait(resourceGroupName: string, namespaceName: string, parameters: SBNamespace, options?: NamespacesCreateOrUpdateOptionalParams): Promise<SBNamespace>

参数

resourceGroupName

string

Azure 订阅中的资源组的名称。

namespaceName

string

命名空间名称。

parameters
SBNamespace

提供用于创建命名空间资源的参数。

options
NamespacesCreateOrUpdateOptionalParams

选项参数。

返回

Promise<SBNamespace>

beginDelete(string, string, NamespacesDeleteOptionalParams)

删除现有命名空间。 此作还会删除命名空间下的所有关联资源。

function beginDelete(resourceGroupName: string, namespaceName: string, options?: NamespacesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>

参数

resourceGroupName

string

Azure 订阅中的资源组的名称。

namespaceName

string

命名空间名称

options
NamespacesDeleteOptionalParams

选项参数。

返回

Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>

beginDeleteAndWait(string, string, NamespacesDeleteOptionalParams)

删除现有命名空间。 此作还会删除命名空间下的所有关联资源。

function beginDeleteAndWait(resourceGroupName: string, namespaceName: string, options?: NamespacesDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

Azure 订阅中的资源组的名称。

namespaceName

string

命名空间名称

options
NamespacesDeleteOptionalParams

选项参数。

返回

Promise<void>

checkNameAvailability(CheckNameAvailability, NamespacesCheckNameAvailabilityOptionalParams)

检查提供命名空间名称的可用性。

function checkNameAvailability(parameters: CheckNameAvailability, options?: NamespacesCheckNameAvailabilityOptionalParams): Promise<CheckNameAvailabilityResult>

参数

parameters
CheckNameAvailability

用于检查给定命名空间名称可用性的参数

返回

createOrUpdateAuthorizationRule(string, string, string, SBAuthorizationRule, NamespacesCreateOrUpdateAuthorizationRuleOptionalParams)

为命名空间创建或更新授权规则。

function createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: SBAuthorizationRule, options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams): Promise<SBAuthorizationRule>

参数

resourceGroupName

string

Azure 订阅中的资源组的名称。

namespaceName

string

命名空间名称

authorizationRuleName

string

授权规则名称。

parameters
SBAuthorizationRule

共享访问授权规则。

返回

createOrUpdateNetworkRuleSet(string, string, NetworkRuleSet, NamespacesCreateOrUpdateNetworkRuleSetOptionalParams)

为命名空间创建或更新 NetworkRuleSet。

function createOrUpdateNetworkRuleSet(resourceGroupName: string, namespaceName: string, parameters: NetworkRuleSet, options?: NamespacesCreateOrUpdateNetworkRuleSetOptionalParams): Promise<NetworkRuleSet>

参数

resourceGroupName

string

Azure 订阅中的资源组的名称。

namespaceName

string

命名空间名称

parameters
NetworkRuleSet

命名空间 IpFilterRule。

返回

Promise<NetworkRuleSet>

deleteAuthorizationRule(string, string, string, NamespacesDeleteAuthorizationRuleOptionalParams)

删除命名空间授权规则。

function deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: NamespacesDeleteAuthorizationRuleOptionalParams): Promise<void>

参数

resourceGroupName

string

Azure 订阅中的资源组的名称。

namespaceName

string

命名空间名称

authorizationRuleName

string

授权规则名称。

返回

Promise<void>

get(string, string, NamespacesGetOptionalParams)

获取指定命名空间的说明。

function get(resourceGroupName: string, namespaceName: string, options?: NamespacesGetOptionalParams): Promise<SBNamespace>

参数

resourceGroupName

string

Azure 订阅中的资源组的名称。

namespaceName

string

命名空间名称

options
NamespacesGetOptionalParams

选项参数。

返回

Promise<SBNamespace>

getAuthorizationRule(string, string, string, NamespacesGetAuthorizationRuleOptionalParams)

按规则名称获取命名空间的授权规则。

function getAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: NamespacesGetAuthorizationRuleOptionalParams): Promise<SBAuthorizationRule>

参数

resourceGroupName

string

Azure 订阅中的资源组的名称。

namespaceName

string

命名空间名称

authorizationRuleName

string

授权规则名称。

返回

getNetworkRuleSet(string, string, NamespacesGetNetworkRuleSetOptionalParams)

获取命名空间的 NetworkRuleSet。

function getNetworkRuleSet(resourceGroupName: string, namespaceName: string, options?: NamespacesGetNetworkRuleSetOptionalParams): Promise<NetworkRuleSet>

参数

resourceGroupName

string

Azure 订阅中的资源组的名称。

namespaceName

string

命名空间名称

返回

Promise<NetworkRuleSet>

list(NamespacesListOptionalParams)

获取订阅中的所有可用命名空间,而不考虑资源组。

function list(options?: NamespacesListOptionalParams): PagedAsyncIterableIterator<SBNamespace, SBNamespace[], PageSettings>

参数

options
NamespacesListOptionalParams

选项参数。

返回

listAuthorizationRules(string, string, NamespacesListAuthorizationRulesOptionalParams)

获取命名空间的授权规则。

function listAuthorizationRules(resourceGroupName: string, namespaceName: string, options?: NamespacesListAuthorizationRulesOptionalParams): PagedAsyncIterableIterator<SBAuthorizationRule, SBAuthorizationRule[], PageSettings>

参数

resourceGroupName

string

Azure 订阅中的资源组的名称。

namespaceName

string

命名空间名称

返回

listByResourceGroup(string, NamespacesListByResourceGroupOptionalParams)

获取资源组中的可用命名空间。

function listByResourceGroup(resourceGroupName: string, options?: NamespacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<SBNamespace, SBNamespace[], PageSettings>

参数

resourceGroupName

string

Azure 订阅中的资源组的名称。

返回

listKeys(string, string, string, NamespacesListKeysOptionalParams)

获取命名空间的主连接字符串和辅助连接字符串。

function listKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: NamespacesListKeysOptionalParams): Promise<AccessKeys>

参数

resourceGroupName

string

Azure 订阅中的资源组的名称。

namespaceName

string

命名空间名称

authorizationRuleName

string

授权规则名称。

options
NamespacesListKeysOptionalParams

选项参数。

返回

Promise<AccessKeys>

listNetworkRuleSets(string, string, NamespacesListNetworkRuleSetsOptionalParams)

获取命名空间的 NetworkRuleSet 列表。

function listNetworkRuleSets(resourceGroupName: string, namespaceName: string, options?: NamespacesListNetworkRuleSetsOptionalParams): PagedAsyncIterableIterator<NetworkRuleSet, NetworkRuleSet[], PageSettings>

参数

resourceGroupName

string

Azure 订阅中的资源组的名称。

namespaceName

string

命名空间名称

返回

regenerateKeys(string, string, string, RegenerateAccessKeyParameters, NamespacesRegenerateKeysOptionalParams)

重新生成命名空间的主连接字符串或辅助连接字符串。

function regenerateKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: RegenerateAccessKeyParameters, options?: NamespacesRegenerateKeysOptionalParams): Promise<AccessKeys>

参数

resourceGroupName

string

Azure 订阅中的资源组的名称。

namespaceName

string

命名空间名称

authorizationRuleName

string

授权规则名称。

parameters
RegenerateAccessKeyParameters

提供用于重新生成授权规则的参数。

options
NamespacesRegenerateKeysOptionalParams

选项参数。

返回

Promise<AccessKeys>

update(string, string, SBNamespaceUpdateParameters, NamespacesUpdateOptionalParams)

更新服务命名空间。 创建后,此命名空间的资源清单是不可变的。 此作是幂等的。

function update(resourceGroupName: string, namespaceName: string, parameters: SBNamespaceUpdateParameters, options?: NamespacesUpdateOptionalParams): Promise<SBNamespace>

参数

resourceGroupName

string

Azure 订阅中的资源组的名称。

namespaceName

string

命名空间名称

parameters
SBNamespaceUpdateParameters

提供用于更新命名空间资源的参数。

options
NamespacesUpdateOptionalParams

选项参数。

返回

Promise<SBNamespace>