All Products
Search
Document Center

Edge Security Acceleration:UploadStagingRoutineCode

Last Updated:Oct 17, 2024

Uploads code to a routine for testing.

Operation description

Note
  • Each time you upload code to a routine, a version is generated. The number of versions is counted by CodeRev. The uploaded code is used only for testing.

  • The code is automatically published to a staging environment.

  • Each routine can retain at most 10 versions. If the upper limit is reached, you need to call the DeleteRoutineCodeRevision operation to manually delete versions that are no longer needed before new versions can be saved.

  • You can call this operation up to 100 times per second per account.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
NamestringYes

The name of the routine. The name needs to be unique among the routines that belong to the same Alibaba Cloud account.

test
CodeDescriptionstringNo

The description of the version.

desc

Response parameters

ParameterTypeDescriptionExample
object
Contentobject

The parameters required by the code.

RequestIdstring

The ID of the request.

DFA2027F-86C0-4421-9593-581A7993696C

Examples

Sample success responses

JSONformat

{
  "Content": {
    "test": "test",
    "test2": 1
  },
  "RequestId": "DFA2027F-86C0-4421-9593-581A7993696C"
}

Error codes

HTTP status codeError codeError messageDescription
400EdgeRoutine.GeneralErrorA server error occurred: %sA server error occurred. Try again later. If the error persists, submit a ticket.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history