@huaweicloud/huaweicloud-sdk-cdn 3.1.23
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +13 -0
- package/README.md +1 -0
- package/huaweicloud-sdk-cdn.d.ts +2 -0
- package/huaweicloud-sdk-cdn.js +18 -0
- package/package.json +19 -0
- package/v1/CdnClient.d.ts +1372 -0
- package/v1/CdnClient.js +3128 -0
- package/v1/CdnRegion.d.ts +7 -0
- package/v1/CdnRegion.js +29 -0
- package/v1/model/BatchDeleteTagsRequest.d.ts +6 -0
- package/v1/model/BatchDeleteTagsRequest.js +13 -0
- package/v1/model/BatchDeleteTagsResponse.d.ts +4 -0
- package/v1/model/BatchDeleteTagsResponse.js +27 -0
- package/v1/model/BlackWhiteListBody.d.ts +9 -0
- package/v1/model/BlackWhiteListBody.js +28 -0
- package/v1/model/CacheConfig.d.ts +17 -0
- package/v1/model/CacheConfig.js +45 -0
- package/v1/model/CacheConfigRequest.d.ts +17 -0
- package/v1/model/CacheConfigRequest.js +45 -0
- package/v1/model/CacheConfigRequestBody.d.ts +8 -0
- package/v1/model/CacheConfigRequestBody.js +24 -0
- package/v1/model/CacheUrlParameterFilter.d.ts +7 -0
- package/v1/model/CacheUrlParameterFilter.js +17 -0
- package/v1/model/CdnIps.d.ts +13 -0
- package/v1/model/CdnIps.js +29 -0
- package/v1/model/Compress.d.ts +7 -0
- package/v1/model/Compress.js +18 -0
- package/v1/model/CompressRequest.d.ts +7 -0
- package/v1/model/CompressRequest.js +23 -0
- package/v1/model/CompressResponse.d.ts +12 -0
- package/v1/model/CompressResponse.js +38 -0
- package/v1/model/CompressRules.d.ts +11 -0
- package/v1/model/CompressRules.js +37 -0
- package/v1/model/Configs.d.ts +69 -0
- package/v1/model/Configs.js +189 -0
- package/v1/model/ConfigsGetBody.d.ts +69 -0
- package/v1/model/ConfigsGetBody.js +189 -0
- package/v1/model/CreateDomainRequest.d.ts +6 -0
- package/v1/model/CreateDomainRequest.js +13 -0
- package/v1/model/CreateDomainRequestBody.d.ts +6 -0
- package/v1/model/CreateDomainRequestBody.js +14 -0
- package/v1/model/CreateDomainResponse.d.ts +7 -0
- package/v1/model/CreateDomainResponse.js +31 -0
- package/v1/model/CreateDomainResponseBodyContent.d.ts +67 -0
- package/v1/model/CreateDomainResponseBodyContent.js +211 -0
- package/v1/model/CreatePreheatingTasksRequest.d.ts +10 -0
- package/v1/model/CreatePreheatingTasksRequest.js +27 -0
- package/v1/model/CreatePreheatingTasksResponse.d.ts +8 -0
- package/v1/model/CreatePreheatingTasksResponse.js +41 -0
- package/v1/model/CreateRefreshTasksRequest.d.ts +10 -0
- package/v1/model/CreateRefreshTasksRequest.js +27 -0
- package/v1/model/CreateRefreshTasksResponse.d.ts +8 -0
- package/v1/model/CreateRefreshTasksResponse.js +41 -0
- package/v1/model/CreateTagsRequest.d.ts +6 -0
- package/v1/model/CreateTagsRequest.js +13 -0
- package/v1/model/CreateTagsRequestBody.d.ts +9 -0
- package/v1/model/CreateTagsRequestBody.js +29 -0
- package/v1/model/CreateTagsResponse.d.ts +4 -0
- package/v1/model/CreateTagsResponse.js +27 -0
- package/v1/model/DeleteDomainRequest.d.ts +11 -0
- package/v1/model/DeleteDomainRequest.js +38 -0
- package/v1/model/DeleteDomainResponse.d.ts +7 -0
- package/v1/model/DeleteDomainResponse.js +31 -0
- package/v1/model/DeleteTagsRequestBody.d.ts +9 -0
- package/v1/model/DeleteTagsRequestBody.js +29 -0
- package/v1/model/DisableDomainRequest.d.ts +11 -0
- package/v1/model/DisableDomainRequest.js +38 -0
- package/v1/model/DisableDomainResponse.d.ts +7 -0
- package/v1/model/DisableDomainResponse.js +31 -0
- package/v1/model/DomainBody.d.ts +41 -0
- package/v1/model/DomainBody.js +94 -0
- package/v1/model/DomainItemDetail.d.ts +21 -0
- package/v1/model/DomainItemDetail.js +55 -0
- package/v1/model/DomainItemLocationDetails.d.ts +18 -0
- package/v1/model/DomainItemLocationDetails.js +55 -0
- package/v1/model/DomainOriginHost.d.ts +15 -0
- package/v1/model/DomainOriginHost.js +52 -0
- package/v1/model/DomainRegion.d.ts +17 -0
- package/v1/model/DomainRegion.js +37 -0
- package/v1/model/Domains.d.ts +88 -0
- package/v1/model/Domains.js +263 -0
- package/v1/model/DomainsWithPort.d.ts +88 -0
- package/v1/model/DomainsWithPort.js +263 -0
- package/v1/model/EnableDomainRequest.d.ts +11 -0
- package/v1/model/EnableDomainRequest.js +38 -0
- package/v1/model/EnableDomainResponse.d.ts +7 -0
- package/v1/model/EnableDomainResponse.js +31 -0
- package/v1/model/ErrorCodeCache.d.ts +7 -0
- package/v1/model/ErrorCodeCache.js +17 -0
- package/v1/model/ErrorCodeRedirectRules.d.ts +15 -0
- package/v1/model/ErrorCodeRedirectRules.js +54 -0
- package/v1/model/Follow302StatusBody.d.ts +19 -0
- package/v1/model/Follow302StatusBody.js +46 -0
- package/v1/model/Follow302StatusRequest.d.ts +15 -0
- package/v1/model/Follow302StatusRequest.js +33 -0
- package/v1/model/ForceRedirect.d.ts +11 -0
- package/v1/model/ForceRedirect.js +38 -0
- package/v1/model/ForceRedirectConfig.d.ts +7 -0
- package/v1/model/ForceRedirectConfig.js +18 -0
- package/v1/model/HeaderBody.d.ts +6 -0
- package/v1/model/HeaderBody.js +13 -0
- package/v1/model/HeaderMap.d.ts +27 -0
- package/v1/model/HeaderMap.js +93 -0
- package/v1/model/HttpGetBody.d.ts +27 -0
- package/v1/model/HttpGetBody.js +93 -0
- package/v1/model/HttpInfoRequest.d.ts +6 -0
- package/v1/model/HttpInfoRequest.js +14 -0
- package/v1/model/HttpInfoRequestBody.d.ts +32 -0
- package/v1/model/HttpInfoRequestBody.js +103 -0
- package/v1/model/HttpInfoResponseBody.d.ts +36 -0
- package/v1/model/HttpInfoResponseBody.js +115 -0
- package/v1/model/HttpPutBody.d.ts +31 -0
- package/v1/model/HttpPutBody.js +107 -0
- package/v1/model/HttpResponseHeader.d.ts +9 -0
- package/v1/model/HttpResponseHeader.js +23 -0
- package/v1/model/HttpsDetail.d.ts +44 -0
- package/v1/model/HttpsDetail.js +143 -0
- package/v1/model/ListDomainsRequest.d.ts +63 -0
- package/v1/model/ListDomainsRequest.js +142 -0
- package/v1/model/ListDomainsResponse.d.ts +9 -0
- package/v1/model/ListDomainsResponse.js +35 -0
- package/v1/model/LogObject.d.ts +21 -0
- package/v1/model/LogObject.js +63 -0
- package/v1/model/ModelMap.d.ts +7 -0
- package/v1/model/ModelMap.js +18 -0
- package/v1/model/ModifyDomainConfigRequestBody.d.ts +6 -0
- package/v1/model/ModifyDomainConfigRequestBody.js +13 -0
- package/v1/model/OriginHostBody.d.ts +19 -0
- package/v1/model/OriginHostBody.js +47 -0
- package/v1/model/OriginHostRequest.d.ts +8 -0
- package/v1/model/OriginHostRequest.js +24 -0
- package/v1/model/OriginRangeBody.d.ts +19 -0
- package/v1/model/OriginRangeBody.js +46 -0
- package/v1/model/OriginRequest.d.ts +6 -0
- package/v1/model/OriginRequest.js +14 -0
- package/v1/model/OriginRequestHeader.d.ts +9 -0
- package/v1/model/OriginRequestHeader.js +23 -0
- package/v1/model/OriginRequestUrlRewrite.d.ts +17 -0
- package/v1/model/OriginRequestUrlRewrite.js +58 -0
- package/v1/model/PreheatingTaskRequest.d.ts +8 -0
- package/v1/model/PreheatingTaskRequest.js +24 -0
- package/v1/model/PreheatingTaskRequestBody.d.ts +5 -0
- package/v1/model/PreheatingTaskRequestBody.js +14 -0
- package/v1/model/Quotas.d.ts +15 -0
- package/v1/model/Quotas.js +45 -0
- package/v1/model/RangeStatusRequest.d.ts +15 -0
- package/v1/model/RangeStatusRequest.js +33 -0
- package/v1/model/Referer.d.ts +15 -0
- package/v1/model/Referer.js +52 -0
- package/v1/model/RefererBody.d.ts +6 -0
- package/v1/model/RefererBody.js +14 -0
- package/v1/model/RefererRsp.d.ts +15 -0
- package/v1/model/RefererRsp.js +51 -0
- package/v1/model/RefreshTaskRequest.d.ts +8 -0
- package/v1/model/RefreshTaskRequest.js +24 -0
- package/v1/model/RefreshTaskRequestBody.d.ts +15 -0
- package/v1/model/RefreshTaskRequestBody.js +27 -0
- package/v1/model/ResourceBody.d.ts +6 -0
- package/v1/model/ResourceBody.js +14 -0
- package/v1/model/Rules.d.ts +17 -0
- package/v1/model/Rules.js +53 -0
- package/v1/model/ShowBlackWhiteListRequest.d.ts +11 -0
- package/v1/model/ShowBlackWhiteListRequest.js +38 -0
- package/v1/model/ShowBlackWhiteListResponse.d.ts +10 -0
- package/v1/model/ShowBlackWhiteListResponse.js +45 -0
- package/v1/model/ShowCacheRulesRequest.d.ts +11 -0
- package/v1/model/ShowCacheRulesRequest.js +38 -0
- package/v1/model/ShowCacheRulesResponse.d.ts +9 -0
- package/v1/model/ShowCacheRulesResponse.js +41 -0
- package/v1/model/ShowCertificatesHttpsInfoRequest.d.ts +23 -0
- package/v1/model/ShowCertificatesHttpsInfoRequest.js +79 -0
- package/v1/model/ShowCertificatesHttpsInfoResponse.d.ts +9 -0
- package/v1/model/ShowCertificatesHttpsInfoResponse.js +35 -0
- package/v1/model/ShowDomainDetailRequest.d.ts +11 -0
- package/v1/model/ShowDomainDetailRequest.js +38 -0
- package/v1/model/ShowDomainDetailResponse.d.ts +7 -0
- package/v1/model/ShowDomainDetailResponse.js +31 -0
- package/v1/model/ShowDomainFullConfigRequest.d.ts +11 -0
- package/v1/model/ShowDomainFullConfigRequest.js +38 -0
- package/v1/model/ShowDomainFullConfigResponse.d.ts +7 -0
- package/v1/model/ShowDomainFullConfigResponse.js +31 -0
- package/v1/model/ShowDomainItemDetailsRequest.d.ts +27 -0
- package/v1/model/ShowDomainItemDetailsRequest.js +97 -0
- package/v1/model/ShowDomainItemDetailsResponse.d.ts +9 -0
- package/v1/model/ShowDomainItemDetailsResponse.js +41 -0
- package/v1/model/ShowDomainItemLocationDetailsRequest.d.ts +27 -0
- package/v1/model/ShowDomainItemLocationDetailsRequest.js +93 -0
- package/v1/model/ShowDomainItemLocationDetailsResponse.d.ts +9 -0
- package/v1/model/ShowDomainItemLocationDetailsResponse.js +41 -0
- package/v1/model/ShowDomainLocationStatsRequest.d.ts +37 -0
- package/v1/model/ShowDomainLocationStatsRequest.js +118 -0
- package/v1/model/ShowDomainLocationStatsResponse.d.ts +14 -0
- package/v1/model/ShowDomainLocationStatsResponse.js +45 -0
- package/v1/model/ShowDomainStatsRequest.d.ts +35 -0
- package/v1/model/ShowDomainStatsRequest.js +120 -0
- package/v1/model/ShowDomainStatsResponse.d.ts +10 -0
- package/v1/model/ShowDomainStatsResponse.js +31 -0
- package/v1/model/ShowHistoryTaskDetailsRequest.d.ts +27 -0
- package/v1/model/ShowHistoryTaskDetailsRequest.js +88 -0
- package/v1/model/ShowHistoryTaskDetailsResponse.d.ts +31 -0
- package/v1/model/ShowHistoryTaskDetailsResponse.js +97 -0
- package/v1/model/ShowHistoryTasksRequest.d.ts +53 -0
- package/v1/model/ShowHistoryTasksRequest.js +143 -0
- package/v1/model/ShowHistoryTasksResponse.d.ts +9 -0
- package/v1/model/ShowHistoryTasksResponse.js +35 -0
- package/v1/model/ShowHttpInfoRequest.d.ts +11 -0
- package/v1/model/ShowHttpInfoRequest.js +38 -0
- package/v1/model/ShowHttpInfoResponse.d.ts +7 -0
- package/v1/model/ShowHttpInfoResponse.js +31 -0
- package/v1/model/ShowIpInfoRequest.d.ts +9 -0
- package/v1/model/ShowIpInfoRequest.js +28 -0
- package/v1/model/ShowIpInfoResponse.d.ts +9 -0
- package/v1/model/ShowIpInfoResponse.js +41 -0
- package/v1/model/ShowLogsRequest.d.ts +23 -0
- package/v1/model/ShowLogsRequest.js +81 -0
- package/v1/model/ShowLogsResponse.d.ts +9 -0
- package/v1/model/ShowLogsResponse.js +35 -0
- package/v1/model/ShowOriginHostRequest.d.ts +11 -0
- package/v1/model/ShowOriginHostRequest.js +38 -0
- package/v1/model/ShowOriginHostResponse.d.ts +9 -0
- package/v1/model/ShowOriginHostResponse.js +41 -0
- package/v1/model/ShowQuotaRequest.d.ts +3 -0
- package/v1/model/ShowQuotaRequest.js +9 -0
- package/v1/model/ShowQuotaResponse.d.ts +7 -0
- package/v1/model/ShowQuotaResponse.js +31 -0
- package/v1/model/ShowReferRequest.d.ts +11 -0
- package/v1/model/ShowReferRequest.js +38 -0
- package/v1/model/ShowReferResponse.d.ts +7 -0
- package/v1/model/ShowReferResponse.js +31 -0
- package/v1/model/ShowResponseHeaderRequest.d.ts +11 -0
- package/v1/model/ShowResponseHeaderRequest.js +38 -0
- package/v1/model/ShowResponseHeaderResponse.d.ts +7 -0
- package/v1/model/ShowResponseHeaderResponse.js +31 -0
- package/v1/model/ShowTagsRequest.d.ts +7 -0
- package/v1/model/ShowTagsRequest.js +24 -0
- package/v1/model/ShowTagsResponse.d.ts +6 -0
- package/v1/model/ShowTagsResponse.js +31 -0
- package/v1/model/ShowTopUrlRequest.d.ts +43 -0
- package/v1/model/ShowTopUrlRequest.js +115 -0
- package/v1/model/ShowTopUrlResponse.d.ts +13 -0
- package/v1/model/ShowTopUrlResponse.js +55 -0
- package/v1/model/ShowUrlTaskInfoRequest.d.ts +27 -0
- package/v1/model/ShowUrlTaskInfoRequest.js +81 -0
- package/v1/model/ShowUrlTaskInfoResponse.d.ts +15 -0
- package/v1/model/ShowUrlTaskInfoResponse.js +53 -0
- package/v1/model/SourceWithPort.d.ts +40 -0
- package/v1/model/SourceWithPort.js +120 -0
- package/v1/model/Sources.d.ts +32 -0
- package/v1/model/Sources.js +92 -0
- package/v1/model/SourcesConfig.d.ts +29 -0
- package/v1/model/SourcesConfig.js +100 -0
- package/v1/model/TasksObject.d.ts +43 -0
- package/v1/model/TasksObject.js +93 -0
- package/v1/model/TopUrlSummary.d.ts +19 -0
- package/v1/model/TopUrlSummary.js +59 -0
- package/v1/model/UpdateBlackWhiteListRequest.d.ts +14 -0
- package/v1/model/UpdateBlackWhiteListRequest.js +42 -0
- package/v1/model/UpdateBlackWhiteListResponse.d.ts +10 -0
- package/v1/model/UpdateBlackWhiteListResponse.js +39 -0
- package/v1/model/UpdateCacheRulesRequest.d.ts +14 -0
- package/v1/model/UpdateCacheRulesRequest.js +42 -0
- package/v1/model/UpdateCacheRulesResponse.d.ts +9 -0
- package/v1/model/UpdateCacheRulesResponse.js +41 -0
- package/v1/model/UpdateDomainFullConfigRequest.d.ts +14 -0
- package/v1/model/UpdateDomainFullConfigRequest.js +42 -0
- package/v1/model/UpdateDomainFullConfigResponse.d.ts +4 -0
- package/v1/model/UpdateDomainFullConfigResponse.js +27 -0
- package/v1/model/UpdateDomainMultiCertificatesRequest.d.ts +10 -0
- package/v1/model/UpdateDomainMultiCertificatesRequest.js +27 -0
- package/v1/model/UpdateDomainMultiCertificatesRequestBody.d.ts +6 -0
- package/v1/model/UpdateDomainMultiCertificatesRequestBody.js +13 -0
- package/v1/model/UpdateDomainMultiCertificatesRequestBodyContent.d.ts +40 -0
- package/v1/model/UpdateDomainMultiCertificatesRequestBodyContent.js +131 -0
- package/v1/model/UpdateDomainMultiCertificatesResponse.d.ts +7 -0
- package/v1/model/UpdateDomainMultiCertificatesResponse.js +31 -0
- package/v1/model/UpdateDomainMultiCertificatesResponseBodyContent.d.ts +40 -0
- package/v1/model/UpdateDomainMultiCertificatesResponseBodyContent.js +130 -0
- package/v1/model/UpdateDomainOriginRequest.d.ts +14 -0
- package/v1/model/UpdateDomainOriginRequest.js +42 -0
- package/v1/model/UpdateDomainOriginResponse.d.ts +7 -0
- package/v1/model/UpdateDomainOriginResponse.js +31 -0
- package/v1/model/UpdateFollow302SwitchRequest.d.ts +14 -0
- package/v1/model/UpdateFollow302SwitchRequest.js +42 -0
- package/v1/model/UpdateFollow302SwitchResponse.d.ts +9 -0
- package/v1/model/UpdateFollow302SwitchResponse.js +41 -0
- package/v1/model/UpdateHttpsInfoRequest.d.ts +14 -0
- package/v1/model/UpdateHttpsInfoRequest.js +42 -0
- package/v1/model/UpdateHttpsInfoResponse.d.ts +7 -0
- package/v1/model/UpdateHttpsInfoResponse.js +31 -0
- package/v1/model/UpdateOriginHostRequest.d.ts +14 -0
- package/v1/model/UpdateOriginHostRequest.js +42 -0
- package/v1/model/UpdateOriginHostResponse.d.ts +9 -0
- package/v1/model/UpdateOriginHostResponse.js +41 -0
- package/v1/model/UpdatePrivateBucketAccessBody.d.ts +5 -0
- package/v1/model/UpdatePrivateBucketAccessBody.js +13 -0
- package/v1/model/UpdatePrivateBucketAccessRequest.d.ts +14 -0
- package/v1/model/UpdatePrivateBucketAccessRequest.js +42 -0
- package/v1/model/UpdatePrivateBucketAccessResponse.d.ts +6 -0
- package/v1/model/UpdatePrivateBucketAccessResponse.js +31 -0
- package/v1/model/UpdateRangeSwitchRequest.d.ts +14 -0
- package/v1/model/UpdateRangeSwitchRequest.js +42 -0
- package/v1/model/UpdateRangeSwitchResponse.d.ts +9 -0
- package/v1/model/UpdateRangeSwitchResponse.js +41 -0
- package/v1/model/UpdateReferRequest.d.ts +14 -0
- package/v1/model/UpdateReferRequest.js +42 -0
- package/v1/model/UpdateReferResponse.d.ts +7 -0
- package/v1/model/UpdateReferResponse.js +31 -0
- package/v1/model/UpdateResponseHeaderRequest.d.ts +14 -0
- package/v1/model/UpdateResponseHeaderRequest.js +42 -0
- package/v1/model/UpdateResponseHeaderResponse.d.ts +7 -0
- package/v1/model/UpdateResponseHeaderResponse.js +31 -0
- package/v1/model/UrlAuth.d.ts +17 -0
- package/v1/model/UrlAuth.js +50 -0
- package/v1/model/UrlAuthGetBody.d.ts +15 -0
- package/v1/model/UrlAuthGetBody.js +46 -0
- package/v1/model/UrlObject.d.ts +21 -0
- package/v1/model/UrlObject.js +63 -0
- package/v1/model/Urls.d.ts +27 -0
- package/v1/model/Urls.js +81 -0
- package/v1/model/UserAgentFilter.d.ts +7 -0
- package/v1/model/UserAgentFilter.js +18 -0
- package/v1/public-api.d.ts +158 -0
- package/v1/public-api.js +174 -0
- package/v2/CdnClient.d.ts +532 -0
- package/v2/CdnClient.js +1196 -0
- package/v2/CdnRegion.d.ts +7 -0
- package/v2/CdnRegion.js +29 -0
- package/v2/model/BatchCopyConfigs.d.ts +15 -0
- package/v2/model/BatchCopyConfigs.js +54 -0
- package/v2/model/BatchCopyDRequestBody.d.ts +6 -0
- package/v2/model/BatchCopyDRequestBody.js +14 -0
- package/v2/model/BatchCopyDomainRequest.d.ts +6 -0
- package/v2/model/BatchCopyDomainRequest.js +13 -0
- package/v2/model/BatchCopyDomainResponse.d.ts +7 -0
- package/v2/model/BatchCopyDomainResponse.js +31 -0
- package/v2/model/BatchCopyErrorRsp.d.ts +6 -0
- package/v2/model/BatchCopyErrorRsp.js +13 -0
- package/v2/model/BatchCopyErrorRspError.d.ts +11 -0
- package/v2/model/BatchCopyErrorRspError.js +37 -0
- package/v2/model/BatchCopyResultVo.d.ts +19 -0
- package/v2/model/BatchCopyResultVo.js +42 -0
- package/v2/model/DownloadRegionCarrierExcelRequest.d.ts +35 -0
- package/v2/model/DownloadRegionCarrierExcelRequest.js +113 -0
- package/v2/model/DownloadRegionCarrierExcelResponse.d.ts +4 -0
- package/v2/model/DownloadRegionCarrierExcelResponse.js +27 -0
- package/v2/model/DownloadStatisticsExcelRequest.d.ts +33 -0
- package/v2/model/DownloadStatisticsExcelRequest.js +115 -0
- package/v2/model/DownloadStatisticsExcelResponse.d.ts +4 -0
- package/v2/model/DownloadStatisticsExcelResponse.js +27 -0
- package/v2/model/ErrMsg.d.ts +11 -0
- package/v2/model/ErrMsg.js +39 -0
- package/v2/model/ErrRsp.d.ts +6 -0
- package/v2/model/ErrRsp.js +14 -0
- package/v2/model/SetChargeModesBody.d.ts +15 -0
- package/v2/model/SetChargeModesBody.js +54 -0
- package/v2/model/SetChargeModesRequest.d.ts +6 -0
- package/v2/model/SetChargeModesRequest.js +13 -0
- package/v2/model/SetChargeModesResponse.d.ts +26 -0
- package/v2/model/SetChargeModesResponse.js +101 -0
- package/v2/model/ShowBandwidthCalcRequest.d.ts +27 -0
- package/v2/model/ShowBandwidthCalcRequest.js +97 -0
- package/v2/model/ShowBandwidthCalcResponse.d.ts +14 -0
- package/v2/model/ShowBandwidthCalcResponse.js +41 -0
- package/v2/model/ShowChargeModesRequest.d.ts +13 -0
- package/v2/model/ShowChargeModesRequest.js +42 -0
- package/v2/model/ShowChargeModesResponse.d.ts +10 -0
- package/v2/model/ShowChargeModesResponse.js +31 -0
- package/v2/model/ShowDomainLocationStatsRequest.d.ts +37 -0
- package/v2/model/ShowDomainLocationStatsRequest.js +118 -0
- package/v2/model/ShowDomainLocationStatsResponse.d.ts +14 -0
- package/v2/model/ShowDomainLocationStatsResponse.js +45 -0
- package/v2/model/ShowDomainStatsRequest.d.ts +35 -0
- package/v2/model/ShowDomainStatsRequest.js +120 -0
- package/v2/model/ShowDomainStatsResponse.d.ts +10 -0
- package/v2/model/ShowDomainStatsResponse.js +31 -0
- package/v2/model/ShowTopDomainNamesRequest.d.ts +25 -0
- package/v2/model/ShowTopDomainNamesRequest.js +86 -0
- package/v2/model/ShowTopDomainNamesResponse.d.ts +14 -0
- package/v2/model/ShowTopDomainNamesResponse.js +41 -0
- package/v2/model/ShowTopUrlRequest.d.ts +27 -0
- package/v2/model/ShowTopUrlRequest.js +97 -0
- package/v2/model/ShowTopUrlResponse.d.ts +13 -0
- package/v2/model/ShowTopUrlResponse.js +55 -0
- package/v2/model/TopUrlSummary.d.ts +19 -0
- package/v2/model/TopUrlSummary.js +59 -0
- package/v2/public-api.d.ts +31 -0
- package/v2/public-api.js +47 -0
package/v1/CdnClient.js
ADDED
@@ -0,0 +1,3128 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.RequiredError = exports.ParamCreater = exports.CdnClient = void 0;
|
19
|
+
var ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
|
20
|
+
var BatchDeleteTagsRequest_1 = require("./model/BatchDeleteTagsRequest");
|
21
|
+
var CreateDomainRequest_1 = require("./model/CreateDomainRequest");
|
22
|
+
var CreatePreheatingTasksRequest_1 = require("./model/CreatePreheatingTasksRequest");
|
23
|
+
var CreateRefreshTasksRequest_1 = require("./model/CreateRefreshTasksRequest");
|
24
|
+
var CreateTagsRequest_1 = require("./model/CreateTagsRequest");
|
25
|
+
var DeleteDomainRequest_1 = require("./model/DeleteDomainRequest");
|
26
|
+
var DisableDomainRequest_1 = require("./model/DisableDomainRequest");
|
27
|
+
var EnableDomainRequest_1 = require("./model/EnableDomainRequest");
|
28
|
+
var ListDomainsRequest_1 = require("./model/ListDomainsRequest");
|
29
|
+
var ShowBlackWhiteListRequest_1 = require("./model/ShowBlackWhiteListRequest");
|
30
|
+
var ShowCacheRulesRequest_1 = require("./model/ShowCacheRulesRequest");
|
31
|
+
var ShowCertificatesHttpsInfoRequest_1 = require("./model/ShowCertificatesHttpsInfoRequest");
|
32
|
+
var ShowDomainDetailRequest_1 = require("./model/ShowDomainDetailRequest");
|
33
|
+
var ShowDomainFullConfigRequest_1 = require("./model/ShowDomainFullConfigRequest");
|
34
|
+
var ShowDomainItemDetailsRequest_1 = require("./model/ShowDomainItemDetailsRequest");
|
35
|
+
var ShowDomainItemLocationDetailsRequest_1 = require("./model/ShowDomainItemLocationDetailsRequest");
|
36
|
+
var ShowDomainLocationStatsRequest_1 = require("./model/ShowDomainLocationStatsRequest");
|
37
|
+
var ShowDomainStatsRequest_1 = require("./model/ShowDomainStatsRequest");
|
38
|
+
var ShowHistoryTaskDetailsRequest_1 = require("./model/ShowHistoryTaskDetailsRequest");
|
39
|
+
var ShowHistoryTasksRequest_1 = require("./model/ShowHistoryTasksRequest");
|
40
|
+
var ShowHttpInfoRequest_1 = require("./model/ShowHttpInfoRequest");
|
41
|
+
var ShowIpInfoRequest_1 = require("./model/ShowIpInfoRequest");
|
42
|
+
var ShowLogsRequest_1 = require("./model/ShowLogsRequest");
|
43
|
+
var ShowOriginHostRequest_1 = require("./model/ShowOriginHostRequest");
|
44
|
+
var ShowReferRequest_1 = require("./model/ShowReferRequest");
|
45
|
+
var ShowResponseHeaderRequest_1 = require("./model/ShowResponseHeaderRequest");
|
46
|
+
var ShowTagsRequest_1 = require("./model/ShowTagsRequest");
|
47
|
+
var ShowTopUrlRequest_1 = require("./model/ShowTopUrlRequest");
|
48
|
+
var ShowUrlTaskInfoRequest_1 = require("./model/ShowUrlTaskInfoRequest");
|
49
|
+
var UpdateBlackWhiteListRequest_1 = require("./model/UpdateBlackWhiteListRequest");
|
50
|
+
var UpdateCacheRulesRequest_1 = require("./model/UpdateCacheRulesRequest");
|
51
|
+
var UpdateDomainFullConfigRequest_1 = require("./model/UpdateDomainFullConfigRequest");
|
52
|
+
var UpdateDomainMultiCertificatesRequest_1 = require("./model/UpdateDomainMultiCertificatesRequest");
|
53
|
+
var UpdateDomainOriginRequest_1 = require("./model/UpdateDomainOriginRequest");
|
54
|
+
var UpdateFollow302SwitchRequest_1 = require("./model/UpdateFollow302SwitchRequest");
|
55
|
+
var UpdateHttpsInfoRequest_1 = require("./model/UpdateHttpsInfoRequest");
|
56
|
+
var UpdateOriginHostRequest_1 = require("./model/UpdateOriginHostRequest");
|
57
|
+
var UpdatePrivateBucketAccessRequest_1 = require("./model/UpdatePrivateBucketAccessRequest");
|
58
|
+
var UpdateRangeSwitchRequest_1 = require("./model/UpdateRangeSwitchRequest");
|
59
|
+
var UpdateReferRequest_1 = require("./model/UpdateReferRequest");
|
60
|
+
var UpdateResponseHeaderRequest_1 = require("./model/UpdateResponseHeaderRequest");
|
61
|
+
var CdnClient = /** @class */ (function () {
|
62
|
+
function CdnClient(client) {
|
63
|
+
this.hcClient = client;
|
64
|
+
}
|
65
|
+
CdnClient.newBuilder = function () {
|
66
|
+
return new ClientBuilder_1.ClientBuilder(newClient);
|
67
|
+
};
|
68
|
+
CdnClient.prototype.getPath = function () {
|
69
|
+
return __dirname;
|
70
|
+
};
|
71
|
+
/**
|
72
|
+
* 用于删除资源标签
|
73
|
+
*
|
74
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
75
|
+
*
|
76
|
+
* @summary 删除资源标签配置接口
|
77
|
+
* @param {DeleteTagsRequestBody} batchDeleteTagsRequestBody DeleteTags对象。
|
78
|
+
* @param {*} [options] Override http request option.
|
79
|
+
* @throws {RequiredError}
|
80
|
+
*/
|
81
|
+
CdnClient.prototype.batchDeleteTags = function (batchDeleteTagsRequest) {
|
82
|
+
var options = (0, exports.ParamCreater)().batchDeleteTags(batchDeleteTagsRequest);
|
83
|
+
// @ts-ignore
|
84
|
+
options['responseHeaders'] = [''];
|
85
|
+
return this.hcClient.sendRequest(options);
|
86
|
+
};
|
87
|
+
/**
|
88
|
+
* 创建加速域名。
|
89
|
+
*
|
90
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
91
|
+
*
|
92
|
+
* @summary 创建加速域名
|
93
|
+
* @param {CreateDomainRequestBody} domain This is a auto create Body Object
|
94
|
+
* @param {*} [options] Override http request option.
|
95
|
+
* @throws {RequiredError}
|
96
|
+
*/
|
97
|
+
CdnClient.prototype.createDomain = function (createDomainRequest) {
|
98
|
+
var options = (0, exports.ParamCreater)().createDomain(createDomainRequest);
|
99
|
+
// @ts-ignore
|
100
|
+
options['responseHeaders'] = [''];
|
101
|
+
return this.hcClient.sendRequest(options);
|
102
|
+
};
|
103
|
+
/**
|
104
|
+
* 创建预热任务。
|
105
|
+
*
|
106
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
107
|
+
*
|
108
|
+
* @summary 创建预热缓存任务
|
109
|
+
* @param {PreheatingTaskRequest} preheatingTask urls: 多个URL之间需要用逗号分隔,目前不支持对目录的预热,单个url的长度限制为4096字符。每个账户每天最多预热1000个URL,单次提交数量不超过1000条。
|
110
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示在当前企业项目下添加缓存预热任务,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
111
|
+
* @param {*} [options] Override http request option.
|
112
|
+
* @throws {RequiredError}
|
113
|
+
*/
|
114
|
+
CdnClient.prototype.createPreheatingTasks = function (createPreheatingTasksRequest) {
|
115
|
+
var options = (0, exports.ParamCreater)().createPreheatingTasks(createPreheatingTasksRequest);
|
116
|
+
// @ts-ignore
|
117
|
+
options['responseHeaders'] = [''];
|
118
|
+
return this.hcClient.sendRequest(options);
|
119
|
+
};
|
120
|
+
/**
|
121
|
+
* 创建刷新缓存任务。
|
122
|
+
*
|
123
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
124
|
+
*
|
125
|
+
* @summary 创建刷新缓存任务
|
126
|
+
* @param {RefreshTaskRequest} refreshTask type: 刷新类型,其值可为file 或directory,默认为file; urls: 多个URL之间需用逗号分隔,单个url长度限制为4096字符。每个账户每天最多刷新2000个文件和100个目录,单次提交数量不超过1000条。
|
127
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示在当前企业项目下添加缓存刷新任务,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
128
|
+
* @param {*} [options] Override http request option.
|
129
|
+
* @throws {RequiredError}
|
130
|
+
*/
|
131
|
+
CdnClient.prototype.createRefreshTasks = function (createRefreshTasksRequest) {
|
132
|
+
var options = (0, exports.ParamCreater)().createRefreshTasks(createRefreshTasksRequest);
|
133
|
+
// @ts-ignore
|
134
|
+
options['responseHeaders'] = [''];
|
135
|
+
return this.hcClient.sendRequest(options);
|
136
|
+
};
|
137
|
+
/**
|
138
|
+
* 用于创建资源标签
|
139
|
+
*
|
140
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
141
|
+
*
|
142
|
+
* @summary 创建资源标签配置接口
|
143
|
+
* @param {CreateTagsRequestBody} createTagsRequestBody CreateTags对象。
|
144
|
+
* @param {*} [options] Override http request option.
|
145
|
+
* @throws {RequiredError}
|
146
|
+
*/
|
147
|
+
CdnClient.prototype.createTags = function (createTagsRequest) {
|
148
|
+
var options = (0, exports.ParamCreater)().createTags(createTagsRequest);
|
149
|
+
// @ts-ignore
|
150
|
+
options['responseHeaders'] = [''];
|
151
|
+
return this.hcClient.sendRequest(options);
|
152
|
+
};
|
153
|
+
/**
|
154
|
+
* 删除加速域名。
|
155
|
+
*
|
156
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
157
|
+
*
|
158
|
+
* @summary 删除加速域名
|
159
|
+
* @param {string} domainId 加速域名ID。获取方法请参见查询加速域名。
|
160
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
161
|
+
* @param {*} [options] Override http request option.
|
162
|
+
* @throws {RequiredError}
|
163
|
+
*/
|
164
|
+
CdnClient.prototype.deleteDomain = function (deleteDomainRequest) {
|
165
|
+
var options = (0, exports.ParamCreater)().deleteDomain(deleteDomainRequest);
|
166
|
+
// @ts-ignore
|
167
|
+
options['responseHeaders'] = [''];
|
168
|
+
return this.hcClient.sendRequest(options);
|
169
|
+
};
|
170
|
+
/**
|
171
|
+
* 停用加速域名。
|
172
|
+
*
|
173
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
174
|
+
*
|
175
|
+
* @summary 停用加速域名
|
176
|
+
* @param {string} domainId 加速域名ID。获取方法请参见查询加速域名。
|
177
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
178
|
+
* @param {*} [options] Override http request option.
|
179
|
+
* @throws {RequiredError}
|
180
|
+
*/
|
181
|
+
CdnClient.prototype.disableDomain = function (disableDomainRequest) {
|
182
|
+
var options = (0, exports.ParamCreater)().disableDomain(disableDomainRequest);
|
183
|
+
// @ts-ignore
|
184
|
+
options['responseHeaders'] = [''];
|
185
|
+
return this.hcClient.sendRequest(options);
|
186
|
+
};
|
187
|
+
/**
|
188
|
+
* 启用加速域名。
|
189
|
+
*
|
190
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
191
|
+
*
|
192
|
+
* @summary 启用加速域名
|
193
|
+
* @param {string} domainId 加速域名ID。获取方法请参见查询加速域名。
|
194
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
195
|
+
* @param {*} [options] Override http request option.
|
196
|
+
* @throws {RequiredError}
|
197
|
+
*/
|
198
|
+
CdnClient.prototype.enableDomain = function (enableDomainRequest) {
|
199
|
+
var options = (0, exports.ParamCreater)().enableDomain(enableDomainRequest);
|
200
|
+
// @ts-ignore
|
201
|
+
options['responseHeaders'] = [''];
|
202
|
+
return this.hcClient.sendRequest(options);
|
203
|
+
};
|
204
|
+
/**
|
205
|
+
* 查询加速域名信息
|
206
|
+
*
|
207
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
208
|
+
*
|
209
|
+
* @summary 查询加速域名
|
210
|
+
* @param {string} [domainName] 加速域名,采用模糊匹配的方式。(长度限制为1-255字符)。
|
211
|
+
* @param {'web' | 'download' | 'video' | 'wholeSite'} [businessType] 加速域名的业务类型。取值: - web(网站加速) - download(文件下载加速) - video(点播加速) - wholeSite(全站加速)
|
212
|
+
* @param {'online' | 'offline' | 'configuring' | 'configure_failed' | 'checking' | 'check_failed' | 'deleting'} [domainStatus] 加速域名状态。取值意义: - online表示“已开启” - offline表示“已停用” - configuring表示“配置中” - configure_failed表示“配置失败” - checking表示“审核中” - check_failed表示“审核未通过” - deleting表示“删除中”。
|
213
|
+
* @param {'mainland_china' | 'outside_mainland_china' | 'global'} [serviceArea] 华为云CDN提供的加速服务范围,包含: - mainland_china 中国大陆 - outside_mainland_china 中国大陆境外 - global 全球。
|
214
|
+
* @param {number} [pageSize] 每页的数量,取值范围1-10000,不设值时默认值为30。
|
215
|
+
* @param {number} [pageNumber] 查询的页码。取值范围1-65535,不设值时默认值为1。
|
216
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
217
|
+
* @param {*} [options] Override http request option.
|
218
|
+
* @throws {RequiredError}
|
219
|
+
*/
|
220
|
+
CdnClient.prototype.listDomains = function (listDomainsRequest) {
|
221
|
+
var options = (0, exports.ParamCreater)().listDomains(listDomainsRequest);
|
222
|
+
// @ts-ignore
|
223
|
+
options['responseHeaders'] = [''];
|
224
|
+
return this.hcClient.sendRequest(options);
|
225
|
+
};
|
226
|
+
/**
|
227
|
+
* 查询域名已经设置的IP黑白名单。
|
228
|
+
*
|
229
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
230
|
+
*
|
231
|
+
* @summary 查询IP黑白名单
|
232
|
+
* @param {string} domainId 需要查询IP黑白名单的域名id。获取方法请参见查询加速域名。
|
233
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
234
|
+
* @param {*} [options] Override http request option.
|
235
|
+
* @throws {RequiredError}
|
236
|
+
*/
|
237
|
+
CdnClient.prototype.showBlackWhiteList = function (showBlackWhiteListRequest) {
|
238
|
+
var options = (0, exports.ParamCreater)().showBlackWhiteList(showBlackWhiteListRequest);
|
239
|
+
// @ts-ignore
|
240
|
+
options['responseHeaders'] = [''];
|
241
|
+
return this.hcClient.sendRequest(options);
|
242
|
+
};
|
243
|
+
/**
|
244
|
+
* 查询缓存规则。
|
245
|
+
*
|
246
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
247
|
+
*
|
248
|
+
* @summary 查询缓存规则
|
249
|
+
* @param {string} domainId 加速域名ID。获取方法请参见查询加速域名。
|
250
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
251
|
+
* @param {*} [options] Override http request option.
|
252
|
+
* @throws {RequiredError}
|
253
|
+
*/
|
254
|
+
CdnClient.prototype.showCacheRules = function (showCacheRulesRequest) {
|
255
|
+
var options = (0, exports.ParamCreater)().showCacheRules(showCacheRulesRequest);
|
256
|
+
// @ts-ignore
|
257
|
+
options['responseHeaders'] = [''];
|
258
|
+
return this.hcClient.sendRequest(options);
|
259
|
+
};
|
260
|
+
/**
|
261
|
+
* 查询所有绑定HTTPS证书的域名信息
|
262
|
+
*
|
263
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
264
|
+
*
|
265
|
+
* @summary 查询所有绑定HTTPS证书的域名信息
|
266
|
+
* @param {number} [pageSize] 每页的数量,取值范围1-10000,不设值时默认值为30。
|
267
|
+
* @param {number} [pageNumber] 查询的页码。取值范围1-65535,不设值时默认值为1。
|
268
|
+
* @param {string} [domainName] 加速域名。
|
269
|
+
* @param {string} [userDomainId] 域名所属用户的domain_id。
|
270
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
271
|
+
* @param {*} [options] Override http request option.
|
272
|
+
* @throws {RequiredError}
|
273
|
+
*/
|
274
|
+
CdnClient.prototype.showCertificatesHttpsInfo = function (showCertificatesHttpsInfoRequest) {
|
275
|
+
var options = (0, exports.ParamCreater)().showCertificatesHttpsInfo(showCertificatesHttpsInfoRequest);
|
276
|
+
// @ts-ignore
|
277
|
+
options['responseHeaders'] = [''];
|
278
|
+
return this.hcClient.sendRequest(options);
|
279
|
+
};
|
280
|
+
/**
|
281
|
+
* 查询加速域名详情。
|
282
|
+
*
|
283
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
284
|
+
*
|
285
|
+
* @summary 查询加速域名详情
|
286
|
+
* @param {string} domainId 加速域名ID。获取方法请参见查询加速域名。
|
287
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
288
|
+
* @param {*} [options] Override http request option.
|
289
|
+
* @throws {RequiredError}
|
290
|
+
*/
|
291
|
+
CdnClient.prototype.showDomainDetail = function (showDomainDetailRequest) {
|
292
|
+
var options = (0, exports.ParamCreater)().showDomainDetail(showDomainDetailRequest);
|
293
|
+
// @ts-ignore
|
294
|
+
options['responseHeaders'] = [''];
|
295
|
+
return this.hcClient.sendRequest(options);
|
296
|
+
};
|
297
|
+
/**
|
298
|
+
* 查询域名配置接口,支持查询回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、缓存URL参数、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面
|
299
|
+
*
|
300
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
301
|
+
*
|
302
|
+
* @summary 查询域名配置接口
|
303
|
+
* @param {string} domainName 加速域名
|
304
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
305
|
+
* @param {*} [options] Override http request option.
|
306
|
+
* @throws {RequiredError}
|
307
|
+
*/
|
308
|
+
CdnClient.prototype.showDomainFullConfig = function (showDomainFullConfigRequest) {
|
309
|
+
var options = (0, exports.ParamCreater)().showDomainFullConfig(showDomainFullConfigRequest);
|
310
|
+
// @ts-ignore
|
311
|
+
options['responseHeaders'] = [''];
|
312
|
+
return this.hcClient.sendRequest(options);
|
313
|
+
};
|
314
|
+
/**
|
315
|
+
* - 支持查询90天内的数据。
|
316
|
+
* - 查询跨度不能超过7天。
|
317
|
+
* - 最多同时指定100个域名。
|
318
|
+
* - 起始时间和结束时间,左闭右开,需要同时指定。
|
319
|
+
* - 开始时间、结束时间必须传毫秒级时间戳,且必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果传的不是5分钟时刻点,返回数据可能与预期不一致。
|
320
|
+
* - 统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
321
|
+
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
322
|
+
* - 如果传的是多个域名,则每个域名的数据分开返回。
|
323
|
+
* - 支持同时查询多个指标,不超过10个。
|
324
|
+
*
|
325
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
326
|
+
*
|
327
|
+
* @summary 批量查询域名的统计明细-按域名单独返回
|
328
|
+
* @param {number} startTime 查询起始时间戳,必须设为5分钟整时刻点
|
329
|
+
* @param {number} endTime 查询结束时间戳,必须设为5分钟整时刻点
|
330
|
+
* @param {string} domainName 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com,all表示查询名下全部域名
|
331
|
+
* @param {string} statType 网络资源消耗: - bw(带宽) - flux(流量) - bs_bw(回源带宽) - bs_flux(回源流量) 访问情况: - req_num(请求总数) - hit_num(请求命中次数) - bs_num(回源总数) - bs_fail_num(回源失败数) - hit_flux(命中流量) HTTP状态码(组合指标): - http_code_2xx(状态码汇总2xx) - http_code_3xx(状态码汇总3xx) - http_code_4xx(状态码汇总4xx) - http_code_5xx(状态码汇总5xx) - bs_http_code_2xx(回源状态码汇总2xx) - bs_http_code_3xx(回源状态码汇总3xx) - bs_http_code_4xx(回源状态码汇总4xx) - bs_http_code_5xx(回源状态码汇总5xx) - status_code_2xx(状态码详情2xx) - status_code_3xx(状态码详情3xx) - status_code_4xx(状态码详情4xx) - status_code_5xx(状态码详情5xx) - bs_status_code_2xx(回源状态码详情2xx) - bs_status_code_3xx(回源状态码详情3xx) - bs_status_code_4xx(回源状态码详情4xx) - bs_status_code_5xx(回源状态码详情5xx) - status_code和bs_status_code不能一起查询,否则数据会不准确,status_code不支持指定服务区域
|
332
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,不传表示查询默认项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
333
|
+
* @param {string} [serviceArea] mainland_china(中国大陆),outside_mainland_china(中国大陆境外),默认为mainland_china。
|
334
|
+
* @param {*} [options] Override http request option.
|
335
|
+
* @throws {RequiredError}
|
336
|
+
*/
|
337
|
+
CdnClient.prototype.showDomainItemDetails = function (showDomainItemDetailsRequest) {
|
338
|
+
var options = (0, exports.ParamCreater)().showDomainItemDetails(showDomainItemDetailsRequest);
|
339
|
+
// @ts-ignore
|
340
|
+
options['responseHeaders'] = [''];
|
341
|
+
return this.hcClient.sendRequest(options);
|
342
|
+
};
|
343
|
+
/**
|
344
|
+
* - 支持查询90天内的数据。
|
345
|
+
* - 查询跨度是7天。
|
346
|
+
* - 最多同时指定100个域名。
|
347
|
+
* - 起始时间和结束时间,左闭右开,需要同时指定。
|
348
|
+
* - 开始时间、结束时间必须传毫秒级时间戳,且必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果传的不是5分钟时刻点,返回数据可能与预期不一致。
|
349
|
+
* - 统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
350
|
+
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类指标单位统一为次数。
|
351
|
+
* - 用于查询指定域名、指定统计指标的明细数据。
|
352
|
+
* - 如果传的是多个域名,则每个域名的数据分开返回。
|
353
|
+
* - 支持按区域、运营商维度查询统计数据, 回源指标除外。
|
354
|
+
* - 支持同时查询多个指标,不超过10个。
|
355
|
+
* - 域名为海外加速场景不适用。
|
356
|
+
*
|
357
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
358
|
+
*
|
359
|
+
* @summary 批量查询域名的区域、运营商统计明细-按域名单独返回
|
360
|
+
* @param {number} startTime 查询开始时间戳,必须设为5分钟整时刻点
|
361
|
+
* @param {number} endTime 查询结束时间戳,必须设为5分钟整时刻点
|
362
|
+
* @param {string} domainName 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com,all表示查询名下全部域名
|
363
|
+
* @param {string} statType 指标类型列表 网络资源消耗:bw(带宽),flux(流量),ipv6_bw(ipv6带宽),ipv6_flux(ipv6流量), https_bw(https带宽),https_flux(https流量) 访问情况:req_num(请求总数),hit_num(请求命中次数),req_time(请求时长) HTTP状态码(组合指标):status_code_2xx(状态码2xx),status_code_3xx(状态码3xx),status_code_4xx(状态码4xx),status_code_5xx(状态码5xx)
|
364
|
+
* @param {string} region 区域列表,以逗号分隔,all表示查询全部区域
|
365
|
+
* @param {string} isp 运营商列表,以逗号分隔,all表示查询全部运营商
|
366
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,不传表示查询默认项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
367
|
+
* @param {*} [options] Override http request option.
|
368
|
+
* @throws {RequiredError}
|
369
|
+
*/
|
370
|
+
CdnClient.prototype.showDomainItemLocationDetails = function (showDomainItemLocationDetailsRequest) {
|
371
|
+
var options = (0, exports.ParamCreater)().showDomainItemLocationDetails(showDomainItemLocationDetailsRequest);
|
372
|
+
// @ts-ignore
|
373
|
+
options['responseHeaders'] = [''];
|
374
|
+
return this.hcClient.sendRequest(options);
|
375
|
+
};
|
376
|
+
/**
|
377
|
+
* - 支持查询90天内的数据。
|
378
|
+
*
|
379
|
+
* - 支持多指标同时查询,不超过5个。
|
380
|
+
*
|
381
|
+
* - 最多同时指定20个域名。
|
382
|
+
*
|
383
|
+
* - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
384
|
+
*
|
385
|
+
* - action取值:location_detail,location_summary
|
386
|
+
*
|
387
|
+
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的区域运营商明细数据。
|
388
|
+
*
|
389
|
+
* - 单租户调用频率:15次/s。
|
390
|
+
*
|
391
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
392
|
+
*
|
393
|
+
* @summary 查询域名统计数据-区域运营商
|
394
|
+
* @param {string} action - 动作名称,可选location_summary、location_detail。 - location_summary:查询汇总数据 - location_detail:查询数据详情。
|
395
|
+
* @param {number} startTime - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - interval为300时,start_time设置为整5分钟时刻点,如:1631240100000(对应2021-09-10 10:15:00) - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00)
|
396
|
+
* @param {number} endTime - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - interval为300时,end_time设置为整5分钟时刻点,如:1631243700000(对应2021-09-10 11:15:00) - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00)
|
397
|
+
* @param {string} domainName 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com,all表示查询名下全部域名。
|
398
|
+
* @param {string} statType - 网络资源消耗 - bw(带宽) - flux(流量) - 访问情况 - req_num(请求总数) - HTTP状态码(组合指标) - http_code_2xx(状态码汇总2xx) - http_code_3xx(状态码汇总3xx) - http_code_4xx(状态码汇总4xx) - http_code_5xx(状态码汇总5xx) - status_code_2xx(状态码详情2xx) - status_code_3xx(状态码详情3xx) - status_code_4xx(状态码详情4xx) - status_code_5xx(状态码详情5xx)
|
399
|
+
* @param {number} [interval] - 查询时间间隔,单位:秒,取值说明: - 300(5分钟):最大查询跨度2天 - 3600(1小时):最大查询跨度7天 - 86400(1天):最大查询跨度31天 - 如果不传,默认取对应时间跨度的最小间隔。
|
400
|
+
* @param {string} [groupBy] 数据分组方式,多个以英文逗号分隔,可选domain、country、province、isp,默认不分组。
|
401
|
+
* @param {string} [country] 国家编码,多个以英文逗号分隔,all表示全部,取值见附录。
|
402
|
+
* @param {string} [province] 省份编码,当country为cn(中国)时有效,多个以英文逗号分隔,all表示全部,取值见附录。
|
403
|
+
* @param {string} [isp] 运营商编码,多个以英文逗号分隔,all表示全部,取值见附录。
|
404
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
405
|
+
* @param {*} [options] Override http request option.
|
406
|
+
* @throws {RequiredError}
|
407
|
+
*/
|
408
|
+
CdnClient.prototype.showDomainLocationStats = function (showDomainLocationStatsRequest) {
|
409
|
+
var options = (0, exports.ParamCreater)().showDomainLocationStats(showDomainLocationStatsRequest);
|
410
|
+
// @ts-ignore
|
411
|
+
options['responseHeaders'] = [''];
|
412
|
+
return this.hcClient.sendRequest(options);
|
413
|
+
};
|
414
|
+
/**
|
415
|
+
* - 支持查询90天内的数据。
|
416
|
+
*
|
417
|
+
* - 支持多指标同时查询,不超过5个。
|
418
|
+
*
|
419
|
+
* - 最多同时指定20个域名。
|
420
|
+
*
|
421
|
+
* - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
422
|
+
*
|
423
|
+
* - action取值:detail,summary
|
424
|
+
*
|
425
|
+
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
426
|
+
*
|
427
|
+
* - 单租户调用频率:15次/s。
|
428
|
+
*
|
429
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
430
|
+
*
|
431
|
+
* @summary 查询域名统计数据
|
432
|
+
* @param {string} action - 动作名称,可选summary、detail。 - summary:查询汇总数据 - detail:查询数据详情。
|
433
|
+
* @param {number} startTime - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - interval为300时,start_time设置为整5分钟时刻点,如:1631240100000(对应2021-09-10 10:15:00) - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00)
|
434
|
+
* @param {number} endTime - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - interval为300时,end_time设置为整5分钟时刻点,如:1631243700000(对应2021-09-10 11:15:00) - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00)
|
435
|
+
* @param {string} domainName 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com,all表示查询名下全部域名。
|
436
|
+
* @param {string} statType - 网络资源消耗: - bw(带宽) - flux(流量) - bs_bw(回源带宽) - bs_flux(回源流量) - 访问情况: - req_num(请求总数) - hit_num(请求命中次数) - bs_num(回源总数) - bs_fail_num(回源失败数) - hit_flux(命中流量) - HTTP状态码(组合指标): - http_code_2xx(状态码汇总2xx) - http_code_3xx(状态码汇总3xx) - http_code_4xx(状态码汇总4xx) - http_code_5xx(状态码汇总5xx) - bs_http_code_2xx(回源状态码汇总2xx) - bs_http_code_3xx(回源状态码汇总3xx) - bs_http_code_4xx(回源状态码汇总4xx) - bs_http_code_5xx(回源状态码汇总5xx) - status_code_2xx(状态码详情2xx) - status_code_3xx(状态码详情3xx) - status_code_4xx(状态码详情4xx) - status_code_5xx(状态码详情5xx) - bs_status_code_2xx(回源状态码详情2xx) - bs_status_code_3xx(回源状态码详情3xx) - bs_status_code_4xx(回源状态码详情4xx) - bs_status_code_5xx(回源状态码详情5xx) - status_code和bs_status_code不能一起查询
|
437
|
+
* @param {number} [interval] - 查询时间间隔,单位:秒,取值说明: - 300(5分钟):最大查询跨度2天 - 3600(1小时):最大查询跨度7天 - 86400(1天):最大查询跨度31天 - 如果不传,默认取对应时间跨度的最小间隔。
|
438
|
+
* @param {string} [groupBy] 数据分组方式,可选domain,默认不分组。
|
439
|
+
* @param {string} [serviceArea] 服务区域:mainland_china(默认)、outside_mainland_china,当查询回源类指标时该参数无效。
|
440
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
441
|
+
* @param {*} [options] Override http request option.
|
442
|
+
* @throws {RequiredError}
|
443
|
+
*/
|
444
|
+
CdnClient.prototype.showDomainStats = function (showDomainStatsRequest) {
|
445
|
+
var options = (0, exports.ParamCreater)().showDomainStats(showDomainStatsRequest);
|
446
|
+
// @ts-ignore
|
447
|
+
options['responseHeaders'] = [''];
|
448
|
+
return this.hcClient.sendRequest(options);
|
449
|
+
};
|
450
|
+
/**
|
451
|
+
* 查询刷新预热任务详情。
|
452
|
+
*
|
453
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
454
|
+
*
|
455
|
+
* @summary 查询刷新预热任务详情
|
456
|
+
* @param {string} historyTasksId 刷新任务ID。
|
457
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
458
|
+
* @param {number} [pageSize] 刷新预热的urls所显示单页最大数量,取值范围为1-10000。page_size和page_number必须同时传值。默认值30。
|
459
|
+
* @param {number} [pageNumber] 刷新预热的urls当前查询为第几页,取值范围为1-65535。默认值1。
|
460
|
+
* @param {string} [status] url的状态 processing 处理中,succeed 完成,failed 失败,waiting 等待,refreshing 刷新中,preheating 预热中。
|
461
|
+
* @param {string} [url] url的地址。
|
462
|
+
* @param {number} [createTime] 刷新预热任务的创建时间。不传参默认为查询7天内的任务。最长可查询15天内数据。
|
463
|
+
* @param {*} [options] Override http request option.
|
464
|
+
* @throws {RequiredError}
|
465
|
+
*/
|
466
|
+
CdnClient.prototype.showHistoryTaskDetails = function (showHistoryTaskDetailsRequest) {
|
467
|
+
var options = (0, exports.ParamCreater)().showHistoryTaskDetails(showHistoryTaskDetailsRequest);
|
468
|
+
// @ts-ignore
|
469
|
+
options['responseHeaders'] = [''];
|
470
|
+
return this.hcClient.sendRequest(options);
|
471
|
+
};
|
472
|
+
/**
|
473
|
+
* 查询刷新预热任务。
|
474
|
+
*
|
475
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
476
|
+
*
|
477
|
+
* @summary 查询刷新预热任务
|
478
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
479
|
+
* @param {number} [pageSize] 单页最大数量,取值范围为1-10000。page_size和page_number必须同时传值。默认值30。
|
480
|
+
* @param {number} [pageNumber] 当前查询第几页,取值范围为1-65535。默认值1。
|
481
|
+
* @param {'task_inprocess' | 'task_done'} [status] 任务状态。 task_inprocess 表示任务处理中,task_done表示任务完成。
|
482
|
+
* @param {number} [startDate] 查询起始时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。
|
483
|
+
* @param {number} [endDate] 查询结束时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。
|
484
|
+
* @param {string} [orderField] 用来排序的字段,支持的字段有“task_type”,“total”,“processing”, “succeed”,“failed”,“create_time”。order_field和order_type必须同时传值,否则使用默认值\"create_time\" 和 \"desc\"。
|
485
|
+
* @param {string} [orderType] desc 或者asc。默认值desc。
|
486
|
+
* @param {'file' | 'directory'} [fileType] 默认是文件file。file:文件,directory:目录。
|
487
|
+
* @param {*} [options] Override http request option.
|
488
|
+
* @throws {RequiredError}
|
489
|
+
*/
|
490
|
+
CdnClient.prototype.showHistoryTasks = function (showHistoryTasksRequest) {
|
491
|
+
var options = (0, exports.ParamCreater)().showHistoryTasks(showHistoryTasksRequest);
|
492
|
+
// @ts-ignore
|
493
|
+
options['responseHeaders'] = [''];
|
494
|
+
return this.hcClient.sendRequest(options);
|
495
|
+
};
|
496
|
+
/**
|
497
|
+
* 获取加速域名证书。
|
498
|
+
*
|
499
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
500
|
+
*
|
501
|
+
* @summary 查询HTTPS配置
|
502
|
+
* @param {string} domainId 加速域名ID。获取方法请参见查询加速域名。
|
503
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
504
|
+
* @param {*} [options] Override http request option.
|
505
|
+
* @throws {RequiredError}
|
506
|
+
*/
|
507
|
+
CdnClient.prototype.showHttpInfo = function (showHttpInfoRequest) {
|
508
|
+
var options = (0, exports.ParamCreater)().showHttpInfo(showHttpInfoRequest);
|
509
|
+
// @ts-ignore
|
510
|
+
options['responseHeaders'] = [''];
|
511
|
+
return this.hcClient.sendRequest(options);
|
512
|
+
};
|
513
|
+
/**
|
514
|
+
* 查询IP归属信息。
|
515
|
+
*
|
516
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
517
|
+
*
|
518
|
+
* @summary 查询IP归属信息
|
519
|
+
* @param {string} ips IP地址列表,以“,”分割,最多20个。
|
520
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
521
|
+
* @param {*} [options] Override http request option.
|
522
|
+
* @throws {RequiredError}
|
523
|
+
*/
|
524
|
+
CdnClient.prototype.showIpInfo = function (showIpInfoRequest) {
|
525
|
+
var options = (0, exports.ParamCreater)().showIpInfo(showIpInfoRequest);
|
526
|
+
// @ts-ignore
|
527
|
+
options['responseHeaders'] = [''];
|
528
|
+
return this.hcClient.sendRequest(options);
|
529
|
+
};
|
530
|
+
/**
|
531
|
+
* 日志查询。
|
532
|
+
*
|
533
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
534
|
+
*
|
535
|
+
* @summary 日志查询
|
536
|
+
* @param {string} domainName 只支持单个域名,如:www.test1.com。
|
537
|
+
* @param {number} queryDate 查询开始时间,查询开始时间到开始时间+1天内的日志数据,取值范围是距离当前30天内。
|
538
|
+
* @param {number} [pageSize] 单页最大数量,取值范围为1-10000。
|
539
|
+
* @param {number} [pageNumber] 当前查询第几页,取值范围为1-65535。
|
540
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
541
|
+
* @param {*} [options] Override http request option.
|
542
|
+
* @throws {RequiredError}
|
543
|
+
*/
|
544
|
+
CdnClient.prototype.showLogs = function (showLogsRequest) {
|
545
|
+
var options = (0, exports.ParamCreater)().showLogs(showLogsRequest);
|
546
|
+
// @ts-ignore
|
547
|
+
options['responseHeaders'] = [''];
|
548
|
+
return this.hcClient.sendRequest(options);
|
549
|
+
};
|
550
|
+
/**
|
551
|
+
* 查询回源HOST。回源HOST是CDN节点在回源过程中,在源站访问的站点域名,即http请求头中的host信息。
|
552
|
+
*
|
553
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
554
|
+
*
|
555
|
+
* @summary 查询回源HOST
|
556
|
+
* @param {string} domainId 加速域名ID。获取方法请参见查询加速域名。
|
557
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
558
|
+
* @param {*} [options] Override http request option.
|
559
|
+
* @throws {RequiredError}
|
560
|
+
*/
|
561
|
+
CdnClient.prototype.showOriginHost = function (showOriginHostRequest) {
|
562
|
+
var options = (0, exports.ParamCreater)().showOriginHost(showOriginHostRequest);
|
563
|
+
// @ts-ignore
|
564
|
+
options['responseHeaders'] = [''];
|
565
|
+
return this.hcClient.sendRequest(options);
|
566
|
+
};
|
567
|
+
/**
|
568
|
+
* 查询当前用户域名、刷新文件、刷新目录和预热的配额
|
569
|
+
*
|
570
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
571
|
+
*
|
572
|
+
* @summary 查询用户配额
|
573
|
+
* @param {*} [options] Override http request option.
|
574
|
+
* @throws {RequiredError}
|
575
|
+
*/
|
576
|
+
CdnClient.prototype.showQuota = function () {
|
577
|
+
var options = (0, exports.ParamCreater)().showQuota();
|
578
|
+
// @ts-ignore
|
579
|
+
options['responseHeaders'] = [''];
|
580
|
+
return this.hcClient.sendRequest(options);
|
581
|
+
};
|
582
|
+
/**
|
583
|
+
* 查询Referer过滤规则。
|
584
|
+
*
|
585
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
586
|
+
*
|
587
|
+
* @summary 查询Referer过滤规则
|
588
|
+
* @param {string} domainId 加速域名ID。获取方法请参见查询加速域名。
|
589
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
590
|
+
* @param {*} [options] Override http request option.
|
591
|
+
* @throws {RequiredError}
|
592
|
+
*/
|
593
|
+
CdnClient.prototype.showRefer = function (showReferRequest) {
|
594
|
+
var options = (0, exports.ParamCreater)().showRefer(showReferRequest);
|
595
|
+
// @ts-ignore
|
596
|
+
options['responseHeaders'] = [''];
|
597
|
+
return this.hcClient.sendRequest(options);
|
598
|
+
};
|
599
|
+
/**
|
600
|
+
* 列举header所有配置。
|
601
|
+
*
|
602
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
603
|
+
*
|
604
|
+
* @summary 查询响应头配置
|
605
|
+
* @param {string} domainId 加速域名ID。获取方法请参见查询加速域名。
|
606
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
607
|
+
* @param {*} [options] Override http request option.
|
608
|
+
* @throws {RequiredError}
|
609
|
+
*/
|
610
|
+
CdnClient.prototype.showResponseHeader = function (showResponseHeaderRequest) {
|
611
|
+
var options = (0, exports.ParamCreater)().showResponseHeader(showResponseHeaderRequest);
|
612
|
+
// @ts-ignore
|
613
|
+
options['responseHeaders'] = [''];
|
614
|
+
return this.hcClient.sendRequest(options);
|
615
|
+
};
|
616
|
+
/**
|
617
|
+
* 用于查询资源标签列表
|
618
|
+
*
|
619
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
620
|
+
*
|
621
|
+
* @summary 查询资源标签列表配置接口
|
622
|
+
* @param {string} resourceId 资源id
|
623
|
+
* @param {*} [options] Override http request option.
|
624
|
+
* @throws {RequiredError}
|
625
|
+
*/
|
626
|
+
CdnClient.prototype.showTags = function (showTagsRequest) {
|
627
|
+
var options = (0, exports.ParamCreater)().showTags(showTagsRequest);
|
628
|
+
// @ts-ignore
|
629
|
+
options['responseHeaders'] = [''];
|
630
|
+
return this.hcClient.sendRequest(options);
|
631
|
+
};
|
632
|
+
/**
|
633
|
+
* - 查询TOP100 URL明细。
|
634
|
+
*
|
635
|
+
* - 支持查询90天内的数据。
|
636
|
+
*
|
637
|
+
* - 查询跨度不能超过31天。
|
638
|
+
*
|
639
|
+
* - 起始时间和结束时间,左闭右开,需要同时指定。如查询2021-10-24 00:00:00 到 2021-10-25 00:00:00
|
640
|
+
* 的数据,表示取 [2021-10-24 00:00:00, 2021-10-25 00:00:00)的统计数据。
|
641
|
+
*
|
642
|
+
* - 开始时间、结束时间必须传毫秒级时间戳,且必须为凌晨0点整时刻点,如果传的不是凌晨0点整时刻点,返回数据可能与预期不一致。
|
643
|
+
*
|
644
|
+
* - 流量类指标单位统一为Byte(字节)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
645
|
+
*
|
646
|
+
* - 单租户调用频率:5次/s。
|
647
|
+
*
|
648
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
649
|
+
*
|
650
|
+
* @summary 查询TOP100 URL明细
|
651
|
+
* @param {number} startTime 查询起始时间戳(单位:毫秒)。该时间戳的取值在转化为日期格式后须满足以下格式:XXXX-XX-XX 00:00:00
|
652
|
+
* @param {number} endTime 查询结束时间戳(单位:毫秒)。该时间戳的取值在转化为日期格式后须满足以下格式:XXXX-XX-XX 00:00:00
|
653
|
+
* @param {string} domainName 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com ,ALL表示查询名下全部域名。
|
654
|
+
* @param {'flux' | 'req_num'} statType 参数类型支持:flux(流量),req_num(请求总数)。
|
655
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
656
|
+
* @param {'mainland_china' | 'outside_mainland_china'} [serviceArea] mainland_china(中国大陆),outside_mainland_china(中国大陆境外),默认为mainland_china。
|
657
|
+
* @param {*} [options] Override http request option.
|
658
|
+
* @throws {RequiredError}
|
659
|
+
*/
|
660
|
+
CdnClient.prototype.showTopUrl = function (showTopUrlRequest) {
|
661
|
+
var options = (0, exports.ParamCreater)().showTopUrl(showTopUrlRequest);
|
662
|
+
// @ts-ignore
|
663
|
+
options['responseHeaders'] = [''];
|
664
|
+
return this.hcClient.sendRequest(options);
|
665
|
+
};
|
666
|
+
/**
|
667
|
+
* 查询刷新预热URL记录。如需此接口,请提交工单开通
|
668
|
+
*
|
669
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
670
|
+
*
|
671
|
+
* @summary 查询刷新预热URL记录
|
672
|
+
* @param {number} [startTime] 起始时间戳(毫秒),默认当天00:00
|
673
|
+
* @param {number} [endTime] 结束时间戳(毫秒),默认次日00:00
|
674
|
+
* @param {number} [offset] 偏移量
|
675
|
+
* @param {number} [limit] 单次查询数据条数,上限为100
|
676
|
+
* @param {string} [url] 刷新预热url
|
677
|
+
* @param {string} [taskType] 任务类型,REFRESH:刷新任务;PREHEATING:预热任务
|
678
|
+
* @param {string} [status] url状态,状态类型:processing:处理中;succeed:完成;failed:失败;waiting:等待;refreshing:刷新中; preheating : 预热中
|
679
|
+
* @param {string} [fileType] 文件类型,file:文件;directory:目录
|
680
|
+
* @param {*} [options] Override http request option.
|
681
|
+
* @throws {RequiredError}
|
682
|
+
*/
|
683
|
+
CdnClient.prototype.showUrlTaskInfo = function (showUrlTaskInfoRequest) {
|
684
|
+
var options = (0, exports.ParamCreater)().showUrlTaskInfo(showUrlTaskInfoRequest);
|
685
|
+
// @ts-ignore
|
686
|
+
options['responseHeaders'] = ['X-request-id'];
|
687
|
+
return this.hcClient.sendRequest(options);
|
688
|
+
};
|
689
|
+
/**
|
690
|
+
* 设置域名的IP黑白名单。
|
691
|
+
*
|
692
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
693
|
+
*
|
694
|
+
* @summary 设置IP黑白名单
|
695
|
+
* @param {string} domainId 需要设置IP黑白名单的域名id。获取方法请参见查询加速域名。
|
696
|
+
* @param {BlackWhiteListBody} blackWhiteListBody This is a auto Body Object
|
697
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
698
|
+
* @param {*} [options] Override http request option.
|
699
|
+
* @throws {RequiredError}
|
700
|
+
*/
|
701
|
+
CdnClient.prototype.updateBlackWhiteList = function (updateBlackWhiteListRequest) {
|
702
|
+
var options = (0, exports.ParamCreater)().updateBlackWhiteList(updateBlackWhiteListRequest);
|
703
|
+
// @ts-ignore
|
704
|
+
options['responseHeaders'] = [''];
|
705
|
+
return this.hcClient.sendRequest(options);
|
706
|
+
};
|
707
|
+
/**
|
708
|
+
* 设置CDN节点上缓存资源的缓存策略。
|
709
|
+
*
|
710
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
711
|
+
*
|
712
|
+
* @summary 设置缓存规则
|
713
|
+
* @param {string} domainId 加速域名ID。获取方法请参见查询加速域名。
|
714
|
+
* @param {CacheConfigRequestBody} cacheConfig This is a auto create Body Object
|
715
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
716
|
+
* @param {*} [options] Override http request option.
|
717
|
+
* @throws {RequiredError}
|
718
|
+
*/
|
719
|
+
CdnClient.prototype.updateCacheRules = function (updateCacheRulesRequest) {
|
720
|
+
var options = (0, exports.ParamCreater)().updateCacheRules(updateCacheRulesRequest);
|
721
|
+
// @ts-ignore
|
722
|
+
options['responseHeaders'] = [''];
|
723
|
+
return this.hcClient.sendRequest(options);
|
724
|
+
};
|
725
|
+
/**
|
726
|
+
* 修改域名全量配置接口,支持配置回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、缓存URL参数、IPv6、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面
|
727
|
+
*
|
728
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
729
|
+
*
|
730
|
+
* @summary 修改域名全量配置接口
|
731
|
+
* @param {string} domainName 加速域名
|
732
|
+
* @param {ModifyDomainConfigRequestBody} configs configs对象。
|
733
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
734
|
+
* @param {*} [options] Override http request option.
|
735
|
+
* @throws {RequiredError}
|
736
|
+
*/
|
737
|
+
CdnClient.prototype.updateDomainFullConfig = function (updateDomainFullConfigRequest) {
|
738
|
+
var options = (0, exports.ParamCreater)().updateDomainFullConfig(updateDomainFullConfigRequest);
|
739
|
+
// @ts-ignore
|
740
|
+
options['responseHeaders'] = [''];
|
741
|
+
return this.hcClient.sendRequest(options);
|
742
|
+
};
|
743
|
+
/**
|
744
|
+
* 一个证书配置多个域名,设置域名强制https回源参数。
|
745
|
+
*
|
746
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
747
|
+
*
|
748
|
+
* @summary 一个证书批量设置多个域名
|
749
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
750
|
+
* @param {UpdateDomainMultiCertificatesRequestBody} [https] https对象。
|
751
|
+
* @param {*} [options] Override http request option.
|
752
|
+
* @throws {RequiredError}
|
753
|
+
*/
|
754
|
+
CdnClient.prototype.updateDomainMultiCertificates = function (updateDomainMultiCertificatesRequest) {
|
755
|
+
var options = (0, exports.ParamCreater)().updateDomainMultiCertificates(updateDomainMultiCertificatesRequest);
|
756
|
+
// @ts-ignore
|
757
|
+
options['responseHeaders'] = [''];
|
758
|
+
return this.hcClient.sendRequest(options);
|
759
|
+
};
|
760
|
+
/**
|
761
|
+
* 修改源站信息。源站IP地址或域名都可以指引CDN节点回源到对应的源站服务器,源站域名不能与加速域名相同。
|
762
|
+
*
|
763
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
764
|
+
*
|
765
|
+
* @summary 修改源站信息
|
766
|
+
* @param {string} domainId 加速域名ID。获取方法请参见查询加速域名。
|
767
|
+
* @param {OriginRequest} origin This is a auto create Body Object
|
768
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
769
|
+
* @param {*} [options] Override http request option.
|
770
|
+
* @throws {RequiredError}
|
771
|
+
*/
|
772
|
+
CdnClient.prototype.updateDomainOrigin = function (updateDomainOriginRequest) {
|
773
|
+
var options = (0, exports.ParamCreater)().updateDomainOrigin(updateDomainOriginRequest);
|
774
|
+
// @ts-ignore
|
775
|
+
options['responseHeaders'] = [''];
|
776
|
+
return this.hcClient.sendRequest(options);
|
777
|
+
};
|
778
|
+
/**
|
779
|
+
* 开启此项配置后,当CDN节点回源请求源站返回301/302状态码时,CDN节点会先跳转到301/302对应地址获取资源并缓存后再返回给用户。
|
780
|
+
*
|
781
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
782
|
+
*
|
783
|
+
* @summary 开启/关闭回源跟随
|
784
|
+
* @param {string} domainId 加速域名id。获取方法请参见查询加速域名。
|
785
|
+
* @param {Follow302StatusRequest} followStatus This is a auto create Body Object
|
786
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
787
|
+
* @param {*} [options] Override http request option.
|
788
|
+
* @throws {RequiredError}
|
789
|
+
*/
|
790
|
+
CdnClient.prototype.updateFollow302Switch = function (updateFollow302SwitchRequest) {
|
791
|
+
var options = (0, exports.ParamCreater)().updateFollow302Switch(updateFollow302SwitchRequest);
|
792
|
+
// @ts-ignore
|
793
|
+
options['responseHeaders'] = [''];
|
794
|
+
return this.hcClient.sendRequest(options);
|
795
|
+
};
|
796
|
+
/**
|
797
|
+
* 设置加速域名HTTPS。通过配置加速域名的HTTPS证书,并将其部署在全网CDN节点,实现HTTPS安全加速。
|
798
|
+
*
|
799
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
800
|
+
*
|
801
|
+
* @summary 配置HTTPS
|
802
|
+
* @param {string} domainId 加速域名ID。获取方法请参见查询加速域名。
|
803
|
+
* @param {HttpInfoRequest} https https对象。
|
804
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
805
|
+
* @param {*} [options] Override http request option.
|
806
|
+
* @throws {RequiredError}
|
807
|
+
*/
|
808
|
+
CdnClient.prototype.updateHttpsInfo = function (updateHttpsInfoRequest) {
|
809
|
+
var options = (0, exports.ParamCreater)().updateHttpsInfo(updateHttpsInfoRequest);
|
810
|
+
// @ts-ignore
|
811
|
+
options['responseHeaders'] = [''];
|
812
|
+
return this.hcClient.sendRequest(options);
|
813
|
+
};
|
814
|
+
/**
|
815
|
+
* 修改回源HOST。回源HOST是CDN节点在回源过程中,在源站访问的站点域名,即http请求头中的host信息。
|
816
|
+
*
|
817
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
818
|
+
*
|
819
|
+
* @summary 修改回源HOST
|
820
|
+
* @param {string} domainId 加速域名ID。获取方法请参见查询加速域名。
|
821
|
+
* @param {OriginHostRequest} originHost This is a auto create Body Object
|
822
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
823
|
+
* @param {*} [options] Override http request option.
|
824
|
+
* @throws {RequiredError}
|
825
|
+
*/
|
826
|
+
CdnClient.prototype.updateOriginHost = function (updateOriginHostRequest) {
|
827
|
+
var options = (0, exports.ParamCreater)().updateOriginHost(updateOriginHostRequest);
|
828
|
+
// @ts-ignore
|
829
|
+
options['responseHeaders'] = [''];
|
830
|
+
return this.hcClient.sendRequest(options);
|
831
|
+
};
|
832
|
+
/**
|
833
|
+
* 修改私有桶开启关闭状态。
|
834
|
+
*
|
835
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
836
|
+
*
|
837
|
+
* @summary 修改私有桶开启关闭状态
|
838
|
+
* @param {string} domainId 加速域名id。获取方法请参见查询加速域名。
|
839
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
840
|
+
* @param {UpdatePrivateBucketAccessBody} [status] 桶开启关闭状态(true:开启;false:关闭),默认为关闭
|
841
|
+
* @param {*} [options] Override http request option.
|
842
|
+
* @throws {RequiredError}
|
843
|
+
*/
|
844
|
+
CdnClient.prototype.updatePrivateBucketAccess = function (updatePrivateBucketAccessRequest) {
|
845
|
+
var options = (0, exports.ParamCreater)().updatePrivateBucketAccess(updatePrivateBucketAccessRequest);
|
846
|
+
// @ts-ignore
|
847
|
+
options['responseHeaders'] = [''];
|
848
|
+
return this.hcClient.sendRequest(options);
|
849
|
+
};
|
850
|
+
/**
|
851
|
+
* Range回源是指源站在收到CDN节点回源请求时,根据http请求头中的Range信息返回指定范围的数据给CDN节点。
|
852
|
+
*
|
853
|
+
* 开启Range回源前需要确认源站是否支持Range请求,若源站不支持Range请求,开启Range回源将导致资源无法缓存。
|
854
|
+
*
|
855
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
856
|
+
*
|
857
|
+
* @summary 开启/关闭Range回源
|
858
|
+
* @param {string} domainId 加速域名id。获取方法请参见查询加速域名。
|
859
|
+
* @param {RangeStatusRequest} rangeStatus range状态(\"off\"/\"on\")
|
860
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
861
|
+
* @param {*} [options] Override http request option.
|
862
|
+
* @throws {RequiredError}
|
863
|
+
*/
|
864
|
+
CdnClient.prototype.updateRangeSwitch = function (updateRangeSwitchRequest) {
|
865
|
+
var options = (0, exports.ParamCreater)().updateRangeSwitch(updateRangeSwitchRequest);
|
866
|
+
// @ts-ignore
|
867
|
+
options['responseHeaders'] = [''];
|
868
|
+
return this.hcClient.sendRequest(options);
|
869
|
+
};
|
870
|
+
/**
|
871
|
+
* 设置Referer过滤规则。通过设置过滤策略,对访问者身份进行识别和过滤,实现限制访问来源的目的。
|
872
|
+
*
|
873
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
874
|
+
*
|
875
|
+
* @summary 设置Referer过滤规则
|
876
|
+
* @param {string} domainId 加速域名ID。获取方法请参见查询加速域名。
|
877
|
+
* @param {RefererBody} refer
|
878
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
879
|
+
* @param {*} [options] Override http request option.
|
880
|
+
* @throws {RequiredError}
|
881
|
+
*/
|
882
|
+
CdnClient.prototype.updateRefer = function (updateReferRequest) {
|
883
|
+
var options = (0, exports.ParamCreater)().updateRefer(updateReferRequest);
|
884
|
+
// @ts-ignore
|
885
|
+
options['responseHeaders'] = [''];
|
886
|
+
return this.hcClient.sendRequest(options);
|
887
|
+
};
|
888
|
+
/**
|
889
|
+
* 新增/修改域名响应头配置。
|
890
|
+
*
|
891
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
892
|
+
*
|
893
|
+
* @summary 新增/修改响应头配置
|
894
|
+
* @param {string} domainId 加速域名ID。获取方法请参见查询加速域名。
|
895
|
+
* @param {HeaderBody} headers 置响应头的键和值。
|
896
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
897
|
+
* @param {*} [options] Override http request option.
|
898
|
+
* @throws {RequiredError}
|
899
|
+
*/
|
900
|
+
CdnClient.prototype.updateResponseHeader = function (updateResponseHeaderRequest) {
|
901
|
+
var options = (0, exports.ParamCreater)().updateResponseHeader(updateResponseHeaderRequest);
|
902
|
+
// @ts-ignore
|
903
|
+
options['responseHeaders'] = [''];
|
904
|
+
return this.hcClient.sendRequest(options);
|
905
|
+
};
|
906
|
+
return CdnClient;
|
907
|
+
}());
|
908
|
+
exports.CdnClient = CdnClient;
|
909
|
+
var ParamCreater = function () {
|
910
|
+
return {
|
911
|
+
/**
|
912
|
+
* 用于删除资源标签
|
913
|
+
*
|
914
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
915
|
+
*/
|
916
|
+
batchDeleteTags: function (batchDeleteTagsRequest) {
|
917
|
+
var options = {
|
918
|
+
method: "POST",
|
919
|
+
url: "/v1.0/cdn/configuration/tags/batch-delete",
|
920
|
+
contentType: "application/json",
|
921
|
+
queryParams: {},
|
922
|
+
pathParams: {},
|
923
|
+
headers: {},
|
924
|
+
data: {}
|
925
|
+
};
|
926
|
+
var localVarHeaderParameter = {};
|
927
|
+
var body;
|
928
|
+
if (batchDeleteTagsRequest !== null && batchDeleteTagsRequest !== undefined) {
|
929
|
+
if (batchDeleteTagsRequest instanceof BatchDeleteTagsRequest_1.BatchDeleteTagsRequest) {
|
930
|
+
body = batchDeleteTagsRequest.body;
|
931
|
+
}
|
932
|
+
else {
|
933
|
+
body = batchDeleteTagsRequest['body'];
|
934
|
+
}
|
935
|
+
}
|
936
|
+
if (body === null || body === undefined) {
|
937
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
938
|
+
}
|
939
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
940
|
+
options.data = body !== undefined ? body : {};
|
941
|
+
options.headers = localVarHeaderParameter;
|
942
|
+
return options;
|
943
|
+
},
|
944
|
+
/**
|
945
|
+
* 创建加速域名。
|
946
|
+
*
|
947
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
948
|
+
*/
|
949
|
+
createDomain: function (createDomainRequest) {
|
950
|
+
var options = {
|
951
|
+
method: "POST",
|
952
|
+
url: "/v1.0/cdn/domains",
|
953
|
+
contentType: "application/json",
|
954
|
+
queryParams: {},
|
955
|
+
pathParams: {},
|
956
|
+
headers: {},
|
957
|
+
data: {}
|
958
|
+
};
|
959
|
+
var localVarHeaderParameter = {};
|
960
|
+
var body;
|
961
|
+
if (createDomainRequest !== null && createDomainRequest !== undefined) {
|
962
|
+
if (createDomainRequest instanceof CreateDomainRequest_1.CreateDomainRequest) {
|
963
|
+
body = createDomainRequest.body;
|
964
|
+
}
|
965
|
+
else {
|
966
|
+
body = createDomainRequest['body'];
|
967
|
+
}
|
968
|
+
}
|
969
|
+
if (body === null || body === undefined) {
|
970
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
971
|
+
}
|
972
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
973
|
+
options.data = body !== undefined ? body : {};
|
974
|
+
options.headers = localVarHeaderParameter;
|
975
|
+
return options;
|
976
|
+
},
|
977
|
+
/**
|
978
|
+
* 创建预热任务。
|
979
|
+
*
|
980
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
981
|
+
*/
|
982
|
+
createPreheatingTasks: function (createPreheatingTasksRequest) {
|
983
|
+
var options = {
|
984
|
+
method: "POST",
|
985
|
+
url: "/v1.0/cdn/content/preheating-tasks",
|
986
|
+
contentType: "application/json",
|
987
|
+
queryParams: {},
|
988
|
+
pathParams: {},
|
989
|
+
headers: {},
|
990
|
+
data: {}
|
991
|
+
};
|
992
|
+
var localVarHeaderParameter = {};
|
993
|
+
var localVarQueryParameter = {};
|
994
|
+
var body;
|
995
|
+
var enterpriseProjectId;
|
996
|
+
if (createPreheatingTasksRequest !== null && createPreheatingTasksRequest !== undefined) {
|
997
|
+
if (createPreheatingTasksRequest instanceof CreatePreheatingTasksRequest_1.CreatePreheatingTasksRequest) {
|
998
|
+
body = createPreheatingTasksRequest.body;
|
999
|
+
enterpriseProjectId = createPreheatingTasksRequest.enterpriseProjectId;
|
1000
|
+
}
|
1001
|
+
else {
|
1002
|
+
body = createPreheatingTasksRequest['body'];
|
1003
|
+
enterpriseProjectId = createPreheatingTasksRequest['enterprise_project_id'];
|
1004
|
+
}
|
1005
|
+
}
|
1006
|
+
if (body === null || body === undefined) {
|
1007
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1008
|
+
}
|
1009
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1010
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1011
|
+
}
|
1012
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1013
|
+
options.data = body !== undefined ? body : {};
|
1014
|
+
options.queryParams = localVarQueryParameter;
|
1015
|
+
options.headers = localVarHeaderParameter;
|
1016
|
+
return options;
|
1017
|
+
},
|
1018
|
+
/**
|
1019
|
+
* 创建刷新缓存任务。
|
1020
|
+
*
|
1021
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1022
|
+
*/
|
1023
|
+
createRefreshTasks: function (createRefreshTasksRequest) {
|
1024
|
+
var options = {
|
1025
|
+
method: "POST",
|
1026
|
+
url: "/v1.0/cdn/content/refresh-tasks",
|
1027
|
+
contentType: "application/json",
|
1028
|
+
queryParams: {},
|
1029
|
+
pathParams: {},
|
1030
|
+
headers: {},
|
1031
|
+
data: {}
|
1032
|
+
};
|
1033
|
+
var localVarHeaderParameter = {};
|
1034
|
+
var localVarQueryParameter = {};
|
1035
|
+
var body;
|
1036
|
+
var enterpriseProjectId;
|
1037
|
+
if (createRefreshTasksRequest !== null && createRefreshTasksRequest !== undefined) {
|
1038
|
+
if (createRefreshTasksRequest instanceof CreateRefreshTasksRequest_1.CreateRefreshTasksRequest) {
|
1039
|
+
body = createRefreshTasksRequest.body;
|
1040
|
+
enterpriseProjectId = createRefreshTasksRequest.enterpriseProjectId;
|
1041
|
+
}
|
1042
|
+
else {
|
1043
|
+
body = createRefreshTasksRequest['body'];
|
1044
|
+
enterpriseProjectId = createRefreshTasksRequest['enterprise_project_id'];
|
1045
|
+
}
|
1046
|
+
}
|
1047
|
+
if (body === null || body === undefined) {
|
1048
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1049
|
+
}
|
1050
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1051
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1052
|
+
}
|
1053
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1054
|
+
options.data = body !== undefined ? body : {};
|
1055
|
+
options.queryParams = localVarQueryParameter;
|
1056
|
+
options.headers = localVarHeaderParameter;
|
1057
|
+
return options;
|
1058
|
+
},
|
1059
|
+
/**
|
1060
|
+
* 用于创建资源标签
|
1061
|
+
*
|
1062
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1063
|
+
*/
|
1064
|
+
createTags: function (createTagsRequest) {
|
1065
|
+
var options = {
|
1066
|
+
method: "POST",
|
1067
|
+
url: "/v1.0/cdn/configuration/tags",
|
1068
|
+
contentType: "application/json",
|
1069
|
+
queryParams: {},
|
1070
|
+
pathParams: {},
|
1071
|
+
headers: {},
|
1072
|
+
data: {}
|
1073
|
+
};
|
1074
|
+
var localVarHeaderParameter = {};
|
1075
|
+
var body;
|
1076
|
+
if (createTagsRequest !== null && createTagsRequest !== undefined) {
|
1077
|
+
if (createTagsRequest instanceof CreateTagsRequest_1.CreateTagsRequest) {
|
1078
|
+
body = createTagsRequest.body;
|
1079
|
+
}
|
1080
|
+
else {
|
1081
|
+
body = createTagsRequest['body'];
|
1082
|
+
}
|
1083
|
+
}
|
1084
|
+
if (body === null || body === undefined) {
|
1085
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1086
|
+
}
|
1087
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1088
|
+
options.data = body !== undefined ? body : {};
|
1089
|
+
options.headers = localVarHeaderParameter;
|
1090
|
+
return options;
|
1091
|
+
},
|
1092
|
+
/**
|
1093
|
+
* 删除加速域名。
|
1094
|
+
*
|
1095
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1096
|
+
*/
|
1097
|
+
deleteDomain: function (deleteDomainRequest) {
|
1098
|
+
var options = {
|
1099
|
+
method: "DELETE",
|
1100
|
+
url: "/v1.0/cdn/domains/{domain_id}",
|
1101
|
+
contentType: "application/json",
|
1102
|
+
queryParams: {},
|
1103
|
+
pathParams: {},
|
1104
|
+
headers: {},
|
1105
|
+
data: {}
|
1106
|
+
};
|
1107
|
+
var localVarHeaderParameter = {};
|
1108
|
+
var localVarQueryParameter = {};
|
1109
|
+
var domainId;
|
1110
|
+
var enterpriseProjectId;
|
1111
|
+
if (deleteDomainRequest !== null && deleteDomainRequest !== undefined) {
|
1112
|
+
if (deleteDomainRequest instanceof DeleteDomainRequest_1.DeleteDomainRequest) {
|
1113
|
+
domainId = deleteDomainRequest.domainId;
|
1114
|
+
enterpriseProjectId = deleteDomainRequest.enterpriseProjectId;
|
1115
|
+
}
|
1116
|
+
else {
|
1117
|
+
domainId = deleteDomainRequest['domain_id'];
|
1118
|
+
enterpriseProjectId = deleteDomainRequest['enterprise_project_id'];
|
1119
|
+
}
|
1120
|
+
}
|
1121
|
+
if (domainId === null || domainId === undefined) {
|
1122
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling deleteDomain.');
|
1123
|
+
}
|
1124
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1125
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1126
|
+
}
|
1127
|
+
options.queryParams = localVarQueryParameter;
|
1128
|
+
options.pathParams = { 'domain_id': domainId, };
|
1129
|
+
options.headers = localVarHeaderParameter;
|
1130
|
+
return options;
|
1131
|
+
},
|
1132
|
+
/**
|
1133
|
+
* 停用加速域名。
|
1134
|
+
*
|
1135
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1136
|
+
*/
|
1137
|
+
disableDomain: function (disableDomainRequest) {
|
1138
|
+
var options = {
|
1139
|
+
method: "PUT",
|
1140
|
+
url: "/v1.0/cdn/domains/{domain_id}/disable",
|
1141
|
+
contentType: "application/json",
|
1142
|
+
queryParams: {},
|
1143
|
+
pathParams: {},
|
1144
|
+
headers: {},
|
1145
|
+
data: {}
|
1146
|
+
};
|
1147
|
+
var localVarHeaderParameter = {};
|
1148
|
+
var localVarQueryParameter = {};
|
1149
|
+
var domainId;
|
1150
|
+
var enterpriseProjectId;
|
1151
|
+
if (disableDomainRequest !== null && disableDomainRequest !== undefined) {
|
1152
|
+
if (disableDomainRequest instanceof DisableDomainRequest_1.DisableDomainRequest) {
|
1153
|
+
domainId = disableDomainRequest.domainId;
|
1154
|
+
enterpriseProjectId = disableDomainRequest.enterpriseProjectId;
|
1155
|
+
}
|
1156
|
+
else {
|
1157
|
+
domainId = disableDomainRequest['domain_id'];
|
1158
|
+
enterpriseProjectId = disableDomainRequest['enterprise_project_id'];
|
1159
|
+
}
|
1160
|
+
}
|
1161
|
+
if (domainId === null || domainId === undefined) {
|
1162
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling disableDomain.');
|
1163
|
+
}
|
1164
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1165
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1166
|
+
}
|
1167
|
+
options.queryParams = localVarQueryParameter;
|
1168
|
+
options.pathParams = { 'domain_id': domainId, };
|
1169
|
+
options.headers = localVarHeaderParameter;
|
1170
|
+
return options;
|
1171
|
+
},
|
1172
|
+
/**
|
1173
|
+
* 启用加速域名。
|
1174
|
+
*
|
1175
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1176
|
+
*/
|
1177
|
+
enableDomain: function (enableDomainRequest) {
|
1178
|
+
var options = {
|
1179
|
+
method: "PUT",
|
1180
|
+
url: "/v1.0/cdn/domains/{domain_id}/enable",
|
1181
|
+
contentType: "application/json",
|
1182
|
+
queryParams: {},
|
1183
|
+
pathParams: {},
|
1184
|
+
headers: {},
|
1185
|
+
data: {}
|
1186
|
+
};
|
1187
|
+
var localVarHeaderParameter = {};
|
1188
|
+
var localVarQueryParameter = {};
|
1189
|
+
var domainId;
|
1190
|
+
var enterpriseProjectId;
|
1191
|
+
if (enableDomainRequest !== null && enableDomainRequest !== undefined) {
|
1192
|
+
if (enableDomainRequest instanceof EnableDomainRequest_1.EnableDomainRequest) {
|
1193
|
+
domainId = enableDomainRequest.domainId;
|
1194
|
+
enterpriseProjectId = enableDomainRequest.enterpriseProjectId;
|
1195
|
+
}
|
1196
|
+
else {
|
1197
|
+
domainId = enableDomainRequest['domain_id'];
|
1198
|
+
enterpriseProjectId = enableDomainRequest['enterprise_project_id'];
|
1199
|
+
}
|
1200
|
+
}
|
1201
|
+
if (domainId === null || domainId === undefined) {
|
1202
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling enableDomain.');
|
1203
|
+
}
|
1204
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1205
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1206
|
+
}
|
1207
|
+
options.queryParams = localVarQueryParameter;
|
1208
|
+
options.pathParams = { 'domain_id': domainId, };
|
1209
|
+
options.headers = localVarHeaderParameter;
|
1210
|
+
return options;
|
1211
|
+
},
|
1212
|
+
/**
|
1213
|
+
* 查询加速域名信息
|
1214
|
+
*
|
1215
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1216
|
+
*/
|
1217
|
+
listDomains: function (listDomainsRequest) {
|
1218
|
+
var options = {
|
1219
|
+
method: "GET",
|
1220
|
+
url: "/v1.0/cdn/domains",
|
1221
|
+
contentType: "application/json",
|
1222
|
+
queryParams: {},
|
1223
|
+
pathParams: {},
|
1224
|
+
headers: {},
|
1225
|
+
data: {}
|
1226
|
+
};
|
1227
|
+
var localVarHeaderParameter = {};
|
1228
|
+
var localVarQueryParameter = {};
|
1229
|
+
var domainName;
|
1230
|
+
var businessType;
|
1231
|
+
var domainStatus;
|
1232
|
+
var serviceArea;
|
1233
|
+
var pageSize;
|
1234
|
+
var pageNumber;
|
1235
|
+
var enterpriseProjectId;
|
1236
|
+
if (listDomainsRequest !== null && listDomainsRequest !== undefined) {
|
1237
|
+
if (listDomainsRequest instanceof ListDomainsRequest_1.ListDomainsRequest) {
|
1238
|
+
domainName = listDomainsRequest.domainName;
|
1239
|
+
businessType = listDomainsRequest.businessType;
|
1240
|
+
domainStatus = listDomainsRequest.domainStatus;
|
1241
|
+
serviceArea = listDomainsRequest.serviceArea;
|
1242
|
+
pageSize = listDomainsRequest.pageSize;
|
1243
|
+
pageNumber = listDomainsRequest.pageNumber;
|
1244
|
+
enterpriseProjectId = listDomainsRequest.enterpriseProjectId;
|
1245
|
+
}
|
1246
|
+
else {
|
1247
|
+
domainName = listDomainsRequest['domain_name'];
|
1248
|
+
businessType = listDomainsRequest['business_type'];
|
1249
|
+
domainStatus = listDomainsRequest['domain_status'];
|
1250
|
+
serviceArea = listDomainsRequest['service_area'];
|
1251
|
+
pageSize = listDomainsRequest['page_size'];
|
1252
|
+
pageNumber = listDomainsRequest['page_number'];
|
1253
|
+
enterpriseProjectId = listDomainsRequest['enterprise_project_id'];
|
1254
|
+
}
|
1255
|
+
}
|
1256
|
+
if (domainName !== null && domainName !== undefined) {
|
1257
|
+
localVarQueryParameter['domain_name'] = domainName;
|
1258
|
+
}
|
1259
|
+
if (businessType !== null && businessType !== undefined) {
|
1260
|
+
localVarQueryParameter['business_type'] = businessType;
|
1261
|
+
}
|
1262
|
+
if (domainStatus !== null && domainStatus !== undefined) {
|
1263
|
+
localVarQueryParameter['domain_status'] = domainStatus;
|
1264
|
+
}
|
1265
|
+
if (serviceArea !== null && serviceArea !== undefined) {
|
1266
|
+
localVarQueryParameter['service_area'] = serviceArea;
|
1267
|
+
}
|
1268
|
+
if (pageSize !== null && pageSize !== undefined) {
|
1269
|
+
localVarQueryParameter['page_size'] = pageSize;
|
1270
|
+
}
|
1271
|
+
if (pageNumber !== null && pageNumber !== undefined) {
|
1272
|
+
localVarQueryParameter['page_number'] = pageNumber;
|
1273
|
+
}
|
1274
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1275
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1276
|
+
}
|
1277
|
+
options.queryParams = localVarQueryParameter;
|
1278
|
+
options.headers = localVarHeaderParameter;
|
1279
|
+
return options;
|
1280
|
+
},
|
1281
|
+
/**
|
1282
|
+
* 查询域名已经设置的IP黑白名单。
|
1283
|
+
*
|
1284
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1285
|
+
*/
|
1286
|
+
showBlackWhiteList: function (showBlackWhiteListRequest) {
|
1287
|
+
var options = {
|
1288
|
+
method: "GET",
|
1289
|
+
url: "/v1.0/cdn/domains/{domain_id}/ip-acl",
|
1290
|
+
contentType: "application/json",
|
1291
|
+
queryParams: {},
|
1292
|
+
pathParams: {},
|
1293
|
+
headers: {},
|
1294
|
+
data: {}
|
1295
|
+
};
|
1296
|
+
var localVarHeaderParameter = {};
|
1297
|
+
var localVarQueryParameter = {};
|
1298
|
+
var domainId;
|
1299
|
+
var enterpriseProjectId;
|
1300
|
+
if (showBlackWhiteListRequest !== null && showBlackWhiteListRequest !== undefined) {
|
1301
|
+
if (showBlackWhiteListRequest instanceof ShowBlackWhiteListRequest_1.ShowBlackWhiteListRequest) {
|
1302
|
+
domainId = showBlackWhiteListRequest.domainId;
|
1303
|
+
enterpriseProjectId = showBlackWhiteListRequest.enterpriseProjectId;
|
1304
|
+
}
|
1305
|
+
else {
|
1306
|
+
domainId = showBlackWhiteListRequest['domain_id'];
|
1307
|
+
enterpriseProjectId = showBlackWhiteListRequest['enterprise_project_id'];
|
1308
|
+
}
|
1309
|
+
}
|
1310
|
+
if (domainId === null || domainId === undefined) {
|
1311
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling showBlackWhiteList.');
|
1312
|
+
}
|
1313
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1314
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1315
|
+
}
|
1316
|
+
options.queryParams = localVarQueryParameter;
|
1317
|
+
options.pathParams = { 'domain_id': domainId, };
|
1318
|
+
options.headers = localVarHeaderParameter;
|
1319
|
+
return options;
|
1320
|
+
},
|
1321
|
+
/**
|
1322
|
+
* 查询缓存规则。
|
1323
|
+
*
|
1324
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1325
|
+
*/
|
1326
|
+
showCacheRules: function (showCacheRulesRequest) {
|
1327
|
+
var options = {
|
1328
|
+
method: "GET",
|
1329
|
+
url: "/v1.0/cdn/domains/{domain_id}/cache",
|
1330
|
+
contentType: "application/json",
|
1331
|
+
queryParams: {},
|
1332
|
+
pathParams: {},
|
1333
|
+
headers: {},
|
1334
|
+
data: {}
|
1335
|
+
};
|
1336
|
+
var localVarHeaderParameter = {};
|
1337
|
+
var localVarQueryParameter = {};
|
1338
|
+
var domainId;
|
1339
|
+
var enterpriseProjectId;
|
1340
|
+
if (showCacheRulesRequest !== null && showCacheRulesRequest !== undefined) {
|
1341
|
+
if (showCacheRulesRequest instanceof ShowCacheRulesRequest_1.ShowCacheRulesRequest) {
|
1342
|
+
domainId = showCacheRulesRequest.domainId;
|
1343
|
+
enterpriseProjectId = showCacheRulesRequest.enterpriseProjectId;
|
1344
|
+
}
|
1345
|
+
else {
|
1346
|
+
domainId = showCacheRulesRequest['domain_id'];
|
1347
|
+
enterpriseProjectId = showCacheRulesRequest['enterprise_project_id'];
|
1348
|
+
}
|
1349
|
+
}
|
1350
|
+
if (domainId === null || domainId === undefined) {
|
1351
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling showCacheRules.');
|
1352
|
+
}
|
1353
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1354
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1355
|
+
}
|
1356
|
+
options.queryParams = localVarQueryParameter;
|
1357
|
+
options.pathParams = { 'domain_id': domainId, };
|
1358
|
+
options.headers = localVarHeaderParameter;
|
1359
|
+
return options;
|
1360
|
+
},
|
1361
|
+
/**
|
1362
|
+
* 查询所有绑定HTTPS证书的域名信息
|
1363
|
+
*
|
1364
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1365
|
+
*/
|
1366
|
+
showCertificatesHttpsInfo: function (showCertificatesHttpsInfoRequest) {
|
1367
|
+
var options = {
|
1368
|
+
method: "GET",
|
1369
|
+
url: "/v1.0/cdn/domains/https-certificate-info",
|
1370
|
+
contentType: "application/json",
|
1371
|
+
queryParams: {},
|
1372
|
+
pathParams: {},
|
1373
|
+
headers: {},
|
1374
|
+
data: {}
|
1375
|
+
};
|
1376
|
+
var localVarHeaderParameter = {};
|
1377
|
+
var localVarQueryParameter = {};
|
1378
|
+
var pageSize;
|
1379
|
+
var pageNumber;
|
1380
|
+
var domainName;
|
1381
|
+
var userDomainId;
|
1382
|
+
var enterpriseProjectId;
|
1383
|
+
if (showCertificatesHttpsInfoRequest !== null && showCertificatesHttpsInfoRequest !== undefined) {
|
1384
|
+
if (showCertificatesHttpsInfoRequest instanceof ShowCertificatesHttpsInfoRequest_1.ShowCertificatesHttpsInfoRequest) {
|
1385
|
+
pageSize = showCertificatesHttpsInfoRequest.pageSize;
|
1386
|
+
pageNumber = showCertificatesHttpsInfoRequest.pageNumber;
|
1387
|
+
domainName = showCertificatesHttpsInfoRequest.domainName;
|
1388
|
+
userDomainId = showCertificatesHttpsInfoRequest.userDomainId;
|
1389
|
+
enterpriseProjectId = showCertificatesHttpsInfoRequest.enterpriseProjectId;
|
1390
|
+
}
|
1391
|
+
else {
|
1392
|
+
pageSize = showCertificatesHttpsInfoRequest['page_size'];
|
1393
|
+
pageNumber = showCertificatesHttpsInfoRequest['page_number'];
|
1394
|
+
domainName = showCertificatesHttpsInfoRequest['domain_name'];
|
1395
|
+
userDomainId = showCertificatesHttpsInfoRequest['user_domain_id'];
|
1396
|
+
enterpriseProjectId = showCertificatesHttpsInfoRequest['enterprise_project_id'];
|
1397
|
+
}
|
1398
|
+
}
|
1399
|
+
if (pageSize !== null && pageSize !== undefined) {
|
1400
|
+
localVarQueryParameter['page_size'] = pageSize;
|
1401
|
+
}
|
1402
|
+
if (pageNumber !== null && pageNumber !== undefined) {
|
1403
|
+
localVarQueryParameter['page_number'] = pageNumber;
|
1404
|
+
}
|
1405
|
+
if (domainName !== null && domainName !== undefined) {
|
1406
|
+
localVarQueryParameter['domain_name'] = domainName;
|
1407
|
+
}
|
1408
|
+
if (userDomainId !== null && userDomainId !== undefined) {
|
1409
|
+
localVarQueryParameter['user_domain_id'] = userDomainId;
|
1410
|
+
}
|
1411
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1412
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1413
|
+
}
|
1414
|
+
options.queryParams = localVarQueryParameter;
|
1415
|
+
options.headers = localVarHeaderParameter;
|
1416
|
+
return options;
|
1417
|
+
},
|
1418
|
+
/**
|
1419
|
+
* 查询加速域名详情。
|
1420
|
+
*
|
1421
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1422
|
+
*/
|
1423
|
+
showDomainDetail: function (showDomainDetailRequest) {
|
1424
|
+
var options = {
|
1425
|
+
method: "GET",
|
1426
|
+
url: "/v1.0/cdn/domains/{domain_id}/detail",
|
1427
|
+
contentType: "application/json",
|
1428
|
+
queryParams: {},
|
1429
|
+
pathParams: {},
|
1430
|
+
headers: {},
|
1431
|
+
data: {}
|
1432
|
+
};
|
1433
|
+
var localVarHeaderParameter = {};
|
1434
|
+
var localVarQueryParameter = {};
|
1435
|
+
var domainId;
|
1436
|
+
var enterpriseProjectId;
|
1437
|
+
if (showDomainDetailRequest !== null && showDomainDetailRequest !== undefined) {
|
1438
|
+
if (showDomainDetailRequest instanceof ShowDomainDetailRequest_1.ShowDomainDetailRequest) {
|
1439
|
+
domainId = showDomainDetailRequest.domainId;
|
1440
|
+
enterpriseProjectId = showDomainDetailRequest.enterpriseProjectId;
|
1441
|
+
}
|
1442
|
+
else {
|
1443
|
+
domainId = showDomainDetailRequest['domain_id'];
|
1444
|
+
enterpriseProjectId = showDomainDetailRequest['enterprise_project_id'];
|
1445
|
+
}
|
1446
|
+
}
|
1447
|
+
if (domainId === null || domainId === undefined) {
|
1448
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling showDomainDetail.');
|
1449
|
+
}
|
1450
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1451
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1452
|
+
}
|
1453
|
+
options.queryParams = localVarQueryParameter;
|
1454
|
+
options.pathParams = { 'domain_id': domainId, };
|
1455
|
+
options.headers = localVarHeaderParameter;
|
1456
|
+
return options;
|
1457
|
+
},
|
1458
|
+
/**
|
1459
|
+
* 查询域名配置接口,支持查询回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、缓存URL参数、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面
|
1460
|
+
*
|
1461
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1462
|
+
*/
|
1463
|
+
showDomainFullConfig: function (showDomainFullConfigRequest) {
|
1464
|
+
var options = {
|
1465
|
+
method: "GET",
|
1466
|
+
url: "/v1.1/cdn/configuration/domains/{domain_name}/configs",
|
1467
|
+
contentType: "application/json",
|
1468
|
+
queryParams: {},
|
1469
|
+
pathParams: {},
|
1470
|
+
headers: {},
|
1471
|
+
data: {}
|
1472
|
+
};
|
1473
|
+
var localVarHeaderParameter = {};
|
1474
|
+
var localVarQueryParameter = {};
|
1475
|
+
var domainName;
|
1476
|
+
var enterpriseProjectId;
|
1477
|
+
if (showDomainFullConfigRequest !== null && showDomainFullConfigRequest !== undefined) {
|
1478
|
+
if (showDomainFullConfigRequest instanceof ShowDomainFullConfigRequest_1.ShowDomainFullConfigRequest) {
|
1479
|
+
domainName = showDomainFullConfigRequest.domainName;
|
1480
|
+
enterpriseProjectId = showDomainFullConfigRequest.enterpriseProjectId;
|
1481
|
+
}
|
1482
|
+
else {
|
1483
|
+
domainName = showDomainFullConfigRequest['domain_name'];
|
1484
|
+
enterpriseProjectId = showDomainFullConfigRequest['enterprise_project_id'];
|
1485
|
+
}
|
1486
|
+
}
|
1487
|
+
if (domainName === null || domainName === undefined) {
|
1488
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showDomainFullConfig.');
|
1489
|
+
}
|
1490
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1491
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1492
|
+
}
|
1493
|
+
options.queryParams = localVarQueryParameter;
|
1494
|
+
options.pathParams = { 'domain_name': domainName, };
|
1495
|
+
options.headers = localVarHeaderParameter;
|
1496
|
+
return options;
|
1497
|
+
},
|
1498
|
+
/**
|
1499
|
+
* - 支持查询90天内的数据。
|
1500
|
+
* - 查询跨度不能超过7天。
|
1501
|
+
* - 最多同时指定100个域名。
|
1502
|
+
* - 起始时间和结束时间,左闭右开,需要同时指定。
|
1503
|
+
* - 开始时间、结束时间必须传毫秒级时间戳,且必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果传的不是5分钟时刻点,返回数据可能与预期不一致。
|
1504
|
+
* - 统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
1505
|
+
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
1506
|
+
* - 如果传的是多个域名,则每个域名的数据分开返回。
|
1507
|
+
* - 支持同时查询多个指标,不超过10个。
|
1508
|
+
*
|
1509
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1510
|
+
*/
|
1511
|
+
showDomainItemDetails: function (showDomainItemDetailsRequest) {
|
1512
|
+
var options = {
|
1513
|
+
method: "GET",
|
1514
|
+
url: "/v1.0/cdn/statistics/domain-item-details",
|
1515
|
+
contentType: "application/json",
|
1516
|
+
queryParams: {},
|
1517
|
+
pathParams: {},
|
1518
|
+
headers: {},
|
1519
|
+
data: {}
|
1520
|
+
};
|
1521
|
+
var localVarHeaderParameter = {};
|
1522
|
+
var localVarQueryParameter = {};
|
1523
|
+
var startTime;
|
1524
|
+
var endTime;
|
1525
|
+
var domainName;
|
1526
|
+
var statType;
|
1527
|
+
var enterpriseProjectId;
|
1528
|
+
var serviceArea;
|
1529
|
+
if (showDomainItemDetailsRequest !== null && showDomainItemDetailsRequest !== undefined) {
|
1530
|
+
if (showDomainItemDetailsRequest instanceof ShowDomainItemDetailsRequest_1.ShowDomainItemDetailsRequest) {
|
1531
|
+
startTime = showDomainItemDetailsRequest.startTime;
|
1532
|
+
endTime = showDomainItemDetailsRequest.endTime;
|
1533
|
+
domainName = showDomainItemDetailsRequest.domainName;
|
1534
|
+
statType = showDomainItemDetailsRequest.statType;
|
1535
|
+
enterpriseProjectId = showDomainItemDetailsRequest.enterpriseProjectId;
|
1536
|
+
serviceArea = showDomainItemDetailsRequest.serviceArea;
|
1537
|
+
}
|
1538
|
+
else {
|
1539
|
+
startTime = showDomainItemDetailsRequest['start_time'];
|
1540
|
+
endTime = showDomainItemDetailsRequest['end_time'];
|
1541
|
+
domainName = showDomainItemDetailsRequest['domain_name'];
|
1542
|
+
statType = showDomainItemDetailsRequest['stat_type'];
|
1543
|
+
enterpriseProjectId = showDomainItemDetailsRequest['enterprise_project_id'];
|
1544
|
+
serviceArea = showDomainItemDetailsRequest['service_area'];
|
1545
|
+
}
|
1546
|
+
}
|
1547
|
+
if (startTime === null || startTime === undefined) {
|
1548
|
+
throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling showDomainItemDetails.');
|
1549
|
+
}
|
1550
|
+
if (startTime !== null && startTime !== undefined) {
|
1551
|
+
localVarQueryParameter['start_time'] = startTime;
|
1552
|
+
}
|
1553
|
+
if (endTime === null || endTime === undefined) {
|
1554
|
+
throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling showDomainItemDetails.');
|
1555
|
+
}
|
1556
|
+
if (endTime !== null && endTime !== undefined) {
|
1557
|
+
localVarQueryParameter['end_time'] = endTime;
|
1558
|
+
}
|
1559
|
+
if (domainName === null || domainName === undefined) {
|
1560
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showDomainItemDetails.');
|
1561
|
+
}
|
1562
|
+
if (domainName !== null && domainName !== undefined) {
|
1563
|
+
localVarQueryParameter['domain_name'] = domainName;
|
1564
|
+
}
|
1565
|
+
if (statType === null || statType === undefined) {
|
1566
|
+
throw new RequiredError('statType', 'Required parameter statType was null or undefined when calling showDomainItemDetails.');
|
1567
|
+
}
|
1568
|
+
if (statType !== null && statType !== undefined) {
|
1569
|
+
localVarQueryParameter['stat_type'] = statType;
|
1570
|
+
}
|
1571
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1572
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1573
|
+
}
|
1574
|
+
if (serviceArea !== null && serviceArea !== undefined) {
|
1575
|
+
localVarQueryParameter['service_area'] = serviceArea;
|
1576
|
+
}
|
1577
|
+
options.queryParams = localVarQueryParameter;
|
1578
|
+
options.headers = localVarHeaderParameter;
|
1579
|
+
return options;
|
1580
|
+
},
|
1581
|
+
/**
|
1582
|
+
* - 支持查询90天内的数据。
|
1583
|
+
* - 查询跨度是7天。
|
1584
|
+
* - 最多同时指定100个域名。
|
1585
|
+
* - 起始时间和结束时间,左闭右开,需要同时指定。
|
1586
|
+
* - 开始时间、结束时间必须传毫秒级时间戳,且必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果传的不是5分钟时刻点,返回数据可能与预期不一致。
|
1587
|
+
* - 统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
1588
|
+
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类指标单位统一为次数。
|
1589
|
+
* - 用于查询指定域名、指定统计指标的明细数据。
|
1590
|
+
* - 如果传的是多个域名,则每个域名的数据分开返回。
|
1591
|
+
* - 支持按区域、运营商维度查询统计数据, 回源指标除外。
|
1592
|
+
* - 支持同时查询多个指标,不超过10个。
|
1593
|
+
* - 域名为海外加速场景不适用。
|
1594
|
+
*
|
1595
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1596
|
+
*/
|
1597
|
+
showDomainItemLocationDetails: function (showDomainItemLocationDetailsRequest) {
|
1598
|
+
var options = {
|
1599
|
+
method: "GET",
|
1600
|
+
url: "/v1.0/cdn/statistics/domain-item-location-details",
|
1601
|
+
contentType: "application/json",
|
1602
|
+
queryParams: {},
|
1603
|
+
pathParams: {},
|
1604
|
+
headers: {},
|
1605
|
+
data: {}
|
1606
|
+
};
|
1607
|
+
var localVarHeaderParameter = {};
|
1608
|
+
var localVarQueryParameter = {};
|
1609
|
+
var startTime;
|
1610
|
+
var endTime;
|
1611
|
+
var domainName;
|
1612
|
+
var statType;
|
1613
|
+
var region;
|
1614
|
+
var isp;
|
1615
|
+
var enterpriseProjectId;
|
1616
|
+
if (showDomainItemLocationDetailsRequest !== null && showDomainItemLocationDetailsRequest !== undefined) {
|
1617
|
+
if (showDomainItemLocationDetailsRequest instanceof ShowDomainItemLocationDetailsRequest_1.ShowDomainItemLocationDetailsRequest) {
|
1618
|
+
startTime = showDomainItemLocationDetailsRequest.startTime;
|
1619
|
+
endTime = showDomainItemLocationDetailsRequest.endTime;
|
1620
|
+
domainName = showDomainItemLocationDetailsRequest.domainName;
|
1621
|
+
statType = showDomainItemLocationDetailsRequest.statType;
|
1622
|
+
region = showDomainItemLocationDetailsRequest.region;
|
1623
|
+
isp = showDomainItemLocationDetailsRequest.isp;
|
1624
|
+
enterpriseProjectId = showDomainItemLocationDetailsRequest.enterpriseProjectId;
|
1625
|
+
}
|
1626
|
+
else {
|
1627
|
+
startTime = showDomainItemLocationDetailsRequest['start_time'];
|
1628
|
+
endTime = showDomainItemLocationDetailsRequest['end_time'];
|
1629
|
+
domainName = showDomainItemLocationDetailsRequest['domain_name'];
|
1630
|
+
statType = showDomainItemLocationDetailsRequest['stat_type'];
|
1631
|
+
region = showDomainItemLocationDetailsRequest['region'];
|
1632
|
+
isp = showDomainItemLocationDetailsRequest['isp'];
|
1633
|
+
enterpriseProjectId = showDomainItemLocationDetailsRequest['enterprise_project_id'];
|
1634
|
+
}
|
1635
|
+
}
|
1636
|
+
if (startTime === null || startTime === undefined) {
|
1637
|
+
throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling showDomainItemLocationDetails.');
|
1638
|
+
}
|
1639
|
+
if (startTime !== null && startTime !== undefined) {
|
1640
|
+
localVarQueryParameter['start_time'] = startTime;
|
1641
|
+
}
|
1642
|
+
if (endTime === null || endTime === undefined) {
|
1643
|
+
throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling showDomainItemLocationDetails.');
|
1644
|
+
}
|
1645
|
+
if (endTime !== null && endTime !== undefined) {
|
1646
|
+
localVarQueryParameter['end_time'] = endTime;
|
1647
|
+
}
|
1648
|
+
if (domainName === null || domainName === undefined) {
|
1649
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showDomainItemLocationDetails.');
|
1650
|
+
}
|
1651
|
+
if (domainName !== null && domainName !== undefined) {
|
1652
|
+
localVarQueryParameter['domain_name'] = domainName;
|
1653
|
+
}
|
1654
|
+
if (statType === null || statType === undefined) {
|
1655
|
+
throw new RequiredError('statType', 'Required parameter statType was null or undefined when calling showDomainItemLocationDetails.');
|
1656
|
+
}
|
1657
|
+
if (statType !== null && statType !== undefined) {
|
1658
|
+
localVarQueryParameter['stat_type'] = statType;
|
1659
|
+
}
|
1660
|
+
if (region === null || region === undefined) {
|
1661
|
+
throw new RequiredError('region', 'Required parameter region was null or undefined when calling showDomainItemLocationDetails.');
|
1662
|
+
}
|
1663
|
+
if (region !== null && region !== undefined) {
|
1664
|
+
localVarQueryParameter['region'] = region;
|
1665
|
+
}
|
1666
|
+
if (isp === null || isp === undefined) {
|
1667
|
+
throw new RequiredError('isp', 'Required parameter isp was null or undefined when calling showDomainItemLocationDetails.');
|
1668
|
+
}
|
1669
|
+
if (isp !== null && isp !== undefined) {
|
1670
|
+
localVarQueryParameter['isp'] = isp;
|
1671
|
+
}
|
1672
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1673
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1674
|
+
}
|
1675
|
+
options.queryParams = localVarQueryParameter;
|
1676
|
+
options.headers = localVarHeaderParameter;
|
1677
|
+
return options;
|
1678
|
+
},
|
1679
|
+
/**
|
1680
|
+
* - 支持查询90天内的数据。
|
1681
|
+
*
|
1682
|
+
* - 支持多指标同时查询,不超过5个。
|
1683
|
+
*
|
1684
|
+
* - 最多同时指定20个域名。
|
1685
|
+
*
|
1686
|
+
* - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
1687
|
+
*
|
1688
|
+
* - action取值:location_detail,location_summary
|
1689
|
+
*
|
1690
|
+
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的区域运营商明细数据。
|
1691
|
+
*
|
1692
|
+
* - 单租户调用频率:15次/s。
|
1693
|
+
*
|
1694
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1695
|
+
*/
|
1696
|
+
showDomainLocationStats: function (showDomainLocationStatsRequest) {
|
1697
|
+
var options = {
|
1698
|
+
method: "GET",
|
1699
|
+
url: "/v1.0/cdn/statistics/domain-location-stats",
|
1700
|
+
contentType: "application/json",
|
1701
|
+
queryParams: {},
|
1702
|
+
pathParams: {},
|
1703
|
+
headers: {},
|
1704
|
+
data: {}
|
1705
|
+
};
|
1706
|
+
var localVarHeaderParameter = {};
|
1707
|
+
var localVarQueryParameter = {};
|
1708
|
+
var action;
|
1709
|
+
var startTime;
|
1710
|
+
var endTime;
|
1711
|
+
var domainName;
|
1712
|
+
var statType;
|
1713
|
+
var interval;
|
1714
|
+
var groupBy;
|
1715
|
+
var country;
|
1716
|
+
var province;
|
1717
|
+
var isp;
|
1718
|
+
var enterpriseProjectId;
|
1719
|
+
if (showDomainLocationStatsRequest !== null && showDomainLocationStatsRequest !== undefined) {
|
1720
|
+
if (showDomainLocationStatsRequest instanceof ShowDomainLocationStatsRequest_1.ShowDomainLocationStatsRequest) {
|
1721
|
+
action = showDomainLocationStatsRequest.action;
|
1722
|
+
startTime = showDomainLocationStatsRequest.startTime;
|
1723
|
+
endTime = showDomainLocationStatsRequest.endTime;
|
1724
|
+
domainName = showDomainLocationStatsRequest.domainName;
|
1725
|
+
statType = showDomainLocationStatsRequest.statType;
|
1726
|
+
interval = showDomainLocationStatsRequest.interval;
|
1727
|
+
groupBy = showDomainLocationStatsRequest.groupBy;
|
1728
|
+
country = showDomainLocationStatsRequest.country;
|
1729
|
+
province = showDomainLocationStatsRequest.province;
|
1730
|
+
isp = showDomainLocationStatsRequest.isp;
|
1731
|
+
enterpriseProjectId = showDomainLocationStatsRequest.enterpriseProjectId;
|
1732
|
+
}
|
1733
|
+
else {
|
1734
|
+
action = showDomainLocationStatsRequest['action'];
|
1735
|
+
startTime = showDomainLocationStatsRequest['start_time'];
|
1736
|
+
endTime = showDomainLocationStatsRequest['end_time'];
|
1737
|
+
domainName = showDomainLocationStatsRequest['domain_name'];
|
1738
|
+
statType = showDomainLocationStatsRequest['stat_type'];
|
1739
|
+
interval = showDomainLocationStatsRequest['interval'];
|
1740
|
+
groupBy = showDomainLocationStatsRequest['group_by'];
|
1741
|
+
country = showDomainLocationStatsRequest['country'];
|
1742
|
+
province = showDomainLocationStatsRequest['province'];
|
1743
|
+
isp = showDomainLocationStatsRequest['isp'];
|
1744
|
+
enterpriseProjectId = showDomainLocationStatsRequest['enterprise_project_id'];
|
1745
|
+
}
|
1746
|
+
}
|
1747
|
+
if (action === null || action === undefined) {
|
1748
|
+
throw new RequiredError('action', 'Required parameter action was null or undefined when calling showDomainLocationStats.');
|
1749
|
+
}
|
1750
|
+
if (action !== null && action !== undefined) {
|
1751
|
+
localVarQueryParameter['action'] = action;
|
1752
|
+
}
|
1753
|
+
if (startTime === null || startTime === undefined) {
|
1754
|
+
throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling showDomainLocationStats.');
|
1755
|
+
}
|
1756
|
+
if (startTime !== null && startTime !== undefined) {
|
1757
|
+
localVarQueryParameter['start_time'] = startTime;
|
1758
|
+
}
|
1759
|
+
if (endTime === null || endTime === undefined) {
|
1760
|
+
throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling showDomainLocationStats.');
|
1761
|
+
}
|
1762
|
+
if (endTime !== null && endTime !== undefined) {
|
1763
|
+
localVarQueryParameter['end_time'] = endTime;
|
1764
|
+
}
|
1765
|
+
if (domainName === null || domainName === undefined) {
|
1766
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showDomainLocationStats.');
|
1767
|
+
}
|
1768
|
+
if (domainName !== null && domainName !== undefined) {
|
1769
|
+
localVarQueryParameter['domain_name'] = domainName;
|
1770
|
+
}
|
1771
|
+
if (statType === null || statType === undefined) {
|
1772
|
+
throw new RequiredError('statType', 'Required parameter statType was null or undefined when calling showDomainLocationStats.');
|
1773
|
+
}
|
1774
|
+
if (statType !== null && statType !== undefined) {
|
1775
|
+
localVarQueryParameter['stat_type'] = statType;
|
1776
|
+
}
|
1777
|
+
if (interval !== null && interval !== undefined) {
|
1778
|
+
localVarQueryParameter['interval'] = interval;
|
1779
|
+
}
|
1780
|
+
if (groupBy !== null && groupBy !== undefined) {
|
1781
|
+
localVarQueryParameter['group_by'] = groupBy;
|
1782
|
+
}
|
1783
|
+
if (country !== null && country !== undefined) {
|
1784
|
+
localVarQueryParameter['country'] = country;
|
1785
|
+
}
|
1786
|
+
if (province !== null && province !== undefined) {
|
1787
|
+
localVarQueryParameter['province'] = province;
|
1788
|
+
}
|
1789
|
+
if (isp !== null && isp !== undefined) {
|
1790
|
+
localVarQueryParameter['isp'] = isp;
|
1791
|
+
}
|
1792
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1793
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1794
|
+
}
|
1795
|
+
options.queryParams = localVarQueryParameter;
|
1796
|
+
options.headers = localVarHeaderParameter;
|
1797
|
+
return options;
|
1798
|
+
},
|
1799
|
+
/**
|
1800
|
+
* - 支持查询90天内的数据。
|
1801
|
+
*
|
1802
|
+
* - 支持多指标同时查询,不超过5个。
|
1803
|
+
*
|
1804
|
+
* - 最多同时指定20个域名。
|
1805
|
+
*
|
1806
|
+
* - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
1807
|
+
*
|
1808
|
+
* - action取值:detail,summary
|
1809
|
+
*
|
1810
|
+
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
1811
|
+
*
|
1812
|
+
* - 单租户调用频率:15次/s。
|
1813
|
+
*
|
1814
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1815
|
+
*/
|
1816
|
+
showDomainStats: function (showDomainStatsRequest) {
|
1817
|
+
var options = {
|
1818
|
+
method: "GET",
|
1819
|
+
url: "/v1.0/cdn/statistics/domain-stats",
|
1820
|
+
contentType: "application/json",
|
1821
|
+
queryParams: {},
|
1822
|
+
pathParams: {},
|
1823
|
+
headers: {},
|
1824
|
+
data: {}
|
1825
|
+
};
|
1826
|
+
var localVarHeaderParameter = {};
|
1827
|
+
var localVarQueryParameter = {};
|
1828
|
+
var action;
|
1829
|
+
var startTime;
|
1830
|
+
var endTime;
|
1831
|
+
var domainName;
|
1832
|
+
var statType;
|
1833
|
+
var interval;
|
1834
|
+
var groupBy;
|
1835
|
+
var serviceArea;
|
1836
|
+
var enterpriseProjectId;
|
1837
|
+
if (showDomainStatsRequest !== null && showDomainStatsRequest !== undefined) {
|
1838
|
+
if (showDomainStatsRequest instanceof ShowDomainStatsRequest_1.ShowDomainStatsRequest) {
|
1839
|
+
action = showDomainStatsRequest.action;
|
1840
|
+
startTime = showDomainStatsRequest.startTime;
|
1841
|
+
endTime = showDomainStatsRequest.endTime;
|
1842
|
+
domainName = showDomainStatsRequest.domainName;
|
1843
|
+
statType = showDomainStatsRequest.statType;
|
1844
|
+
interval = showDomainStatsRequest.interval;
|
1845
|
+
groupBy = showDomainStatsRequest.groupBy;
|
1846
|
+
serviceArea = showDomainStatsRequest.serviceArea;
|
1847
|
+
enterpriseProjectId = showDomainStatsRequest.enterpriseProjectId;
|
1848
|
+
}
|
1849
|
+
else {
|
1850
|
+
action = showDomainStatsRequest['action'];
|
1851
|
+
startTime = showDomainStatsRequest['start_time'];
|
1852
|
+
endTime = showDomainStatsRequest['end_time'];
|
1853
|
+
domainName = showDomainStatsRequest['domain_name'];
|
1854
|
+
statType = showDomainStatsRequest['stat_type'];
|
1855
|
+
interval = showDomainStatsRequest['interval'];
|
1856
|
+
groupBy = showDomainStatsRequest['group_by'];
|
1857
|
+
serviceArea = showDomainStatsRequest['service_area'];
|
1858
|
+
enterpriseProjectId = showDomainStatsRequest['enterprise_project_id'];
|
1859
|
+
}
|
1860
|
+
}
|
1861
|
+
if (action === null || action === undefined) {
|
1862
|
+
throw new RequiredError('action', 'Required parameter action was null or undefined when calling showDomainStats.');
|
1863
|
+
}
|
1864
|
+
if (action !== null && action !== undefined) {
|
1865
|
+
localVarQueryParameter['action'] = action;
|
1866
|
+
}
|
1867
|
+
if (startTime === null || startTime === undefined) {
|
1868
|
+
throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling showDomainStats.');
|
1869
|
+
}
|
1870
|
+
if (startTime !== null && startTime !== undefined) {
|
1871
|
+
localVarQueryParameter['start_time'] = startTime;
|
1872
|
+
}
|
1873
|
+
if (endTime === null || endTime === undefined) {
|
1874
|
+
throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling showDomainStats.');
|
1875
|
+
}
|
1876
|
+
if (endTime !== null && endTime !== undefined) {
|
1877
|
+
localVarQueryParameter['end_time'] = endTime;
|
1878
|
+
}
|
1879
|
+
if (domainName === null || domainName === undefined) {
|
1880
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showDomainStats.');
|
1881
|
+
}
|
1882
|
+
if (domainName !== null && domainName !== undefined) {
|
1883
|
+
localVarQueryParameter['domain_name'] = domainName;
|
1884
|
+
}
|
1885
|
+
if (statType === null || statType === undefined) {
|
1886
|
+
throw new RequiredError('statType', 'Required parameter statType was null or undefined when calling showDomainStats.');
|
1887
|
+
}
|
1888
|
+
if (statType !== null && statType !== undefined) {
|
1889
|
+
localVarQueryParameter['stat_type'] = statType;
|
1890
|
+
}
|
1891
|
+
if (interval !== null && interval !== undefined) {
|
1892
|
+
localVarQueryParameter['interval'] = interval;
|
1893
|
+
}
|
1894
|
+
if (groupBy !== null && groupBy !== undefined) {
|
1895
|
+
localVarQueryParameter['group_by'] = groupBy;
|
1896
|
+
}
|
1897
|
+
if (serviceArea !== null && serviceArea !== undefined) {
|
1898
|
+
localVarQueryParameter['service_area'] = serviceArea;
|
1899
|
+
}
|
1900
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1901
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1902
|
+
}
|
1903
|
+
options.queryParams = localVarQueryParameter;
|
1904
|
+
options.headers = localVarHeaderParameter;
|
1905
|
+
return options;
|
1906
|
+
},
|
1907
|
+
/**
|
1908
|
+
* 查询刷新预热任务详情。
|
1909
|
+
*
|
1910
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1911
|
+
*/
|
1912
|
+
showHistoryTaskDetails: function (showHistoryTaskDetailsRequest) {
|
1913
|
+
var options = {
|
1914
|
+
method: "GET",
|
1915
|
+
url: "/v1.0/cdn/historytasks/{history_tasks_id}/detail",
|
1916
|
+
contentType: "application/json",
|
1917
|
+
queryParams: {},
|
1918
|
+
pathParams: {},
|
1919
|
+
headers: {},
|
1920
|
+
data: {}
|
1921
|
+
};
|
1922
|
+
var localVarHeaderParameter = {};
|
1923
|
+
var localVarQueryParameter = {};
|
1924
|
+
var historyTasksId;
|
1925
|
+
var enterpriseProjectId;
|
1926
|
+
var pageSize;
|
1927
|
+
var pageNumber;
|
1928
|
+
var status;
|
1929
|
+
var url;
|
1930
|
+
var createTime;
|
1931
|
+
if (showHistoryTaskDetailsRequest !== null && showHistoryTaskDetailsRequest !== undefined) {
|
1932
|
+
if (showHistoryTaskDetailsRequest instanceof ShowHistoryTaskDetailsRequest_1.ShowHistoryTaskDetailsRequest) {
|
1933
|
+
historyTasksId = showHistoryTaskDetailsRequest.historyTasksId;
|
1934
|
+
enterpriseProjectId = showHistoryTaskDetailsRequest.enterpriseProjectId;
|
1935
|
+
pageSize = showHistoryTaskDetailsRequest.pageSize;
|
1936
|
+
pageNumber = showHistoryTaskDetailsRequest.pageNumber;
|
1937
|
+
status = showHistoryTaskDetailsRequest.status;
|
1938
|
+
url = showHistoryTaskDetailsRequest.url;
|
1939
|
+
createTime = showHistoryTaskDetailsRequest.createTime;
|
1940
|
+
}
|
1941
|
+
else {
|
1942
|
+
historyTasksId = showHistoryTaskDetailsRequest['history_tasks_id'];
|
1943
|
+
enterpriseProjectId = showHistoryTaskDetailsRequest['enterprise_project_id'];
|
1944
|
+
pageSize = showHistoryTaskDetailsRequest['page_size'];
|
1945
|
+
pageNumber = showHistoryTaskDetailsRequest['page_number'];
|
1946
|
+
status = showHistoryTaskDetailsRequest['status'];
|
1947
|
+
url = showHistoryTaskDetailsRequest['url'];
|
1948
|
+
createTime = showHistoryTaskDetailsRequest['create_time'];
|
1949
|
+
}
|
1950
|
+
}
|
1951
|
+
if (historyTasksId === null || historyTasksId === undefined) {
|
1952
|
+
throw new RequiredError('historyTasksId', 'Required parameter historyTasksId was null or undefined when calling showHistoryTaskDetails.');
|
1953
|
+
}
|
1954
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1955
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1956
|
+
}
|
1957
|
+
if (pageSize !== null && pageSize !== undefined) {
|
1958
|
+
localVarQueryParameter['page_size'] = pageSize;
|
1959
|
+
}
|
1960
|
+
if (pageNumber !== null && pageNumber !== undefined) {
|
1961
|
+
localVarQueryParameter['page_number'] = pageNumber;
|
1962
|
+
}
|
1963
|
+
if (status !== null && status !== undefined) {
|
1964
|
+
localVarQueryParameter['status'] = status;
|
1965
|
+
}
|
1966
|
+
if (url !== null && url !== undefined) {
|
1967
|
+
localVarQueryParameter['url'] = url;
|
1968
|
+
}
|
1969
|
+
if (createTime !== null && createTime !== undefined) {
|
1970
|
+
localVarQueryParameter['create_time'] = createTime;
|
1971
|
+
}
|
1972
|
+
options.queryParams = localVarQueryParameter;
|
1973
|
+
options.pathParams = { 'history_tasks_id': historyTasksId, };
|
1974
|
+
options.headers = localVarHeaderParameter;
|
1975
|
+
return options;
|
1976
|
+
},
|
1977
|
+
/**
|
1978
|
+
* 查询刷新预热任务。
|
1979
|
+
*
|
1980
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1981
|
+
*/
|
1982
|
+
showHistoryTasks: function (showHistoryTasksRequest) {
|
1983
|
+
var options = {
|
1984
|
+
method: "GET",
|
1985
|
+
url: "/v1.0/cdn/historytasks",
|
1986
|
+
contentType: "application/json",
|
1987
|
+
queryParams: {},
|
1988
|
+
pathParams: {},
|
1989
|
+
headers: {},
|
1990
|
+
data: {}
|
1991
|
+
};
|
1992
|
+
var localVarHeaderParameter = {};
|
1993
|
+
var localVarQueryParameter = {};
|
1994
|
+
var enterpriseProjectId;
|
1995
|
+
var pageSize;
|
1996
|
+
var pageNumber;
|
1997
|
+
var status;
|
1998
|
+
var startDate;
|
1999
|
+
var endDate;
|
2000
|
+
var orderField;
|
2001
|
+
var orderType;
|
2002
|
+
var fileType;
|
2003
|
+
if (showHistoryTasksRequest !== null && showHistoryTasksRequest !== undefined) {
|
2004
|
+
if (showHistoryTasksRequest instanceof ShowHistoryTasksRequest_1.ShowHistoryTasksRequest) {
|
2005
|
+
enterpriseProjectId = showHistoryTasksRequest.enterpriseProjectId;
|
2006
|
+
pageSize = showHistoryTasksRequest.pageSize;
|
2007
|
+
pageNumber = showHistoryTasksRequest.pageNumber;
|
2008
|
+
status = showHistoryTasksRequest.status;
|
2009
|
+
startDate = showHistoryTasksRequest.startDate;
|
2010
|
+
endDate = showHistoryTasksRequest.endDate;
|
2011
|
+
orderField = showHistoryTasksRequest.orderField;
|
2012
|
+
orderType = showHistoryTasksRequest.orderType;
|
2013
|
+
fileType = showHistoryTasksRequest.fileType;
|
2014
|
+
}
|
2015
|
+
else {
|
2016
|
+
enterpriseProjectId = showHistoryTasksRequest['enterprise_project_id'];
|
2017
|
+
pageSize = showHistoryTasksRequest['page_size'];
|
2018
|
+
pageNumber = showHistoryTasksRequest['page_number'];
|
2019
|
+
status = showHistoryTasksRequest['status'];
|
2020
|
+
startDate = showHistoryTasksRequest['start_date'];
|
2021
|
+
endDate = showHistoryTasksRequest['end_date'];
|
2022
|
+
orderField = showHistoryTasksRequest['order_field'];
|
2023
|
+
orderType = showHistoryTasksRequest['order_type'];
|
2024
|
+
fileType = showHistoryTasksRequest['file_type'];
|
2025
|
+
}
|
2026
|
+
}
|
2027
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2028
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2029
|
+
}
|
2030
|
+
if (pageSize !== null && pageSize !== undefined) {
|
2031
|
+
localVarQueryParameter['page_size'] = pageSize;
|
2032
|
+
}
|
2033
|
+
if (pageNumber !== null && pageNumber !== undefined) {
|
2034
|
+
localVarQueryParameter['page_number'] = pageNumber;
|
2035
|
+
}
|
2036
|
+
if (status !== null && status !== undefined) {
|
2037
|
+
localVarQueryParameter['status'] = status;
|
2038
|
+
}
|
2039
|
+
if (startDate !== null && startDate !== undefined) {
|
2040
|
+
localVarQueryParameter['start_date'] = startDate;
|
2041
|
+
}
|
2042
|
+
if (endDate !== null && endDate !== undefined) {
|
2043
|
+
localVarQueryParameter['end_date'] = endDate;
|
2044
|
+
}
|
2045
|
+
if (orderField !== null && orderField !== undefined) {
|
2046
|
+
localVarQueryParameter['order_field'] = orderField;
|
2047
|
+
}
|
2048
|
+
if (orderType !== null && orderType !== undefined) {
|
2049
|
+
localVarQueryParameter['order_type'] = orderType;
|
2050
|
+
}
|
2051
|
+
if (fileType !== null && fileType !== undefined) {
|
2052
|
+
localVarQueryParameter['file_type'] = fileType;
|
2053
|
+
}
|
2054
|
+
options.queryParams = localVarQueryParameter;
|
2055
|
+
options.headers = localVarHeaderParameter;
|
2056
|
+
return options;
|
2057
|
+
},
|
2058
|
+
/**
|
2059
|
+
* 获取加速域名证书。
|
2060
|
+
*
|
2061
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2062
|
+
*/
|
2063
|
+
showHttpInfo: function (showHttpInfoRequest) {
|
2064
|
+
var options = {
|
2065
|
+
method: "GET",
|
2066
|
+
url: "/v1.0/cdn/domains/{domain_id}/https-info",
|
2067
|
+
contentType: "application/json",
|
2068
|
+
queryParams: {},
|
2069
|
+
pathParams: {},
|
2070
|
+
headers: {},
|
2071
|
+
data: {}
|
2072
|
+
};
|
2073
|
+
var localVarHeaderParameter = {};
|
2074
|
+
var localVarQueryParameter = {};
|
2075
|
+
var domainId;
|
2076
|
+
var enterpriseProjectId;
|
2077
|
+
if (showHttpInfoRequest !== null && showHttpInfoRequest !== undefined) {
|
2078
|
+
if (showHttpInfoRequest instanceof ShowHttpInfoRequest_1.ShowHttpInfoRequest) {
|
2079
|
+
domainId = showHttpInfoRequest.domainId;
|
2080
|
+
enterpriseProjectId = showHttpInfoRequest.enterpriseProjectId;
|
2081
|
+
}
|
2082
|
+
else {
|
2083
|
+
domainId = showHttpInfoRequest['domain_id'];
|
2084
|
+
enterpriseProjectId = showHttpInfoRequest['enterprise_project_id'];
|
2085
|
+
}
|
2086
|
+
}
|
2087
|
+
if (domainId === null || domainId === undefined) {
|
2088
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling showHttpInfo.');
|
2089
|
+
}
|
2090
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2091
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2092
|
+
}
|
2093
|
+
options.queryParams = localVarQueryParameter;
|
2094
|
+
options.pathParams = { 'domain_id': domainId, };
|
2095
|
+
options.headers = localVarHeaderParameter;
|
2096
|
+
return options;
|
2097
|
+
},
|
2098
|
+
/**
|
2099
|
+
* 查询IP归属信息。
|
2100
|
+
*
|
2101
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2102
|
+
*/
|
2103
|
+
showIpInfo: function (showIpInfoRequest) {
|
2104
|
+
var options = {
|
2105
|
+
method: "GET",
|
2106
|
+
url: "/v1.0/cdn/ip-info",
|
2107
|
+
contentType: "application/json",
|
2108
|
+
queryParams: {},
|
2109
|
+
pathParams: {},
|
2110
|
+
headers: {},
|
2111
|
+
data: {}
|
2112
|
+
};
|
2113
|
+
var localVarHeaderParameter = {};
|
2114
|
+
var localVarQueryParameter = {};
|
2115
|
+
var ips;
|
2116
|
+
var enterpriseProjectId;
|
2117
|
+
if (showIpInfoRequest !== null && showIpInfoRequest !== undefined) {
|
2118
|
+
if (showIpInfoRequest instanceof ShowIpInfoRequest_1.ShowIpInfoRequest) {
|
2119
|
+
ips = showIpInfoRequest.ips;
|
2120
|
+
enterpriseProjectId = showIpInfoRequest.enterpriseProjectId;
|
2121
|
+
}
|
2122
|
+
else {
|
2123
|
+
ips = showIpInfoRequest['ips'];
|
2124
|
+
enterpriseProjectId = showIpInfoRequest['enterprise_project_id'];
|
2125
|
+
}
|
2126
|
+
}
|
2127
|
+
if (ips === null || ips === undefined) {
|
2128
|
+
throw new RequiredError('ips', 'Required parameter ips was null or undefined when calling showIpInfo.');
|
2129
|
+
}
|
2130
|
+
if (ips !== null && ips !== undefined) {
|
2131
|
+
localVarQueryParameter['ips'] = ips;
|
2132
|
+
}
|
2133
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2134
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2135
|
+
}
|
2136
|
+
options.queryParams = localVarQueryParameter;
|
2137
|
+
options.headers = localVarHeaderParameter;
|
2138
|
+
return options;
|
2139
|
+
},
|
2140
|
+
/**
|
2141
|
+
* 日志查询。
|
2142
|
+
*
|
2143
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2144
|
+
*/
|
2145
|
+
showLogs: function (showLogsRequest) {
|
2146
|
+
var options = {
|
2147
|
+
method: "GET",
|
2148
|
+
url: "/v1.0/cdn/logs",
|
2149
|
+
contentType: "application/json",
|
2150
|
+
queryParams: {},
|
2151
|
+
pathParams: {},
|
2152
|
+
headers: {},
|
2153
|
+
data: {}
|
2154
|
+
};
|
2155
|
+
var localVarHeaderParameter = {};
|
2156
|
+
var localVarQueryParameter = {};
|
2157
|
+
var domainName;
|
2158
|
+
var queryDate;
|
2159
|
+
var pageSize;
|
2160
|
+
var pageNumber;
|
2161
|
+
var enterpriseProjectId;
|
2162
|
+
if (showLogsRequest !== null && showLogsRequest !== undefined) {
|
2163
|
+
if (showLogsRequest instanceof ShowLogsRequest_1.ShowLogsRequest) {
|
2164
|
+
domainName = showLogsRequest.domainName;
|
2165
|
+
queryDate = showLogsRequest.queryDate;
|
2166
|
+
pageSize = showLogsRequest.pageSize;
|
2167
|
+
pageNumber = showLogsRequest.pageNumber;
|
2168
|
+
enterpriseProjectId = showLogsRequest.enterpriseProjectId;
|
2169
|
+
}
|
2170
|
+
else {
|
2171
|
+
domainName = showLogsRequest['domain_name'];
|
2172
|
+
queryDate = showLogsRequest['query_date'];
|
2173
|
+
pageSize = showLogsRequest['page_size'];
|
2174
|
+
pageNumber = showLogsRequest['page_number'];
|
2175
|
+
enterpriseProjectId = showLogsRequest['enterprise_project_id'];
|
2176
|
+
}
|
2177
|
+
}
|
2178
|
+
if (domainName === null || domainName === undefined) {
|
2179
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showLogs.');
|
2180
|
+
}
|
2181
|
+
if (domainName !== null && domainName !== undefined) {
|
2182
|
+
localVarQueryParameter['domain_name'] = domainName;
|
2183
|
+
}
|
2184
|
+
if (queryDate === null || queryDate === undefined) {
|
2185
|
+
throw new RequiredError('queryDate', 'Required parameter queryDate was null or undefined when calling showLogs.');
|
2186
|
+
}
|
2187
|
+
if (queryDate !== null && queryDate !== undefined) {
|
2188
|
+
localVarQueryParameter['query_date'] = queryDate;
|
2189
|
+
}
|
2190
|
+
if (pageSize !== null && pageSize !== undefined) {
|
2191
|
+
localVarQueryParameter['page_size'] = pageSize;
|
2192
|
+
}
|
2193
|
+
if (pageNumber !== null && pageNumber !== undefined) {
|
2194
|
+
localVarQueryParameter['page_number'] = pageNumber;
|
2195
|
+
}
|
2196
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2197
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2198
|
+
}
|
2199
|
+
options.queryParams = localVarQueryParameter;
|
2200
|
+
options.headers = localVarHeaderParameter;
|
2201
|
+
return options;
|
2202
|
+
},
|
2203
|
+
/**
|
2204
|
+
* 查询回源HOST。回源HOST是CDN节点在回源过程中,在源站访问的站点域名,即http请求头中的host信息。
|
2205
|
+
*
|
2206
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2207
|
+
*/
|
2208
|
+
showOriginHost: function (showOriginHostRequest) {
|
2209
|
+
var options = {
|
2210
|
+
method: "GET",
|
2211
|
+
url: "/v1.0/cdn/domains/{domain_id}/originhost",
|
2212
|
+
contentType: "application/json",
|
2213
|
+
queryParams: {},
|
2214
|
+
pathParams: {},
|
2215
|
+
headers: {},
|
2216
|
+
data: {}
|
2217
|
+
};
|
2218
|
+
var localVarHeaderParameter = {};
|
2219
|
+
var localVarQueryParameter = {};
|
2220
|
+
var domainId;
|
2221
|
+
var enterpriseProjectId;
|
2222
|
+
if (showOriginHostRequest !== null && showOriginHostRequest !== undefined) {
|
2223
|
+
if (showOriginHostRequest instanceof ShowOriginHostRequest_1.ShowOriginHostRequest) {
|
2224
|
+
domainId = showOriginHostRequest.domainId;
|
2225
|
+
enterpriseProjectId = showOriginHostRequest.enterpriseProjectId;
|
2226
|
+
}
|
2227
|
+
else {
|
2228
|
+
domainId = showOriginHostRequest['domain_id'];
|
2229
|
+
enterpriseProjectId = showOriginHostRequest['enterprise_project_id'];
|
2230
|
+
}
|
2231
|
+
}
|
2232
|
+
if (domainId === null || domainId === undefined) {
|
2233
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling showOriginHost.');
|
2234
|
+
}
|
2235
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2236
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2237
|
+
}
|
2238
|
+
options.queryParams = localVarQueryParameter;
|
2239
|
+
options.pathParams = { 'domain_id': domainId, };
|
2240
|
+
options.headers = localVarHeaderParameter;
|
2241
|
+
return options;
|
2242
|
+
},
|
2243
|
+
/**
|
2244
|
+
* 查询当前用户域名、刷新文件、刷新目录和预热的配额
|
2245
|
+
*
|
2246
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2247
|
+
*/
|
2248
|
+
showQuota: function () {
|
2249
|
+
var options = {
|
2250
|
+
method: "GET",
|
2251
|
+
url: "/v1.0/cdn/quota",
|
2252
|
+
contentType: "application/json",
|
2253
|
+
queryParams: {},
|
2254
|
+
pathParams: {},
|
2255
|
+
headers: {},
|
2256
|
+
data: {}
|
2257
|
+
};
|
2258
|
+
var localVarHeaderParameter = {};
|
2259
|
+
options.headers = localVarHeaderParameter;
|
2260
|
+
return options;
|
2261
|
+
},
|
2262
|
+
/**
|
2263
|
+
* 查询Referer过滤规则。
|
2264
|
+
*
|
2265
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2266
|
+
*/
|
2267
|
+
showRefer: function (showReferRequest) {
|
2268
|
+
var options = {
|
2269
|
+
method: "GET",
|
2270
|
+
url: "/v1.0/cdn/domains/{domain_id}/referer",
|
2271
|
+
contentType: "application/json",
|
2272
|
+
queryParams: {},
|
2273
|
+
pathParams: {},
|
2274
|
+
headers: {},
|
2275
|
+
data: {}
|
2276
|
+
};
|
2277
|
+
var localVarHeaderParameter = {};
|
2278
|
+
var localVarQueryParameter = {};
|
2279
|
+
var domainId;
|
2280
|
+
var enterpriseProjectId;
|
2281
|
+
if (showReferRequest !== null && showReferRequest !== undefined) {
|
2282
|
+
if (showReferRequest instanceof ShowReferRequest_1.ShowReferRequest) {
|
2283
|
+
domainId = showReferRequest.domainId;
|
2284
|
+
enterpriseProjectId = showReferRequest.enterpriseProjectId;
|
2285
|
+
}
|
2286
|
+
else {
|
2287
|
+
domainId = showReferRequest['domain_id'];
|
2288
|
+
enterpriseProjectId = showReferRequest['enterprise_project_id'];
|
2289
|
+
}
|
2290
|
+
}
|
2291
|
+
if (domainId === null || domainId === undefined) {
|
2292
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling showRefer.');
|
2293
|
+
}
|
2294
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2295
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2296
|
+
}
|
2297
|
+
options.queryParams = localVarQueryParameter;
|
2298
|
+
options.pathParams = { 'domain_id': domainId, };
|
2299
|
+
options.headers = localVarHeaderParameter;
|
2300
|
+
return options;
|
2301
|
+
},
|
2302
|
+
/**
|
2303
|
+
* 列举header所有配置。
|
2304
|
+
*
|
2305
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2306
|
+
*/
|
2307
|
+
showResponseHeader: function (showResponseHeaderRequest) {
|
2308
|
+
var options = {
|
2309
|
+
method: "GET",
|
2310
|
+
url: "/v1.0/cdn/domains/{domain_id}/response-header",
|
2311
|
+
contentType: "application/json",
|
2312
|
+
queryParams: {},
|
2313
|
+
pathParams: {},
|
2314
|
+
headers: {},
|
2315
|
+
data: {}
|
2316
|
+
};
|
2317
|
+
var localVarHeaderParameter = {};
|
2318
|
+
var localVarQueryParameter = {};
|
2319
|
+
var domainId;
|
2320
|
+
var enterpriseProjectId;
|
2321
|
+
if (showResponseHeaderRequest !== null && showResponseHeaderRequest !== undefined) {
|
2322
|
+
if (showResponseHeaderRequest instanceof ShowResponseHeaderRequest_1.ShowResponseHeaderRequest) {
|
2323
|
+
domainId = showResponseHeaderRequest.domainId;
|
2324
|
+
enterpriseProjectId = showResponseHeaderRequest.enterpriseProjectId;
|
2325
|
+
}
|
2326
|
+
else {
|
2327
|
+
domainId = showResponseHeaderRequest['domain_id'];
|
2328
|
+
enterpriseProjectId = showResponseHeaderRequest['enterprise_project_id'];
|
2329
|
+
}
|
2330
|
+
}
|
2331
|
+
if (domainId === null || domainId === undefined) {
|
2332
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling showResponseHeader.');
|
2333
|
+
}
|
2334
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2335
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2336
|
+
}
|
2337
|
+
options.queryParams = localVarQueryParameter;
|
2338
|
+
options.pathParams = { 'domain_id': domainId, };
|
2339
|
+
options.headers = localVarHeaderParameter;
|
2340
|
+
return options;
|
2341
|
+
},
|
2342
|
+
/**
|
2343
|
+
* 用于查询资源标签列表
|
2344
|
+
*
|
2345
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2346
|
+
*/
|
2347
|
+
showTags: function (showTagsRequest) {
|
2348
|
+
var options = {
|
2349
|
+
method: "GET",
|
2350
|
+
url: "/v1.0/cdn/configuration/tags",
|
2351
|
+
contentType: "application/json",
|
2352
|
+
queryParams: {},
|
2353
|
+
pathParams: {},
|
2354
|
+
headers: {},
|
2355
|
+
data: {}
|
2356
|
+
};
|
2357
|
+
var localVarHeaderParameter = {};
|
2358
|
+
var localVarQueryParameter = {};
|
2359
|
+
var resourceId;
|
2360
|
+
if (showTagsRequest !== null && showTagsRequest !== undefined) {
|
2361
|
+
if (showTagsRequest instanceof ShowTagsRequest_1.ShowTagsRequest) {
|
2362
|
+
resourceId = showTagsRequest.resourceId;
|
2363
|
+
}
|
2364
|
+
else {
|
2365
|
+
resourceId = showTagsRequest['resource_id'];
|
2366
|
+
}
|
2367
|
+
}
|
2368
|
+
if (resourceId === null || resourceId === undefined) {
|
2369
|
+
throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling showTags.');
|
2370
|
+
}
|
2371
|
+
if (resourceId !== null && resourceId !== undefined) {
|
2372
|
+
localVarQueryParameter['resource_id'] = resourceId;
|
2373
|
+
}
|
2374
|
+
options.queryParams = localVarQueryParameter;
|
2375
|
+
options.headers = localVarHeaderParameter;
|
2376
|
+
return options;
|
2377
|
+
},
|
2378
|
+
/**
|
2379
|
+
* - 查询TOP100 URL明细。
|
2380
|
+
*
|
2381
|
+
* - 支持查询90天内的数据。
|
2382
|
+
*
|
2383
|
+
* - 查询跨度不能超过31天。
|
2384
|
+
*
|
2385
|
+
* - 起始时间和结束时间,左闭右开,需要同时指定。如查询2021-10-24 00:00:00 到 2021-10-25 00:00:00
|
2386
|
+
* 的数据,表示取 [2021-10-24 00:00:00, 2021-10-25 00:00:00)的统计数据。
|
2387
|
+
*
|
2388
|
+
* - 开始时间、结束时间必须传毫秒级时间戳,且必须为凌晨0点整时刻点,如果传的不是凌晨0点整时刻点,返回数据可能与预期不一致。
|
2389
|
+
*
|
2390
|
+
* - 流量类指标单位统一为Byte(字节)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
2391
|
+
*
|
2392
|
+
* - 单租户调用频率:5次/s。
|
2393
|
+
*
|
2394
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2395
|
+
*/
|
2396
|
+
showTopUrl: function (showTopUrlRequest) {
|
2397
|
+
var options = {
|
2398
|
+
method: "GET",
|
2399
|
+
url: "/v1.0/cdn/statistics/top-url",
|
2400
|
+
contentType: "application/json",
|
2401
|
+
queryParams: {},
|
2402
|
+
pathParams: {},
|
2403
|
+
headers: {},
|
2404
|
+
data: {}
|
2405
|
+
};
|
2406
|
+
var localVarHeaderParameter = {};
|
2407
|
+
var localVarQueryParameter = {};
|
2408
|
+
var startTime;
|
2409
|
+
var endTime;
|
2410
|
+
var domainName;
|
2411
|
+
var statType;
|
2412
|
+
var enterpriseProjectId;
|
2413
|
+
var serviceArea;
|
2414
|
+
if (showTopUrlRequest !== null && showTopUrlRequest !== undefined) {
|
2415
|
+
if (showTopUrlRequest instanceof ShowTopUrlRequest_1.ShowTopUrlRequest) {
|
2416
|
+
startTime = showTopUrlRequest.startTime;
|
2417
|
+
endTime = showTopUrlRequest.endTime;
|
2418
|
+
domainName = showTopUrlRequest.domainName;
|
2419
|
+
statType = showTopUrlRequest.statType;
|
2420
|
+
enterpriseProjectId = showTopUrlRequest.enterpriseProjectId;
|
2421
|
+
serviceArea = showTopUrlRequest.serviceArea;
|
2422
|
+
}
|
2423
|
+
else {
|
2424
|
+
startTime = showTopUrlRequest['start_time'];
|
2425
|
+
endTime = showTopUrlRequest['end_time'];
|
2426
|
+
domainName = showTopUrlRequest['domain_name'];
|
2427
|
+
statType = showTopUrlRequest['stat_type'];
|
2428
|
+
enterpriseProjectId = showTopUrlRequest['enterprise_project_id'];
|
2429
|
+
serviceArea = showTopUrlRequest['service_area'];
|
2430
|
+
}
|
2431
|
+
}
|
2432
|
+
if (startTime === null || startTime === undefined) {
|
2433
|
+
throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling showTopUrl.');
|
2434
|
+
}
|
2435
|
+
if (startTime !== null && startTime !== undefined) {
|
2436
|
+
localVarQueryParameter['start_time'] = startTime;
|
2437
|
+
}
|
2438
|
+
if (endTime === null || endTime === undefined) {
|
2439
|
+
throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling showTopUrl.');
|
2440
|
+
}
|
2441
|
+
if (endTime !== null && endTime !== undefined) {
|
2442
|
+
localVarQueryParameter['end_time'] = endTime;
|
2443
|
+
}
|
2444
|
+
if (domainName === null || domainName === undefined) {
|
2445
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showTopUrl.');
|
2446
|
+
}
|
2447
|
+
if (domainName !== null && domainName !== undefined) {
|
2448
|
+
localVarQueryParameter['domain_name'] = domainName;
|
2449
|
+
}
|
2450
|
+
if (statType === null || statType === undefined) {
|
2451
|
+
throw new RequiredError('statType', 'Required parameter statType was null or undefined when calling showTopUrl.');
|
2452
|
+
}
|
2453
|
+
if (statType !== null && statType !== undefined) {
|
2454
|
+
localVarQueryParameter['stat_type'] = statType;
|
2455
|
+
}
|
2456
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2457
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2458
|
+
}
|
2459
|
+
if (serviceArea !== null && serviceArea !== undefined) {
|
2460
|
+
localVarQueryParameter['service_area'] = serviceArea;
|
2461
|
+
}
|
2462
|
+
options.queryParams = localVarQueryParameter;
|
2463
|
+
options.headers = localVarHeaderParameter;
|
2464
|
+
return options;
|
2465
|
+
},
|
2466
|
+
/**
|
2467
|
+
* 查询刷新预热URL记录。如需此接口,请提交工单开通
|
2468
|
+
*
|
2469
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2470
|
+
*/
|
2471
|
+
showUrlTaskInfo: function (showUrlTaskInfoRequest) {
|
2472
|
+
var options = {
|
2473
|
+
method: "GET",
|
2474
|
+
url: "/v1.0/cdn/contentgateway/url-tasks",
|
2475
|
+
contentType: "application/json",
|
2476
|
+
queryParams: {},
|
2477
|
+
pathParams: {},
|
2478
|
+
headers: {},
|
2479
|
+
data: {}
|
2480
|
+
};
|
2481
|
+
var localVarHeaderParameter = {};
|
2482
|
+
var localVarQueryParameter = {};
|
2483
|
+
var startTime;
|
2484
|
+
var endTime;
|
2485
|
+
var offset;
|
2486
|
+
var limit;
|
2487
|
+
var url;
|
2488
|
+
var taskType;
|
2489
|
+
var status;
|
2490
|
+
var fileType;
|
2491
|
+
if (showUrlTaskInfoRequest !== null && showUrlTaskInfoRequest !== undefined) {
|
2492
|
+
if (showUrlTaskInfoRequest instanceof ShowUrlTaskInfoRequest_1.ShowUrlTaskInfoRequest) {
|
2493
|
+
startTime = showUrlTaskInfoRequest.startTime;
|
2494
|
+
endTime = showUrlTaskInfoRequest.endTime;
|
2495
|
+
offset = showUrlTaskInfoRequest.offset;
|
2496
|
+
limit = showUrlTaskInfoRequest.limit;
|
2497
|
+
url = showUrlTaskInfoRequest.url;
|
2498
|
+
taskType = showUrlTaskInfoRequest.taskType;
|
2499
|
+
status = showUrlTaskInfoRequest.status;
|
2500
|
+
fileType = showUrlTaskInfoRequest.fileType;
|
2501
|
+
}
|
2502
|
+
else {
|
2503
|
+
startTime = showUrlTaskInfoRequest['start_time'];
|
2504
|
+
endTime = showUrlTaskInfoRequest['end_time'];
|
2505
|
+
offset = showUrlTaskInfoRequest['offset'];
|
2506
|
+
limit = showUrlTaskInfoRequest['limit'];
|
2507
|
+
url = showUrlTaskInfoRequest['url'];
|
2508
|
+
taskType = showUrlTaskInfoRequest['task_type'];
|
2509
|
+
status = showUrlTaskInfoRequest['status'];
|
2510
|
+
fileType = showUrlTaskInfoRequest['file_type'];
|
2511
|
+
}
|
2512
|
+
}
|
2513
|
+
if (startTime !== null && startTime !== undefined) {
|
2514
|
+
localVarQueryParameter['start_time'] = startTime;
|
2515
|
+
}
|
2516
|
+
if (endTime !== null && endTime !== undefined) {
|
2517
|
+
localVarQueryParameter['end_time'] = endTime;
|
2518
|
+
}
|
2519
|
+
if (offset !== null && offset !== undefined) {
|
2520
|
+
localVarQueryParameter['offset'] = offset;
|
2521
|
+
}
|
2522
|
+
if (limit !== null && limit !== undefined) {
|
2523
|
+
localVarQueryParameter['limit'] = limit;
|
2524
|
+
}
|
2525
|
+
if (url !== null && url !== undefined) {
|
2526
|
+
localVarQueryParameter['url'] = url;
|
2527
|
+
}
|
2528
|
+
if (taskType !== null && taskType !== undefined) {
|
2529
|
+
localVarQueryParameter['task_type'] = taskType;
|
2530
|
+
}
|
2531
|
+
if (status !== null && status !== undefined) {
|
2532
|
+
localVarQueryParameter['status'] = status;
|
2533
|
+
}
|
2534
|
+
if (fileType !== null && fileType !== undefined) {
|
2535
|
+
localVarQueryParameter['file_type'] = fileType;
|
2536
|
+
}
|
2537
|
+
options.queryParams = localVarQueryParameter;
|
2538
|
+
options.headers = localVarHeaderParameter;
|
2539
|
+
return options;
|
2540
|
+
},
|
2541
|
+
/**
|
2542
|
+
* 设置域名的IP黑白名单。
|
2543
|
+
*
|
2544
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2545
|
+
*/
|
2546
|
+
updateBlackWhiteList: function (updateBlackWhiteListRequest) {
|
2547
|
+
var options = {
|
2548
|
+
method: "PUT",
|
2549
|
+
url: "/v1.0/cdn/domains/{domain_id}/ip-acl",
|
2550
|
+
contentType: "application/json",
|
2551
|
+
queryParams: {},
|
2552
|
+
pathParams: {},
|
2553
|
+
headers: {},
|
2554
|
+
data: {}
|
2555
|
+
};
|
2556
|
+
var localVarHeaderParameter = {};
|
2557
|
+
var localVarQueryParameter = {};
|
2558
|
+
var body;
|
2559
|
+
var domainId;
|
2560
|
+
var enterpriseProjectId;
|
2561
|
+
if (updateBlackWhiteListRequest !== null && updateBlackWhiteListRequest !== undefined) {
|
2562
|
+
if (updateBlackWhiteListRequest instanceof UpdateBlackWhiteListRequest_1.UpdateBlackWhiteListRequest) {
|
2563
|
+
domainId = updateBlackWhiteListRequest.domainId;
|
2564
|
+
body = updateBlackWhiteListRequest.body;
|
2565
|
+
enterpriseProjectId = updateBlackWhiteListRequest.enterpriseProjectId;
|
2566
|
+
}
|
2567
|
+
else {
|
2568
|
+
domainId = updateBlackWhiteListRequest['domain_id'];
|
2569
|
+
body = updateBlackWhiteListRequest['body'];
|
2570
|
+
enterpriseProjectId = updateBlackWhiteListRequest['enterprise_project_id'];
|
2571
|
+
}
|
2572
|
+
}
|
2573
|
+
if (domainId === null || domainId === undefined) {
|
2574
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling updateBlackWhiteList.');
|
2575
|
+
}
|
2576
|
+
if (body === null || body === undefined) {
|
2577
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2578
|
+
}
|
2579
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2580
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2581
|
+
}
|
2582
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2583
|
+
options.data = body !== undefined ? body : {};
|
2584
|
+
options.queryParams = localVarQueryParameter;
|
2585
|
+
options.pathParams = { 'domain_id': domainId, };
|
2586
|
+
options.headers = localVarHeaderParameter;
|
2587
|
+
return options;
|
2588
|
+
},
|
2589
|
+
/**
|
2590
|
+
* 设置CDN节点上缓存资源的缓存策略。
|
2591
|
+
*
|
2592
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2593
|
+
*/
|
2594
|
+
updateCacheRules: function (updateCacheRulesRequest) {
|
2595
|
+
var options = {
|
2596
|
+
method: "PUT",
|
2597
|
+
url: "/v1.0/cdn/domains/{domain_id}/cache",
|
2598
|
+
contentType: "application/json",
|
2599
|
+
queryParams: {},
|
2600
|
+
pathParams: {},
|
2601
|
+
headers: {},
|
2602
|
+
data: {}
|
2603
|
+
};
|
2604
|
+
var localVarHeaderParameter = {};
|
2605
|
+
var localVarQueryParameter = {};
|
2606
|
+
var body;
|
2607
|
+
var domainId;
|
2608
|
+
var enterpriseProjectId;
|
2609
|
+
if (updateCacheRulesRequest !== null && updateCacheRulesRequest !== undefined) {
|
2610
|
+
if (updateCacheRulesRequest instanceof UpdateCacheRulesRequest_1.UpdateCacheRulesRequest) {
|
2611
|
+
domainId = updateCacheRulesRequest.domainId;
|
2612
|
+
body = updateCacheRulesRequest.body;
|
2613
|
+
enterpriseProjectId = updateCacheRulesRequest.enterpriseProjectId;
|
2614
|
+
}
|
2615
|
+
else {
|
2616
|
+
domainId = updateCacheRulesRequest['domain_id'];
|
2617
|
+
body = updateCacheRulesRequest['body'];
|
2618
|
+
enterpriseProjectId = updateCacheRulesRequest['enterprise_project_id'];
|
2619
|
+
}
|
2620
|
+
}
|
2621
|
+
if (domainId === null || domainId === undefined) {
|
2622
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling updateCacheRules.');
|
2623
|
+
}
|
2624
|
+
if (body === null || body === undefined) {
|
2625
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2626
|
+
}
|
2627
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2628
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2629
|
+
}
|
2630
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2631
|
+
options.data = body !== undefined ? body : {};
|
2632
|
+
options.queryParams = localVarQueryParameter;
|
2633
|
+
options.pathParams = { 'domain_id': domainId, };
|
2634
|
+
options.headers = localVarHeaderParameter;
|
2635
|
+
return options;
|
2636
|
+
},
|
2637
|
+
/**
|
2638
|
+
* 修改域名全量配置接口,支持配置回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、缓存URL参数、IPv6、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面
|
2639
|
+
*
|
2640
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2641
|
+
*/
|
2642
|
+
updateDomainFullConfig: function (updateDomainFullConfigRequest) {
|
2643
|
+
var options = {
|
2644
|
+
method: "PUT",
|
2645
|
+
url: "/v1.1/cdn/configuration/domains/{domain_name}/configs",
|
2646
|
+
contentType: "application/json",
|
2647
|
+
queryParams: {},
|
2648
|
+
pathParams: {},
|
2649
|
+
headers: {},
|
2650
|
+
data: {}
|
2651
|
+
};
|
2652
|
+
var localVarHeaderParameter = {};
|
2653
|
+
var localVarQueryParameter = {};
|
2654
|
+
var body;
|
2655
|
+
var domainName;
|
2656
|
+
var enterpriseProjectId;
|
2657
|
+
if (updateDomainFullConfigRequest !== null && updateDomainFullConfigRequest !== undefined) {
|
2658
|
+
if (updateDomainFullConfigRequest instanceof UpdateDomainFullConfigRequest_1.UpdateDomainFullConfigRequest) {
|
2659
|
+
domainName = updateDomainFullConfigRequest.domainName;
|
2660
|
+
body = updateDomainFullConfigRequest.body;
|
2661
|
+
enterpriseProjectId = updateDomainFullConfigRequest.enterpriseProjectId;
|
2662
|
+
}
|
2663
|
+
else {
|
2664
|
+
domainName = updateDomainFullConfigRequest['domain_name'];
|
2665
|
+
body = updateDomainFullConfigRequest['body'];
|
2666
|
+
enterpriseProjectId = updateDomainFullConfigRequest['enterprise_project_id'];
|
2667
|
+
}
|
2668
|
+
}
|
2669
|
+
if (domainName === null || domainName === undefined) {
|
2670
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling updateDomainFullConfig.');
|
2671
|
+
}
|
2672
|
+
if (body === null || body === undefined) {
|
2673
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2674
|
+
}
|
2675
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2676
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2677
|
+
}
|
2678
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2679
|
+
options.data = body !== undefined ? body : {};
|
2680
|
+
options.queryParams = localVarQueryParameter;
|
2681
|
+
options.pathParams = { 'domain_name': domainName, };
|
2682
|
+
options.headers = localVarHeaderParameter;
|
2683
|
+
return options;
|
2684
|
+
},
|
2685
|
+
/**
|
2686
|
+
* 一个证书配置多个域名,设置域名强制https回源参数。
|
2687
|
+
*
|
2688
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2689
|
+
*/
|
2690
|
+
updateDomainMultiCertificates: function (updateDomainMultiCertificatesRequest) {
|
2691
|
+
var options = {
|
2692
|
+
method: "PUT",
|
2693
|
+
url: "/v1.0/cdn/domains/config-https-info",
|
2694
|
+
contentType: "application/json",
|
2695
|
+
queryParams: {},
|
2696
|
+
pathParams: {},
|
2697
|
+
headers: {},
|
2698
|
+
data: {}
|
2699
|
+
};
|
2700
|
+
var localVarHeaderParameter = {};
|
2701
|
+
var localVarQueryParameter = {};
|
2702
|
+
var body;
|
2703
|
+
var enterpriseProjectId;
|
2704
|
+
if (updateDomainMultiCertificatesRequest !== null && updateDomainMultiCertificatesRequest !== undefined) {
|
2705
|
+
if (updateDomainMultiCertificatesRequest instanceof UpdateDomainMultiCertificatesRequest_1.UpdateDomainMultiCertificatesRequest) {
|
2706
|
+
enterpriseProjectId = updateDomainMultiCertificatesRequest.enterpriseProjectId;
|
2707
|
+
body = updateDomainMultiCertificatesRequest.body;
|
2708
|
+
}
|
2709
|
+
else {
|
2710
|
+
enterpriseProjectId = updateDomainMultiCertificatesRequest['enterprise_project_id'];
|
2711
|
+
body = updateDomainMultiCertificatesRequest['body'];
|
2712
|
+
}
|
2713
|
+
}
|
2714
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2715
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2716
|
+
}
|
2717
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2718
|
+
options.data = body !== undefined ? body : {};
|
2719
|
+
options.queryParams = localVarQueryParameter;
|
2720
|
+
options.headers = localVarHeaderParameter;
|
2721
|
+
return options;
|
2722
|
+
},
|
2723
|
+
/**
|
2724
|
+
* 修改源站信息。源站IP地址或域名都可以指引CDN节点回源到对应的源站服务器,源站域名不能与加速域名相同。
|
2725
|
+
*
|
2726
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2727
|
+
*/
|
2728
|
+
updateDomainOrigin: function (updateDomainOriginRequest) {
|
2729
|
+
var options = {
|
2730
|
+
method: "PUT",
|
2731
|
+
url: "/v1.0/cdn/domains/{domain_id}/origin",
|
2732
|
+
contentType: "application/json",
|
2733
|
+
queryParams: {},
|
2734
|
+
pathParams: {},
|
2735
|
+
headers: {},
|
2736
|
+
data: {}
|
2737
|
+
};
|
2738
|
+
var localVarHeaderParameter = {};
|
2739
|
+
var localVarQueryParameter = {};
|
2740
|
+
var body;
|
2741
|
+
var domainId;
|
2742
|
+
var enterpriseProjectId;
|
2743
|
+
if (updateDomainOriginRequest !== null && updateDomainOriginRequest !== undefined) {
|
2744
|
+
if (updateDomainOriginRequest instanceof UpdateDomainOriginRequest_1.UpdateDomainOriginRequest) {
|
2745
|
+
domainId = updateDomainOriginRequest.domainId;
|
2746
|
+
body = updateDomainOriginRequest.body;
|
2747
|
+
enterpriseProjectId = updateDomainOriginRequest.enterpriseProjectId;
|
2748
|
+
}
|
2749
|
+
else {
|
2750
|
+
domainId = updateDomainOriginRequest['domain_id'];
|
2751
|
+
body = updateDomainOriginRequest['body'];
|
2752
|
+
enterpriseProjectId = updateDomainOriginRequest['enterprise_project_id'];
|
2753
|
+
}
|
2754
|
+
}
|
2755
|
+
if (domainId === null || domainId === undefined) {
|
2756
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling updateDomainOrigin.');
|
2757
|
+
}
|
2758
|
+
if (body === null || body === undefined) {
|
2759
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2760
|
+
}
|
2761
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2762
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2763
|
+
}
|
2764
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2765
|
+
options.data = body !== undefined ? body : {};
|
2766
|
+
options.queryParams = localVarQueryParameter;
|
2767
|
+
options.pathParams = { 'domain_id': domainId, };
|
2768
|
+
options.headers = localVarHeaderParameter;
|
2769
|
+
return options;
|
2770
|
+
},
|
2771
|
+
/**
|
2772
|
+
* 开启此项配置后,当CDN节点回源请求源站返回301/302状态码时,CDN节点会先跳转到301/302对应地址获取资源并缓存后再返回给用户。
|
2773
|
+
*
|
2774
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2775
|
+
*/
|
2776
|
+
updateFollow302Switch: function (updateFollow302SwitchRequest) {
|
2777
|
+
var options = {
|
2778
|
+
method: "PUT",
|
2779
|
+
url: "/v1.0/cdn/domains/{domain_id}/follow302-switch",
|
2780
|
+
contentType: "application/json",
|
2781
|
+
queryParams: {},
|
2782
|
+
pathParams: {},
|
2783
|
+
headers: {},
|
2784
|
+
data: {}
|
2785
|
+
};
|
2786
|
+
var localVarHeaderParameter = {};
|
2787
|
+
var localVarQueryParameter = {};
|
2788
|
+
var body;
|
2789
|
+
var domainId;
|
2790
|
+
var enterpriseProjectId;
|
2791
|
+
if (updateFollow302SwitchRequest !== null && updateFollow302SwitchRequest !== undefined) {
|
2792
|
+
if (updateFollow302SwitchRequest instanceof UpdateFollow302SwitchRequest_1.UpdateFollow302SwitchRequest) {
|
2793
|
+
domainId = updateFollow302SwitchRequest.domainId;
|
2794
|
+
body = updateFollow302SwitchRequest.body;
|
2795
|
+
enterpriseProjectId = updateFollow302SwitchRequest.enterpriseProjectId;
|
2796
|
+
}
|
2797
|
+
else {
|
2798
|
+
domainId = updateFollow302SwitchRequest['domain_id'];
|
2799
|
+
body = updateFollow302SwitchRequest['body'];
|
2800
|
+
enterpriseProjectId = updateFollow302SwitchRequest['enterprise_project_id'];
|
2801
|
+
}
|
2802
|
+
}
|
2803
|
+
if (domainId === null || domainId === undefined) {
|
2804
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling updateFollow302Switch.');
|
2805
|
+
}
|
2806
|
+
if (body === null || body === undefined) {
|
2807
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2808
|
+
}
|
2809
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2810
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2811
|
+
}
|
2812
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2813
|
+
options.data = body !== undefined ? body : {};
|
2814
|
+
options.queryParams = localVarQueryParameter;
|
2815
|
+
options.pathParams = { 'domain_id': domainId, };
|
2816
|
+
options.headers = localVarHeaderParameter;
|
2817
|
+
return options;
|
2818
|
+
},
|
2819
|
+
/**
|
2820
|
+
* 设置加速域名HTTPS。通过配置加速域名的HTTPS证书,并将其部署在全网CDN节点,实现HTTPS安全加速。
|
2821
|
+
*
|
2822
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2823
|
+
*/
|
2824
|
+
updateHttpsInfo: function (updateHttpsInfoRequest) {
|
2825
|
+
var options = {
|
2826
|
+
method: "PUT",
|
2827
|
+
url: "/v1.0/cdn/domains/{domain_id}/https-info",
|
2828
|
+
contentType: "application/json",
|
2829
|
+
queryParams: {},
|
2830
|
+
pathParams: {},
|
2831
|
+
headers: {},
|
2832
|
+
data: {}
|
2833
|
+
};
|
2834
|
+
var localVarHeaderParameter = {};
|
2835
|
+
var localVarQueryParameter = {};
|
2836
|
+
var body;
|
2837
|
+
var domainId;
|
2838
|
+
var enterpriseProjectId;
|
2839
|
+
if (updateHttpsInfoRequest !== null && updateHttpsInfoRequest !== undefined) {
|
2840
|
+
if (updateHttpsInfoRequest instanceof UpdateHttpsInfoRequest_1.UpdateHttpsInfoRequest) {
|
2841
|
+
domainId = updateHttpsInfoRequest.domainId;
|
2842
|
+
body = updateHttpsInfoRequest.body;
|
2843
|
+
enterpriseProjectId = updateHttpsInfoRequest.enterpriseProjectId;
|
2844
|
+
}
|
2845
|
+
else {
|
2846
|
+
domainId = updateHttpsInfoRequest['domain_id'];
|
2847
|
+
body = updateHttpsInfoRequest['body'];
|
2848
|
+
enterpriseProjectId = updateHttpsInfoRequest['enterprise_project_id'];
|
2849
|
+
}
|
2850
|
+
}
|
2851
|
+
if (domainId === null || domainId === undefined) {
|
2852
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling updateHttpsInfo.');
|
2853
|
+
}
|
2854
|
+
if (body === null || body === undefined) {
|
2855
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2856
|
+
}
|
2857
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2858
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2859
|
+
}
|
2860
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2861
|
+
options.data = body !== undefined ? body : {};
|
2862
|
+
options.queryParams = localVarQueryParameter;
|
2863
|
+
options.pathParams = { 'domain_id': domainId, };
|
2864
|
+
options.headers = localVarHeaderParameter;
|
2865
|
+
return options;
|
2866
|
+
},
|
2867
|
+
/**
|
2868
|
+
* 修改回源HOST。回源HOST是CDN节点在回源过程中,在源站访问的站点域名,即http请求头中的host信息。
|
2869
|
+
*
|
2870
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2871
|
+
*/
|
2872
|
+
updateOriginHost: function (updateOriginHostRequest) {
|
2873
|
+
var options = {
|
2874
|
+
method: "PUT",
|
2875
|
+
url: "/v1.0/cdn/domains/{domain_id}/originhost",
|
2876
|
+
contentType: "application/json",
|
2877
|
+
queryParams: {},
|
2878
|
+
pathParams: {},
|
2879
|
+
headers: {},
|
2880
|
+
data: {}
|
2881
|
+
};
|
2882
|
+
var localVarHeaderParameter = {};
|
2883
|
+
var localVarQueryParameter = {};
|
2884
|
+
var body;
|
2885
|
+
var domainId;
|
2886
|
+
var enterpriseProjectId;
|
2887
|
+
if (updateOriginHostRequest !== null && updateOriginHostRequest !== undefined) {
|
2888
|
+
if (updateOriginHostRequest instanceof UpdateOriginHostRequest_1.UpdateOriginHostRequest) {
|
2889
|
+
domainId = updateOriginHostRequest.domainId;
|
2890
|
+
body = updateOriginHostRequest.body;
|
2891
|
+
enterpriseProjectId = updateOriginHostRequest.enterpriseProjectId;
|
2892
|
+
}
|
2893
|
+
else {
|
2894
|
+
domainId = updateOriginHostRequest['domain_id'];
|
2895
|
+
body = updateOriginHostRequest['body'];
|
2896
|
+
enterpriseProjectId = updateOriginHostRequest['enterprise_project_id'];
|
2897
|
+
}
|
2898
|
+
}
|
2899
|
+
if (domainId === null || domainId === undefined) {
|
2900
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling updateOriginHost.');
|
2901
|
+
}
|
2902
|
+
if (body === null || body === undefined) {
|
2903
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2904
|
+
}
|
2905
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2906
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2907
|
+
}
|
2908
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2909
|
+
options.data = body !== undefined ? body : {};
|
2910
|
+
options.queryParams = localVarQueryParameter;
|
2911
|
+
options.pathParams = { 'domain_id': domainId, };
|
2912
|
+
options.headers = localVarHeaderParameter;
|
2913
|
+
return options;
|
2914
|
+
},
|
2915
|
+
/**
|
2916
|
+
* 修改私有桶开启关闭状态。
|
2917
|
+
*
|
2918
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2919
|
+
*/
|
2920
|
+
updatePrivateBucketAccess: function (updatePrivateBucketAccessRequest) {
|
2921
|
+
var options = {
|
2922
|
+
method: "PUT",
|
2923
|
+
url: "/v1.0/cdn/domains/{domain_id}/private-bucket-access",
|
2924
|
+
contentType: "application/json",
|
2925
|
+
queryParams: {},
|
2926
|
+
pathParams: {},
|
2927
|
+
headers: {},
|
2928
|
+
data: {}
|
2929
|
+
};
|
2930
|
+
var localVarHeaderParameter = {};
|
2931
|
+
var localVarQueryParameter = {};
|
2932
|
+
var body;
|
2933
|
+
var domainId;
|
2934
|
+
var enterpriseProjectId;
|
2935
|
+
if (updatePrivateBucketAccessRequest !== null && updatePrivateBucketAccessRequest !== undefined) {
|
2936
|
+
if (updatePrivateBucketAccessRequest instanceof UpdatePrivateBucketAccessRequest_1.UpdatePrivateBucketAccessRequest) {
|
2937
|
+
domainId = updatePrivateBucketAccessRequest.domainId;
|
2938
|
+
enterpriseProjectId = updatePrivateBucketAccessRequest.enterpriseProjectId;
|
2939
|
+
body = updatePrivateBucketAccessRequest.body;
|
2940
|
+
}
|
2941
|
+
else {
|
2942
|
+
domainId = updatePrivateBucketAccessRequest['domain_id'];
|
2943
|
+
enterpriseProjectId = updatePrivateBucketAccessRequest['enterprise_project_id'];
|
2944
|
+
body = updatePrivateBucketAccessRequest['body'];
|
2945
|
+
}
|
2946
|
+
}
|
2947
|
+
if (domainId === null || domainId === undefined) {
|
2948
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling updatePrivateBucketAccess.');
|
2949
|
+
}
|
2950
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2951
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2952
|
+
}
|
2953
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2954
|
+
options.data = body !== undefined ? body : {};
|
2955
|
+
options.queryParams = localVarQueryParameter;
|
2956
|
+
options.pathParams = { 'domain_id': domainId, };
|
2957
|
+
options.headers = localVarHeaderParameter;
|
2958
|
+
return options;
|
2959
|
+
},
|
2960
|
+
/**
|
2961
|
+
* Range回源是指源站在收到CDN节点回源请求时,根据http请求头中的Range信息返回指定范围的数据给CDN节点。
|
2962
|
+
*
|
2963
|
+
* 开启Range回源前需要确认源站是否支持Range请求,若源站不支持Range请求,开启Range回源将导致资源无法缓存。
|
2964
|
+
*
|
2965
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2966
|
+
*/
|
2967
|
+
updateRangeSwitch: function (updateRangeSwitchRequest) {
|
2968
|
+
var options = {
|
2969
|
+
method: "PUT",
|
2970
|
+
url: "/v1.0/cdn/domains/{domain_id}/range-switch",
|
2971
|
+
contentType: "application/json",
|
2972
|
+
queryParams: {},
|
2973
|
+
pathParams: {},
|
2974
|
+
headers: {},
|
2975
|
+
data: {}
|
2976
|
+
};
|
2977
|
+
var localVarHeaderParameter = {};
|
2978
|
+
var localVarQueryParameter = {};
|
2979
|
+
var body;
|
2980
|
+
var domainId;
|
2981
|
+
var enterpriseProjectId;
|
2982
|
+
if (updateRangeSwitchRequest !== null && updateRangeSwitchRequest !== undefined) {
|
2983
|
+
if (updateRangeSwitchRequest instanceof UpdateRangeSwitchRequest_1.UpdateRangeSwitchRequest) {
|
2984
|
+
domainId = updateRangeSwitchRequest.domainId;
|
2985
|
+
body = updateRangeSwitchRequest.body;
|
2986
|
+
enterpriseProjectId = updateRangeSwitchRequest.enterpriseProjectId;
|
2987
|
+
}
|
2988
|
+
else {
|
2989
|
+
domainId = updateRangeSwitchRequest['domain_id'];
|
2990
|
+
body = updateRangeSwitchRequest['body'];
|
2991
|
+
enterpriseProjectId = updateRangeSwitchRequest['enterprise_project_id'];
|
2992
|
+
}
|
2993
|
+
}
|
2994
|
+
if (domainId === null || domainId === undefined) {
|
2995
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling updateRangeSwitch.');
|
2996
|
+
}
|
2997
|
+
if (body === null || body === undefined) {
|
2998
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2999
|
+
}
|
3000
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
3001
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
3002
|
+
}
|
3003
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3004
|
+
options.data = body !== undefined ? body : {};
|
3005
|
+
options.queryParams = localVarQueryParameter;
|
3006
|
+
options.pathParams = { 'domain_id': domainId, };
|
3007
|
+
options.headers = localVarHeaderParameter;
|
3008
|
+
return options;
|
3009
|
+
},
|
3010
|
+
/**
|
3011
|
+
* 设置Referer过滤规则。通过设置过滤策略,对访问者身份进行识别和过滤,实现限制访问来源的目的。
|
3012
|
+
*
|
3013
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3014
|
+
*/
|
3015
|
+
updateRefer: function (updateReferRequest) {
|
3016
|
+
var options = {
|
3017
|
+
method: "PUT",
|
3018
|
+
url: "/v1.0/cdn/domains/{domain_id}/referer",
|
3019
|
+
contentType: "application/json",
|
3020
|
+
queryParams: {},
|
3021
|
+
pathParams: {},
|
3022
|
+
headers: {},
|
3023
|
+
data: {}
|
3024
|
+
};
|
3025
|
+
var localVarHeaderParameter = {};
|
3026
|
+
var localVarQueryParameter = {};
|
3027
|
+
var body;
|
3028
|
+
var domainId;
|
3029
|
+
var enterpriseProjectId;
|
3030
|
+
if (updateReferRequest !== null && updateReferRequest !== undefined) {
|
3031
|
+
if (updateReferRequest instanceof UpdateReferRequest_1.UpdateReferRequest) {
|
3032
|
+
domainId = updateReferRequest.domainId;
|
3033
|
+
body = updateReferRequest.body;
|
3034
|
+
enterpriseProjectId = updateReferRequest.enterpriseProjectId;
|
3035
|
+
}
|
3036
|
+
else {
|
3037
|
+
domainId = updateReferRequest['domain_id'];
|
3038
|
+
body = updateReferRequest['body'];
|
3039
|
+
enterpriseProjectId = updateReferRequest['enterprise_project_id'];
|
3040
|
+
}
|
3041
|
+
}
|
3042
|
+
if (domainId === null || domainId === undefined) {
|
3043
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling updateRefer.');
|
3044
|
+
}
|
3045
|
+
if (body === null || body === undefined) {
|
3046
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
3047
|
+
}
|
3048
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
3049
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
3050
|
+
}
|
3051
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3052
|
+
options.data = body !== undefined ? body : {};
|
3053
|
+
options.queryParams = localVarQueryParameter;
|
3054
|
+
options.pathParams = { 'domain_id': domainId, };
|
3055
|
+
options.headers = localVarHeaderParameter;
|
3056
|
+
return options;
|
3057
|
+
},
|
3058
|
+
/**
|
3059
|
+
* 新增/修改域名响应头配置。
|
3060
|
+
*
|
3061
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3062
|
+
*/
|
3063
|
+
updateResponseHeader: function (updateResponseHeaderRequest) {
|
3064
|
+
var options = {
|
3065
|
+
method: "PUT",
|
3066
|
+
url: "/v1.0/cdn/domains/{domain_id}/response-header",
|
3067
|
+
contentType: "application/json",
|
3068
|
+
queryParams: {},
|
3069
|
+
pathParams: {},
|
3070
|
+
headers: {},
|
3071
|
+
data: {}
|
3072
|
+
};
|
3073
|
+
var localVarHeaderParameter = {};
|
3074
|
+
var localVarQueryParameter = {};
|
3075
|
+
var body;
|
3076
|
+
var domainId;
|
3077
|
+
var enterpriseProjectId;
|
3078
|
+
if (updateResponseHeaderRequest !== null && updateResponseHeaderRequest !== undefined) {
|
3079
|
+
if (updateResponseHeaderRequest instanceof UpdateResponseHeaderRequest_1.UpdateResponseHeaderRequest) {
|
3080
|
+
domainId = updateResponseHeaderRequest.domainId;
|
3081
|
+
body = updateResponseHeaderRequest.body;
|
3082
|
+
enterpriseProjectId = updateResponseHeaderRequest.enterpriseProjectId;
|
3083
|
+
}
|
3084
|
+
else {
|
3085
|
+
domainId = updateResponseHeaderRequest['domain_id'];
|
3086
|
+
body = updateResponseHeaderRequest['body'];
|
3087
|
+
enterpriseProjectId = updateResponseHeaderRequest['enterprise_project_id'];
|
3088
|
+
}
|
3089
|
+
}
|
3090
|
+
if (domainId === null || domainId === undefined) {
|
3091
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling updateResponseHeader.');
|
3092
|
+
}
|
3093
|
+
if (body === null || body === undefined) {
|
3094
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
3095
|
+
}
|
3096
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
3097
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
3098
|
+
}
|
3099
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3100
|
+
options.data = body !== undefined ? body : {};
|
3101
|
+
options.queryParams = localVarQueryParameter;
|
3102
|
+
options.pathParams = { 'domain_id': domainId, };
|
3103
|
+
options.headers = localVarHeaderParameter;
|
3104
|
+
return options;
|
3105
|
+
},
|
3106
|
+
};
|
3107
|
+
};
|
3108
|
+
exports.ParamCreater = ParamCreater;
|
3109
|
+
function newClient(client) {
|
3110
|
+
return new CdnClient(client);
|
3111
|
+
}
|
3112
|
+
/**
|
3113
|
+
*
|
3114
|
+
* @export
|
3115
|
+
* @class RequiredError
|
3116
|
+
* @extends {Error}
|
3117
|
+
*/
|
3118
|
+
var RequiredError = /** @class */ (function (_super) {
|
3119
|
+
__extends(RequiredError, _super);
|
3120
|
+
function RequiredError(field, msg) {
|
3121
|
+
var _this = _super.call(this, msg) || this;
|
3122
|
+
_this.field = field;
|
3123
|
+
_this.name = "RequiredError";
|
3124
|
+
return _this;
|
3125
|
+
}
|
3126
|
+
return RequiredError;
|
3127
|
+
}(Error));
|
3128
|
+
exports.RequiredError = RequiredError;
|