Skip to main content

Origins

GET Origins#

Get all origins of the distribution.

GET ALL
MethodGET ALL
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/origins
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": [    {      "originDomainNameAndPath": "string",      "originId": "string",      "originType": "string",      "originProtocolPolicy": "string",      "httpsPort": 0,      "httpPort": 0,      "originResponseTimeout": 0,      "originKeepAliveTimeout": 0,      "originConnectionAttempts": 0,      "originConnectionTimeout": 0    }  ],  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns a behavior object
originDomainNameAndPathstring"string"Returns the user input when creating origin, giving domain name and path
originIdstring"string"Returns the origin id of the created origin
originTypestring"string"Returns the origin type of the created origin
originProtocolPolicystring"string"Returns the origin protocol policy of the created origin
httpsPortinteger($int32)0Returns the https port that origin listens on
httpPortinteger($int32)0Returns the http port that origin listens on
originResponseTimeoutinteger($int32)0Returns the amount of time in seconds that CDN waits for a response from an origin
originKeepAliveTimeoutinteger($int32)0Returns the amount of time in seconds that CDN maintains an ideal connection with an origin server before closing the connection
originConnectionAttemptsinteger($int32)0Returns the number of time that CDN attends to connect to the origin
originConnectionTimeoutinteger($int32)0Returns the amount of time in seconds that CDN waits when trying to establish a connection to origin
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

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 Origins#

Create a new origin

POST
MethodPOST
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/origins
HeadersAuthorization
ParametersdistributionId, projectId, version
Body{ id, distributionId, domainName,path, originId, minimumOriginSslProtocol, originProtocolPolicy, httpPort, httpsPort, originResponseTimeout, originKeepAliveTimeout, connectionAttempts, connectionTimeout, customHeaders, id, originId, string, value}

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#

{  "id": 0,  "distributionId": "string",  "domainName": "string",  "path": "string",  "originId": "string",  "minimumOriginSslProtocol": 0,  "originProtocolPolicy": 0,  "httpPort": 0,  "httpsPort": 0,  "originResponseTimeout": 0,  "originKeepAliveTimeout": 0,  "connectionAttempts": 0,  "connectionTimeout": 0,  "customHeaders": [    {      "id": 0,      "originId": 0,      "name": "string",      "value": "string"    }  ]}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
idYesinteger($int32)0Sends the identifier of the origin entity
distributionIdYesstring"string"Sends the identifier of the distribution
domainNameYesstring"string"Sends the domain name of the origin
pathYesstring"string"Sends the path of your directory in your origin
originIdYesstring"string"Sends the name of the origin that the user gave
minimumOriginSslProtocolYesinteger($int32)"string"Sends the minimum ssl protocol for CDN to use when it establishes an HTTPS connection to your origin
originProtocolPolicyYesinteger($int32)"string"Sends the selected origin protocol policy which can be HTTP only or HTTPS only, or Match the viewer
httpPortYesinteger($int32)0Sends the http port that origin listens to
httpsPortYesinteger($int32)0Sends the https port that origin listens to
originResponseTimeoutYesinteger($int32)0Sends the amount of time in seconds that CDN waits for a response from an origin
originKeepAliveTimeoutYesinteger($int32)0Sends the amount of time in seconds that CDN maintains an ideal connection with an origin server before closing the connection
connectionAttemptsNointeger($int32)0Sends the number of time that CDN attends to connect to the origin
connectionTimeoutNostring"string"Sends the amount of time in seconds that CDN waits when trying to establish a connection to origin
customHeadersYesarray[object]Sends an custom headers object of origins
idYesinteger($int32)0Sends the identifier of the origin entity
originIdYesinteger($int32)0Sends the name of the origin that the user gave
nameYesstring"string"Sends the name of origin custom header in the distribution configuration
valueYesstring"string"Sends the value of origin custom header in the distribution configuration

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,    "distributionId": "string",    "domainName": "string",    "path": "string",    "originId": "string",    "minimumOriginSslProtocol": 0,    "minimumOriginSslProtocolOptions": [      {        "id": 0,        "value": "string"      }    ],    "originProtocolPolicy": 0,    "originProtocolPolicyOptions": [      {        "id": 0,        "value": "string"      }    ],    "httpPort": 0,    "httpsPort": 0,    "originResponseTimeout": 0,    "originKeepAliveTimeout": 0,    "connectionAttempts": 0,    "connectionTimeout": 0,    "customHeaders": [      {        "id": 0,        "originId": 0,        "name": "string",        "value": "string"      }    ]  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns a behavior object
idinteger($int32)0Returns the identifier of the origin entity
distributionIdstring"string"Returns the identifier of the distribution
domainNamestring"string"Returns the domain name of the origin
pathstring"string"Returns the path of your directory in your origin
originIdstring"string"Returns the name of the origin that the user gave
minimumOriginSslProtocolinteger($int32)"string"Returns the minimum ssl protocol for CDN to use when it establishes an HTTPS connection to your origin
minimumOriginSslProtocolOptionsarray [object]Returns the options of minimum ssl protocols which can be TLSv1.2, TLSv1.1, TLSv1, SSLv3 for CDN to use when it establishes an HTTPS connection to your origin
idinteger($int32)0Returns the identifier of the origin entity
valuestring"string"Returns the selected value of minimum origin ssl protocol options
originProtocolPolicyinteger($int32)0Returns the origin protocol policy which you want CDN to connect to your origin
originProtocolPolicyOptionsarray [object]Returns the selected origin protocol policy which can be HTTP only or HTTPS only, or Match the viewer
idinteger($int32)0Returns the identifier of the origin entity
valuestring"string"Returns the selected option of origin protocol policy depends on what you have chose
httpPortinteger($int32)0Returns the https port that origin listens on
httpsPortinteger($int32)0Returns the http port that origin listens on
originResponseTimeoutinteger($int32)0Returns the amount of time in seconds that CDN waits for a response from an origin
originKeepAliveTimeoutinteger($int32)0Returns the amount of time in seconds that CDN maintains an ideal connection with an origin server before closing the connection
connectionAttemptsinteger($int32)0Returns the number of time that CDN attends to connect to the origin
connectionTimeoutstring"string"Returns the amount of time in seconds that CDN waits when trying to establish a connection to origin
customHeadersarray[object]Returns an custom headers object of origin
idinteger($int32)0Returns the identifier of the origin entity
originIdinteger($int32)0Returns the identifier of the origin entity
namestring"string"Returns the name of origin custom header in the distribution configuration
valuestring"string"Returns the value of origin custom header in the distribution configuration
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

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 Origin#

Get the specified origin

GET
MethodGET
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/origins/{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 origins'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 origins'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,    "distributionId": "string",    "domainName": "string",    "path": "string",    "originId": "string",    "minimumOriginSslProtocol": 0,    "minimumOriginSslProtocolOptions": [      {        "id": 0,        "value": "string"      }    ],    "originProtocolPolicy": 0,    "originProtocolPolicyOptions": [      {        "id": 0,        "value": "string"      }    ],    "httpPort": 0,    "httpsPort": 0,    "originResponseTimeout": 0,    "originKeepAliveTimeout": 0,    "connectionAttempts": 0,    "connectionTimeout": 0,    "customHeaders": [      {        "id": 0,        "originId": 0,        "name": "string",        "value": "string"      }    ]  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns a behavior object
idinteger($int32)0Returns the identifier of the origin entity
distributionIdstring"string"Returns the identifier of the distribution
domainNamestring"string"Returns the domain name of the origin
pathstring"string"Returns the path of your directory in your origin
originIdstring"string"Returns the name of the origin that the user gave
minimumOriginSslProtocolinteger($int32)"string"Returns the minimum ssl protocol for CDN to use when it establishes an HTTPS connection to your origin
minimumOriginSslProtocolOptionsarray [object]Returns the options of minimum ssl protocols which can be TLSv1.2, TLSv1.1, TLSv1, SSLv3 for CDN to use when it establishes an HTTPS connection to your origin
idinteger($int32)0Returns the identifier of the origin entity
valuestring"string"Returns the selected value of minimum origin ssl protocol options
originProtocolPolicyinteger($int32)0Returns the origin protocol policy which you want CDN to connect to your origin
originProtocolPolicyOptionsarray [object]Returns the selected origin protocol policy which can be HTTP only or HTTPS only, or Match the viewer
idinteger($int32)0Returns the identifier of the origin entity
valuestring"string"Returns the selected option of origin protocol policy depends on what you have chose
httpPortinteger($int32)0Returns the https port that origin listens on
httpsPortinteger($int32)0Returns the http port that origin listens on
originResponseTimeoutinteger($int32)0Returns the amount of time in seconds that CDN waits for a response from an origin
originKeepAliveTimeoutinteger($int32)0Returns the amount of time in seconds that CDN maintains an ideal connection with an origin server before closing the connection
connectionAttemptsinteger($int32)0Returns the number of time that CDN attends to connect to the origin
connectionTimeoutstring"string"Returns the amount of time in seconds that CDN waits when trying to establish a connection to origin
customHeadersarray[object]Returns an custom headers object of origin
idinteger($int32)0Returns the identifier of the origin entity
originIdinteger($int32)0Returns the identifier of the origin entity
namestring"string"Returns the name of origin custom header in the distribution configuration
valuestring"string"Returns the value of origin custom header in the distribution configuration
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

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

PUT Origins#

Updates the specified origin.

PUT
MethodPUT
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/origins/{id}
HeadersAuthorization
ParametersdistributionId, version, projectId, id
Body{ id, distributionId, domainName,path, originId, minimumOriginSslProtocol, originProtocolPolicy, httpPort, httpsPort, originResponseTimeout, originKeepAliveTimeout, connectionAttempts, connectionTimeout, customHeaders, id, originId, string, value}

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 origins'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 origins's ID

Request body#

{  "id": 0,  "distributionId": "string",  "domainName": "string",  "path": "string",  "originId": "string",  "minimumOriginSslProtocol": 0,  "originProtocolPolicy": 0,  "httpPort": 0,  "httpsPort": 0,  "originResponseTimeout": 0,  "originKeepAliveTimeout": 0,  "connectionAttempts": 0,  "connectionTimeout": 0,  "customHeaders": [    {      "id": 0,      "originId": 0,      "name": "string",      "value": "string"    }  ]}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
idYesinteger($int32)0Sends the identifier of the origin entity
distributionIdYesstring"string"Sends the identifier of the distribution
domainNameYesstring"string"Sends the domain name of the origin
pathYesstring"string"Sends the path of your directory in your origin
originIdYesstring"string"Sends the name of the origin that the user gave
minimumOriginSslProtocolYesinteger($int32)"string"Sends the minimum ssl protocol for CDN to use when it establishes an HTTPS connection to your origin
originProtocolPolicyYesinteger($int32)"string"Sends the selected origin protocol policy which can be HTTP only or HTTPS only, or Match the viewer
httpPortYesinteger($int32)0Sends the http port that origin listens to
httpsPortYesinteger($int32)0Sends the https port that origin listens to
originResponseTimeoutYesinteger($int32)0Sends the amount of time in seconds that CDN waits for a response from an origin
originKeepAliveTimeoutYesinteger($int32)0Sends the amount of time in seconds that CDN maintains an ideal connection with an origin server before closing the connection
connectionAttemptsNointeger($int32)0Sends the number of time that CDN attends to connect to the origin
connectionTimeoutNostring"string"Sends the amount of time in seconds that CDN waits when trying to establish a connection to origin
customHeadersYesarray[object]Sends an custom headers object of origins
idYesinteger($int32)0Sends the identifier of the origin entity
originIdYesinteger($int32)0Sends the name of the origin that the user gave
nameYesstring"string"Sends the name of origin custom header in the distribution configuration
valueYesstring"string"Sends the value of origin custom header in the distribution configuration

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,    "distributionId": "string",    "domainName": "string",    "path": "string",    "originId": "string",    "minimumOriginSslProtocol": 0,    "minimumOriginSslProtocolOptions": [      {        "id": 0,        "value": "string"      }    ],    "originProtocolPolicy": 0,    "originProtocolPolicyOptions": [      {        "id": 0,        "value": "string"      }    ],    "httpPort": 0,    "httpsPort": 0,    "originResponseTimeout": 0,    "originKeepAliveTimeout": 0,    "connectionAttempts": 0,    "connectionTimeout": 0,    "customHeaders": [      {        "id": 0,        "originId": 0,        "name": "string",        "value": "string"      }    ]  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns a behavior object
idinteger($int32)0Returns the identifier of the origin entity
distributionIdstring"string"Returns the identifier of the distribution
domainNamestring"string"Returns the domain name of the origin
pathstring"string"Returns the path of your directory in your origin
originIdstring"string"Returns the name of the origin that the user gave
minimumOriginSslProtocolinteger($int32)"string"Returns the minimum ssl protocol for CDN to use when it establishes an HTTPS connection to your origin
minimumOriginSslProtocolOptionsarray [object]Returns the options of minimum ssl protocols which can be TLSv1.2, TLSv1.1, TLSv1, SSLv3 for CDN to use when it establishes an HTTPS connection to your origin
idinteger($int32)0Returns the identifier of the origin entity
valuestring"string"Returns the selected value of minimum origin ssl protocol options
originProtocolPolicyinteger($int32)0Returns the origin protocol policy which you want CDN to connect to your origin
originProtocolPolicyOptionsarray [object]Returns the selected origin protocol policy which can be HTTP only or HTTPS only, or Match the viewer
idinteger($int32)0Returns the identifier of the origin entity
valuestring"string"Returns the selected option of origin protocol policy depends on what you have chose
httpPortinteger($int32)0Returns the https port that origin listens on
httpsPortinteger($int32)0Returns the http port that origin listens on
originResponseTimeoutinteger($int32)0Returns the amount of time in seconds that CDN waits for a response from an origin
originKeepAliveTimeoutinteger($int32)0Returns the amount of time in seconds that CDN maintains an ideal connection with an origin server before closing the connection
connectionAttemptsinteger($int32)0Returns the number of time that CDN attends to connect to the origin
connectionTimeoutstring"string"Returns the amount of time in seconds that CDN waits when trying to establish a connection to origin
customHeadersarray[object]Returns an custom headers object of origin
idinteger($int32)0Returns the identifier of the origin entity
originIdinteger($int32)0Returns the identifier of the origin entity
namestring"string"Returns the name of origin custom header in the distribution configuration
valuestring"string"Returns the value of origin custom header in the distribution configuration
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

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
  • HTTP Status Code: 404 Not found

DELETE Origins#

Deletes the specified origin

DELETE
MethodDELETE
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/invalidations/{id}
HeadersAuthorization
ParametersdistributionId, version, projectId, id
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 origins'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 origins's ID
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,    "distributionId": "string",    "domainName": "string",    "path": "string",    "originId": "string",    "minimumOriginSslProtocol": 0,    "minimumOriginSslProtocolOptions": [      {        "id": 0,        "value": "string"      }    ],    "originProtocolPolicy": 0,    "originProtocolPolicyOptions": [      {        "id": 0,        "value": "string"      }    ],    "httpPort": 0,    "httpsPort": 0,    "originResponseTimeout": 0,    "originKeepAliveTimeout": 0,    "connectionAttempts": 0,    "connectionTimeout": 0,    "customHeaders": [      {        "id": 0,        "originId": 0,        "name": "string",        "value": "string"      }    ]  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns a behavior object
idinteger($int32)0Returns the identifier of the origin entity
distributionIdstring"string"Returns the identifier of the distribution
domainNamestring"string"Returns the domain name of the origin
pathstring"string"Returns the path of your directory in your origin
originIdstring"string"Returns the name of the origin that the user gave
minimumOriginSslProtocolinteger($int32)"string"Returns the minimum ssl protocol for CDN to use when it establishes an HTTPS connection to your origin
minimumOriginSslProtocolOptionsarray [object]Returns the options of minimum ssl protocols which can be TLSv1.2, TLSv1.1, TLSv1, SSLv3 for CDN to use when it establishes an HTTPS connection to your origin
idinteger($int32)0Returns the identifier of the origin entity
valuestring"string"Returns the selected value of minimum origin ssl protocol options
originProtocolPolicyinteger($int32)0Returns the origin protocol policy which you want CDN to connect to your origin
originProtocolPolicyOptionsarray [object]Returns the selected origin protocol policy which can be HTTP only or HTTPS only, or Match the viewer
idinteger($int32)0Returns the identifier of the origin entity
valuestring"string"Returns the selected option of origin protocol policy depends on what you have chose
httpPortinteger($int32)0Returns the https port that origin listens on
httpsPortinteger($int32)0Returns the http port that origin listens on
originResponseTimeoutinteger($int32)0Returns the amount of time in seconds that CDN waits for a response from an origin
originKeepAliveTimeoutinteger($int32)0Returns the amount of time in seconds that CDN maintains an ideal connection with an origin server before closing the connection
connectionAttemptsinteger($int32)0Returns the number of time that CDN attends to connect to the origin
connectionTimeoutstring"string"Returns the amount of time in seconds that CDN waits when trying to establish a connection to origin
customHeadersarray[object]Returns an custom headers object of origin
idinteger($int32)0Returns the identifier of the origin entity
originIdinteger($int32)0Returns the identifier of the origin entity
namestring"string"Returns the name of origin custom header in the distribution configuration
valuestring"string"Returns the value of origin custom header in the distribution configuration
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

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