アプリケーションの基本情報を取得します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
sae:GetApplication |
get |
*All Resource
|
なし | なし |
リクエスト構文
GET /pop/v1/sam/app/getApplication HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| AppId |
string |
任意 |
アプリケーションの ID です。 |
017f39b8-dfa4-4e16-a84b-1dcee4b1**** |
| AppName |
string |
任意 |
アプリケーションの名前です。 |
test |
| NamespaceId |
string |
任意 |
名前空間の ID です。 |
cn-shenzhen |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
返されるデータ。 |
||
| RequestId |
string |
リクエスト ID。 |
01CF26C7-00A3-4AA6-BA76-7E95F2A3**** |
| Message |
string |
応答メッセージ。
|
success |
| TraceId |
string |
リクエストの詳細を照会するために使用されるトレース ID。 |
ac1a0b2215622920113732501e**** |
| Application |
object |
アプリケーションの詳細。 |
|
| AppId |
string |
アプリケーション ID。 |
443d638a-ef76-47c4-b707-61197d****** |
| AppName |
string |
アプリケーション名。 |
test |
| AppDescription |
string |
アプリケーションの説明。 |
for testing |
| NamespaceId |
string |
名前空間 ID。 |
cn-shenzhen |
| ScaleRuleType |
string |
自動スケーリングポリシーのタイプ。有効な値:
|
timing |
| ScaleRuleEnabled |
string |
自動スケーリングポリシーが有効かどうかを示します。有効な値:
|
true |
| RunningInstances |
integer |
実行中のインスタンス数。 |
6 |
| Instances |
integer |
アプリケーションインスタンスの総数。 |
6 |
| Cpu |
integer |
各インスタンスに必要な CPU (ミリコア単位)。この値を 0 にすることはできません。有効な値:
|
2000 |
| Mem |
integer |
各インスタンスに必要なメモリ (MB 単位)。この値を 0 にすることはできません。メモリ仕様は CPU 仕様と連動しています。次の構成がサポートされています:
|
4096 |
| MseEnabled |
boolean |
WebAssemblyFilter が有効かどうかを示します。有効な値:
|
true |
| MseNamespaceId |
string |
MSE インスタンスの名前空間 ID。 |
test |
| ProgrammingLanguage |
string |
アプリケーションのプログラミング言語。有効な値:
|
java |
| BaseAppId |
string |
ベースアプリケーション ID。 |
ee99cce6-1c8e-4bfa-96c3-3e2fa9****** |
| IsStateful |
boolean |
アプリケーションがステートフルであるかどうかを示します。 |
例
成功レスポンス
JSONJSON
{
"RequestId": "01CF26C7-00A3-4AA6-BA76-7E95F2A3****",
"Message": "success",
"TraceId": "ac1a0b2215622920113732501e****",
"Application": {
"AppId": "443d638a-ef76-47c4-b707-61197d******",
"AppName": "test",
"AppDescription": "for testing",
"NamespaceId": "cn-shenzhen",
"ScaleRuleType": "timing",
"ScaleRuleEnabled": "true",
"RunningInstances": 6,
"Instances": 6,
"Cpu": 2000,
"Mem": 4096,
"MseEnabled": true,
"MseNamespaceId": "test",
"ProgrammingLanguage": "java",
"BaseAppId": "ee99cce6-1c8e-4bfa-96c3-3e2fa9******",
"IsStateful": false
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidApplication.NotFound | The current application does not exist. | |
| 400 | InvalidParameter.WithMessage | The parameter is invalid {%s}: %s | |
| 400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | |
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | |
| 400 | InvalidParameter.NoPermission | Resource no permission | |
| 404 | InvalidAppId.NotFound | The specified AppId does not exist. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。