azure-native.notificationhubs.listNotificationHubKeys
Explore with Pulumi AI
Response for the POST request that returns Namespace or NotificationHub access keys (connection strings).
Uses Azure REST API version 2023-10-01-preview.
Other available API versions: 2023-01-01-preview, 2023-09-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native notificationhubs [ApiVersion]. See the version guide for details.
Using listNotificationHubKeys
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 listNotificationHubKeys(args: ListNotificationHubKeysArgs, opts?: InvokeOptions): Promise<ListNotificationHubKeysResult>
function listNotificationHubKeysOutput(args: ListNotificationHubKeysOutputArgs, opts?: InvokeOptions): Output<ListNotificationHubKeysResult>def list_notification_hub_keys(authorization_rule_name: Optional[str] = None,
                               namespace_name: Optional[str] = None,
                               notification_hub_name: Optional[str] = None,
                               resource_group_name: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> ListNotificationHubKeysResult
def list_notification_hub_keys_output(authorization_rule_name: Optional[pulumi.Input[str]] = None,
                               namespace_name: Optional[pulumi.Input[str]] = None,
                               notification_hub_name: Optional[pulumi.Input[str]] = None,
                               resource_group_name: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[ListNotificationHubKeysResult]func ListNotificationHubKeys(ctx *Context, args *ListNotificationHubKeysArgs, opts ...InvokeOption) (*ListNotificationHubKeysResult, error)
func ListNotificationHubKeysOutput(ctx *Context, args *ListNotificationHubKeysOutputArgs, opts ...InvokeOption) ListNotificationHubKeysResultOutput> Note: This function is named ListNotificationHubKeys in the Go SDK.
public static class ListNotificationHubKeys 
{
    public static Task<ListNotificationHubKeysResult> InvokeAsync(ListNotificationHubKeysArgs args, InvokeOptions? opts = null)
    public static Output<ListNotificationHubKeysResult> Invoke(ListNotificationHubKeysInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<ListNotificationHubKeysResult> listNotificationHubKeys(ListNotificationHubKeysArgs args, InvokeOptions options)
public static Output<ListNotificationHubKeysResult> listNotificationHubKeys(ListNotificationHubKeysArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:notificationhubs:listNotificationHubKeys
  arguments:
    # arguments dictionaryThe following arguments are supported:
- string
 - Authorization Rule Name
 - Namespace
Name string - Namespace name
 - Notification
Hub stringName  - Notification Hub name
 - Resource
Group stringName  - The name of the resource group. The name is case insensitive.
 
- string
 - Authorization Rule Name
 - Namespace
Name string - Namespace name
 - Notification
Hub stringName  - Notification Hub name
 - Resource
Group stringName  - The name of the resource group. The name is case insensitive.
 
- String
 - Authorization Rule Name
 - namespace
Name String - Namespace name
 - notification
Hub StringName  - Notification Hub name
 - resource
Group StringName  - The name of the resource group. The name is case insensitive.
 
- string
 - Authorization Rule Name
 - namespace
Name string - Namespace name
 - notification
Hub stringName  - Notification Hub name
 - resource
Group stringName  - The name of the resource group. The name is case insensitive.
 
- str
 - Authorization Rule Name
 - namespace_
name str - Namespace name
 - notification_
hub_ strname  - Notification Hub name
 - resource_
group_ strname  - The name of the resource group. The name is case insensitive.
 
- String
 - Authorization Rule Name
 - namespace
Name String - Namespace name
 - notification
Hub StringName  - Notification Hub name
 - resource
Group StringName  - The name of the resource group. The name is case insensitive.
 
listNotificationHubKeys Result
The following output properties are available:
- Key
Name string - Gets or sets keyName of the created AuthorizationRule
 - Primary
Connection stringString  - Gets or sets primaryConnectionString of the AuthorizationRule.
 - Primary
Key string - Gets or sets primaryKey of the created AuthorizationRule.
 - Secondary
Connection stringString  - Gets or sets secondaryConnectionString of the created AuthorizationRule
 - Secondary
Key string - Gets or sets secondaryKey of the created AuthorizationRule
 
- Key
Name string - Gets or sets keyName of the created AuthorizationRule
 - Primary
Connection stringString  - Gets or sets primaryConnectionString of the AuthorizationRule.
 - Primary
Key string - Gets or sets primaryKey of the created AuthorizationRule.
 - Secondary
Connection stringString  - Gets or sets secondaryConnectionString of the created AuthorizationRule
 - Secondary
Key string - Gets or sets secondaryKey of the created AuthorizationRule
 
- key
Name String - Gets or sets keyName of the created AuthorizationRule
 - primary
Connection StringString  - Gets or sets primaryConnectionString of the AuthorizationRule.
 - primary
Key String - Gets or sets primaryKey of the created AuthorizationRule.
 - secondary
Connection StringString  - Gets or sets secondaryConnectionString of the created AuthorizationRule
 - secondary
Key String - Gets or sets secondaryKey of the created AuthorizationRule
 
- key
Name string - Gets or sets keyName of the created AuthorizationRule
 - primary
Connection stringString  - Gets or sets primaryConnectionString of the AuthorizationRule.
 - primary
Key string - Gets or sets primaryKey of the created AuthorizationRule.
 - secondary
Connection stringString  - Gets or sets secondaryConnectionString of the created AuthorizationRule
 - secondary
Key string - Gets or sets secondaryKey of the created AuthorizationRule
 
- key_
name str - Gets or sets keyName of the created AuthorizationRule
 - primary_
connection_ strstring  - Gets or sets primaryConnectionString of the AuthorizationRule.
 - primary_
key str - Gets or sets primaryKey of the created AuthorizationRule.
 - secondary_
connection_ strstring  - Gets or sets secondaryConnectionString of the created AuthorizationRule
 - secondary_
key str - Gets or sets secondaryKey of the created AuthorizationRule
 
- key
Name String - Gets or sets keyName of the created AuthorizationRule
 - primary
Connection StringString  - Gets or sets primaryConnectionString of the AuthorizationRule.
 - primary
Key String - Gets or sets primaryKey of the created AuthorizationRule.
 - secondary
Connection StringString  - Gets or sets secondaryConnectionString of the created AuthorizationRule
 - secondary
Key String - Gets or sets secondaryKey of the created AuthorizationRule
 
Package Details
- Repository
 - Azure Native pulumi/pulumi-azure-native
 - License
 - Apache-2.0