All Products
Search
Document Center

Edge Security Acceleration:PublishRoutineCodeRevision

Last Updated:Oct 17, 2024

Publishes a specified version of routine code to an environment.

Operation description

Note 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 must be unique among the routines that belong to the same Alibaba Cloud account.

test
SelectCodeRevisionstringYes

The version of the routine code that you want to publish.

1620876959997924701
EnvsobjectYes

The environment to which you want to publish the code.

Note
  • production: the name of the environment, including the environment name (SpecName) and the domain name whitelist (AllowedHosts).

  • presetCanary: You can add canary release environments based on your business requirements. This parameter is optional.

["production","presetCanaryZhejiang"]

Response parameters

ParameterTypeDescriptionExample
object
Contentobject

The version of the routine code that is published to the specified environment.

"CodeRevision": "1620876959997924701"
RequestIdstring

The ID of the request.

A513734D-D17B-411E-864D-XXXX

Examples

Sample success responses

JSONformat

{
  "Content": {
    "test": "test",
    "test2": 1
  },
  "RequestId": "A513734D-D17B-411E-864D-XXXX"
}

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