ManagementPolicies interface
Interface representing a ManagementPolicies.
Methods
create |
Sets the managementpolicy to the specified storage account. |
delete(string, string, string, Management |
Deletes the managementpolicy associated with the specified storage account. |
get(string, string, string, Management |
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.
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'
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'
The options parameters.
Returns
Promise<ManagementPolicy>