你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Storage Settings - Update
Update storage resource provider settings.
PUT https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Storage.Admin/locations/{location}/settings?api-version=2019-08-08-preview
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
location
|
path | True |
string |
Resource location. |
subscription
|
path | True |
string |
Subscription Id. |
api-version
|
query | True |
string |
REST Api Version. |
Request Body
Name | Type | Description |
---|---|---|
properties.retentionPeriodForDeletedStorageAccountsInDays |
integer |
The number of days a deleted storage account is kept before being permanently deleted. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK -- The new storage resource provider setting is updated. |
|
Other Status Codes |
Error Response. |
Security
azure_auth
Authorization uses an Azure Active Directory OAuth2 flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Update srp settings.
Sample Request
PUT https://management.azure.com/subscriptions/9ad61516-995c-4873-a21f-7e44904f0ed2/providers/Microsoft.Storage.Admin/locations/local/settings?api-version=2019-08-08-preview
{
"properties": {
"retentionPeriodForDeletedStorageAccountsInDays": 2
}
}
Sample Response
{
"properties": {
"retentionPeriodForDeletedStorageAccountsInDays": 2
}
}
Definitions
Name | Description |
---|---|
Error |
The error response for request which failed. |
Settings |
Storage resource provider settings |
ErrorResponse
The error response for request which failed.
Name | Type | Description |
---|---|---|
code |
string |
The error description code. |
details |
string[] |
The error details information. |
message |
string |
The error description message. |
target |
string |
The error target description. |
Settings
Storage resource provider settings
Name | Type | Description |
---|---|---|
id |
string |
Resource ID. |
location |
string |
Resource Location. |
name |
string |
Resource Name. |
properties.retentionPeriodForDeletedStorageAccountsInDays |
integer |
The number of days a deleted storage account is kept before being permanently deleted. |
type |
string |
Resource Type. |