Starts multiple applications at a time.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only common request headers. For more information, see Common request and response headers.

Request syntax

PUT /pop/v1/sam/app/batchStartApplications HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
NamespaceId String Query Yes cn-shanghai

The ID of the namespace.

AppIds String Query No ebf491f0-c1a5-45e2-b2c4-710dbe2a****

The IDs of the applications that you want to start. Separate multiple IDs with commas (,).

Response parameters

Parameter Type Example Description
RequestId String 91F93257-7A4A-4BD3-9A7E-2F6EAE6D****

The ID of the request.

Message String success

The returned message.

  • success is returned when the request succeeds.
  • An error code is returned when the request fails.
TraceId String 0a98a02315955564772843261e****

The ID of the trace. It is used to query the details of a request.

Data Object

The returned data.

ChangeOrderId String 01db03d3-3ee9-48b3-b3d0-dfce2d88****

The ID of the change order.

ErrorCode String

The error code.

  • If the request is successful, this parameter is not returned.
  • This parameter is returned only if the request failed. For more information, see Error codes in this topic.
Code String 200

The HTTP status code. Valid values:

  • 2xx: indicates that the request was successful.
  • 3xx: indicates that the request was redirected.
  • 4xx: indicates that the request was invalid.
  • 5xx: indicates that a server error occurred.
Success Boolean true

Indicates whether the specified applications are successfully started. Valid values:

  • true
  • false

Examples

Sample requests

PUT /pop/v1/sam/app/batchStartApplications?NamespaceId=cn-shanghai&AppIds=ebf491f0-c1a5-45e2-b2c4-710dbe2a**** HTTP/1.1
Host:sae.aliyuncs.com
Content-Type:application/json

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<BatchStartApplicationsResponse>
    <RequestId>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</RequestId>
    <Message>success</Message>
    <TraceId>0a98a02315955564772843261e****</TraceId>
    <Data>
        <ChangeOrderId>01db03d3-3ee9-48b3-b3d0-dfce2d88****</ChangeOrderId>
    </Data>
    <Code>200</Code>
    <Success>true</Success>
</BatchStartApplicationsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
  "Message" : "success",
  "TraceId" : "0a98a02315955564772843261e****",
  "Data" : {
    "ChangeOrderId" : "01db03d3-3ee9-48b3-b3d0-dfce2d88****"
  },
  "Code" : "200",
  "Success" : true
}

Error codes

HTTP status code Error code Error message Description
400 System.Upgrading The system is being upgraded. Please try again later. The error message returned because the system is being upgraded. Try again later.
400 InvalidParameter.Obviously The specified parameter is invalid {%s}. The error message returned because the value of the %s parameter is invalid.
400 Mamespace.Have.No.Applications There are no applications in this namespace. The error message returned because no applications were found in the specified namespace.
400 Invalid.App.List.Not.Same.Namespace The selected applications do not belong to the same namespace. The error message returned because the specified applications do not belong to the same namespace.
400 user.indebt The user has an outstanding payment. The error message returned because an overdue payment exists for the user.

For a list of error codes, visit the API Error Center.