requestCdnPlusPurge
    • PDF

    requestCdnPlusPurge

    • PDF

    Article Summary

    概要

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

    リクエスト

    リクエストパラメータ

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

    レスポンス

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

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

    属性

    項目必須タイプ説明
    cdnInstanceNoNoStringCDNインスタンス番号
    purgeIdNoStringファジィID
    isWholePurgeNoBoolean全体ファジィ区分
    isWholeDomainNoBoolean全体ドメインファジィ区分
    cdnPlusServiceDomainListNoListCDN+サービスドメインリスト
    domainIdNoStringドメイン ID
    serviceDomainTypeCodeNoStringサービスドメイン区分コード
    protocolTypeCodeNoStringプロトコル区分コード
    defaultDomainNameNoStringデフォルトドメイン名
    userDomainNameNoStringユーザードメイン名
    targetDirectoryNameNoString対象ディレクトリ名
    targetFileListNoList対象ファイルリスト
    requestDateNoStringリクエスト日付
    purgeStatusNameNoStringファジィステータス

    例示

    リクエスト例示

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