CloudServicesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:cloud_services> attribute.
- Inheritance
-
builtins.objectCloudServicesOperations
Constructor
CloudServicesOperations(*args, **kwargs)
Methods
begin_create_or_update |
Create or update a cloud service. Please note some properties can be set only during cloud service creation. |
begin_delete |
Deletes a cloud service. |
begin_delete_instances |
Deletes role instances in a cloud service. |
begin_power_off |
Power off the cloud service. Note that resources are still attached and you are getting charged for the resources. |
begin_rebuild |
Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances. |
begin_reimage |
Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. |
begin_restart |
Restarts one or more role instances in a cloud service. |
begin_start |
Starts the cloud service. |
begin_update |
Update a cloud service. |
get |
Display information about a cloud service. |
get_instance_view |
Gets the status of a cloud service. |
list |
Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services. |
list_all |
Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services. |
begin_create_or_update
Create or update a cloud service. Please note some properties can be set only during cloud service creation.
async begin_create_or_update(resource_group_name: str, cloud_service_name: str, parameters: _models.CloudService | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.CloudService]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the resource group. Required. |
cloud_service_name
Required
|
Name of the cloud service. Required. |
parameters
Required
|
The cloud service object. Is either a CloudService type or a IO[bytes] type. Default value is None. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either CloudService or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Deletes a cloud service.
async begin_delete(resource_group_name: str, cloud_service_name: str, **kwargs: Any) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the resource group. Required. |
cloud_service_name
Required
|
Name of the cloud service. Required. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete_instances
Deletes role instances in a cloud service.
async begin_delete_instances(resource_group_name: str, cloud_service_name: str, parameters: _models.RoleInstances | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the resource group. Required. |
cloud_service_name
Required
|
Name of the cloud service. Required. |
parameters
Required
|
List of cloud service role instance names. Is either a RoleInstances type or a IO[bytes] type. Default value is None. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_power_off
Power off the cloud service. Note that resources are still attached and you are getting charged for the resources.
async begin_power_off(resource_group_name: str, cloud_service_name: str, **kwargs: Any) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the resource group. Required. |
cloud_service_name
Required
|
Name of the cloud service. Required. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_rebuild
Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances.
async begin_rebuild(resource_group_name: str, cloud_service_name: str, parameters: _models.RoleInstances | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the resource group. Required. |
cloud_service_name
Required
|
Name of the cloud service. Required. |
parameters
Required
|
List of cloud service role instance names. Is either a RoleInstances type or a IO[bytes] type. Default value is None. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_reimage
Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
async begin_reimage(resource_group_name: str, cloud_service_name: str, parameters: _models.RoleInstances | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the resource group. Required. |
cloud_service_name
Required
|
Name of the cloud service. Required. |
parameters
Required
|
List of cloud service role instance names. Is either a RoleInstances type or a IO[bytes] type. Default value is None. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_restart
Restarts one or more role instances in a cloud service.
async begin_restart(resource_group_name: str, cloud_service_name: str, parameters: _models.RoleInstances | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the resource group. Required. |
cloud_service_name
Required
|
Name of the cloud service. Required. |
parameters
Required
|
List of cloud service role instance names. Is either a RoleInstances type or a IO[bytes] type. Default value is None. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_start
Starts the cloud service.
async begin_start(resource_group_name: str, cloud_service_name: str, **kwargs: Any) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the resource group. Required. |
cloud_service_name
Required
|
Name of the cloud service. Required. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_update
Update a cloud service.
async begin_update(resource_group_name: str, cloud_service_name: str, parameters: _models.CloudServiceUpdate | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.CloudService]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the resource group. Required. |
cloud_service_name
Required
|
Name of the cloud service. Required. |
parameters
Required
|
The cloud service object. Is either a CloudServiceUpdate type or a IO[bytes] type. Default value is None. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either CloudService or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Display information about a cloud service.
async get(resource_group_name: str, cloud_service_name: str, **kwargs: Any) -> CloudService
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the resource group. Required. |
cloud_service_name
Required
|
Name of the cloud service. Required. |
Returns
Type | Description |
---|---|
CloudService or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get_instance_view
Gets the status of a cloud service.
async get_instance_view(resource_group_name: str, cloud_service_name: str, **kwargs: Any) -> CloudServiceInstanceView
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the resource group. Required. |
cloud_service_name
Required
|
Name of the cloud service. Required. |
Returns
Type | Description |
---|---|
CloudServiceInstanceView or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.
list(resource_group_name: str, **kwargs: Any) -> AsyncIterable[CloudService]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the resource group. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either CloudService or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_all
Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.
list_all(**kwargs: Any) -> AsyncIterable[CloudService]
Returns
Type | Description |
---|---|
An iterator like instance of either CloudService or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.compute.v2021_03_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2021_03_01\\models\\__init__.py'>
Azure SDK for Python