def DescribeDomains(self, request): """本接口(DescribeDomains)用于查询CDN域名基本信息,包括项目id,状态,业务类型,创建时间,更新时间等。 >? 若您的业务已迁移至 CDN 控制台,请参考<a href="https://cloud.tencent.com/document/api/228/41118"> CDN 接口文档</a>,使用 CDN 相关API 进行操作。 :param request: Request instance for DescribeDomains. :type request: :class:`tencentcloud.ecdn.v20191012.models.DescribeDomainsRequest` :rtype: :class:`tencentcloud.ecdn.v20191012.models.DescribeDomainsResponse` """ try: params = request._serialize() headers = request.headers body = self.call("DescribeDomains", params, headers=headers) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeDomainsResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)
def DescribeDomains(self, request): """本接口(DescribeDomains)用于查询CDN域名基本信息,包括项目id,状态,业务类型,创建时间,更新时间等。 :param request: Request instance for DescribeDomains. :type request: :class:`tencentcloud.ecdn.v20191012.models.DescribeDomainsRequest` :rtype: :class:`tencentcloud.ecdn.v20191012.models.DescribeDomainsResponse` """ try: params = request._serialize() body = self.call("DescribeDomains", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeDomainsResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)
def DescribeDomains(self, request): """This API is used to query the basic information of a CDN domain name, including the project ID, status, business type, creation time, update time, etc. :param request: Request instance for DescribeDomains. :type request: :class:`tencentcloud.ecdn.v20191012.models.DescribeDomainsRequest` :rtype: :class:`tencentcloud.ecdn.v20191012.models.DescribeDomainsResponse` """ try: params = request._serialize() body = self.call("DescribeDomains", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeDomainsResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)