def StopEcdnDomain(self, request): """本接口(StopCdnDomain)用于停止加速域名,待停用加速域名必须处于已上线或部署中状态。 >? 若您的业务已迁移至 CDN 控制台,请参考<a href="https://cloud.tencent.com/document/product/228/41120"> CDN 接口文档</a>,使用 CDN 相关API 进行操作。 :param request: Request instance for StopEcdnDomain. :type request: :class:`tencentcloud.ecdn.v20191012.models.StopEcdnDomainRequest` :rtype: :class:`tencentcloud.ecdn.v20191012.models.StopEcdnDomainResponse` """ try: params = request._serialize() headers = request.headers body = self.call("StopEcdnDomain", params, headers=headers) response = json.loads(body) if "Error" not in response["Response"]: model = models.StopEcdnDomainResponse() 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 StopEcdnDomain(self, request): """本接口(StopCdnDomain)用于停止加速域名,待停用加速域名必须处于已上线或部署中状态。 :param request: Request instance for StopEcdnDomain. :type request: :class:`tencentcloud.ecdn.v20191012.models.StopEcdnDomainRequest` :rtype: :class:`tencentcloud.ecdn.v20191012.models.StopEcdnDomainResponse` """ try: params = request._serialize() body = self.call("StopEcdnDomain", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.StopEcdnDomainResponse() 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 StopEcdnDomain(self, request): """This API is used to disable an acceleration domain name. The domain name to be disabled must be in enabled or deploying status. :param request: Request instance for StopEcdnDomain. :type request: :class:`tencentcloud.ecdn.v20191012.models.StopEcdnDomainRequest` :rtype: :class:`tencentcloud.ecdn.v20191012.models.StopEcdnDomainResponse` """ try: params = request._serialize() body = self.call("StopEcdnDomain", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.StopEcdnDomainResponse() 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)