public class CdnClient extends AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION
Constructor and Description |
---|
CdnClient(Credential credential,
String region) |
CdnClient(Credential credential,
String region,
ClientProfile profile) |
Modifier and Type | Method and Description |
---|---|
AddCdnDomainResponse |
AddCdnDomain(AddCdnDomainRequest req)
This API is used to add a CDN acceleration domain name.
|
DeleteCdnDomainResponse |
DeleteCdnDomain(DeleteCdnDomainRequest req)
This API is used to delete a specified acceleration domain name.
|
DescribeCdnDataResponse |
DescribeCdnData(DescribeCdnDataRequest req)
This API (DescribeCdnData) is used to query CDN real-time access monitoring data and supports the following metrics:
+ Traffic (in bytes)
+ Bandwidth (in bps)
+ Number of requests
+ Traffic hit rate (in % with two decimal digits)
+ Aggregate list of 2xx status codes and the details of status codes starting with 2 (in entries)
+ Aggregate list of 3xx status codes and the details of status codes starting with 3 (in entries)
+ Aggregate list of 4xx status codes and the details of status codes starting with 4 (in entries)
+ Aggregate list of 5xx status codes and the details of status codes starting with 5 (in entries)
|
DescribeCdnDomainLogsResponse |
DescribeCdnDomainLogs(DescribeCdnDomainLogsRequest req)
This API is used to query the download link of an access log.
|
DescribeCdnIpResponse |
DescribeCdnIp(DescribeCdnIpRequest req)
This API is used to query CDN IP ownership.
|
DescribeDomainsResponse |
DescribeDomains(DescribeDomainsRequest req)
This API is used to query the basic configuration information of CDN acceleration domain names (inside and outside mainland China), including the project ID, service status, service type, creation time, and update time, etc.
|
DescribeDomainsConfigResponse |
DescribeDomainsConfig(DescribeDomainsConfigRequest req)
This API is used to query the complete configuration information of CDN acceleration domain names (inside and outside mainland China).
|
DescribeIpVisitResponse |
DescribeIpVisit(DescribeIpVisitRequest req)
This API (DescribeIpVisit) is used to query the number of users who remain active for 5 minutes and the detailed number of daily active users.
|
DescribeMapInfoResponse |
DescribeMapInfo(DescribeMapInfoRequest req)
This API (DescribeMapInfo) is used to query the IDs of districts or ISPs.
|
DescribeOriginDataResponse |
DescribeOriginData(DescribeOriginDataRequest req)
This API (DescribeOriginData) is used to query CDN real-time origin-pull monitoring data and supports the following metrics:
+ Origin-pull traffic (in bytes)
+ Origin-pull bandwidth (in bps)
+ Number of origin-pull requests
+ Number of failed origin-pull requests
+ Origin-pull failure rate (in % with two decimal digits)
+ Aggregate list of 2xx origin-pull status codes and the details of origin-pull status codes starting with 2 (in entries)
+ Aggregate list of 3xx origin-pull status codes and the details of origin-pull status codes starting with 3 (in entries)
+ Aggregate list of 4xx origin-pull status codes and the details of origin-pull status codes starting with 4 (in entries)
+ Aggregate list of 5xx origin-pull status codes and the details of origin-pull status codes starting with 5 (in entries)
|
DescribePayTypeResponse |
DescribePayType(DescribePayTypeRequest req)
This API (DescribePayType) is used to query billing information of the current account, such as billing mode and billing cycle.
|
DescribePurgeTasksResponse |
DescribePurgeTasks(DescribePurgeTasksRequest req)
This API is used to query the record and progress of URL or directory purge tasks submitted via the `PurgePathCache` or `PurgeUrlsCache` APIs.
|
DescribePushTasksResponse |
DescribePushTasks(DescribePushTasksRequest req)
This API is used to query the submission record and progress of prefetch tasks.
|
DescribeUrlViolationsResponse |
DescribeUrlViolations(DescribeUrlViolationsRequest req)
This API is used to query the list of domain name URLs containing regulation-violating content scanned and detected by the CDN system, and the current status of the URLs.
|
DisableCachesResponse |
DisableCaches(DisableCachesRequest req)
This API (DisableCaches) is used to block access to a specific URL on CDN.
|
EnableCachesResponse |
EnableCaches(EnableCachesRequest req)
This API (EnableCaches) is used to unblock manually blocked URLs.
|
GetDisableRecordsResponse |
GetDisableRecords(GetDisableRecordsRequest req)
This API is used to query the resource blocking history and the current URL status.
|
ListTopDataResponse |
ListTopData(ListTopDataRequest req)
This API is used to list data sorted the following ways by using different combinations of the Metric and Filter input parameters:
+ It sorts access URLs by total traffic and total requests, and returns the top 1,000 URLs in descending order.
|
PurgePathCacheResponse |
PurgePathCache(PurgePathCacheRequest req)
This API is used to submit multiple directory purge tasks, which are carried out according to the acceleration region of the domain names.
|
PurgeUrlsCacheResponse |
PurgeUrlsCache(PurgeUrlsCacheRequest req)
This API is used to submit multiple URL purge tasks, which are carried out according to the current acceleration region of the domain names in the URLs.
|
PushUrlsCacheResponse |
PushUrlsCache(PushUrlsCacheRequest req)
This API is used to cache specified URL resources to CDN nodes.
|
StartCdnDomainResponse |
StartCdnDomain(StartCdnDomainRequest req)
This API is used to enable the acceleration service for a disabled domain name.
|
StopCdnDomainResponse |
StopCdnDomain(StopCdnDomainRequest req)
This API is used to suspend the acceleration service for a domain name.
|
UpdateDomainConfigResponse |
UpdateDomainConfig(UpdateDomainConfigRequest req)
This API is used to modify the configuration of CDN acceleration domain names.
|
UpdatePayTypeResponse |
UpdatePayType(UpdatePayTypeRequest req)
This API is used to modify the billing mode of an account.
|
call, getClientProfile, getCredential, getRegion, internalRequest, setClientProfile, setCredential, setRegion
public CdnClient(Credential credential, String region)
public CdnClient(Credential credential, String region, ClientProfile profile)
public AddCdnDomainResponse AddCdnDomain(AddCdnDomainRequest req) throws TencentCloudSDKException
req
- AddCdnDomainRequestTencentCloudSDKException
public DeleteCdnDomainResponse DeleteCdnDomain(DeleteCdnDomainRequest req) throws TencentCloudSDKException
req
- DeleteCdnDomainRequestTencentCloudSDKException
public DescribeCdnDataResponse DescribeCdnData(DescribeCdnDataRequest req) throws TencentCloudSDKException
req
- DescribeCdnDataRequestTencentCloudSDKException
public DescribeCdnDomainLogsResponse DescribeCdnDomainLogs(DescribeCdnDomainLogsRequest req) throws TencentCloudSDKException
req
- DescribeCdnDomainLogsRequestTencentCloudSDKException
public DescribeCdnIpResponse DescribeCdnIp(DescribeCdnIpRequest req) throws TencentCloudSDKException
req
- DescribeCdnIpRequestTencentCloudSDKException
public DescribeDomainsResponse DescribeDomains(DescribeDomainsRequest req) throws TencentCloudSDKException
req
- DescribeDomainsRequestTencentCloudSDKException
public DescribeDomainsConfigResponse DescribeDomainsConfig(DescribeDomainsConfigRequest req) throws TencentCloudSDKException
req
- DescribeDomainsConfigRequestTencentCloudSDKException
public DescribeIpVisitResponse DescribeIpVisit(DescribeIpVisitRequest req) throws TencentCloudSDKException
req
- DescribeIpVisitRequestTencentCloudSDKException
public DescribeMapInfoResponse DescribeMapInfo(DescribeMapInfoRequest req) throws TencentCloudSDKException
req
- DescribeMapInfoRequestTencentCloudSDKException
public DescribeOriginDataResponse DescribeOriginData(DescribeOriginDataRequest req) throws TencentCloudSDKException
req
- DescribeOriginDataRequestTencentCloudSDKException
public DescribePayTypeResponse DescribePayType(DescribePayTypeRequest req) throws TencentCloudSDKException
req
- DescribePayTypeRequestTencentCloudSDKException
public DescribePurgeTasksResponse DescribePurgeTasks(DescribePurgeTasksRequest req) throws TencentCloudSDKException
req
- DescribePurgeTasksRequestTencentCloudSDKException
public DescribePushTasksResponse DescribePushTasks(DescribePushTasksRequest req) throws TencentCloudSDKException
req
- DescribePushTasksRequestTencentCloudSDKException
public DescribeUrlViolationsResponse DescribeUrlViolations(DescribeUrlViolationsRequest req) throws TencentCloudSDKException
req
- DescribeUrlViolationsRequestTencentCloudSDKException
public DisableCachesResponse DisableCaches(DisableCachesRequest req) throws TencentCloudSDKException
req
- DisableCachesRequestTencentCloudSDKException
public EnableCachesResponse EnableCaches(EnableCachesRequest req) throws TencentCloudSDKException
req
- EnableCachesRequestTencentCloudSDKException
public GetDisableRecordsResponse GetDisableRecords(GetDisableRecordsRequest req) throws TencentCloudSDKException
req
- GetDisableRecordsRequestTencentCloudSDKException
public ListTopDataResponse ListTopData(ListTopDataRequest req) throws TencentCloudSDKException
req
- ListTopDataRequestTencentCloudSDKException
public PurgePathCacheResponse PurgePathCache(PurgePathCacheRequest req) throws TencentCloudSDKException
req
- PurgePathCacheRequestTencentCloudSDKException
public PurgeUrlsCacheResponse PurgeUrlsCache(PurgeUrlsCacheRequest req) throws TencentCloudSDKException
req
- PurgeUrlsCacheRequestTencentCloudSDKException
public PushUrlsCacheResponse PushUrlsCache(PushUrlsCacheRequest req) throws TencentCloudSDKException
req
- PushUrlsCacheRequestTencentCloudSDKException
public StartCdnDomainResponse StartCdnDomain(StartCdnDomainRequest req) throws TencentCloudSDKException
req
- StartCdnDomainRequestTencentCloudSDKException
public StopCdnDomainResponse StopCdnDomain(StopCdnDomainRequest req) throws TencentCloudSDKException
req
- StopCdnDomainRequestTencentCloudSDKException
public UpdateDomainConfigResponse UpdateDomainConfig(UpdateDomainConfigRequest req) throws TencentCloudSDKException
req
- UpdateDomainConfigRequestTencentCloudSDKException
public UpdatePayTypeResponse UpdatePayType(UpdatePayTypeRequest req) throws TencentCloudSDKException
req
- UpdatePayTypeRequestTencentCloudSDKException
Copyright © 2020. All rights reserved.