Amazon.OpsWorksCM.AmazonOpsWorksCMClient.CreateBackup C# (CSharp) Méthode

CreateBackup() public méthode

Creates an application-level backup of a server. While the server is BACKING_UP, the server can not be modified and no additional backup can be created.

Backups can be created for RUNNING, HEALTHY and UNHEALTHY servers.

This operation is asnychronous.

By default 50 manual backups can be created.

A LimitExceededException is thrown then the maximum number of manual backup is reached. A InvalidStateException is thrown when the server is not in any of RUNNING, HEALTHY, UNHEALTHY. A ResourceNotFoundException is thrown when the server is not found. A ValidationException is thrown when parameters of the request are not valid.

/// The resource is in a state that does not allow you to perform a specified action. /// /// The limit of servers or backups has been reached. /// /// The requested resource does not exist, or access was denied. /// /// One or more of the provided request parameters are not valid. ///
public CreateBackup ( CreateBackupRequest request ) : CreateBackupResponse
request Amazon.OpsWorksCM.Model.CreateBackupRequest Container for the necessary parameters to execute the CreateBackup service method.
Résultat Amazon.OpsWorksCM.Model.CreateBackupResponse
        public CreateBackupResponse CreateBackup(CreateBackupRequest request)
        {
            var marshaller = new CreateBackupRequestMarshaller();
            var unmarshaller = CreateBackupResponseUnmarshaller.Instance;

            return Invoke<CreateBackupRequest,CreateBackupResponse>(request, marshaller, unmarshaller);
        }