requestCdnPlusPurge
  • PDF

requestCdnPlusPurge

  • PDF

概要

CDN+ファジィをリクエストします。

リクエスト

リクエストパラメータ

パラメータ名 必須 タイプ 制約事項 説明
cdnInstanceNo Yes String CDNインスタンス番号
isWholeDomain Yes Boolean trueまたはfalse 全体ドメイン区分
全体ドメインに対する purge リクエストの場合は true, 特定のドメインに対する purge リクエストの場合は false を入力します
domainIdList.N No List<String> ドメインIDリスト
特定のドメインの purge 要求である場合は、入力します
ex) domainIdList.1=CD000000000000016682&domainIdList.2=CD000000000000016683
isWholePurge Yes Boolean trueまたはfalse 全体ファジィ区分
全体ファイルの purge リクエストの場合は true、特定のディレクトリまたはファイルの purge リクエストの場合は false を入力します
targetFileList.N No List<String> 対象ファイルリスト
特定のファイルの purge 要求である場合は、入力します
ex) targetFileList.1=alice.txt&targetFileList.2=bob.png
targetDirectoryName No String 対象ディレクトリ名
特定のディレクトリのpurge要請である場合は、入力します。そのディレクトリのサブのすべてのファイルがpurgeされます
ex) targetDirectoryName=/contents/sample
responseFormatType No String JSONまたはXML レスポンスタイプ

レスポンス

すべてのレスポンスはHTTP Status Codeで成功/失敗を返却します。

HTTPステータスコード コードメッセージ 説明
200 Success ファジィ成功
401 Unauthorized 認証失敗
500 Internal Server Error サーバエラー

属性

項目 必須 タイプ 説明
cdnInstanceNo No String CDNインスタンス番号
purgeId No String ファジィID
isWholePurge No Boolean 全体ファジィ区分
isWholeDomain No Boolean 全体ドメインファジィ区分
cdnPlusServiceDomainList No List CDN+サービスドメインリスト
domainId No String ドメイン ID
serviceDomainTypeCode No String サービスドメイン区分コード
protocolTypeCode No String プロトコル区分コード
defaultDomainName No String デフォルトドメイン名
userDomainName No String ユーザードメイン名
targetDirectoryName No String 対象ディレクトリ名
targetFileList No List 対象ファイルリスト
requestDate No String リクエスト日付
purgeStatusName No String ファジィステータス

例示

リクエスト例示

https://ncloud.apigw.ntruss.com/cdn/v2/requestCdnPlusPurge?cdnInstanceNo=711484&isWholePurge=true&isWholeDomain=true&responseFormatType=XML

レスポンス例示

<?xml version="1.0" encoding="UTF-8"?>
<requestCdnPlusPurgeResponse>
  <requestId>337bd4f2-5bdf-4707-98f5-216c3ee79395</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <cdnPlusPurgeHistoryList>
    <cdnPlusPurgeHistory>
      <cdnInstanceNo>711484</cdnInstanceNo>
      <purgeId>PT000000000000015497</purgeId>
      <isWholePurge>true</isWholePurge>
      <isWholeDomain>true</isWholeDomain>
      <cdnPlusServiceDomainList>
        <cdnPlusServiceDomain>
          <domainId>CD000000000000008054</domainId>
          <serviceDomainTypeCode>DEFAULT</serviceDomainTypeCode>
          <protocolTypeCode>HTTP</protocolTypeCode>
          <defaultDomainName>sjktsyeuckvp711484.cdn.ntruss.com</defaultDomainName>
          <userDomainName></userDomainName>
        </cdnPlusServiceDomain>
      </cdnPlusServiceDomainList>
      <targetDirectoryName></targetDirectoryName>
      <targetFileList/>
      <requestDate>2018-12-09T02:00:18+0900</requestDate>
      <purgeStatusName>ready</purgeStatusName>
    </cdnPlusPurgeHistory>
  </cdnPlusPurgeHistoryList>
</requestCdnPlusPurgeResponse>

エラーコード

Errorコード 説明
29200 Invalid CDN rule.
29201 Can not operate this CDN service. Please check status.
29202 Invalid CDN purge request.
29203 Invalid CDN service domain type code.
29204 Invalid CDN instance.
29205 Unable to control the CDN service because this CDN service is for Live Transcoder.
29211 An error occurred while creating CDN service.
29215 This CDN service can not request purge with partial domains.
29216 Invalid CDN service domain.
29209 The certificate can not register for CDN.
29217 Please enter target file list or directory.
29218 Please select target service domains.
29221 Unable to control the CDN service because this CDN service is for Image Optimizer.
29222 Invalid image optimizer instance number.
29223 Cache Key Hostname can not be set Origin Hostname if there is only one service domain.
29224 Cache Key Hostname can not be set Origin Hostname if use CDN domain.

この記事は役に立ちましたか?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.