All Products
Search
Document Center

:SetSuccessInstance

更新時間:May 17, 2024

Sets the state of a failed instance to successful.

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 parameters

Parameter

Type

Required

Example

Description

Action

String

Yes

SetSuccessInstance

The operation that you want to perform. Set the value to SetSuccessInstance.

InstanceId

Long

Yes

1234

The instance ID.

ProjectEnv

String

Yes

PROD

The environment of the workspace. Valid values: PROD and DEV.

Response parameters

Parameter

Type

Example

Description

HttpStatusCode

Integer

200

The HTTP status code.

Data

Boolean

true

Indicates whether result details are returned.

ErrorMessage

String

The connection does not exist.

The error message.

RequestId

String

E6F0DBDD-5AD****

The request ID.

ErrorCode

String

Invalid.Tenant.ConnectionNotExists

The error code.

Success

Boolean

true

Indicates whether the request was successful.

Examples

Sample requests

http(s)://[Endpoint]/?Action=SetSuccessInstance
&InstanceId=1234
&ProjectEnv=PROD
&<Common request parameters>

Sample success responses

XML format

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

<SetSuccessInstanceResponse>
    <HttpStatusCode>200</HttpStatusCode>
    <Data>true</Data>
    <ErrorMessage>The connection does not exist.</ErrorMessage>
    <RequestId>E6F0DBDD-5AD****</RequestId>
    <ErrorCode>Invalid.Tenant.ConnectionNotExists</ErrorCode>
    <Success>true</Success>
</SetSuccessInstanceResponse>

JSON format

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

{
  "HttpStatusCode" : 200,
  "Data" : true,
  "ErrorMessage" : "The connection does not exist.",
  "RequestId" : "E6F0DBDD-5AD****",
  "ErrorCode" : "Invalid.Tenant.ConnectionNotExists",
  "Success" : true
}

Error codes

For a list of error codes, see Service error codes.