public static List<GlacierJobDescription> listJobs(FolderVaultMapping mapping) { using (AmazonGlacierClient client = new AmazonGlacierClient(mapping.AccessKey, mapping.SecretKey, mapping.Endpoint)) { ListJobsRequest req = new ListJobsRequest(); req.AccountId = "-"; req.Completed = false; req.VaultName = mapping.VaultName; return client.ListJobs(req).ListJobsResult.JobList; } }
private static List<GlacierJobDescription> ListInventory(string vaultName) { using (IAmazonGlacier client = new AmazonGlacierClient(RegionEndpoint.EUWest1)) { ListJobsRequest request = new ListJobsRequest() { VaultName = vaultName }; ListJobsResponse response = client.ListJobs(request); return response.JobList; } }
public ListJobsResult ListJobs() { AmazonGlacierClient client = new AmazonGlacierClient(awsCredentials, glacierConfig); ListJobsRequest request = new ListJobsRequest().WithVaultName(vaultName); ListJobsResponse response = client.ListJobs(request); System.Console.WriteLine(response.ListJobsResult.JobList.Count); return response.ListJobsResult; }