AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Implementation for accessing BackupGateway

Backup gateway

Backup gateway connects Backup to your hypervisor, so you can create, store, and restore backups of your virtual machines (VMs) anywhere, whether on-premises or in the VMware Cloud (VMC) on Amazon Web Services.

Add on-premises resources by connecting to a hypervisor through a gateway. Backup will automatically discover the resources in your hypervisor.

Use Backup to assign virtual or on-premises resources to a backup plan, or run on-demand backups. Once you have backed up your resources, you can view them and restore them like any resource supported by Backup.

To download the Amazon Web Services software to get started, navigate to the Backup console, choose Gateways, then choose Create gateway.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonServiceClient
    Amazon.BackupGateway.AmazonBackupGatewayClient

Namespace: Amazon.BackupGateway
Assembly: AWSSDK.BackupGateway.dll
Version: 3.x.y.z

Syntax

C#
public class AmazonBackupGatewayClient : AmazonServiceClient
         IAmazonBackupGateway, IAmazonService, IDisposable

The AmazonBackupGatewayClient type exposes the following members

Constructors

NameDescription
Public Method AmazonBackupGatewayClient()

Constructs AmazonBackupGatewayClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSProfileName" value="AWS Default"/>
    </appSettings>
</configuration>
             

Public Method AmazonBackupGatewayClient(RegionEndpoint)

Constructs AmazonBackupGatewayClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSProfileName" value="AWS Default"/>
    </appSettings>
</configuration>
             

Public Method AmazonBackupGatewayClient(AmazonBackupGatewayConfig)

Constructs AmazonBackupGatewayClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSProfileName" value="AWS Default"/>
    </appSettings>
</configuration>
             

Public Method AmazonBackupGatewayClient(AWSCredentials)

Constructs AmazonBackupGatewayClient with AWS Credentials

Public Method AmazonBackupGatewayClient(AWSCredentials, RegionEndpoint)

Constructs AmazonBackupGatewayClient with AWS Credentials

Public Method AmazonBackupGatewayClient(AWSCredentials, AmazonBackupGatewayConfig)

Constructs AmazonBackupGatewayClient with AWS Credentials and an AmazonBackupGatewayClient Configuration object.

Public Method AmazonBackupGatewayClient(string, string)

Constructs AmazonBackupGatewayClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonBackupGatewayClient(string, string, RegionEndpoint)

Constructs AmazonBackupGatewayClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonBackupGatewayClient(string, string, AmazonBackupGatewayConfig)

Constructs AmazonBackupGatewayClient with AWS Access Key ID, AWS Secret Key and an AmazonBackupGatewayClient Configuration object.

Public Method AmazonBackupGatewayClient(string, string, string)

Constructs AmazonBackupGatewayClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonBackupGatewayClient(string, string, string, RegionEndpoint)

Constructs AmazonBackupGatewayClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonBackupGatewayClient(string, string, string, AmazonBackupGatewayConfig)

Constructs AmazonBackupGatewayClient with AWS Access Key ID, AWS Secret Key and an AmazonBackupGatewayClient Configuration object.

Properties

NameTypeDescription
Public Property Config Amazon.Runtime.IClientConfig Inherited from Amazon.Runtime.AmazonServiceClient.
Public Property Paginators Amazon.BackupGateway.Model.IBackupGatewayPaginatorFactory

Paginators for the service

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

NameDescription
Public Method AssociateGatewayToServer(AssociateGatewayToServerRequest)

Associates a backup gateway with your server. After you complete the association process, you can back up and restore your VMs through the gateway.

Public Method AssociateGatewayToServerAsync(AssociateGatewayToServerRequest, CancellationToken)

Associates a backup gateway with your server. After you complete the association process, you can back up and restore your VMs through the gateway.

Public Method CreateGateway(CreateGatewayRequest)

Creates a backup gateway. After you create a gateway, you can associate it with a server using the AssociateGatewayToServer operation.

Public Method CreateGatewayAsync(CreateGatewayRequest, CancellationToken)

Creates a backup gateway. After you create a gateway, you can associate it with a server using the AssociateGatewayToServer operation.

Public Method DeleteGateway(DeleteGatewayRequest)

Deletes a backup gateway.

Public Method DeleteGatewayAsync(DeleteGatewayRequest, CancellationToken)

Deletes a backup gateway.

Public Method DeleteHypervisor(DeleteHypervisorRequest)

Deletes a hypervisor.

Public Method DeleteHypervisorAsync(DeleteHypervisorRequest, CancellationToken)

Deletes a hypervisor.

Public Method DetermineServiceOperationEndpoint(AmazonWebServiceRequest)

Returns the endpoint that will be used for a particular request.

Public Method DisassociateGatewayFromServer(DisassociateGatewayFromServerRequest)

Disassociates a backup gateway from the specified server. After the disassociation process finishes, the gateway can no longer access the virtual machines on the server.

Public Method DisassociateGatewayFromServerAsync(DisassociateGatewayFromServerRequest, CancellationToken)

Disassociates a backup gateway from the specified server. After the disassociation process finishes, the gateway can no longer access the virtual machines on the server.

Public Method Dispose() Inherited from Amazon.Runtime.AmazonServiceClient.
Public Method GetBandwidthRateLimitSchedule(GetBandwidthRateLimitScheduleRequest)

Retrieves the bandwidth rate limit schedule for a specified gateway. By default, gateways do not have bandwidth rate limit schedules, which means no bandwidth rate limiting is in effect. Use this to get a gateway's bandwidth rate limit schedule.

Public Method GetBandwidthRateLimitScheduleAsync(GetBandwidthRateLimitScheduleRequest, CancellationToken)

Retrieves the bandwidth rate limit schedule for a specified gateway. By default, gateways do not have bandwidth rate limit schedules, which means no bandwidth rate limiting is in effect. Use this to get a gateway's bandwidth rate limit schedule.

Public Method GetGateway(GetGatewayRequest)

By providing the ARN (Amazon Resource Name), this API returns the gateway.

Public Method GetGatewayAsync(GetGatewayRequest, CancellationToken)

By providing the ARN (Amazon Resource Name), this API returns the gateway.

Public Method GetHypervisor(GetHypervisorRequest)

This action requests information about the specified hypervisor to which the gateway will connect. A hypervisor is hardware, software, or firmware that creates and manages virtual machines, and allocates resources to them.

Public Method GetHypervisorAsync(GetHypervisorRequest, CancellationToken)

This action requests information about the specified hypervisor to which the gateway will connect. A hypervisor is hardware, software, or firmware that creates and manages virtual machines, and allocates resources to them.

Public Method GetHypervisorPropertyMappings(GetHypervisorPropertyMappingsRequest)

This action retrieves the property mappings for the specified hypervisor. A hypervisor property mapping displays the relationship of entity properties available from the on-premises hypervisor to the properties available in Amazon Web Services.

Public Method GetHypervisorPropertyMappingsAsync(GetHypervisorPropertyMappingsRequest, CancellationToken)

This action retrieves the property mappings for the specified hypervisor. A hypervisor property mapping displays the relationship of entity properties available from the on-premises hypervisor to the properties available in Amazon Web Services.

Public Method GetVirtualMachine(GetVirtualMachineRequest)

By providing the ARN (Amazon Resource Name), this API returns the virtual machine.

Public Method GetVirtualMachineAsync(GetVirtualMachineRequest, CancellationToken)

By providing the ARN (Amazon Resource Name), this API returns the virtual machine.

Public Method ImportHypervisorConfiguration(ImportHypervisorConfigurationRequest)

Connect to a hypervisor by importing its configuration.

Public Method ImportHypervisorConfigurationAsync(ImportHypervisorConfigurationRequest, CancellationToken)

Connect to a hypervisor by importing its configuration.

Public Method ListGateways(ListGatewaysRequest)

Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services Region. The returned list is ordered by gateway Amazon Resource Name (ARN).

Public Method ListGatewaysAsync(ListGatewaysRequest, CancellationToken)

Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services Region. The returned list is ordered by gateway Amazon Resource Name (ARN).

Public Method ListHypervisors(ListHypervisorsRequest)

Lists your hypervisors.

Public Method ListHypervisorsAsync(ListHypervisorsRequest, CancellationToken)

Lists your hypervisors.

Public Method ListTagsForResource(ListTagsForResourceRequest)

Lists the tags applied to the resource identified by its Amazon Resource Name (ARN).

Public Method ListTagsForResourceAsync(ListTagsForResourceRequest, CancellationToken)

Lists the tags applied to the resource identified by its Amazon Resource Name (ARN).

Public Method ListVirtualMachines(ListVirtualMachinesRequest)

Lists your virtual machines.

Public Method ListVirtualMachinesAsync(ListVirtualMachinesRequest, CancellationToken)

Lists your virtual machines.

Public Method PutBandwidthRateLimitSchedule(PutBandwidthRateLimitScheduleRequest)

This action sets the bandwidth rate limit schedule for a specified gateway. By default, gateways do not have a bandwidth rate limit schedule, which means no bandwidth rate limiting is in effect. Use this to initiate a gateway's bandwidth rate limit schedule.

Public Method PutBandwidthRateLimitScheduleAsync(PutBandwidthRateLimitScheduleRequest, CancellationToken)

This action sets the bandwidth rate limit schedule for a specified gateway. By default, gateways do not have a bandwidth rate limit schedule, which means no bandwidth rate limiting is in effect. Use this to initiate a gateway's bandwidth rate limit schedule.

Public Method PutHypervisorPropertyMappings(PutHypervisorPropertyMappingsRequest)

This action sets the property mappings for the specified hypervisor. A hypervisor property mapping displays the relationship of entity properties available from the on-premises hypervisor to the properties available in Amazon Web Services.

Public Method PutHypervisorPropertyMappingsAsync(PutHypervisorPropertyMappingsRequest, CancellationToken)

This action sets the property mappings for the specified hypervisor. A hypervisor property mapping displays the relationship of entity properties available from the on-premises hypervisor to the properties available in Amazon Web Services.

Public Method PutMaintenanceStartTime(PutMaintenanceStartTimeRequest)

Set the maintenance start time for a gateway.

Public Method PutMaintenanceStartTimeAsync(PutMaintenanceStartTimeRequest, CancellationToken)

Set the maintenance start time for a gateway.

Public Method StartVirtualMachinesMetadataSync(StartVirtualMachinesMetadataSyncRequest)

This action sends a request to sync metadata across the specified virtual machines.

Public Method StartVirtualMachinesMetadataSyncAsync(StartVirtualMachinesMetadataSyncRequest, CancellationToken)

This action sends a request to sync metadata across the specified virtual machines.

Public Method TagResource(TagResourceRequest)

Tag the resource.

Public Method TagResourceAsync(TagResourceRequest, CancellationToken)

Tag the resource.

Public Method TestHypervisorConfiguration(TestHypervisorConfigurationRequest)

Tests your hypervisor configuration to validate that backup gateway can connect with the hypervisor and its resources.

Public Method TestHypervisorConfigurationAsync(TestHypervisorConfigurationRequest, CancellationToken)

Tests your hypervisor configuration to validate that backup gateway can connect with the hypervisor and its resources.

Public Method UntagResource(UntagResourceRequest)

Removes tags from the resource.

Public Method UntagResourceAsync(UntagResourceRequest, CancellationToken)

Removes tags from the resource.

Public Method UpdateGatewayInformation(UpdateGatewayInformationRequest)

Updates a gateway's name. Specify which gateway to update using the Amazon Resource Name (ARN) of the gateway in your request.

Public Method UpdateGatewayInformationAsync(UpdateGatewayInformationRequest, CancellationToken)

Updates a gateway's name. Specify which gateway to update using the Amazon Resource Name (ARN) of the gateway in your request.

Public Method UpdateGatewaySoftwareNow(UpdateGatewaySoftwareNowRequest)

Updates the gateway virtual machine (VM) software. The request immediately triggers the software update.

When you make this request, you get a 200 OK success response immediately. However, it might take some time for the update to complete.

Public Method UpdateGatewaySoftwareNowAsync(UpdateGatewaySoftwareNowRequest, CancellationToken)

Updates the gateway virtual machine (VM) software. The request immediately triggers the software update.

When you make this request, you get a 200 OK success response immediately. However, it might take some time for the update to complete.

Public Method UpdateHypervisor(UpdateHypervisorRequest)

Updates a hypervisor metadata, including its host, username, and password. Specify which hypervisor to update using the Amazon Resource Name (ARN) of the hypervisor in your request.

Public Method UpdateHypervisorAsync(UpdateHypervisorRequest, CancellationToken)

Updates a hypervisor metadata, including its host, username, and password. Specify which hypervisor to update using the Amazon Resource Name (ARN) of the hypervisor in your request.

Events

NameDescription
Event AfterResponseEvent Inherited from Amazon.Runtime.AmazonServiceClient.
Event BeforeRequestEvent Inherited from Amazon.Runtime.AmazonServiceClient.
Event ExceptionEvent Inherited from Amazon.Runtime.AmazonServiceClient.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5