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
6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 | |