ManagementPolicies interface

Interface representing a ManagementPolicies.

Methods

createOrUpdate(string, string, string, ManagementPolicy, ManagementPoliciesCreateOrUpdateOptionalParams)

Sets the managementpolicy to the specified storage account.

delete(string, string, string, ManagementPoliciesDeleteOptionalParams)

Deletes the managementpolicy associated with the specified storage account.

get(string, string, string, ManagementPoliciesGetOptionalParams)

Gets the managementpolicy associated with the specified storage account.

Method Details

createOrUpdate(string, string, string, ManagementPolicy, ManagementPoliciesCreateOrUpdateOptionalParams)

Sets the managementpolicy to the specified storage account.

function createOrUpdate(resourceGroupName: string, accountName: string, managementPolicyName: string, properties: ManagementPolicy, options?: ManagementPoliciesCreateOrUpdateOptionalParams): Promise<ManagementPolicy>

Parameters

resourceGroupName

string

The name of the resource group within the user's subscription. The name is case insensitive.

accountName

string

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

managementPolicyName

string

The name of the Storage Account Management Policy. It should always be 'default'

properties
ManagementPolicy

The ManagementPolicy set to a storage account.

options
ManagementPoliciesCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<ManagementPolicy>

delete(string, string, string, ManagementPoliciesDeleteOptionalParams)

Deletes the managementpolicy associated with the specified storage account.

function delete(resourceGroupName: string, accountName: string, managementPolicyName: string, options?: ManagementPoliciesDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group within the user's subscription. The name is case insensitive.

accountName

string

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

managementPolicyName

string

The name of the Storage Account Management Policy. It should always be 'default'

options
ManagementPoliciesDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, ManagementPoliciesGetOptionalParams)

Gets the managementpolicy associated with the specified storage account.

function get(resourceGroupName: string, accountName: string, managementPolicyName: string, options?: ManagementPoliciesGetOptionalParams): Promise<ManagementPolicy>

Parameters

resourceGroupName

string

The name of the resource group within the user's subscription. The name is case insensitive.

accountName

string

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

managementPolicyName

string

The name of the Storage Account Management Policy. It should always be 'default'

options
ManagementPoliciesGetOptionalParams

The options parameters.

Returns

Promise<ManagementPolicy>