你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
FileServicesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:file_services> attribute.
- Inheritance
-
builtins.objectFileServicesOperations
Constructor
FileServicesOperations(*args, **kwargs)
Methods
get_service_properties |
Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. |
list |
List all file services in storage accounts. |
set_service_properties |
Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. |
get_service_properties
Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules.
async get_service_properties(resource_group_name: str, account_name: str, **kwargs: Any) -> FileServiceProperties
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the user's subscription. The name is case insensitive. Required. |
account_name
Required
|
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. Required. |
Returns
Type | Description |
---|---|
FileServiceProperties or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
List all file services in storage accounts.
async list(resource_group_name: str, account_name: str, **kwargs: Any) -> FileServiceItems
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the user's subscription. The name is case insensitive. Required. |
account_name
Required
|
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. Required. |
Returns
Type | Description |
---|---|
FileServiceItems or the result of cls(response) |
Exceptions
Type | Description |
---|---|
set_service_properties
Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules.
async set_service_properties(resource_group_name: str, account_name: str, parameters: _models.FileServiceProperties, *, content_type: str = 'application/json', **kwargs: Any) -> _models.FileServiceProperties
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the user's subscription. The name is case insensitive. Required. |
account_name
Required
|
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. Required. |
parameters
Required
|
The properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. Is either a FileServiceProperties type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
FileServiceProperties or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.storage.v2023_05_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\storage\\v2023_05_01\\models\\__init__.py'>