Requesting purge
    • PDF

    Requesting purge

    • PDF

    Article summary

    Overview

    Request purge.

    Requests

    Request URL

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

    Request bodies

    ItemRequirement statusTypeRestrictionsDescription
    profileIdYesLongProfile number
    edgeIdYesLongEdge number
    purgeTypeYesPurgeTypePurge type
    purgeTargetConditionalList<String>Refer to description about PurgeTypePurge target list

    PurgeType

    ValueDescriptionpurgeTarget restrictionsExamples
    ALLPurge all contentsMust be omittednull
    DIRECTORYPurge by directoryStarts with '/'
    Ends with '/*'
    /*
    /src/*
    /src/images/*
    PATTERNPurge content by extensionStarts with '/'
    Ends with extension like '*.abc'
    /*.jpg
    /static/*.png
    /static/images/*.css
    URLPurge designated content with URLStarts with '/'
    '*' cannot be used
    /src/css/main.css?version=20221124

    Response

    Every response returns success or failure with 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 examples

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

    Response examples

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

    Errors

    Error codeDescription
    0032Unauthorized request
    0400Requested 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.