AuthorizationPolicies interface

Interface representing a AuthorizationPolicies.

Methods

createOrUpdate(string, string, string, AuthorizationPolicyResourceFormat, AuthorizationPoliciesCreateOrUpdateOptionalParams)

Creates an authorization policy or updates an existing authorization policy.

get(string, string, string, AuthorizationPoliciesGetOptionalParams)

Gets an authorization policy in the hub.

listByHub(string, string, AuthorizationPoliciesListByHubOptionalParams)

Gets all the authorization policies in a specified hub.

regeneratePrimaryKey(string, string, string, AuthorizationPoliciesRegeneratePrimaryKeyOptionalParams)

Regenerates the primary policy key of the specified authorization policy.

regenerateSecondaryKey(string, string, string, AuthorizationPoliciesRegenerateSecondaryKeyOptionalParams)

Regenerates the secondary policy key of the specified authorization policy.

Method Details

createOrUpdate(string, string, string, AuthorizationPolicyResourceFormat, AuthorizationPoliciesCreateOrUpdateOptionalParams)

Creates an authorization policy or updates an existing authorization policy.

function createOrUpdate(resourceGroupName: string, hubName: string, authorizationPolicyName: string, parameters: AuthorizationPolicyResourceFormat, options?: AuthorizationPoliciesCreateOrUpdateOptionalParams): Promise<AuthorizationPolicyResourceFormat>

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

authorizationPolicyName

string

The name of the policy.

parameters
AuthorizationPolicyResourceFormat

Parameters supplied to the CreateOrUpdate authorization policy operation.

options
AuthorizationPoliciesCreateOrUpdateOptionalParams

The options parameters.

Returns

get(string, string, string, AuthorizationPoliciesGetOptionalParams)

Gets an authorization policy in the hub.

function get(resourceGroupName: string, hubName: string, authorizationPolicyName: string, options?: AuthorizationPoliciesGetOptionalParams): Promise<AuthorizationPolicyResourceFormat>

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

authorizationPolicyName

string

The name of the policy.

options
AuthorizationPoliciesGetOptionalParams

The options parameters.

Returns

listByHub(string, string, AuthorizationPoliciesListByHubOptionalParams)

Gets all the authorization policies in a specified hub.

function listByHub(resourceGroupName: string, hubName: string, options?: AuthorizationPoliciesListByHubOptionalParams): PagedAsyncIterableIterator<AuthorizationPolicyResourceFormat, AuthorizationPolicyResourceFormat[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

options
AuthorizationPoliciesListByHubOptionalParams

The options parameters.

Returns

regeneratePrimaryKey(string, string, string, AuthorizationPoliciesRegeneratePrimaryKeyOptionalParams)

Regenerates the primary policy key of the specified authorization policy.

function regeneratePrimaryKey(resourceGroupName: string, hubName: string, authorizationPolicyName: string, options?: AuthorizationPoliciesRegeneratePrimaryKeyOptionalParams): Promise<AuthorizationPolicy>

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

authorizationPolicyName

string

The name of the policy.

Returns

regenerateSecondaryKey(string, string, string, AuthorizationPoliciesRegenerateSecondaryKeyOptionalParams)

Regenerates the secondary policy key of the specified authorization policy.

function regenerateSecondaryKey(resourceGroupName: string, hubName: string, authorizationPolicyName: string, options?: AuthorizationPoliciesRegenerateSecondaryKeyOptionalParams): Promise<AuthorizationPolicy>

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

authorizationPolicyName

string

The name of the policy.

Returns