Membuat situs.
Deskripsi operasi
Sebelum membuat situs, Anda harus memiliki instans paket yang aktif.
Jika area percepatan diatur hanya ke Tiongkok daratan atau global, nama domain situs harus memiliki Pendaftaran ICP Internet Tiongkok yang valid.
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 |
*Semua resource.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SiteName |
string |
Yes |
Nama situs. |
example.com |
| Coverage |
string |
Yes |
Wilayah akselerasi. Nilai valid:
|
domestic |
| AccessType |
string |
Yes |
Tipe akses situs. Nilai valid:
|
NS |
| InstanceId |
string |
Yes |
ID instans. Anda dapat memperoleh ID instans dengan memanggil operasi ListUserRatePlanInstances. Anda harus menentukan setidaknya satu dari InstanceId dan SiteId. Jika keduanya ditentukan, InstanceId 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**** |
| ResourceOwner |
integer |
No |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| NameServerList |
string |
Daftar Catatan NS yang ditetapkan ke situs, dipisahkan oleh koma (,). Bidang ini memiliki nilai ketika tipe akses situs adalah NS. Anda harus mengubah server DNS situs ke Catatan NS ini. Lalu Anda dapat memverifikasi kepemilikan situs dan mengaktifkan situs. |
ns1.example.com,ns2.example.com |
| RequestId |
string |
ID permintaan. |
CB1A380B-09F0-41BB-3C82-72F8FD6DA2FE |
| SiteId |
integer |
ID situs. |
1234567890123 |
| VerifyCode |
string |
Kode verifikasi situs. Ketika tipe akses situs adalah Nama Domain CNAME, Anda harus menambahkan Rekaman TXT ke server DNS situs dengan nama rekaman _esaauth.[nama situs] dan nilai rekaman diatur ke kode verifikasi. Lalu Anda dapat memverifikasi kepemilikan situs dan mengaktifkan situs. |
verify_aah9dioasmov**** |
Contoh
Respons sukses
JSONformat
{
"NameServerList": "ns1.example.com,ns2.example.com.",
"RequestId": "CB1A380B-09F0-41BB-3C82-72F8FD6DA2FE",
"SiteId": 1234567890123,
"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. | Gagal memanggil layanan. Coba lagi nanti atau hubungi layanan pelanggan untuk detail. |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Gagal memanggil layanan. Coba lagi nanti atau hubungi layanan pelanggan untuk detail. |
| 400 | InvalidParameter | The specified parameter is invalid. | Validasi format parameter input gagal. |
| 400 | Instance.NotOnline | Your plan is unavailable due to an overdue payment. Complete the payment first. | Instans paket Anda saat ini tidak aktif karena pembayaran tertunda. Selesaikan perpanjangan untuk terus menggunakan layanan. |
| 400 | InvalidParameter.SiteName | Invalid website name. Specify a valid name that contains letters and digits and does not contain special characters. | Nama situs tidak valid. Masukkan nama situs yang valid yang hanya berisi huruf dan angka tanpa karakter khusus. |
| 400 | QuotaExceed.SiteCount | The maximum number of websites associated with your plan has been reached. | Jumlah situs telah melebihi batas kuota. |
| 400 | Site.Conflict | Duplicate website names exist across multiple accounts. Rename or delete one and try again. | Terjadi konflik situs. Situs dengan nama yang sama ada di beberapa akun. Hapus atau ganti nama situs yang konflik, lalu coba lagi. |
| 400 | Site.AlreadyExist | The website name you specified already exists. Try with another name. | Situs yang ditentukan sudah ada. Gunakan situs yang berbeda. |
| 400 | SubSiteUnavailable | Subdomains are allowed only in Enterprise plans. Upgrade your plan to add a subdomain to ESA. | Paket Anda tidak mendukung pembuatan situs dengan nama subdomain. Tingkatkan paket Anda. |
| 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. | Wilayah akselerasi yang Anda pilih tidak didukung oleh paket saat ini. Ganti ke wilayah akselerasi yang didukung paket, lalu coba lagi. |
| 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. | Situs yang Anda konfigurasi belum memiliki Pendaftaran ICP atau informasi Pendaftaran ICP tidak valid. Pastikan situs telah memiliki Pendaftaran ICP dan coba lagi. |
| 400 | InvalidSiteName | Invalid website name. Check and try again. | Nama situs yang Anda konfigurasi salah. Tentukan nama situs yang benar dan coba lagi. |
| 400 | Site.InBlacklist | The site name is in the blacklist. | Nama situs berada dalam 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. | Anda tidak memiliki izin yang diperlukan. |
| 400 | NotInternationalRealIdentity | Real-name registration is required for services offered in Mainland China. | Sesuai dengan hukum Republik Rakyat Tiongkok, pengguna yang membeli dan menggunakan layanan informasi di dalam Tiongkok harus menyelesaikan registrasi nama asli. |
| 400 | ICPCheckFailed | The ICP filing verification service is temporarily unavailable. Please try again later. | Layanan kueri Pendaftaran ICP mengalami pengecualian. Coba lagi nanti. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.