public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonStorageGatewayConfig config = new AmazonStorageGatewayConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonStorageGatewayClient client = new AmazonStorageGatewayClient(creds, config); DescribeTapeArchivesResponse resp = new DescribeTapeArchivesResponse(); do { DescribeTapeArchivesRequest req = new DescribeTapeArchivesRequest { Marker = resp.Marker , Limit = maxItems }; resp = client.DescribeTapeArchives(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.TapeArchives) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.Marker)); }
public void StorageGatewayDescribeTapeArchives() { #region to-describe-virtual-tapes-in-the-vts-1471473188198 var client = new AmazonStorageGatewayClient(); var response = client.DescribeTapeArchives(new DescribeTapeArchivesRequest { Limit = 123, Marker = "1", TapeARNs = new List <string> { "arn:aws:storagegateway:us-east-1:999999999999:tape/AM08A1AD", "arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4" } }); string marker = response.Marker; List <TapeArchive> tapeArchives = response.TapeArchives; #endregion }