change_server_life_cycle_state
async
¶
change_server_life_cycle_state(
source_server_id: SourceServerID,
life_cycle: ChangeServerLifeCycleStateSourceServerLifecycle,
*,
config_overrides: Optional[AsyncmgnClientConfig] = None,
account_id: Optional[AccountID] = None,
) -> SourceServer
Allows the user to set the SourceServer.LifeCycle.state property for specific Source Server IDs to one of the following: READY_FOR_TEST or READY_FOR_CUTOVER. This command only works if the Source Server is already launchable (dataReplicationInfo.lagDuration is not null.)
Parameters:
-
source_server_id(SourceServerID) –The request to change the source server migration lifecycle state by source server ID.
-
life_cycle(ChangeServerLifeCycleStateSourceServerLifecycle) –The request to change the source server migration lifecycle state.
-
account_id(Optional[AccountID], default:None) –The request to change the source server migration account ID.
Raises:
-
ConflictException–The request could not be completed due to a conflict with the current state of the target resource.
-
ResourceNotFoundException–Resource not found exception.
-
UninitializedAccountException–Uninitialized account exception.
-
ValidationException–Validate exception.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mgn/_services/async_mgn.py
5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 | |