CDN Resource - Gzip Image Compression
This setting is available in small, large, dynamic(aksela) and streaming resource types.
Method | URL |
---|---|
PUT | https://cloud.medianova.com/api/v1/cdn/{organization_uuid}/resource/{resource_uuid} |
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 |
gzip_image | The values of the gzip_image must be any of the; “true”, “false”. | Boolean | Yes |
Payload
{
"gzip_image": true,
"resource_uuid": "****-****-****-****"
}
Gzip Compression Custom Types for Image File
File format or mime-type information can be sent.
Method | URL |
---|---|
PUT | https://cloud.medianova.com/api/v1/cdn/{organization_uuid}/resource/{resource_uuid} |
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 |
gzip_image_types | This parameter is used for compressing image files in API requests. Users can specify which types of images will be compressed through this parameter. This parameter takes 'image/gif', 'image/jpeg', 'image/png', 'image/svg+xml', 'image/webp', 'webp', 'gif', 'jpeg', 'jpg', 'png', 'svg', 'svgz' values. | Array | Yes |
Payload
{
"resource_uuid": "***-***-****-***",
"gzip_image_types": [
"image/png",
"image/jpeg",
"gif"
]
}