public void TestDescribeDisk() { DiskClient diskClient = GetDiskClient(); DescribeDiskRequest request = new DescribeDiskRequest(); request.RegionId = "cn-north-1"; request.DiskId = "vol-bwxyeo32bv"; var result = diskClient.DescribeDisk(request).Result; _output.WriteLine(JsonConvert.SerializeObject(result)); }
/// <summary> /// 查询某一块云硬盘的信息详情 /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public async Task <DescribeDiskResponse> DescribeDisk(DescribeDiskRequest request) { return(await new DescribeDiskExecutor().Client(this).Execute <DescribeDiskResponse, DescribeDiskResult, DescribeDiskRequest>(request).ConfigureAwait(false)); }
/// <summary> /// 查询某一块云硬盘的信息详情 /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public DescribeDiskResponse DescribeDisk(DescribeDiskRequest request) { return(new DescribeDiskExecutor().Client(this).Execute <DescribeDiskResponse, DescribeDiskResult, DescribeDiskRequest>(request)); }