change_server_life_cycle_state
¶
change_server_life_cycle_state(
source_server_id: SourceServerID,
life_cycle: ChangeServerLifeCycleStateSourceServerLifecycle,
*,
config_overrides: Optional[mgnClientConfig] = 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/mgn.py
5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 | |