Esempio n. 1
0
        public void DescribeUHostInstanceSnapshotTest()
        {
            var entity   = new DescribeUHostInstanceSnapshotRequest(Config.region, Config.UhostId);
            var response = uhost.DescribeUHostInstanceSnapshot(entity);

            Assert.AreEqual(response.RetCode, 0);
        }
Esempio n. 2
0
        /// <summary>
        /// 获取已经存在的UHost实例的存储快照列表。
        /// </summary>
        /// <param name="requestParams">请求参数.</param>
        /// <returns>返回对象<see cref="UCloudSDK.Models.DescribeUHostInstanceSnapshotResponse"/></returns>
        public DescribeUHostInstanceSnapshotResponse DescribeUHostInstanceSnapshot(
            DescribeUHostInstanceSnapshotRequest requestParams)
        {
            var request = new RestRequest(Method.GET);

            request.AddUObject(requestParams);
            return(Execute <DescribeUHostInstanceSnapshotResponse>(request));
        }