Mengambil informasi konfigurasi aplikasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:DescribeApplicationConfig |
get |
*All Resource
|
None | None |
Sintaks permintaan
GET /pop/v1/sam/app/describeApplicationConfig HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
ID aplikasi. |
7171a6ca-d1cd-4928-8642-7d5cfe69**** |
| VersionId |
string |
No |
ID versi. |
0026ff7f-2b57-4127-bdd0-9bf202bb**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Data tanggapan. |
||
| RequestId |
string |
ID permintaan. |
01CF26C7-00A3-4AA6-BA76-7E95F2A3**** |
| Message |
string |
Informasi tambahan tentang hasil pemanggilan. |
success |
| TraceId |
string |
ID jejak, yang digunakan untuk mengkueri detail pemanggilan. |
ac1a0b2215622246421415014e**** |
| Data |
object |
Informasi aplikasi. |
|
| VpcId |
string |
ID VPC. |
vpc-2ze0i263cnn311nvj**** |
| Readiness |
string |
Pemeriksaan status startup aplikasi. Kontainer yang gagal dalam beberapa Pemeriksaan kesehatan akan dimatikan dan dimulai ulang. Kontainer yang tidak lulus Pemeriksaan kesehatan tidak menerima trafik SLB. Metode exec, httpGet, dan tcpSocket didukung. Untuk contoh spesifik, lihat parameter Liveness. Catatan
Anda hanya dapat memilih satu metode untuk Pemeriksaan kesehatan. |
{"exec":{"command":["curl http://localhost:8080"]},"initialDelaySeconds":20,"timeoutSeconds":5} |
| ConfigMapMountDesc |
array<object> |
Informasi ConfigMap. |
|
|
object |
Informasi ConfigMap. |
||
| Key |
string |
The key of the key-value pair. |
k1 |
| ConfigMapName |
string |
The name of the ConfigMap. |
test |
| MountPath |
string |
The mount path of the container. |
/tmp |
| ConfigMapId |
integer |
The ID of the ConfigMap. |
1 |
| SecurityGroupId |
string |
ID grup keamanan. |
sg-wz969ngg2e49q5i4**** |
| BatchWaitTime |
integer |
Waktu tunggu antar batch selama rilis bertahap, dalam detik. |
10 |
| Jdk |
string |
Versi JDK yang menjadi dependensi paket penyebaran. Nilai valid:
Parameter ini tidak didukung ketika Package Type diatur ke Image. |
Open JDK 8 |
| ImageUrl |
string |
URL image. Parameter ini wajib diisi ketika Package Type diatur ke Image. |
docker.io/library/nginx:1.14.2 |
| SlsConfigs |
string |
Pengaturan untuk pengumpulan log ke Simple Log Service (SLS).
Deskripsi parameter:
Jika konfigurasi pengumpulan SLS tidak berubah selama beberapa penerapan, Anda tidak perlu mengatur parameter ini (yaitu, bidang SlsConfigs tidak perlu disertakan dalam permintaan). Jika Anda tidak lagi memerlukan fitur pengumpulan SLS, atur nilai bidang ini ke string kosong dalam permintaan (yaitu, atur nilai bidang SlsConfigs ke ""). |
[{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}] |
| Liveness |
string |
Pengaturan pemeriksaan kesehatan kontainer. Kontainer yang gagal dalam pemeriksaan kesehatan akan dimatikan dan dipulihkan. Metode berikut didukung:
Catatan
Anda hanya dapat memilih satu metode untuk pemeriksaan kesehatan. Deskripsi parameter:
|
{"exec":{"command":["curl http://localhost:8080"]},"initialDelaySeconds":20,"timeoutSeconds":3} |
| Tags |
array<object> |
Informasi tag. |
|
|
object |
Informasi tag. |
||
| Key |
string |
The tag key. |
k1 |
| Value |
string |
The tag value. |
v1 |
| PackageUrl |
string |
URL paket penyebaran. Jika paket penyebaran Anda diunggah melalui SAE, perhatikan hal-hal berikut:
|
https://edas-bj.oss-cn-beijing.aliyuncs.com/apps/K8s_APP_ID/d4c97c37-aba3-403e-ae1e-6f7d8742****/hello-sae.war |
| PackageType |
string |
Tipe paket aplikasi. Nilai valid:
|
War |
| PreStop |
string |
Skrip yang dijalankan sebelum kontainer berhenti. Skrip dipicu sebelum kontainer dihapus. Format: |
{"exec":{"command":["cat","/etc/group"]}} |
| PackageVersion |
string |
Versi paket penyebaran. Parameter ini wajib diisi ketika Package Type diatur ke FatJar atau War. |
1.0 |
| JarStartArgs |
string |
Argumen untuk memulai aplikasi paket JAR. Perintah startup default untuk aplikasi: |
start |
| AppName |
string |
Nama aplikasi. |
demo-app |
| AppId |
string |
ID aplikasi. |
7171a6ca-d1cd-4928-8642-7d5cfe69**** |
| JarStartOptions |
string |
Opsi untuk memulai aplikasi paket JAR. Perintah startup default untuk aplikasi: |
-Dtest=true |
| Replicas |
integer |
Jumlah instans aplikasi. |
2 |
| UpdateStrategy |
string |
Kebijakan penerapan. Ketika jumlah minimum instans yang tersedia adalah 1, nilai bidang UpdateStrategy adalah "". Ketika jumlah minimum instans yang tersedia lebih dari 1, contohnya adalah sebagai berikut:
Deskripsi parameter:
|
{"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":1},"grayUpdate":{"gray":1}} |
| MinReadyInstances |
integer |
Jumlah minimum instans yang tersedia. Nilai valid:
Catatan
Atur jumlah minimum instans yang tersedia ke ≥ 1 untuk setiap penyebaran bergulir guna menghindari interupsi layanan. |
1 |
| MinReadyInstanceRatio |
integer |
Persentase minimum instans yang tersedia. Nilai valid:
Catatan
Ketika MinReadyInstance dan MinReadyInstanceRatio keduanya ditentukan dan nilai MinReadyInstanceRatio bukan -1, parameter MinReadyInstanceRatio diutamakan. Misalnya, jika MinReadyInstances diatur ke 5 dan MinReadyInstanceRatio diatur ke 50, sistem menggunakan MinReadyInstanceRatio untuk menghitung jumlah minimum instans yang tersedia. |
-1 |
| Memory |
integer |
Ukuran memori yang diperlukan oleh setiap instans, dalam MB. Nilai ini tidak boleh 0. Ukuran memori memiliki pemetaan satu-ke-satu dengan CPU. Hanya spesifikasi yang ditentukan berikut yang didukung:
|
2048 |
| Php |
string |
Versi PHP yang menjadi dependensi paket penyebaran PHP. Image tidak didukung. |
PHP-FPM 7.0 |
| PhpConfig |
string |
Konten file konfigurasi PHP. |
k1=v1 |
| PhpConfigLocation |
string |
Jalur memasang konfigurasi startup aplikasi PHP. Pastikan server PHP menggunakan file konfigurasi ini untuk startup. |
/usr/local/etc/php/php.ini |
| PostStart |
string |
Skrip yang dijalankan setelah kontainer dimulai. Skrip dipicu segera setelah kontainer dibuat. Format: |
{"exec":{"command":["cat","/etc/group"]}} |
| TerminationGracePeriodSeconds |
integer |
Periode waktu shutdown yang mulus. Nilai default: 30. Unit: detik. Nilai valid: 1 hingga 300. |
10 |
| CommandArgs |
string |
Argumen untuk perintah startup image. Ini adalah argumen yang diperlukan oleh perintah startup Command. Format:
Dalam contoh untuk parameter Command, |
["a","b"] |
| NamespaceId |
string |
ID namespace. |
cn-beijing:test |
| MountHost |
string |
Titik memasang NAS dalam VPC aplikasi. Jika konfigurasi tidak berubah selama penerapan, Anda tidak perlu mengatur parameter ini (yaitu, bidang MountHost tidak perlu disertakan dalam permintaan). Untuk menghapus konfigurasi NAS, atur nilai bidang ini ke string kosong dalam permintaan (yaitu, atur nilai bidang MountHost ke ""). |
example.com |
| TomcatConfig |
string |
Konfigurasi Tomcat. Atur parameter ini ke "" atau "{}" untuk menghapus konfigurasi:
|
{"port":8080,"contextPath":"/","maxThreads":400,"uriEncoding":"ISO-8859-1","useBodyEncodingForUri":true} |
| RegionId |
string |
ID wilayah. |
cn-beijing |
| VSwitchId |
string |
ID vSwitch. |
vsw-2ze559r1z1bpwqxwp**** |
| Cpu |
integer |
CPU yang diperlukan oleh setiap instans, dalam millicores. Nilai ini tidak boleh 0. Hanya spesifikasi yang ditentukan berikut yang didukung:
|
1000 |
| Envs |
string |
Parameter variabel lingkungan kontainer. Nilai kustom atau referensi ke item konfigurasi didukung. Untuk mereferensikan item konfigurasi, buat instans ConfigMap terlebih dahulu. Untuk informasi lebih lanjut, lihat CreateConfigMap. Nilai valid:
|
[{"name":"TEST_ENV_KEY","value":"TEST_ENV_VAR"}] |
| MountDesc |
array<object> |
Informasi deskripsi memasang. |
|
|
object |
Informasi deskripsi memasang. |
||
| MountPath |
string |
The mount path of the container. |
/tmp |
| NasPath |
string |
The path of the NAS file system. |
/ |
| EnableAhas |
string |
Apakah akan terhubung ke Application High Availability Service (AHAS). Nilai valid:
|
true |
| CustomHostAlias |
string |
Pemetaan host kustom dalam kontainer. Nilai valid:
|
[{"hostName":"test.host.name","ip":"0.0.0.0"}] |
| WebContainer |
string |
Versi Tomcat yang menjadi dependensi paket penyebaran. Nilai valid:
Parameter ini tidak didukung ketika Package Type diatur ke Image. |
apache-tomcat-7.0.91 |
| Command |
string |
Perintah startup image. Perintah ini harus berupa objek yang dapat dieksekusi yang ada dalam kontainer. Contoh:
Berdasarkan contoh sebelumnya, |
echo |
| WarStartOptions |
string |
Opsi startup untuk aplikasi paket WAR. Perintah startup default untuk aplikasi: |
custom-option |
| PhpArmsConfigLocation |
string |
Jalur memasang untuk Pemantauan Aplikasi PHP. Pastikan server PHP memuat file konfigurasi dari jalur ini. Anda tidak perlu mengelola konten konfigurasi. SAE secara otomatis merender file konfigurasi yang benar. |
/usr/local/etc/php/conf.d/arms.ini |
| NasId |
string |
ID NAS. |
AKSN**** |
| OssAkId |
string |
AccessKey ID untuk operasi baca/tulis OSS. |
xxxxxx |
| OssAkSecret |
string |
Rahasia AccessKey untuk operasi baca/tulis OSS. |
xxxxxx |
| OssMountDescs |
array<object> |
Deskripsi memasang OSS. |
|
|
object |
Deskripsi memasang OSS. |
||
| bucketName |
string |
The bucket name. |
oss-bucket |
| bucketPath |
string |
The directory or object that you created in OSS. An error occurs if the mount directory does not exist. |
data/user.data |
| mountPath |
string |
The path of the container in SAE. If the path exists, the path is overwritten. If the path does not exist, a new path is created. |
/usr/data/user.data |
| readOnly |
boolean |
Specifies whether the container has the read-only permission on the mount directory resources. Valid values:
|
true |
| EdasContainerVersion |
string |
Versi lingkungan runtime aplikasi dalam kerangka kerja HSF, seperti kontainer Ali-Tomcat. |
3.5.3 |
| Timezone |
string |
Zona waktu. Nilai default: Asia/Shanghai. |
Asia/Shanghai |
| AppDescription |
string |
Deskripsi aplikasi. |
Sample application |
| EnableGreyTagRoute |
boolean |
Apakah akan mengaktifkan aturan rilis canary trafik. Aturan ini hanya berlaku untuk aplikasi yang menggunakan kerangka kerja Spring Cloud dan Dubbo. Nilai valid:
|
false |
| MseApplicationId |
string |
ID aplikasi di sisi Microservices Engine (MSE). |
xxxxxxx@xxxxx |
| AcrInstanceId |
string |
ID instans ACR Instans Perusahaan. |
cri-xxxxxx |
| AcrAssumeRoleArn |
string |
Nama Sumber Daya Alibaba Cloud peran RAM yang diperlukan untuk menarik image lintas akun. Untuk informasi lebih lanjut, lihat Menarik image Alibaba Cloud lintas akun dan Memberikan izin lintas akun menggunakan peran RAM. |
acs:ram::123456789012****:role/adminrole |
| ImagePullSecrets |
string |
ID rahasia yang bersesuaian. |
10 |
| AssociateEip |
boolean |
Apakah akan mengasosiasikan EIP. Nilai valid:
|
true |
| KafkaConfigs |
string |
Ringkasan konfigurasi pengumpulan log untuk Kafka. Nilai valid:
|
{"kafkaEndpoint":"10.0.X.XXX:XXXX,10.0.X.XXX:XXXX,10.0.X.XXX:XXXX","kafkaInstanceId":"alikafka_pre-cn-7pp2l8kr****","kafkaConfigs":[{"logType":"file_log","logDir":"/tmp/a.log","kafkaTopic":"test2"},{"logType":"stdout","logDir":"","kafkaTopic":"test"}]} |
| ProgrammingLanguage |
string |
Bahasa pemrograman dari tumpukan teknologi yang digunakan untuk membuat aplikasi. Nilai valid:
|
java |
| PvtzDiscovery |
string |
Mengaktifkan pendaftaran dan penemuan layanan berbasis K8s Service. |
{ "serviceName": "bwm-poc-sc-gateway-cn-beijing-front", "namespaceId": "cn-beijing:front", "portAndProtocol": { "18012": "TCP" }, "portProtocols": [ { "port": "18012", "protocol": "TCP" } ], "enable": true } |
| SwimlanePvtzDiscovery |
string |
Mengonfigurasi pendaftaran dan penemuan layanan berbasis K8s Service dengan rilis canary end-to-end. |
{\"enable\":\"false\",\"namespaceId\":\"cn-beijing:test\",\"portAndProtocol\":{\"2000:TCP\":\"18081\"},\"portProtocols\":[{\"port\":2000,\"protocol\":\"TCP\",\"targetPort\":18081}],\"pvtzDiscoveryName\":\"cn-beijing-1421801774382676\",\"serviceId\":\"3513\",\"serviceName\":\"demo-gray.test\"} |
| MicroRegistration |
string |
Registri Pusat Registrasi Nacos. Nilai valid:
|
"0" |
| NasConfigs |
string |
Konfigurasi memasang NAS. |
[{"mountPath":"/test1","readOnly":false,"nasId":"nasId1","mountDomain":"nasId1.cn-shenzhen.nas.aliyuncs.com","nasPath":"/test1"},{"nasId":"nasId2","mountDomain":"nasId2.cn-shenzhen.nas.aliyuncs.com","readOnly":false,"nasPath":"/test2","mountPath":"/test2"}] |
| Python |
string |
Lingkungan Python. PYTHON 3.9.15 didukung. |
PYTHON 3.9.15 |
| PythonModules |
string |
Dependensi modul instalasi kustom. Secara default, dependensi yang didefinisikan dalam file requirements.txt di direktori root diinstal. Jika tidak ada dependensi yang dikonfigurasi atau paket kustom diperlukan, Anda dapat menentukan dependensi yang akan diinstal. |
Flask==2.0 |
| MseApplicationName |
string |
Nama aplikasi setelah layanan SAE terdaftar di MSE. |
cn-shenzhen-alb-demo-5c**** |
| AppSource |
string |
Tipe aplikasi SAE.
|
micro_service |
| ServiceTags |
object |
Tag rilis canary yang dikonfigurasi untuk aplikasi. |
|
|
string |
Nilai tag rilis canary. |
tag1 |
|
| Dotnet |
string |
Versi kerangka kerja .NET:
|
.NET 8.0 |
| MicroRegistrationConfig |
string |
Konfigurasi registri. Parameter ini hanya berlaku ketika tipe registri adalah MSE Pusat Registrasi Nacos Edisi Perusahaan. |
{\"instanceId\":\"mse-cn-1ls43******\",\"namespace\":\"62ee12fb-c279-4da4-be96-21**********\"} |
| EnableIdle |
boolean |
Apakah akan mengaktifkan mode idle. Nilai valid:
|
false |
| EnableNewArms |
boolean |
Apakah akan mengaktifkan fitur ARMS baru. Nilai valid:
|
false |
| EnableCpuBurst |
string |
Apakah akan mengaktifkan fitur CPU Burst. Nilai valid:
|
true |
| OidcRoleName |
string |
Peran RAM untuk otentikasi identitas. Catatan
Buat penyedia identitas OIDC dan peran penyedia identitas di wilayah yang sama terlebih dahulu. Untuk informasi lebih lanjut, lihat Membuat penyedia identitas OIDC dan Membuat peran untuk penyedia identitas Single Sign-On (SSO). |
sae-test |
| SecretMountDesc |
array<object> |
Deskripsi memasang Secret. |
|
|
object |
Deskripsi memasang Secret. |
||
| Key |
string |
The key of the data value that is encoded in Base64. |
task-center |
| SecretName |
string |
The name of the secret instance. |
dummy-name-opaque-894 |
| MountPath |
string |
The mount path. |
/opt/www/runtime/logs |
| SecretId |
integer |
The ID of the queried secret instance. |
520 |
| SidecarContainersConfig |
array<object> |
Konfigurasi kontainer sidecar. |
|
|
array<object> |
Konfigurasi kontainer sidecar. |
||
| Name |
string |
The container name. |
test |
| Cpu |
integer |
The maximum CPU resources that the sidecar container can use from the main container. |
500 |
| Memory |
integer |
The maximum memory resources that the sidecar container can use from the main container. |
1024 |
| ImageUrl |
string |
The image URL. |
registry.cn-beijing.aliyuncs.com/sae-dev-test/nginx:stable |
| AcrInstanceId |
string |
The ID of the Container Registry Enterprise Edition instance. This parameter is required if ImageUrl is set to an image in Container Registry Enterprise Edition. |
cri-fhzlneorxala66ip |
| Command |
string |
The startup command of the image. The command must be an executable object that exists in the container. Example:
Based on the preceding example, |
/bin/sh |
| CommandArgs |
string |
The arguments of the image startup command. The arguments are required by the preceding startup command Command. Format:
In the preceding example, |
[\"-c\",\"echo \\\"test\\\" > /home/nas/test.log && sleep 10000000s\"] |
| Envs |
string |
The environment variables of the container. You can customize environment variables or reference a ConfigMap. To reference a ConfigMap, you must first create a ConfigMap instance. For more information, see CreateConfigMap. Valid values:
|
[{\"name\":\"k1\",\"value\":\"c8e3a815-e5d3-4adf-abb3-98b106a607c4\"}] |
| ConfigMapMountDesc |
array<object> |
The description of the ConfigMap that you want to mount. Use the configuration item that you created on the Namespace Configuration Items page to inject configuration information into the container. The parameters are described as follows:
Catatan
You can pass the
|
|
|
object |
The description of the ConfigMap that you want to mount. |
||
| Key |
string |
The key of the ConfigMap. |
key |
| ConfigMapName |
string |
The name of the ConfigMap. |
ConfigMap-test |
| MountPath |
string |
The mount path of the container. |
/mnt/test |
| ConfigMapId |
integer |
The ID of the ConfigMap instance. |
7361 |
| EmptyDirDesc |
array<object> |
The shared temporary storage. Set a temporary storage directory and mount it to the main container and the sidecar container. |
|
|
object |
The shared temporary storage. |
||
| Name |
string |
The name of the temporary storage. |
sidecar-container |
| MountPath |
string |
The path on which the volume is mounted in the container. |
/mnt/cache |
| SecretMountDesc |
array<object> |
The description of the secret that you want to mount. |
|
|
object |
|||
| Key |
string |
The key of the data value that is encoded in Base64. |
|
| SecretName |
string |
The name of the secret instance. |
|
| MountPath |
string |
The mount path. |
|
| SecretId |
integer |
The ID of the secret instance. |
|
| Liveness |
string |
The health check on the container. |
|
| Readiness |
string |
The check on the application startup status. |
|
| PreStop |
string |
||
| PostStart |
string |
||
| InitContainersConfig |
array<object> |
Konfigurasi kontainer init. |
|
|
array<object> |
Konfigurasi kontainer init. |
||
| Name |
string |
The name of the init container. |
init-container |
| ImageUrl |
string |
The URL of the image that is used by the init container. |
registry.cn-shenzhen.aliyuncs.com/sae-serverless-demo/sae-demo:microservice-java-provider-v1.0 |
| Command |
string |
The startup command of the image. The command must be an executable object that exists in the container. Example:
Based on the preceding example, |
/bin/sh |
| CommandArgs |
string |
The arguments of the image startup command. The arguments are required by the preceding startup command Command. Format:
In the preceding example, |
["a","b"] |
| Envs |
string |
The environment variables of the container. You can customize environment variables or reference a ConfigMap. To reference a ConfigMap, you must first create a ConfigMap instance. For more information, see CreateConfigMap. Valid values:
|
[{"name":"TEST_ENV_KEY","value":"TEST_ENV_VAR"}] |
| ConfigMapMountDesc |
array<object> |
The configurations of the ConfigMap. |
|
|
object |
The key-value pair of the ConfigMap. |
||
| Key |
string |
The key of the key-value pair. |
k1 |
| ConfigMapName |
string |
The name of the ConfigMap. |
test |
| MountPath |
string |
The mount path of the container. |
/tmp |
| ConfigMapId |
integer |
The ID of the ConfigMap. |
1 |
| EmptyDirDesc |
array<object> |
The shared temporary storage. |
|
|
object |
|||
| Name |
string |
The name of the temporary storage. |
|
| MountPath |
string |
The path on which the volume is mounted in the container. |
|
| SecretMountDesc |
array<object> |
The description of the secret that you want to mount. |
|
|
object |
|||
| Key |
string |
The key. |
|
| SecretName |
string |
The name of the secret instance. |
|
| MountPath |
string |
The mount path. |
|
| SecretId |
integer |
The ID of the secret instance. |
|
| CustomImageNetworkType |
string |
The type of the custom image. If the image is not a custom image, set this parameter to an empty string. Valid values:
|
internet |
| ResourceType |
string |
The resource type. Only |
application |
| BaseAppId |
string |
ID aplikasi garis dasar. |
8c573618-8d72-4407-baf4-f7b64b****** |
| MicroserviceEngineConfig |
string |
The microservice governance configuration.
|
{\"Enable\":true,\"MseLosslessRule\":{\"enable\":true,\"notice\":true,\"delayTime\":10,\"warmupTime\":120,\"funcType\":2,\"aligned\":false,\"related\":false,\"lossLessDetail\":false}} |
| NewSaeVersion |
string |
The application version. Valid values:
|
pro |
| ClusterId |
string |
ID kluster. |
495fc79c-ae61-4600-866d-a09d68****** |
| DiskSize |
integer |
Ukuran penyimpanan disk, dalam GB. |
20 |
| StartupProbe |
string |
Probe startup aplikasi. |
{\"exec\":{\"command\":[\"/bin/sh\",\"-c\",\"#!Note: If microservice config is enabled, the application will be automatically injected with the prestop configuration for lossless offline. If you delete this prestop configuration, lossless offline will not be effective.\\n echo stop > /tmp/prestop; /home/admin/.tools/curl http://127.0.0.1:54199/offline; sleep 30\"]}} |
| GpuCount |
string |
Jumlah GPU. |
|
| GpuType |
string |
Tipe GPU. |
|
| EnablePrometheus |
boolean |
Indicates whether Prometheus custom metric collection is enabled. |
|
| IsStateful |
boolean |
Apakah aplikasi bersifat stateful. |
|
| CmsServiceId |
string |
ID layanan CloudMonitor. |
|
| HeadlessPvtzDiscovery |
string |
||
| Html |
string |
||
| EmptyDirDesc |
array<object> |
Penyimpanan sementara bersama. |
|
|
object |
Konfigurasi penyimpanan ephemeral bersama. |
||
| Name |
string |
The name of the temporary storage. |
|
| MountPath |
string |
The mount path. |
|
| DeploymentName |
string |
Nama instans aplikasi di kluster ASI. |
demo-b0cdce9b-3d1f-4168-b206-b59f348f1a8a |
| AlbIngressReadinessGate |
string |
The ALB gateway ReadinessGate configuration. |
|
| MaxSurgeInstances |
integer |
The Peak Volume of instances. |
|
| MaxSurgeInstanceRatio |
integer |
The Peak Volume instance ratio. |
|
| AgentVersion |
string |
The agent version. |
|
| EnableNamespaceAgentVersion |
boolean |
Indicates whether the namespace agent version configuration is reused. |
|
| SlsLogEnvTags |
string |
sls log env tags |
|
| LokiConfigs |
string |
LokiConfigs |
|
| IdleHour |
string |
||
| Labels |
object |
The labels. |
|
|
string |
|||
| RaspConfig |
array<object> |
||
|
object |
|||
| EnableRasp |
boolean |
||
| RaspAppName |
string |
||
| RaspAppKey |
string |
||
| ErrorCode |
string |
The error code. Valid values:
|
|
| Code |
string |
The API status or POP error code. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the application configuration information is retrieved. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "01CF26C7-00A3-4AA6-BA76-7E95F2A3****",
"Message": "success",
"TraceId": "ac1a0b2215622246421415014e****",
"Data": {
"VpcId": "vpc-2ze0i263cnn311nvj****",
"Readiness": "{\"exec\":{\"command\":[\"curl http://localhost:8080\"]},\"initialDelaySeconds\":20,\"timeoutSeconds\":5}",
"ConfigMapMountDesc": [
{
"Key": "k1",
"ConfigMapName": "test",
"MountPath": "/tmp",
"ConfigMapId": 1
}
],
"SecurityGroupId": "sg-wz969ngg2e49q5i4****",
"BatchWaitTime": 10,
"Jdk": "Open JDK 8",
"ImageUrl": "docker.io/library/nginx:1.14.2",
"SlsConfigs": "[{\"logDir\":\"\",\"logType\":\"stdout\"},{\"logDir\":\"/tmp/a.log\"}]",
"Liveness": "{\"exec\":{\"command\":[\"curl http://localhost:8080\"]},\"initialDelaySeconds\":20,\"timeoutSeconds\":3}",
"Tags": [
{
"Key": "k1",
"Value": "v1"
}
],
"PackageUrl": "https://edas-bj.oss-cn-beijing.aliyuncs.com/apps/K8s_APP_ID/d4c97c37-aba3-403e-ae1e-6f7d8742****/hello-sae.war",
"PackageType": "War",
"PreStop": "{\"exec\":{\"command\":[\"cat\",\"/etc/group\"]}}",
"PackageVersion": "1.0",
"JarStartArgs": "start",
"AppName": "demo-app",
"AppId": "7171a6ca-d1cd-4928-8642-7d5cfe69****",
"JarStartOptions": "-Dtest=true",
"Replicas": 2,
"UpdateStrategy": "{\"type\":\"GrayBatchUpdate\",\"batchUpdate\":{\"batch\":2,\"releaseType\":\"auto\",\"batchWaitTime\":1},\"grayUpdate\":{\"gray\":1}}",
"MinReadyInstances": 1,
"MinReadyInstanceRatio": -1,
"Memory": 2048,
"Php": "PHP-FPM 7.0",
"PhpConfig": "k1=v1",
"PhpConfigLocation": "/usr/local/etc/php/php.ini",
"PostStart": "{\"exec\":{\"command\":[\"cat\",\"/etc/group\"]}}",
"TerminationGracePeriodSeconds": 10,
"CommandArgs": "[\"a\",\"b\"]",
"NamespaceId": "cn-beijing:test",
"MountHost": "example.com",
"TomcatConfig": "{\"port\":8080,\"contextPath\":\"/\",\"maxThreads\":400,\"uriEncoding\":\"ISO-8859-1\",\"useBodyEncodingForUri\":true}",
"RegionId": "cn-beijing",
"VSwitchId": "vsw-2ze559r1z1bpwqxwp****",
"Cpu": 1000,
"Envs": "[{\"name\":\"TEST_ENV_KEY\",\"value\":\"TEST_ENV_VAR\"}]",
"MountDesc": [
{
"MountPath": "/tmp",
"NasPath": "/"
}
],
"EnableAhas": "true",
"CustomHostAlias": "[{\"hostName\":\"test.host.name\",\"ip\":\"0.0.0.0\"}]",
"WebContainer": "apache-tomcat-7.0.91",
"Command": "echo",
"WarStartOptions": "custom-option",
"PhpArmsConfigLocation": "/usr/local/etc/php/conf.d/arms.ini",
"NasId": "AKSN****",
"OssAkId": "xxxxxx",
"OssAkSecret": "xxxxxx",
"OssMountDescs": [
{
"bucketName": "oss-bucket",
"bucketPath": "data/user.data",
"mountPath": "/usr/data/user.data",
"readOnly": true
}
],
"EdasContainerVersion": "3.5.3",
"Timezone": "Asia/Shanghai",
"AppDescription": "Sample application",
"EnableGreyTagRoute": false,
"MseApplicationId": "xxxxxxx@xxxxx",
"AcrInstanceId": "cri-xxxxxx",
"AcrAssumeRoleArn": "acs:ram::123456789012****:role/adminrole",
"ImagePullSecrets": "10",
"AssociateEip": true,
"KafkaConfigs": "{\"kafkaEndpoint\":\"10.0.X.XXX:XXXX,10.0.X.XXX:XXXX,10.0.X.XXX:XXXX\",\"kafkaInstanceId\":\"alikafka_pre-cn-7pp2l8kr****\",\"kafkaConfigs\":[{\"logType\":\"file_log\",\"logDir\":\"/tmp/a.log\",\"kafkaTopic\":\"test2\"},{\"logType\":\"stdout\",\"logDir\":\"\",\"kafkaTopic\":\"test\"}]}",
"ProgrammingLanguage": "java",
"PvtzDiscovery": "{ \"serviceName\": \"bwm-poc-sc-gateway-cn-beijing-front\", \"namespaceId\": \"cn-beijing:front\", \"portAndProtocol\": { \"18012\": \"TCP\" }, \"portProtocols\": [ { \"port\": \"18012\", \"protocol\": \"TCP\" } ], \"enable\": true }",
"SwimlanePvtzDiscovery": "{\\\"enable\\\":\\\"false\\\",\\\"namespaceId\\\":\\\"cn-beijing:test\\\",\\\"portAndProtocol\\\":{\\\"2000:TCP\\\":\\\"18081\\\"},\\\"portProtocols\\\":[{\\\"port\\\":2000,\\\"protocol\\\":\\\"TCP\\\",\\\"targetPort\\\":18081}],\\\"pvtzDiscoveryName\\\":\\\"cn-beijing-1421801774382676\\\",\\\"serviceId\\\":\\\"3513\\\",\\\"serviceName\\\":\\\"demo-gray.test\\\"}",
"MicroRegistration": "\"0\"",
"NasConfigs": "[{\"mountPath\":\"/test1\",\"readOnly\":false,\"nasId\":\"nasId1\",\"mountDomain\":\"nasId1.cn-shenzhen.nas.aliyuncs.com\",\"nasPath\":\"/test1\"},{\"nasId\":\"nasId2\",\"mountDomain\":\"nasId2.cn-shenzhen.nas.aliyuncs.com\",\"readOnly\":false,\"nasPath\":\"/test2\",\"mountPath\":\"/test2\"}]",
"Python": "PYTHON 3.9.15",
"PythonModules": "Flask==2.0",
"MseApplicationName": "cn-shenzhen-alb-demo-5c****",
"AppSource": "micro_service",
"ServiceTags": {
"key": "tag1"
},
"Dotnet": ".NET 8.0",
"MicroRegistrationConfig": "{\\\"instanceId\\\":\\\"mse-cn-1ls43******\\\",\\\"namespace\\\":\\\"62ee12fb-c279-4da4-be96-21**********\\\"}",
"EnableIdle": false,
"EnableNewArms": false,
"EnableCpuBurst": "true",
"OidcRoleName": "sae-test",
"SecretMountDesc": [
{
"Key": "task-center",
"SecretName": "dummy-name-opaque-894",
"MountPath": "/opt/www/runtime/logs",
"SecretId": 520
}
],
"SidecarContainersConfig": [
{
"Name": "test",
"Cpu": 500,
"Memory": 1024,
"ImageUrl": "registry.cn-beijing.aliyuncs.com/sae-dev-test/nginx:stable",
"AcrInstanceId": "cri-fhzlneorxala66ip",
"Command": "/bin/sh",
"CommandArgs": "[\\\"-c\\\",\\\"echo \\\\\\\"test\\\\\\\" > /home/nas/test.log && sleep 10000000s\\\"]",
"Envs": "[{\\\"name\\\":\\\"k1\\\",\\\"value\\\":\\\"c8e3a815-e5d3-4adf-abb3-98b106a607c4\\\"}]",
"ConfigMapMountDesc": [
{
"Key": "key",
"ConfigMapName": "ConfigMap-test",
"MountPath": "/mnt/test",
"ConfigMapId": 7361
}
],
"EmptyDirDesc": [
{
"Name": "sidecar-container",
"MountPath": "/mnt/cache"
}
],
"SecretMountDesc": [
{
"Key": "",
"SecretName": "",
"MountPath": "",
"SecretId": 0
}
],
"Liveness": "",
"Readiness": "",
"PreStop": "",
"PostStart": ""
}
],
"InitContainersConfig": [
{
"Name": "init-container",
"ImageUrl": "registry.cn-shenzhen.aliyuncs.com/sae-serverless-demo/sae-demo:microservice-java-provider-v1.0",
"Command": "/bin/sh",
"CommandArgs": "[\"a\",\"b\"]\n",
"Envs": "[{\"name\":\"TEST_ENV_KEY\",\"value\":\"TEST_ENV_VAR\"}]\n",
"ConfigMapMountDesc": [
{
"Key": "k1\n",
"ConfigMapName": "test\n",
"MountPath": "/tmp\n",
"ConfigMapId": 1
}
],
"EmptyDirDesc": [
{
"Name": "",
"MountPath": ""
}
],
"SecretMountDesc": [
{
"Key": "",
"SecretName": "",
"MountPath": "",
"SecretId": 0
}
]
}
],
"CustomImageNetworkType": "internet",
"ResourceType": "application",
"BaseAppId": "8c573618-8d72-4407-baf4-f7b64b******",
"MicroserviceEngineConfig": "{\\\"Enable\\\":true,\\\"MseLosslessRule\\\":{\\\"enable\\\":true,\\\"notice\\\":true,\\\"delayTime\\\":10,\\\"warmupTime\\\":120,\\\"funcType\\\":2,\\\"aligned\\\":false,\\\"related\\\":false,\\\"lossLessDetail\\\":false}}",
"NewSaeVersion": "pro",
"ClusterId": "495fc79c-ae61-4600-866d-a09d68******",
"DiskSize": 20,
"StartupProbe": "{\\\"exec\\\":{\\\"command\\\":[\\\"/bin/sh\\\",\\\"-c\\\",\\\"#!Note: If microservice config is enabled, the application will be automatically injected with the prestop configuration for lossless offline. If you delete this prestop configuration, lossless offline will not be effective.\\\\n echo stop > /tmp/prestop; /home/admin/.tools/curl http://127.0.0.1:54199/offline; sleep 30\\\"]}}",
"GpuCount": "",
"GpuType": "",
"EnablePrometheus": false,
"IsStateful": false,
"CmsServiceId": "",
"HeadlessPvtzDiscovery": "",
"Html": "",
"EmptyDirDesc": [
{
"Name": "",
"MountPath": ""
}
],
"DeploymentName": "demo-b0cdce9b-3d1f-4168-b206-b59f348f1a8a",
"AlbIngressReadinessGate": "",
"MaxSurgeInstances": 0,
"MaxSurgeInstanceRatio": 0,
"AgentVersion": "",
"EnableNamespaceAgentVersion": false,
"SlsLogEnvTags": "",
"LokiConfigs": "",
"IdleHour": "",
"Labels": {
"key": ""
},
"RaspConfig": [
{
"EnableRasp": true,
"RaspAppName": "",
"RaspAppKey": ""
}
]
},
"ErrorCode": "",
"Code": "200",
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidApplication.NotFound | The current application does not exist. | |
| 404 | InvalidAppId.NotFound | The specified AppId does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.