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
6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 | |