All Products
Search
Document Center

Simple Application Server:ResetSystem

Last Updated:Jun 10, 2026

Mereset server aplikasi sederhana.

Deskripsi operasi

You can reset a simple application server to re-install its applications or operating system and re-initialize the server. You can reset a simple application server by resetting the current system or changing the image.

  • Reset the current system: You can re-install the operating system without changing the image.

  • Change the image: You can select another Alibaba Cloud image or a custom image to re-install the operating system.

Precautions

  • Resetting the system or changing the image of a simple application server clears the disk data on the server. Back up the data as needed.

  • After you reset a simple application server, monitoring may fail. In this case, you can use one of the following methods to install the CloudMonitor agent on the server:

Limits

  • Snapshots that are created before the reset are retained, but the snapshots cannot be used to restore the disks of the server.

  • You cannot reset simple application servers that were created from custom images that contain data of data disks.

  • If you reset a simple application server by replacing the existing image with a custom image, the following limits apply:

    • The custom image must reside in the same region as the current server.

    • The custom image cannot be created based on the current server. If you want to restore the data on the server, you can use a snapshot of the server to restore disk data.

    • If your simple application server resides in a region outside the Chinese mainland, you cannot switch the operating system of the server between Windows Server and Linux. You cannot use a Windows Server custom image to reset a Linux simple application server. Similarly, you cannot use a Linux custom image to reset a Windows Server simple application server. You can switch the operating systems of simple application servers only between Windows Server versions or between Linux distributions.

    • The following limits apply to the disks attached to the simple application server:

      • If the custom image contains a system disk and a data disk but only a system disk is attached to the simple application server, you cannot use the custom image to reset the simple application server.

      • If the system disk size of the custom image is greater than the system disk size of the simple application server, you cannot directly use the custom image to reset the simple application server.

      • Only if the system disk size of the simple application server is greater than or equal to the system disk size of the custom image, you can use the custom image to reset the simple application server. To increase the system disk size of your server, you can upgrade the server configuration. For more information, see Upgrade a simple application server.

      • If the data disk size of the custom image is greater than the data disk size of the simple application server, you cannot use the custom image to reset the simple application server.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

swas-open:ResetSystem

update

*Instance

acs:swas-open:{#regionId}:{#accountId}:instance/{#InstanceId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

ID server aplikasi sederhana.

ace0706b2ac4454d984295a94213****

RegionId

string

Yes

ID wilayah. Anda dapat memanggil operasi ListRegions untuk mengkueri daftar wilayah terbaru.

cn-hangzhou

ImageId

string

No

ID image tujuan. Jika Anda tidak menentukan parameter ini, image saat ini akan direset.

794c230fd3e64ea19f83f4d7a0ad****

ClientToken

string

No

Token klien yang ingin Anda gunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. token hanya dapat berisi karakter ASCII dan tidak boleh melebihi 64 karakter. Untuk informasi lebih lanjut, lihat Memastikan idempotensi.

123e4567-e89b-12d3-a456-426655440000

LoginCredentials

object

No

Informasi tentang kredensial login.

Password

string

No

The password that corresponds to the administrator.

  • For Windows servers, the default administrator account is Administrator.

  • Linux servers, the default administrator account is root.

***

KeyPairName

string

No

The name of the key pair that you want to bind to the simple application server. Only Linux simple application servers support key pairs.

aliyunkey

Elemen respons

Element

Type

Description

Example

object

RequestId

string

The request ID.

20758A-585D-4A41-A9B2-28DA8F4F534F

Contoh

Respons sukses

JSONformat

{
  "RequestId": "20758A-585D-4A41-A9B2-28DA8F4F534F"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidImageId.NotSupport The specified ImageId does not support the operation.
500 InternalError An error occurred while processing your request.
404 InvalidInstanceId.NotFound The specified InstanceId does not exist.
404 InvalidImageId.NotFound The specified ImageId does not exist.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.