MoveInstanceAsync

Moves an instance to a different parent VAR instance. Must be executed from the root instance. Returns (Task)Exception Type: FailedOutcomeExceptionThrown when move fails (e.g., NotInRootInstance, CannotMoveInstanceToItself, CannotMoveInstanceToNonVarInstance)

Transfer a designated instance to the desgnated location/Instance.

Name Description
source The source instance to move
newParentInstance The new parent VAR instance to move it to

Move Instance Async

Example in C#

// Returns: nothing
await client.MoveInstanceAsync(InstanceInfo source, InstanceInfo newParentInstance);

Example in CURL



           curl -X POST \
               https://api.us.acresecurity.cloud/api/management/moveinstance \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.MoveInstanceRequest, Feenics.Keep.WebApi.Model",
                       "SourceInstanceKey":"INSTANCETOMOVE.KEY",
                       "ToInstanceKey":"NEWPARENTINSTANCE.KEY"
                   }'