BlobServicesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:blob_services> attribute.
- Inheritance
-
builtins.objectBlobServicesOperations
Constructor
BlobServicesOperations(*args, **kwargs)
Methods
get_service_properties |
Gets the properties of a storage account's Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. |
list |
List blob services of storage account. It returns a collection of one object named default. |
set_service_properties |
Sets the properties of a storage account's Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. |
get_service_properties
Gets the properties of a storage account's Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.
get_service_properties(resource_group_name: str, account_name: str, **kwargs: Any) -> BlobServiceProperties
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. |
Keyword-Only Parameters
Name | Description |
---|---|
blob_services_name
|
The name of the blob Service within the specified storage account. Blob Service Name must be 'default'. Default value is "default". Note that overriding this default value may result in unsupported behavior. |
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
BlobServiceProperties or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
List blob services of storage account. It returns a collection of one object named default.
list(resource_group_name: str, account_name: str, **kwargs: Any) -> Iterable[BlobServiceProperties]
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. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
An iterator like instance of either BlobServiceProperties or the result of cls(response) |
Exceptions
Type | Description |
---|---|
set_service_properties
Sets the properties of a storage account's Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.
set_service_properties(resource_group_name: str, account_name: str, parameters: _models.BlobServiceProperties, *, content_type: str = 'application/json', **kwargs: Any) -> _models.BlobServiceProperties
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 a storage account's Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. Is either a BlobServiceProperties type or a IO type. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
blob_services_name
|
The name of the blob Service within the specified storage account. Blob Service Name must be 'default'. Default value is "default". Note that overriding this default value may result in unsupported behavior. |
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
BlobServiceProperties or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.storage.v2021_06_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\storage\\v2021_06_01\\models\\__init__.py'>
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for