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 |
origin_type | It is specified as mainstream and legacy. Legacy applies to the old origin definition process. It should be sent here as mainstream. | Integer | Yes |
origin_settings | Covers the settings on the Origin Settings side. | Array | Yes |
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 |
origin_settings.weight | The weight definition determines the load distribution between Primary and Standby server definitions. | String | Yes |
origin_settings.priority | Priority can be prioritized as two definitions: Primary and Standby. | String | Yes |
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 |
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 |
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 |
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 |
origin_settings.origin_url | Domain or IP can be added as a record for the origin definition. | String | Yes |
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 |
origin_settings.status_origin_s3_presign | If the entered Origin URL information has S3 support, it allows requesting the content with a pre-signed URL. The protocol information can only be used as https. By default, it is sent as False | Bool | No |
origin_settings.origin_s3_header | When S3 Presign definition is opened, it includes the necessary information: | Array | No |
origin_settings.origin_s3_header.bucket | Bucket name to be used on the S3 side | String | Yes |
origin_settings.origin_s3_header.region | Region name to be used on the S3 side | String | Yes |
origin_settings.origin_s3_header.access_key | Access key required for access on the S3 side | String | Yes |
origin_settings.origin_s3_header.secret_key | Secret key required for access on the S3 side | String | Yes |
Payload - Add Origin
{
"resource_uuid": "***",
"origin_type": "mainstream",
"origin_settings": [
{
"weight": 50,
"priority": "primary",
"protocol": "https",
"http_port": 80,
"is_delete": false,
"https_port": 443,
"origin_url": "static.mydomain.com",
"host_header": "assets.mydomain.com"
}
]
}
Payload - Update Origin
{
"resource_uuid": "***",
"origin_type": "mainstream",
"origin_settings": [
{
"id": 1,
"weight": 50,
"priority": "primary",
"protocol": "https",
"http_port": 80,
"is_delete": false,
"https_port": 443,
"origin_url": "static.example.com",
"host_header": "update.mydomain.com"
}
]
}
Payload - Delete Origin
{
"resource_uuid": "***",
"origin_type": "mainstream",
"origin_settings": [
{
"id": 3,
"is_delete": true
}
]
}