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

NamespacesOperations interface

表示命名空间作的接口。

属性

beginCreateOrUpdate
beginCreateOrUpdateAndWait
beginDelete
beginDeleteAndWait
beginFailover
beginFailoverAndWait
checkNameAvailability

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

createOrUpdate

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

createOrUpdateAuthorizationRule

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

createOrUpdateNetworkRuleSet

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

delete

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

deleteAuthorizationRule

删除命名空间的 AuthorizationRule。

failover

GeoDR 故障转移

get

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

getAuthorizationRule

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

getNetworkRuleSet

获取命名空间的 NetworkRuleSet。

list

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

listAuthorizationRules

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

listByResourceGroup

列出资源组中的可用命名空间。

listKeys

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

listNetworkRuleSet

获取命名空间的 NetworkRuleSet。

regenerateKeys

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

update

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

属性详细信息

beginCreateOrUpdate

警告

现已弃用此 API。

use createOrUpdate instead

beginCreateOrUpdate: (resourceGroupName: string, namespaceName: string, parameters: EHNamespace, options?: NamespacesCreateOrUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<EHNamespace>, EHNamespace>>

属性值

(resourceGroupName: string, namespaceName: string, parameters: EHNamespace, options?: NamespacesCreateOrUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<EHNamespace>, EHNamespace>>

beginCreateOrUpdateAndWait

警告

现已弃用此 API。

use createOrUpdate instead

beginCreateOrUpdateAndWait: (resourceGroupName: string, namespaceName: string, parameters: EHNamespace, options?: NamespacesCreateOrUpdateOptionalParams) => Promise<EHNamespace>

属性值

(resourceGroupName: string, namespaceName: string, parameters: EHNamespace, options?: NamespacesCreateOrUpdateOptionalParams) => Promise<EHNamespace>

beginDelete

警告

现已弃用此 API。

use delete instead

beginDelete: (resourceGroupName: string, namespaceName: string, options?: NamespacesDeleteOptionalParams) => Promise<SimplePollerLike<OperationState<void>, void>>

属性值

(resourceGroupName: string, namespaceName: string, options?: NamespacesDeleteOptionalParams) => Promise<SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait

警告

现已弃用此 API。

use delete instead

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

属性值

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

beginFailover

警告

现已弃用此 API。

use failover instead

beginFailover: (resourceGroupName: string, namespaceName: string, parameters: FailOver, options?: NamespacesFailoverOptionalParams) => Promise<SimplePollerLike<OperationState<FailOver>, FailOver>>

属性值

(resourceGroupName: string, namespaceName: string, parameters: FailOver, options?: NamespacesFailoverOptionalParams) => Promise<SimplePollerLike<OperationState<FailOver>, FailOver>>

beginFailoverAndWait

警告

现已弃用此 API。

use failover instead

beginFailoverAndWait: (resourceGroupName: string, namespaceName: string, parameters: FailOver, options?: NamespacesFailoverOptionalParams) => Promise<FailOver>

属性值

(resourceGroupName: string, namespaceName: string, parameters: FailOver, options?: NamespacesFailoverOptionalParams) => Promise<FailOver>

checkNameAvailability

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

checkNameAvailability: (parameters: CheckNameAvailabilityParameter, options?: NamespacesCheckNameAvailabilityOptionalParams) => Promise<CheckNameAvailabilityResult>

属性值

(parameters: CheckNameAvailabilityParameter, options?: NamespacesCheckNameAvailabilityOptionalParams) => Promise<CheckNameAvailabilityResult>

createOrUpdate

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

createOrUpdate: (resourceGroupName: string, namespaceName: string, parameters: EHNamespace, options?: NamespacesCreateOrUpdateOptionalParams) => PollerLike<OperationState<EHNamespace>, EHNamespace>

属性值

(resourceGroupName: string, namespaceName: string, parameters: EHNamespace, options?: NamespacesCreateOrUpdateOptionalParams) => PollerLike<OperationState<EHNamespace>, EHNamespace>

createOrUpdateAuthorizationRule

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

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

属性值

(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: AuthorizationRule, options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams) => Promise<AuthorizationRule>

createOrUpdateNetworkRuleSet

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

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

属性值

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

delete

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

delete: (resourceGroupName: string, namespaceName: string, options?: NamespacesDeleteOptionalParams) => PollerLike<OperationState<void>, void>

属性值

(resourceGroupName: string, namespaceName: string, options?: NamespacesDeleteOptionalParams) => PollerLike<OperationState<void>, void>

deleteAuthorizationRule

删除命名空间的 AuthorizationRule。

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

属性值

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

failover

GeoDR 故障转移

failover: (resourceGroupName: string, namespaceName: string, parameters: FailOver, options?: NamespacesFailoverOptionalParams) => PollerLike<OperationState<FailOver>, FailOver>

属性值

(resourceGroupName: string, namespaceName: string, parameters: FailOver, options?: NamespacesFailoverOptionalParams) => PollerLike<OperationState<FailOver>, FailOver>

get

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

get: (resourceGroupName: string, namespaceName: string, options?: NamespacesGetOptionalParams) => Promise<EHNamespace>

属性值

(resourceGroupName: string, namespaceName: string, options?: NamespacesGetOptionalParams) => Promise<EHNamespace>

getAuthorizationRule

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

getAuthorizationRule: (resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: NamespacesGetAuthorizationRuleOptionalParams) => Promise<AuthorizationRule>

属性值

(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: NamespacesGetAuthorizationRuleOptionalParams) => Promise<AuthorizationRule>

getNetworkRuleSet

获取命名空间的 NetworkRuleSet。

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

属性值

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

list

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

list: (options?: NamespacesListOptionalParams) => PagedAsyncIterableIterator<EHNamespace, EHNamespace[], PageSettings>

属性值

(options?: NamespacesListOptionalParams) => PagedAsyncIterableIterator<EHNamespace, EHNamespace[], PageSettings>

listAuthorizationRules

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

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

属性值

(resourceGroupName: string, namespaceName: string, options?: NamespacesListAuthorizationRulesOptionalParams) => PagedAsyncIterableIterator<AuthorizationRule, AuthorizationRule[], PageSettings>

listByResourceGroup

列出资源组中的可用命名空间。

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

属性值

(resourceGroupName: string, options?: NamespacesListByResourceGroupOptionalParams) => PagedAsyncIterableIterator<EHNamespace, EHNamespace[], PageSettings>

listKeys

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

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

属性值

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

listNetworkRuleSet

获取命名空间的 NetworkRuleSet。

listNetworkRuleSet: (resourceGroupName: string, namespaceName: string, options?: NamespacesListNetworkRuleSetOptionalParams) => Promise<NetworkRuleSetListResult>

属性值

(resourceGroupName: string, namespaceName: string, options?: NamespacesListNetworkRuleSetOptionalParams) => Promise<NetworkRuleSetListResult>

regenerateKeys

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

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

属性值

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

update

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

update: (resourceGroupName: string, namespaceName: string, parameters: EHNamespace, options?: NamespacesUpdateOptionalParams) => Promise<EHNamespace | undefined>

属性值

(resourceGroupName: string, namespaceName: string, parameters: EHNamespace, options?: NamespacesUpdateOptionalParams) => Promise<EHNamespace | undefined>