public static DescribeJobResult describeJob(FolderVaultMapping mapping, string jobId) { using (AmazonGlacierClient client = new AmazonGlacierClient(mapping.AccessKey, mapping.SecretKey, mapping.Endpoint)) { DescribeJobRequest req = new DescribeJobRequest(); req.AccountId = "-"; req.JobId = jobId; req.VaultName = mapping.VaultName; return client.DescribeJob(req).DescribeJobResult; } }
private static bool IsInventoryReady(string jobId, string vaultName) { using (IAmazonGlacier client = new AmazonGlacierClient(RegionEndpoint.EUWest1)) { DescribeJobRequest request = new DescribeJobRequest() { JobId = jobId, VaultName = vaultName }; DescribeJobResponse response = client.DescribeJob(request); return response.Completed; } }