CloudServicesOperations Class
CloudServicesOperations operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectCloudServicesOperations
Constructor
CloudServicesOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
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.
begin_create_or_update(resource_group_name: str, cloud_service_name: str, parameters: Optional[_models.CloudService] = None, **kwargs: Any) -> LROPoller[_models.CloudService]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or PollingMethod
By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either CloudService or the result of cls(response)
Return type
Exceptions
begin_delete
Deletes a cloud service.
begin_delete(resource_group_name: str, cloud_service_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or PollingMethod
By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_delete_instances
Deletes role instances in a cloud service.
begin_delete_instances(resource_group_name: str, cloud_service_name: str, parameters: Optional[_models.RoleInstances] = None, **kwargs: Any) -> LROPoller[None]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or PollingMethod
By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_power_off
Power off the cloud service. Note that resources are still attached and you are getting charged for the resources.
begin_power_off(resource_group_name: str, cloud_service_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or PollingMethod
By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either None or the result of cls(response)
Return type
Exceptions
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_rebuild(resource_group_name: str, cloud_service_name: str, parameters: Optional[_models.RoleInstances] = None, **kwargs: Any) -> LROPoller[None]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or PollingMethod
By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_reimage
Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles.
begin_reimage(resource_group_name: str, cloud_service_name: str, parameters: Optional[_models.RoleInstances] = None, **kwargs: Any) -> LROPoller[None]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or PollingMethod
By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_restart
Restarts one or more role instances in a cloud service.
begin_restart(resource_group_name: str, cloud_service_name: str, parameters: Optional[_models.RoleInstances] = None, **kwargs: Any) -> LROPoller[None]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or PollingMethod
By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_start
Starts the cloud service.
begin_start(resource_group_name: str, cloud_service_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or PollingMethod
By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_update
Update a cloud service.
begin_update(resource_group_name: str, cloud_service_name: str, parameters: Optional[_models.CloudServiceUpdate] = None, **kwargs: Any) -> LROPoller[_models.CloudService]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or PollingMethod
By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either CloudService or the result of cls(response)
Return type
Exceptions
get
Display information about a cloud service.
get(resource_group_name: str, cloud_service_name: str, **kwargs: Any) -> _models.CloudService
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
CloudService, or the result of cls(response)
Return type
Exceptions
get_instance_view
Gets the status of a cloud service.
get_instance_view(resource_group_name: str, cloud_service_name: str, **kwargs: Any) -> _models.CloudServiceInstanceView
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
CloudServiceInstanceView, or the result of cls(response)
Return type
Exceptions
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) -> Iterable[_models.CloudServiceListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either CloudServiceListResult or the result of cls(response)
Return type
Exceptions
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) -> Iterable[_models.CloudServiceListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either CloudServiceListResult or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.compute.v2021_03_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2021_03_01\\models\\__init__.py'>
Feedback
Submit and view feedback for