Skip to main content

Invalidations

GET Invalidations#

Get all distribution's invalidations.

GET ALL
MethodGET ALL
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/invalidations
HeadersAuthorization
ParametersdistributionId, projectId, version
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring($uuid)3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty distribution configuration is returned
{distributionId}Yesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
projctIdYesstring3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty project configuration is returned
VersionYesstring($uuid)v1Shows the version of API
distributionIdYesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": [    {      "invalidationId": "string",      "status": "string",      "dateTime": "2021-03-31T13:45:58.174Z"    }  ],  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will get false
errorsstring"string"Indicate if there was an error
messagesstring"string"Returns the response message from back-end
resultarray [object]Returns an distribution object
idinteger($int32)0Returns the identifiers of invalidations
invalidationIdstring"string"Returns the identifiers of listed invalidations
statusstring"string"Returns a status that displays a state which can be "Deploying" or "Deployed"
dateTimedate2021-03-30T09:30:22.892ZReturns the last date and time that was created
resultInfoobjectReturs information about distribution
totalCountinteger($int32)0Total number of objects in database
pageIndexinteger($int32)0Returns Current pageop paganed data
pageSizeinteger($int32)0Returns Objects per page
totalPagesinteger($int32)0Returns Total pages
hasNextPagebooltrueReturns true if it has a next page, otherwise returns false
hasPreviousPagebooltrueReturns true if it has a previous page, otherwise returns false

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

POST Invalidations#

Create a new invalidation

POST
MethodPOST
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/invalidations
HeadersAuthorization
ParametersdistributionId, projectId, version
Body{distributionId, objectPaths}

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring($uuid)3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty distribution configuration is returned
{distributionId}Yesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
projctIdYesstring3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty project configuration is returned
VersionYesstring($uuid)v1Shows the version of API
distributionIdYesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned

Request body#

 {    "distributionId": "string",    "objectPaths": "string"  }

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
distributionIdYesstring"string"Sends the identifier for the distribution which is pre-generated
objectPathsYesstring"string"Sends the object paths of the objects that you want to invalidate with this invalidation batch

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "id": 0,    "invalidationId": "string",    "statusId": 0,    "distributionId": "string",    "objectPaths": "string",    "insertDate": "2021-03-31T13:50:53.697Z"  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will get false
errorsstring"string"Indicate if there was an error
messagesstring"string"Returns the response message from back-end
resultarray [object]Returns an distribution object
idinteger($int32)0Returns the identifiers of invalidations
invalidationIdstring"string"Returns the identifiers of listed invalidations
statusstring"string"Returns a status that displays a state which can be "Deploying" or "Deployed"
dateTimedate2021-03-30T09:30:22.892ZReturns the last date and time that was created
resultInfoobjectReturs information about distribution
totalCountinteger($int32)0Total number of objects in database
pageIndexinteger($int32)0Returns Current pageop paganed data
pageSizeinteger($int32)0Returns Objects per page
totalPagesinteger($int32)0Returns Total pages
hasNextPagebooltrueReturns true if it has a next page, otherwise returns false
hasPreviousPagebooltrueReturns true if it has a previous page, otherwise returns false

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 400 Bad Request
  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden

GET Invalidation#

Get the specified invalidation

GET
MethodGET
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/invalidations/{id}
HeadersAuthorization
ParametersdistributionId, version, projectId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty distribution configuration is returned
{distributionId}Yesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned
{id}Yesinteger($int32)0The invalidation's ID

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
projectIdYesstring3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty distribution configuration is returned
versionYesstringv1Shows the version of API
distributionIdYesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned
idYesinteger($int32)0The invalidation's ID

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.


{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "id": 0,    "invalidationId": "string",    "statusId": 0,    "distributionId": "string",    "objectPaths": "string",    "insertDate": "2021-03-31T13:55:03.493Z"  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will get false
errorsstring"string"Indicate if there was an error
messagesstring"string"Returns the response message from back-end
resultarray [object]Returns an distribution object
idinteger($int32)0Returns the identifiers of invalidations
invalidationIdstring"string"Returns the identifiers of listed invalidations
statusstring"string"Returns a status that displays a state which can be "Deploying" or "Deployed"
dateTimedate2021-03-30T09:30:22.892ZReturns the last date and time that was created
resultInfoobjectReturs information about distribution
totalCountinteger($int32)0Total number of objects in database
pageIndexinteger($int32)0Returns Current pageop paganed data
pageSizeinteger($int32)0Returns Objects per page
totalPagesinteger($int32)0Returns Total pages
hasNextPagebooltrueReturns true if it has a next page, otherwise returns false
hasPreviousPagebooltrueReturns true if it has a previous page, otherwise returns false

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found