高速化ドメイン名の構成を変更します。
操作説明
1 アカウントあたり、1 秒間に最大 30 回この操作を呼び出すことができます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
cdn:ModifyCdnDomain |
update |
*Domain
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DomainName |
string |
必須 |
高速化ドメイン名。各リクエストで指定できるドメイン名は 1 つだけです。 |
example.com |
| Sources |
string |
任意 |
オリジンサーバーのアドレスに関する情報。 説明
Sources と TopLevelDomain を同時に設定しないでください。Sources と TopLevelDomain を同時に設定した場合、TopLevelDomain は有効になりません。 |
[{"content":"1.1.1.1","type":"ipaddr","priority":"20","port":80,"weight":"15"}] |
| ResourceGroupId |
string |
任意 |
リソースグループの ID。 |
rg-acfmyuji4b6r4** |
| TopLevelDomain |
string |
任意 |
ルートドメイン。ルートドメイン名を追加するには、CDN_TOP_LEVEL_DOMAIN_GREY_USER_LIST パラメーターで指定されたホワイトリストに追加される必要があります。 説明
Sources と TopLevelDomain を同時に設定しないでください。Sources と TopLevelDomain を同時に設定した場合、TopLevelDomain は有効になりません。 |
aliyundoc.com |
次の表に、Sources パラメーターのフィールドを示します。
| フィールド | タイプ | 必須 | 説明 |
| type | String | はい | オリジンサーバーのタイプ。ipaddr: IP アドレスdomain: ドメイン名oss: Object Storage Service (OSS) バケットのドメイン名fc_domain: Function Compute のドメイン名 |
| content | String | はい | オリジンサーバーのアドレス。IP アドレスまたはドメイン名を指定できます。 |
| port | Integer | いいえ | ポート番号。ポート 80、ポート 443、またはカスタムポートを指定できます。デフォルト値:80。ポート 443 を指定すると、CDN は HTTPS 経由でオリジンサーバーと通信します。 |
| priority | String | いいえ | 複数のオリジンサーバーが指定されている場合のオリジンサーバーの優先度。有効な値:20 および 30。デフォルト値:20。値 20 は、オリジンがプライマリオリジンであることを指定します。値 30 は、オリジンがセカンダリオリジンであることを指定します。 |
| weight | String | いいえ | 複数のオリジンサーバーが指定されている場合のオリジンサーバーの重み。100 未満の値を指定する必要があります。デフォルト値:10。 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエストの ID。 |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
例
成功レスポンス
JSONJSON
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
エラーレスポンス
JSONJSON
{"RequestId":"16A96B9A-F203-4EC5-8E43-CB92E68F4CD8","HostId":"cdn.aliyuncs.com","Code":"InternalError","Message":"The request processing has failed due to some unknown error."}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | Abs.Sources.Malformed | The specified Sources is invalid. | |
| 400 | MissingDomainName | The domainName parameter is required. | |
| 400 | InvalidDomainName.Malformed | The specified DomainName is invalid. | |
| 400 | InvalidSource.Content.Malformed | The specified Source Content is invalid. | |
| 400 | InvalidTypeContent.Mismatch | The specified source type does not match the specified source content. | |
| 400 | MissingSource.Content | The Source Content must be specified. | |
| 400 | MissingSource.Type | The Source Type must be specified. | |
| 400 | InvalidSource.Type.Malformed | The specified Source Type is invalid. | |
| 400 | InvalidSource.Priority.Malformed | The specified Source Priority is invalid. | |
| 400 | InvalidResourceGroupId.Malformed | The specified ResourceGroupId is invalid. | |
| 400 | EntityNotExists.ResourceGroup | The resource group does not exist. | |
| 400 | EntityNotExist.ResourceGroup | The resource group does not exist. | |
| 400 | InvalidStatus.ResourceGroup | It is not allowed to do this operation because of the current status of resource-group. | |
| 400 | TopLevelDomain.NotFound | TopLevelDomain is not exist. | |
| 400 | InvalidTopLevelDomain.Malformed | Specified TopLevelDomain is malformed. | |
| 400 | TopLevelDomain.Mismatch | The specified TopLevelDomain does not match webSiteType. | |
| 400 | SourceInBlacklist | Source is in the blacklist. | |
| 403 | DomainInProtectedMode | The domain is in protection mode. To request permission, contact Customer Service. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。