@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.98 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets an authorization rule for a namespace by name.
*
* 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](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getNamespaceAuthorizationRule(args: GetNamespaceAuthorizationRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetNamespaceAuthorizationRuleResult>;
export interface GetNamespaceAuthorizationRuleArgs {
/**
* Authorization Rule Name
*/
authorizationRuleName: string;
/**
* Namespace name
*/
namespaceName: string;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
}
/**
* Response for POST requests that return single SharedAccessAuthorizationRule.
*/
export interface GetNamespaceAuthorizationRuleResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Gets a string that describes the claim type
*/
readonly claimType: string;
/**
* Gets a string that describes the claim value
*/
readonly claimValue: string;
/**
* Gets the created time for this rule
*/
readonly createdTime: string;
/**
* Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
*/
readonly id: string;
/**
* Gets a string that describes the authorization rule.
*/
readonly keyName: string;
readonly location?: string;
/**
* Gets the last modified time for this rule
*/
readonly modifiedTime: string;
/**
* The name of the resource
*/
readonly name: string;
/**
* Gets a base64-encoded 256-bit primary key for signing and
* validating the SAS token.
*/
readonly primaryKey?: string;
/**
* Gets the revision number for the rule
*/
readonly revision: number;
/**
* Gets or sets the rights associated with the rule.
*/
readonly rights: string[];
/**
* Gets a base64-encoded 256-bit primary key for signing and
* validating the SAS token.
*/
readonly secondaryKey?: string;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.notificationhubs.SystemDataResponse;
readonly tags?: {
[key: string]: string;
};
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
}
/**
* Gets an authorization rule for a namespace by name.
*
* 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](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getNamespaceAuthorizationRuleOutput(args: GetNamespaceAuthorizationRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNamespaceAuthorizationRuleResult>;
export interface GetNamespaceAuthorizationRuleOutputArgs {
/**
* Authorization Rule Name
*/
authorizationRuleName: pulumi.Input<string>;
/**
* Namespace name
*/
namespaceName: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
}