サイトを作成します。
操作説明
サイトを作成する前に、アクティブなプランインスタンスが必要です。
加速エリアが中国本土のみまたはグローバルにセットされている場合、サイトのドメイン名はインターネットコンテンツプロバイダー (ICP) 登録が完了している必要があります。
各ユーザーはこの操作を 1 時間あたり最大 100 回呼び出しできます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
esa:CreateSite |
create |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| SiteName |
string |
必須 |
サイト名。 |
example.com |
| Coverage |
string |
必須 |
加速リージョン。有効な値:
列挙値:
|
domestic |
| AccessType |
string |
必須 |
サイトのアクセスタイプ。有効な値:
列挙値:
|
NS |
| InstanceId |
string |
必須 |
インスタンス ID。 ListUserRatePlanInstances 操作を呼び出してインスタンス ID を取得できます。インスタンス ID とサイト ID のうち少なくとも 1 つを指定する必要があります。両方を指定した場合、インスタンス ID が優先されます。 |
dbaudit-cn-nwy349jdb03 |
| ResourceGroupId |
string |
任意 |
リソースグループ ID。このパラメーターを指定しない場合、システムはデフォルトのリソースグループ ID を自動的に使用します。 |
rg-acfmw4znnok**** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
CB1A380B-09F0-41BB-3C82-72F8FD6DA2FE |
| SiteId |
integer |
サイト ID。 |
1234567890123 |
| NameServerList |
string |
サイトに割り当てられたネームサーバーのリスト。カンマ (,) で区切られます。このフィールドは、サイトのアクセスタイプが NS の場合に値を持ちます。サイトの DNS サーバをこれらのネームサーバーに変更する必要があります。その後、サイトの所有権を確認してサイトをアクティブ化できます。 |
ns1.example.com,ns2.example.com |
| VerifyCode |
string |
サイトの検証コード。サイトのアクセスタイプが CNAME の場合、サイトの DNS サーバに Record 名 _esaauth.[サイト名] で Record 値を検証コードにセットした TXT レコードを追加する必要があります。その後、サイトの所有権を確認してサイトをアクティブ化できます。 |
verify_aah9dioasmov**** |
例
成功レスポンス
JSONJSON
{
"RequestId": "CB1A380B-09F0-41BB-3C82-72F8FD6DA2FE",
"SiteId": 1234567890123,
"NameServerList": "ns1.example.com,ns2.example.com",
"VerifyCode": "verify_aah9dioasmov****"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | ServiceInvokeFailed | The call to the internal service failed. The engineer is resolving the problem. Please wait a moment before trying, or contact customer service for details. | |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | |
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 400 | Instance.NotOnline | Your plan is unavailable due to an overdue payment. Complete the payment first. | |
| 400 | InvalidParameter.SiteName | Invalid website name. Specify a valid name that contains letters and digits and does not contain special characters. | |
| 400 | QuotaExceed.SiteCount | The maximum number of websites associated with your plan has been reached. | |
| 400 | Site.Conflict | Duplicate website names exist across multiple accounts. Rename or delete one and try again. | |
| 400 | Site.AlreadyExist | The website name you specified already exists. Try with another name. | |
| 400 | SubSiteUnavailable | Subdomains are allowed only in Enterprise plans. Upgrade your plan to add a subdomain to ESA. | |
| 400 | Site.InvalidCoverage | The selected location is unavailable in your plan. Change the location to one that is covered by the plan and try again. | |
| 400 | InvalidSiteICP | The specified website does not have an ICP filing or the filing information is invalid. Make sure your website is filed and try again. | |
| 400 | InvalidSiteName | Invalid website name. Check and try again. | |
| 400 | Site.InBlacklist | The site name is in the blacklist. | |
| 400 | NoPermission | You do not have permissions to access or operate on the resource.Contact your account administrator to attach the AliyunESAFullAccess policy to the current user. | |
| 400 | NotInternationalRealIdentity | Real-name registration is required for services offered in Mainland China. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。