Amazon.OpsWorksCM.AmazonOpsWorksCMClient.RestoreServer C# (CSharp) 메소드

RestoreServer() 공개 메소드

Restores a backup to a server that is in a RUNNING, FAILED, or HEALTHY state. When you run RestoreServer, the server's EC2 instance is deleted, and a new EC2 instance is configured. RestoreServer maintains the existing server endpoint, so configuration management of all of the server's client devices should continue to work.

This operation is asynchronous.

A InvalidStateException is thrown when the server is not in a valid state. A ResourceNotFoundException is thrown when the server does not exist. A ValidationException is raised when parameters of the request are invalid.

/// The resource is in a state that does not allow you to perform a specified action. /// /// The requested resource does not exist, or access was denied. /// /// One or more of the provided request parameters are not valid. ///
public RestoreServer ( RestoreServerRequest request ) : RestoreServerResponse
request Amazon.OpsWorksCM.Model.RestoreServerRequest Container for the necessary parameters to execute the RestoreServer service method.
리턴 RestoreServerResponse
        public RestoreServerResponse RestoreServer(RestoreServerRequest request)
        {
            var marshaller = new RestoreServerRequestMarshaller();
            var unmarshaller = RestoreServerResponseUnmarshaller.Instance;

            return Invoke<RestoreServerRequest,RestoreServerResponse>(request, marshaller, unmarshaller);
        }