You can call this operation to start a deployment environment.

  • Only the deployment environments in the stopped state can be started.
  • After you call this operation, the change ID will be returned. You can use this change ID to query the change information.

Debugging

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request headers

This operation uses common request headers, instead of special request headers. For more information, see the "Common request headers" section in "Common request and response headers."

Request syntax

POST /pop/v1/wam/appEnv/start HTTP/1.1

Request parameters

Parameter Type Required? Example Description
EnvId String Yes we-5d39b8ba6786bd4b149*****

The ID of the deployment environment to be started.

Response parameters

Parameter Type Example Description
Code String OK

The response code. The value is OK if the request is successful.

EnvChange

The change information about the deployment environment.

ChangeId String wc-5d247bbcd43be51c729*****

The ID of the change.

EnvId String we-5d39b8ba6786bd4b149*****

The ID of the deployment environment.

StartTime String 1562672060867

The start time of the change.

Message String success

The response message. The value is success if the request is successful.

RequestId String 8D69F3C4-EA43-49D5-875A-0893BF*****

The ID of the request.

Examples

Sample request


http://webplus.cn-hangzhou.aliyuncs.com/pop/v1/wam/appEnv/start??Id=we-5d22b3816f48e5478fd*****&<Common request parameters>

Sample success response

XML format

<StarAppEnvResponse>
    <EnvChange>
        <ChangeId>wc-5d247ab5d43be51c729*****</ChangeId>
        <EnvId>we-5d247866d43be51c729*****</EnvId>
        <StartTime>1562671797841</StartTime>
    </EnvChange>
    <Message>success</Message>
    <RequestId>05BB8B43-DAA6-4E19-9A3C-AF11DD1*****</RequestId>
    <Code>OK</Code>
</StarAppEnvResponse>

JSON format

{
	"Message":"success",
	"RequestId":"633D9443-025A-4B39-8957-495CC2B*****",
	"EnvChange":{
		"EnvId":"we-5d247866d43be51c729*****",
		"ChangeId":"wc-5d247bbcd43be51c729*****",
		"StartTime":1562672060867
	},
	"Code":"OK"
}

Error codes

HTTP status code Error code Error message Description
403 ResourceAuthFailed The specified resource does not exist or it does not belong to this Alibaba Cloud account. The error message returned because the specified resource does not exist or it does not belong to your Alibaba Cloud account.
403 StatusNotAllowedStart A start action can only be made to an environment that is already stopped. An environment with other status cannot be started. The error message returned because the deployment environment to be started is not in the correct state. You can only start a deployment environment in the stopped state.
400 EnvOnChanging An error occurred while starting the change. Wait until the ongoing change is complete. The error message returned because an error occurred while starting the change. Wait until the ongoing change is complete.

For more information about error codes, see API Error Center.