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 |
---|---|
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.
|
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.
|
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 (GetDisableRecords) is used to query the resource blocking history and the current URL status.
|
ListTopDataResponse |
ListTopData(ListTopDataRequest req)
This API (ListTopData) is used to query the following sorting data by using different combinations of the `Metric` and `Filter` input parameters:
+ Sorts access URLs by total traffic and total requests and returns 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.
|
call, getClientProfile, getCredential, getRegion, internalRequest, setClientProfile, setCredential, setRegion
public CdnClient(Credential credential, String region)
public CdnClient(Credential credential, String region, ClientProfile profile)
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 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 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
Copyright © 2020. All rights reserved.