Membuat situs.
Deskripsi operasi
Sebelum membuat situs, Anda harus memiliki instans paket yang aktif.
Jika area percepatan diatur ke hanya Tiongkok Daratan atau global, nama domain situs harus memiliki Pendaftaran Internet Content Provider (ICP) yang telah selesai.
Setiap pengguna dapat memanggil operasi ini hingga 100 kali per jam.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:CreateSite |
create |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SiteName |
string |
Yes |
Nama situs. |
example.com |
| Coverage |
string |
Yes |
Wilayah akselerasi. Nilai valid:
Valid values:
|
domestic |
| AccessType |
string |
Yes |
Tipe akses situs. Nilai valid:
Valid values:
|
NS |
| InstanceId |
string |
Yes |
ID instans. Anda dapat memperoleh ID instans dengan memanggil operasi ListUserRatePlanInstances. Anda harus menentukan setidaknya satu dari ID instans dan ID situs. Jika keduanya ditentukan, ID instans akan diutamakan. |
dbaudit-cn-nwy349jdb03 |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. Jika Anda tidak menentukan parameter ini, sistem akan secara otomatis menggunakan ID kelompok sumber daya default. |
rg-acfmw4znnok**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
CB1A380B-09F0-41BB-3C82-72F8FD6DA2FE |
| SiteId |
integer |
ID situs. |
1234567890123 |
| NameServerList |
string |
Daftar server nama yang ditetapkan ke situs, dipisahkan oleh koma (,). Bidang ini memiliki nilai ketika tipe akses situs adalah NS. Anda perlu mengubah server DNS situs ke server nama ini. Lalu Anda dapat memverifikasi kepemilikan situs dan mengaktifkan situs. |
ns1.example.com,ns2.example.com |
| VerifyCode |
string |
Kode verifikasi situs. Ketika tipe akses situs adalah Nama Domain CNAME, Anda perlu menambahkan Rekaman TXT dengan nama rekaman _esaauth.[nama situs] dan nilai rekaman diatur ke kode verifikasi pada server DNS situs. Lalu Anda dapat memverifikasi kepemilikan situs dan mengaktifkan situs. |
verify_aah9dioasmov**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "CB1A380B-09F0-41BB-3C82-72F8FD6DA2FE",
"SiteId": 1234567890123,
"NameServerList": "ns1.example.com,ns2.example.com",
"VerifyCode": "verify_aah9dioasmov****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.