1. Packages
  2. Azure Native v2
  3. API Docs
  4. notificationhubs
  5. listNamespaceKeys
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.notificationhubs.listNamespaceKeys

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Response for the POST request that returns Namespace or NotificationHub access keys (connection strings). Azure REST API version: 2023-01-01-preview.

Other available API versions: 2017-04-01, 2023-09-01, 2023-10-01-preview.

Using listNamespaceKeys

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function listNamespaceKeys(args: ListNamespaceKeysArgs, opts?: InvokeOptions): Promise<ListNamespaceKeysResult>
function listNamespaceKeysOutput(args: ListNamespaceKeysOutputArgs, opts?: InvokeOptions): Output<ListNamespaceKeysResult>
Copy
def list_namespace_keys(authorization_rule_name: Optional[str] = None,
                        namespace_name: Optional[str] = None,
                        resource_group_name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> ListNamespaceKeysResult
def list_namespace_keys_output(authorization_rule_name: Optional[pulumi.Input[str]] = None,
                        namespace_name: Optional[pulumi.Input[str]] = None,
                        resource_group_name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[ListNamespaceKeysResult]
Copy
func ListNamespaceKeys(ctx *Context, args *ListNamespaceKeysArgs, opts ...InvokeOption) (*ListNamespaceKeysResult, error)
func ListNamespaceKeysOutput(ctx *Context, args *ListNamespaceKeysOutputArgs, opts ...InvokeOption) ListNamespaceKeysResultOutput
Copy

> Note: This function is named ListNamespaceKeys in the Go SDK.

public static class ListNamespaceKeys 
{
    public static Task<ListNamespaceKeysResult> InvokeAsync(ListNamespaceKeysArgs args, InvokeOptions? opts = null)
    public static Output<ListNamespaceKeysResult> Invoke(ListNamespaceKeysInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<ListNamespaceKeysResult> listNamespaceKeys(ListNamespaceKeysArgs args, InvokeOptions options)
public static Output<ListNamespaceKeysResult> listNamespaceKeys(ListNamespaceKeysArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:notificationhubs:listNamespaceKeys
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AuthorizationRuleName
This property is required.
Changes to this property will trigger replacement.
string
Authorization Rule Name
NamespaceName
This property is required.
Changes to this property will trigger replacement.
string
Namespace name
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
AuthorizationRuleName
This property is required.
Changes to this property will trigger replacement.
string
Authorization Rule Name
NamespaceName
This property is required.
Changes to this property will trigger replacement.
string
Namespace name
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
authorizationRuleName
This property is required.
Changes to this property will trigger replacement.
String
Authorization Rule Name
namespaceName
This property is required.
Changes to this property will trigger replacement.
String
Namespace name
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
authorizationRuleName
This property is required.
Changes to this property will trigger replacement.
string
Authorization Rule Name
namespaceName
This property is required.
Changes to this property will trigger replacement.
string
Namespace name
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
authorization_rule_name
This property is required.
Changes to this property will trigger replacement.
str
Authorization Rule Name
namespace_name
This property is required.
Changes to this property will trigger replacement.
str
Namespace name
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
authorizationRuleName
This property is required.
Changes to this property will trigger replacement.
String
Authorization Rule Name
namespaceName
This property is required.
Changes to this property will trigger replacement.
String
Namespace name
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.

listNamespaceKeys Result

The following output properties are available:

KeyName string
Gets or sets keyName of the created AuthorizationRule
PrimaryConnectionString string
Gets or sets primaryConnectionString of the AuthorizationRule.
PrimaryKey string
Gets or sets primaryKey of the created AuthorizationRule.
SecondaryConnectionString string
Gets or sets secondaryConnectionString of the created AuthorizationRule
SecondaryKey string
Gets or sets secondaryKey of the created AuthorizationRule
KeyName string
Gets or sets keyName of the created AuthorizationRule
PrimaryConnectionString string
Gets or sets primaryConnectionString of the AuthorizationRule.
PrimaryKey string
Gets or sets primaryKey of the created AuthorizationRule.
SecondaryConnectionString string
Gets or sets secondaryConnectionString of the created AuthorizationRule
SecondaryKey string
Gets or sets secondaryKey of the created AuthorizationRule
keyName String
Gets or sets keyName of the created AuthorizationRule
primaryConnectionString String
Gets or sets primaryConnectionString of the AuthorizationRule.
primaryKey String
Gets or sets primaryKey of the created AuthorizationRule.
secondaryConnectionString String
Gets or sets secondaryConnectionString of the created AuthorizationRule
secondaryKey String
Gets or sets secondaryKey of the created AuthorizationRule
keyName string
Gets or sets keyName of the created AuthorizationRule
primaryConnectionString string
Gets or sets primaryConnectionString of the AuthorizationRule.
primaryKey string
Gets or sets primaryKey of the created AuthorizationRule.
secondaryConnectionString string
Gets or sets secondaryConnectionString of the created AuthorizationRule
secondaryKey string
Gets or sets secondaryKey of the created AuthorizationRule
key_name str
Gets or sets keyName of the created AuthorizationRule
primary_connection_string str
Gets or sets primaryConnectionString of the AuthorizationRule.
primary_key str
Gets or sets primaryKey of the created AuthorizationRule.
secondary_connection_string str
Gets or sets secondaryConnectionString of the created AuthorizationRule
secondary_key str
Gets or sets secondaryKey of the created AuthorizationRule
keyName String
Gets or sets keyName of the created AuthorizationRule
primaryConnectionString String
Gets or sets primaryConnectionString of the AuthorizationRule.
primaryKey String
Gets or sets primaryKey of the created AuthorizationRule.
secondaryConnectionString String
Gets or sets secondaryConnectionString of the created AuthorizationRule
secondaryKey String
Gets or sets secondaryKey of the created AuthorizationRule

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi