Advanced Origin Settings
This setting is available for small, large and Aksela resource types.
Parameters | Description | Type | Required |
---|---|---|---|
organization_uuid | The created organization in Medianova Cloud Panel unit ID value. Path parameter. | String | Yes |
resource_uuid | The created resource in Medianova Cloud Panel unit ID value. Path parameter. | String | Yes
|
data_source | Determines the type of data to be retrieved. | String | No |
advanced_origin_settings | Covers the settings on the Advanced Origin Settings side. | Array | Yes |
advanced_origin_settings.id | The ID information is used in the update and delete processes. Operations without sending the ID information will provide a new origin definition | Integer | Yes |
advanced_origin_settings.priority | Priority is determined by numbers ranging from 0 to 99. The higher the number, the higher the priority. | String | Yes |
advanced_origin_settings.protocol | It can be sent as HTTP, HTTPS, and Follow. When selected as Follow, it makes requests to the origin server based on the incoming request. | String | Yes |
advanced_origin_settings.http_port | It determines which port to use when the defined origin URL information is requested as HTTP. The default is 80. | String | Yes |
advanced_origin_settings.https_port | It determines which port to use when the defined origin URL information is requested as HTTPS. The default is 443. | String | Yes |
advanced_origin_settings.is_delete | When True information is sent for the origin definition to be deleted, it ensures deletion. By default, it is sent as False. | Bool | No |
advanced_origin_settings.origin_url | Domain or IP can be added as a record for the origin definition. | String | Yes |
advanced_origin_settings.host_header | It determines the host header to be used when going to the origin server. By default, it is sent as empty. | String | No |
advanced_origin_settings.uri_match_mode | Matching is specified through two different modes. You can proceed by choosing one of these two formats. Matching modes can be sent as Directory and File Format. | String | Yes |
advanced_origin_settings.uri_match_rule | The entry format for matching rule information changes based on the selected mode. Directory: File Format: | String | Yes |
Payload - Add Advanced Origin
{
"resource_uuid": "***",
"advanced_origin_settings": [
{
"is_delete": false,
"protocol": "http",
"origin_url": "test.mydomain.com",
"host_header": null,
"http_port": 80,
"https_port": 443,
"priority": 0,
"uri_match_mode": "directory",
"uri_match_rule": "/test;/assets"
},
{
"is_delete": false,
"protocol": "http",
"origin_url": "images.example.com",
"host_header": null,
"http_port": 80,
"https_port": 443,
"priority": 10,
"uri_match_mode": "file_extension",
"uri_match_rule": ".jpg;.png"
}
]
}
Payload - Update Advanced Origin
{
"resource_uuid": "***",
"advanced_origin_settings": [
{
"id": 1,
"is_delete": false,
"protocol": "http",
"origin_url": "test.mydomain.com",
"host_header": null,
"http_port": 80,
"https_port": 443,
"priority": 0,
"uri_match_mode": "directory",
"uri_match_rule": "/images;/assets"
},
{
"id": 2,
"is_delete": false,
"protocol": "http",
"origin_url": "image.example.com",
"host_header": null,
"http_port": 80,
"https_port": 443,
"priority": 10,
"uri_match_mode": "file_extension",
"uri_match_rule": ".jpg;.png;.gif"
}
]
}
Payload - Delete Advanced Origin
{
"resource_uuid": "***",
"advanced_origin_settings": [
{
"id": 2,
"is_delete": true
}
]
}