Request purge
    • PDF

    Request purge

    • PDF

    Article summary

    Overview

    Request a purge job.

    Request

    Request URL

    POST
    https://edge.apigw.ntruss.com/api/v1/purge
    

    Request body

    CategoryRequiredTypeRestrictionsDescription
    edgeIdYesLongEdge number
    purgeTypeYesPurgeTypePurge type
    purgeTargetConditionalList<String>See PurgeType descriptionPurge target list

    PurgeType

    ValueDescriptionpurgeTarget restrictionsExamples
    ALLPurge all contentMust be omittednull
    DIRECTORYPer-directory purgeStart with the "/" character
    End with "/*" string
    /*
    /src/*
    /src/images/*
    PATTERNPurge content by extensionStart with the "/" character
    End with "*.abc" extension notation
    /*.jpg
    /static/*.png
    /static/images/*.css
    URLPurge content specified by URLStart with the "/" character
    "*" wildcard unavailable
    /src/css/main.css?version=20221124

    Response

    All responses return success or failure as an HTTP status code.

    HTTP status codeCode messageDescription
    200SuccessSearch succeeded
    401UnauthorizedAuthentication failed
    500Internal Server ErrorServer Error

    Response body

    TypeDescription
    List<Long>Purge request number list

    Examples

    Request example

    https://edge.apigw.ntruss.com/api/v1/purge
    
    {
      "edgeId": 222,
      "purgeType": "DIRECTORY",
      "purgeTarget": [
        "/src/images/*",
        "/static/thumbs/*"
      ]
    }
    

    Response example

    {
       "code":"0000",
       "message":"Success",
       "result":[
         9999
       ]
    }
    

    Errors

    Error codeDescription
    0032Unauthorized request
    0400Request data format mismatch
    9999Server error occurred

    Was this article helpful?

    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.