Skip to main content

Origin groups

GET Origin Groups#

Get all origin groups of the distribution.

GET ALL
MethodGET ALL
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/origingroups
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": [    {      "originId": "string",      "origins": "string",      "originRoutingType": "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 idetifier of origin groups entity
originIdstring"string"Returns the name of origin that user gave
originsstring"string"Returns all the origins
originRoutingTypestring"string"Returns the routing type which can be Round Robin, Fail over, Waited
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 Origin Groups#

Create a new origin group

POST
MethodPOST
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/origingroups
HeadersAuthorization
ParametersdistributionId, projectId, version
Body{distributionId, originGroupId, origins, id, randomRoutingPercentage, originOptions, id, value, originRoutingType }

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",  "originGroupId": "string",  "origins": [    {      "id": 0,      "randomRoutingPercentage": 0    }  ],  "originOptions": [    {      "id": 0,      "value": "string"    }  ],  "originRoutingType": 0}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
distributionIdYesstring"string"Sends the identifier for the distribution
originGroupIdYesstring"string"Sends the origin group name that user gave
originsYesarray [object]Sends the origins
idNointeger($int32)0Sends the identifier of origin
randomRoutingPercentagestring"string"Sends integer strings
originOptionsarray [object]Sends an origin options object
idNointeger($int32)0Sends the identifier of origin
valuestring"string"Sends the selected value of origin option object
originRoutingTypeinteger($int32)0Sends the choosen routing type

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",    "originGroupId": "string",    "origins": [      {        "id": 0,        "randomRoutingPercentage": 0      }    ],    "originOptions": [      {        "id": 0,        "value": "string"      }    ],    "originRoutingType": 0,    "originRoutingTypeOptions": [      {        "id": 0,        "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 idetifier of origin groups entity
distributionIdstring"string"Returns the identifier for the distribution
originGroupIdstring"string"Returns the user input name of origin group
originsstring"string"Returns all the origins
idinteger($int32)0Returns the idetifier of origin groups entity
valuestring"string"
originRoutingTypeinteger($int32)0Returns the chosen routing type
originRoutingTypeOptionsarray [object]Returns an object of all the options of origin routing type
idinteger($int32)0Returns the idetifier of origin groups entity
valuestring"string"
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 Group#

Get the specified origin group

GET
MethodGET
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/origingroups/{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 certificates'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 certificates'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",    "originGroupId": "string",    "origins": [      {        "id": 0,        "randomRoutingPercentage": 0      }    ],    "originOptions": [      {        "id": 0,        "value": "string"      }    ],    "originRoutingType": 0,    "originRoutingTypeOptions": [      {        "id": 0,        "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 idetifier of origin groups entity
distributionIdstring"string"Returns the identifier for the distribution
originGroupIdstring"string"Returns the user input name of origin group
originsstring"string"Returns all the origins
idinteger($int32)0Returns the idetifier of origin groups entity
valuestring"string"
originRoutingTypeinteger($int32)0Returns the chosen routing type
originRoutingTypeOptionsarray [object]Returns an object of all the options of origin routing type
idinteger($int32)0Returns the idetifier of origin groups entity
valuestring"string"
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 Origin Groups#

Update the specified origin group.

PUT
MethodPUT
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/origingroups/{id}
HeadersAuthorization
ParametersdistributionId, version, projectId, id
Body{distributionId, originGroupId, origins, id, randomRoutingPercentage, originOptions, id, value, originRoutingType}

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

Request Body#

{  "id": 0,  "distributionId": "string",  "originGroupId": "string",  "origins": [    {      "id": 0,      "randomRoutingPercentage": 0    }  ],  "originOptions": [    {      "id": 0,      "value": "string"    }  ],  "originRoutingType": 0}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
distributionIdYesstring"string"Sends the identifier for the distribution
originGroupIdYesstring"string"Sends the origin group name that user gave
originsYesarray [object]Sends the origins
idNointeger($int32)0Sends the identifier of origin
randomRoutingPercentagestring"string"Sends integer strings
originOptionsarray [object]Sends an origin options object
idNointeger($int32)0Sends the identifier of origin
valuestring"string"Sends the selected value of origin option object
originRoutingTypeinteger($int32)0Sends the choosen routing type

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",    "originGroupId": "string",    "origins": [      {        "id": 0,        "randomRoutingPercentage": 0      }    ],    "originOptions": [      {        "id": 0,        "value": "string"      }    ],    "originRoutingType": 0,    "originRoutingTypeOptions": [      {        "id": 0,        "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 idetifier of origin groups entity
distributionIdstring"string"Returns the identifier for the distribution
originGroupIdstring"string"Returns the user input name of origin group
originsstring"string"Returns all the origins
idinteger($int32)0Returns the idetifier of origin groups entity
valuestring"string"
originRoutingTypeinteger($int32)0Returns the chosen routing type
originRoutingTypeOptionsarray [object]Returns an object of all the options of origin routing type
idinteger($int32)0Returns the idetifier of origin groups entity
valuestring"string"
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 Origin Groups

Delete the specified origin group

DELETE
MethodDELETE
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/origingroups/{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 OriginGroup'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 OriginGroup'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",    "originGroupId": "string",    "origins": [      {        "id": 0,        "randomRoutingPercentage": 0      }    ],    "originOptions": [      {        "id": 0,        "value": "string"      }    ],    "originRoutingType": 0,    "originRoutingTypeOptions": [      {        "id": 0,        "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 idetifier of origin groups entity
distributionIdstring"string"Returns the identifier for the distribution
originGroupIdstring"string"Returns the user input name of origin group
originsstring"string"Returns all the origins
idinteger($int32)0Returns the idetifier of origin groups entity
valuestring"string"
originRoutingTypeinteger($int32)0Returns the chosen routing type
originRoutingTypeOptionsarray [object]Returns an object of all the options of origin routing type
idinteger($int32)0Returns the idetifier of origin groups entity
valuestring"string"
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