Membuat rollout layanan.
Deskripsi operasi
Usage notes
-
Mutually exclusive strategies: You can use either the
Partitionor theBatchstrategy, but not both. -
Request rate limit: Up to 100 requests per second.
-
Authorization: This operation requires the
eas:CreateServiceRolloutpermission. -
ARN:
acs:eas:{#regionId}:{#accountId}:service/{#ServiceName}. -
Pause a rollout: To pause the service rollout, set the
Pausedparameter totrue. You can then resume or cancel the rollout by calling theUpdateServiceRolloutoperation. -
Monitoring and rollback: Monitor service metrics during the service rollout to promptly identify and resolve issues. To perform a rollback, you can adjust the
Partitionvalue or delete the rollout strategy.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
POST /api/v2/services/{ClusterId}/{ServiceName}/rollout HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ID wilayah tempat layanan diterapkan. Panggil operasi ListServices untuk Tampilan daftar wilayah yang tersedia. |
cn-shanghai |
| ServiceName |
string |
Yes |
Nama layanan yang akan diperbarui. Nama harus unik di dalam wilayah. Panggil operasi DescribeService untuk mendapatkan detail layanan. |
my-service |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Badan permintaan. |
|
| Partition |
object |
No |
The configuration for the Partition strategy. |
|
| Partition |
string |
No |
The number of instances to update to the new version. |
1 |
| Batch |
object |
No |
The configuration for the Batch strategy. |
|
| BatchSize |
string |
No |
The number of instances to update in each batch. |
1 |
| Interval |
string |
No |
The wait interval after each batch completes. |
5m |
| Paused |
boolean |
No |
Specifies whether to pause the rollout. |
False |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The unique request ID. Use this ID for troubleshooting and traceability. |
40325405-579C-4D82**** |
| Message |
string |
A message that indicates the result of the operation. |
Rollout created successfully |
Contoh
Respons sukses
JSONformat
{
"RequestId": "40325405-579C-4D82****\n",
"Message": "Rollout created successfully"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.