Configure a CDN domain.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mpserverless:SaveCdnDomainConfig |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TenantId |
string |
No |
The tenant ID. |
UNIULEH*** |
| SpaceId |
string |
Yes |
The service space ID. |
mp-03c11beb-****-4d02-bb40-65a7ad224f4d |
| Type |
string |
Yes |
|
FILE |
| CorsConfig |
string |
No |
|
{"allowOrigin":"https://*.example.com", "accessOriginControl": true} |
| RefererConfig |
string |
No |
|
{"type":"white", "referList":"example.com", "allowEmpty":"off", "disableAst":"off"} |
| IpConfig |
string |
No |
|
{"type":"white", "ipList":"192.168.2.0/24"} |
| UaConfig |
string |
No |
|
{"type":"white", "uaList":"*IE*|*firefox*"} |
| AuthConfig |
string |
No |
Configure the authentication pattern. This is only valid in FILE pattern. After enabling authentication, complete URL signature calculation using the authentication add signature algorithm to access files. Quickly obtain the signed URL through the service-side `file.info` API or the control-side `ListFile` API.
|
{"authType":"type_a", "authKey":"hkpyytgrnf", "authDelta":1800} |
To configure a Referer or IP whitelist, you must first manually delete any existing blacklist configurations. To configure a blacklist, you must first manually delete any existing whitelist configurations. UA blacklists and whitelists support overwriting, so manual deletion is not required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique request ID. |
9B1D280D-F8C8-****-B30F-BDE5A981FDA9 |
Examples
Success response
JSON format
{
"RequestId": "9B1D280D-F8C8-****-B30F-BDE5A981FDA9"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.