ステージング環境にリリースされたルーチンコードのリリース情報を取得します。この情報を使用して、テストコードを Object Storage Service (OSS) にアップロードできます。
操作説明
ルーチンのコードがステージング環境にリリースされるたびに、バージョン番号が生成されます。このようなコードはテスト専用です。
ルーチンは最大 10 個のコードバージョンを保持できます。バージョン数が上限に達した場合は、DeleteRoutineCodeRevision 操作を呼び出して不要なバージョンを削除する必要があります。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
esa:GetRoutineStagingCodeUploadInfo |
none |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Name |
string |
必須 |
ルーチン名。 |
test-routine1 |
| CodeDescription |
string |
任意 |
コードの説明。 |
the description of code |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスパラメーター。 |
||
| RequestId |
string |
リクエスト ID。 |
EDBD3EB3-97DA-5465-AEF5-8DCA5DC5E395 |
| CodeVersion |
string |
コードバージョン。 |
1710120201067203242 |
| OssPostConfig |
object |
OSS へのアップロードに使用できる構成情報。 |
{ "Url": "http://oss_fake_bucket_url", "OSSAccessKeyId": "xxx", "key": "site_er_js/hello.1418586423220543.unstable.js", "callback": "xxx==", "x:codeDescription": "xxx=", "policy": "xxx", "Signature": "xxx=" } |
例
成功レスポンス
JSONJSON
{
"RequestId": "EDBD3EB3-97DA-5465-AEF5-8DCA5DC5E395",
"CodeVersion": "1710120201067203242",
"OssPostConfig": {
"Url": "http://oss_fake_bucket_url",
"OSSAccessKeyId": "xxx",
"key": "site_er_js/hello.1418586423220543.unstable.js",
"callback": "xxx==",
"x:codeDescription": "xxx=",
"policy": "xxx",
"Signature": "xxx="
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | |
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 400 | RoutineNotExist | The routine name does not exist. Check the routine name and try again. | |
| 400 | InternalOperationError | Failed to call the service. Try again later or contact technical support. | |
| 400 | CodeVersionNumberExceedQuotaLimit | The maximum number of code versions in your plan has been reached. Check your plan quota and upgrade the plan to request a quota increase. | |
| 400 | RoutineUserServiceStatusHalt | Failed to update the configurations because you have overdue payments. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。