| Description | : Sets properties for a storage account's File service endpoint, including properties for Storage Analytics metrics and CORS (Cross-Origin Resource Sharing) rules. |
| Reference | : Link ¶ |
⚶ Changes
{
"#id": "Service_SetProperties",
"$parameters": [
{
"#name": "timeout",
"Description": {
"new": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for File Service Operations.",
"old": "The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for File Service Operations."
}
}
]
}
⚼ Request
PUT:
/?restype=service&comp=properties
{
StorageServiceProperties:
{
,
HourMetrics:
{
,
Version:
string
,
Enabled:
boolean
,
IncludeAPIs:
boolean
,
RetentionPolicy:
}
{
,
Enabled:
boolean
,
Days:
integer
,
}
MinuteMetrics:
{
,
Version:
string
,
Enabled:
boolean
,
IncludeAPIs:
boolean
,
RetentionPolicy:
}
{
,
Enabled:
boolean
,
Days:
integer
,
}
Cors:
[
]
,
{
,
AllowedOrigins:
string
,
AllowedMethods:
string
,
AllowedHeaders:
string
,
ExposedHeaders:
string
,
MaxAgeInSeconds:
integer
,
}
Protocol:
}
{
,
Smb:
}
{
,
Multichannel:
}
{
,
Enabled:
boolean
,
}
timeout:
integer
,
x-ms-version:
string
,
x-ms-file-request-intent:
string
,
}
⚐ Response (202)
{
x-ms-request-id:
string
,
x-ms-version:
string
,
}
⚐ Response (default)
{
$headers:
{
,
x-ms-error-code:
string
,
}
$schema:
}
{
,
Message:
string
,
AuthenticationErrorDetail:
string
,
}