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.

This is the response object from the ListGateways operation.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.StorageGateway.Model.ListGatewaysResponse

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

Syntax

C#
public class ListGatewaysResponse : AmazonWebServiceResponse

The ListGatewaysResponse type exposes the following members

Constructors

NameDescription
Public Method ListGatewaysResponse()

Properties

NameTypeDescription
Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property Gateways System.Collections.Generic.List<Amazon.StorageGateway.Model.GatewayInfo>

Gets and sets the property Gateways.

An array of GatewayInfo objects.

Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property Marker System.String

Gets and sets the property Marker.

Use the marker in your next request to fetch the next set of gateways in the list. If there are no more gateways to list, this field does not appear in the response.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.

Examples

Lists gateways owned by an AWS account in a specified region as requested. Results are sorted by gateway ARN up to a maximum of 100 gateways.

To lists region specific gateways per AWS account


var client = new AmazonStorageGatewayClient();
var response = client.ListGateways(new ListGatewaysRequest 
{
    Limit = 2,
    Marker = "1"
});

List<GatewayInfo> gateways = response.Gateways;
string marker = response.Marker;

            

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