All Products
Search
Document Center

ENS:PushApplicationData

Last Updated:Jul 26, 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

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ens:PushApplicationData
  • All Resources
    *
    none
none

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
PushResultsarray<object>

The push results of data files.

object
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