Partager via


Namespaces interface

Interface representing a Namespaces.

Methods

beginCreateOrUpdate(string, string, EHNamespace, NamespacesCreateOrUpdateOptionalParams)

Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.

beginCreateOrUpdateAndWait(string, string, EHNamespace, NamespacesCreateOrUpdateOptionalParams)

Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.

beginDelete(string, string, NamespacesDeleteOptionalParams)

Deletes an existing namespace. This operation also removes all associated resources under the namespace.

beginDeleteAndWait(string, string, NamespacesDeleteOptionalParams)

Deletes an existing namespace. This operation also removes all associated resources under the namespace.

checkNameAvailability(CheckNameAvailabilityParameter, NamespacesCheckNameAvailabilityOptionalParams)

Check the give Namespace name availability.

createOrUpdateAuthorizationRule(string, string, string, AuthorizationRule, NamespacesCreateOrUpdateAuthorizationRuleOptionalParams)

Creates or updates an AuthorizationRule for a Namespace.

deleteAuthorizationRule(string, string, string, NamespacesDeleteAuthorizationRuleOptionalParams)

Deletes an AuthorizationRule for a Namespace.

get(string, string, NamespacesGetOptionalParams)

Gets the description of the specified namespace.

getAuthorizationRule(string, string, string, NamespacesGetAuthorizationRuleOptionalParams)

Gets an AuthorizationRule for a Namespace by rule name.

list(NamespacesListOptionalParams)

Lists all the available Namespaces within a subscription, irrespective of the resource groups.

listAuthorizationRules(string, string, NamespacesListAuthorizationRulesOptionalParams)

Gets a list of authorization rules for a Namespace.

listByResourceGroup(string, NamespacesListByResourceGroupOptionalParams)

Lists the available Namespaces within a resource group.

listKeys(string, string, string, NamespacesListKeysOptionalParams)

Gets the primary and secondary connection strings for the Namespace.

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

Regenerates the primary or secondary connection strings for the specified Namespace.

update(string, string, EHNamespace, NamespacesUpdateOptionalParams)

Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.

Method Details

beginCreateOrUpdate(string, string, EHNamespace, NamespacesCreateOrUpdateOptionalParams)

Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.

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

Parameters

resourceGroupName

string

Name of the resource group within the azure subscription.

namespaceName

string

The Namespace name

parameters
EHNamespace

Parameters for creating a namespace resource.

options
NamespacesCreateOrUpdateOptionalParams

The options parameters.

Returns

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

beginCreateOrUpdateAndWait(string, string, EHNamespace, NamespacesCreateOrUpdateOptionalParams)

Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.

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

Parameters

resourceGroupName

string

Name of the resource group within the azure subscription.

namespaceName

string

The Namespace name

parameters
EHNamespace

Parameters for creating a namespace resource.

options
NamespacesCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<EHNamespace>

beginDelete(string, string, NamespacesDeleteOptionalParams)

Deletes an existing namespace. This operation also removes all associated resources under the namespace.

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

Parameters

resourceGroupName

string

Name of the resource group within the azure subscription.

namespaceName

string

The Namespace name

options
NamespacesDeleteOptionalParams

The options parameters.

Returns

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

beginDeleteAndWait(string, string, NamespacesDeleteOptionalParams)

Deletes an existing namespace. This operation also removes all associated resources under the namespace.

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

Parameters

resourceGroupName

string

Name of the resource group within the azure subscription.

namespaceName

string

The Namespace name

options
NamespacesDeleteOptionalParams

The options parameters.

Returns

Promise<void>

checkNameAvailability(CheckNameAvailabilityParameter, NamespacesCheckNameAvailabilityOptionalParams)

Check the give Namespace name availability.

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

Parameters

parameters
CheckNameAvailabilityParameter

Parameters to check availability of the given Namespace name

options
NamespacesCheckNameAvailabilityOptionalParams

The options parameters.

Returns

createOrUpdateAuthorizationRule(string, string, string, AuthorizationRule, NamespacesCreateOrUpdateAuthorizationRuleOptionalParams)

Creates or updates an AuthorizationRule for a Namespace.

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

Parameters

resourceGroupName

string

Name of the resource group within the azure subscription.

namespaceName

string

The Namespace name

authorizationRuleName

string

The authorization rule name.

parameters
AuthorizationRule

The shared access AuthorizationRule.

Returns

deleteAuthorizationRule(string, string, string, NamespacesDeleteAuthorizationRuleOptionalParams)

Deletes an AuthorizationRule for a Namespace.

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

Parameters

resourceGroupName

string

Name of the resource group within the azure subscription.

namespaceName

string

The Namespace name

authorizationRuleName

string

The authorization rule name.

options
NamespacesDeleteAuthorizationRuleOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, NamespacesGetOptionalParams)

Gets the description of the specified namespace.

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

Parameters

resourceGroupName

string

Name of the resource group within the azure subscription.

namespaceName

string

The Namespace name

options
NamespacesGetOptionalParams

The options parameters.

Returns

Promise<EHNamespace>

getAuthorizationRule(string, string, string, NamespacesGetAuthorizationRuleOptionalParams)

Gets an AuthorizationRule for a Namespace by rule name.

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

Parameters

resourceGroupName

string

Name of the resource group within the azure subscription.

namespaceName

string

The Namespace name

authorizationRuleName

string

The authorization rule name.

options
NamespacesGetAuthorizationRuleOptionalParams

The options parameters.

Returns

list(NamespacesListOptionalParams)

Lists all the available Namespaces within a subscription, irrespective of the resource groups.

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

Parameters

options
NamespacesListOptionalParams

The options parameters.

Returns

listAuthorizationRules(string, string, NamespacesListAuthorizationRulesOptionalParams)

Gets a list of authorization rules for a Namespace.

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

Parameters

resourceGroupName

string

Name of the resource group within the azure subscription.

namespaceName

string

The Namespace name

options
NamespacesListAuthorizationRulesOptionalParams

The options parameters.

Returns

listByResourceGroup(string, NamespacesListByResourceGroupOptionalParams)

Lists the available Namespaces within a resource group.

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

Parameters

resourceGroupName

string

Name of the resource group within the azure subscription.

options
NamespacesListByResourceGroupOptionalParams

The options parameters.

Returns

listKeys(string, string, string, NamespacesListKeysOptionalParams)

Gets the primary and secondary connection strings for the Namespace.

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

Parameters

resourceGroupName

string

Name of the resource group within the azure subscription.

namespaceName

string

The Namespace name

authorizationRuleName

string

The authorization rule name.

options
NamespacesListKeysOptionalParams

The options parameters.

Returns

Promise<AccessKeys>

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

Regenerates the primary or secondary connection strings for the specified Namespace.

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

Parameters

resourceGroupName

string

Name of the resource group within the azure subscription.

namespaceName

string

The Namespace name

authorizationRuleName

string

The authorization rule name.

parameters
RegenerateAccessKeyParameters

Parameters required to regenerate the connection string.

options
NamespacesRegenerateKeysOptionalParams

The options parameters.

Returns

Promise<AccessKeys>

update(string, string, EHNamespace, NamespacesUpdateOptionalParams)

Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.

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

Parameters

resourceGroupName

string

Name of the resource group within the azure subscription.

namespaceName

string

The Namespace name

parameters
EHNamespace

Parameters for updating a namespace resource.

options
NamespacesUpdateOptionalParams

The options parameters.

Returns

Promise<EHNamespace>