All Products
Search
Document Center

ENS:PushApplicationData

Last Updated:Mar 03, 2024

Pushes the business or service data of an application to file servers.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DatastringYes

The data files that you want to push. The value must be a JSON string.

[{\"name\":\"app01\", \"version\":\"1.0\", \"size\":100,\"archiveType\":\"tar.gz\", \"md5\":\"\", \"url\":\"http://xxxx\",\"timeout\": 1000 }, { \"name\":\"app02\", \"version\":\"1.1\", \"size\":10,\"archiveType\":\"zip\", \"md5\":\"xxxx\", \"url\":\"http://xxxxxx\",\"timeout\": 1000 }]
AppIdstringYes

The ID of the application.

e76f8985-7965-41fc-925b-9648bb6bf650
TimeoutintegerNo

This parameter does not take effect.

1800
PushStrategystringNo

The push policy in the canary release environment. The value must be a JSON string. You can specify multiple push policies. By default, all data files are pushed.

{\"name\": \"ScheduleToRegionId\", \"parameters\":{ \"operator\": \"In\", \"values\": [\"cn-chegndu-telecom-4\", \"cn-shanghai-cmcc-4\"] }}

Response parameters

ParameterTypeDescriptionExample
object
PushResultsobject []

The push results of data files.

Namestring

The name of the data file.

gcs-pre-websocket-eip-telecom
ResultCodeinteger

The push result. The value is of the enumeration type. Valid values:

  • 0: The push operation is successful.
  • 100: The push operation has been performed and the file is pushed.
  • 200: The push operation has been performed and the file is being pushed to specific file servers.
  • 300: The push operation failed. You must trigger the push operation again. The ResultDescrip parameter indicates the error description.
100
ResultDescripstring

The description of the push status.

Versionstring

The version number of the data file.

standard
RequestIdstring

The ID of the request.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

Examples

Sample success responses

JSONformat

{
  "PushResults": {
    "PushResult": [
      {
        "Name": "gcs-pre-websocket-eip-telecom",
        "ResultCode": 100,
        "ResultDescrip": "",
        "Version": "standard"
      }
    ]
  },
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

Error codes

HTTP status codeError codeError message
400NoPermissionPermission denied.
400InvalidParameter.%sThe specified field %s invalid. Please check it again.

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

Change history

Change timeSummary of changesOperation
No change history