All Products
Search
Document Center

:DescribeApplicationStatus

Last Updated:Aug 01, 2024

Queries the status of an application.

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
sae:DescribeApplicationStatusget
  • All Resources
    *
    none
none

Request syntax

GET /pop/v1/sam/app/describeApplicationStatus

Request parameters

ParameterTypeRequiredDescriptionExample
AppIdstringYes

0099b7be-5f5b-4512-a7fc-56049ef1****

0099b7be-5f5b-4512-a7fc-56049ef1****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

91F93257-7A4A-4BD3-9A7E-2F6EAE6D****
Messagestring

The returned message. Valid values:

  • success is returned when the request succeeds.
  • An error code is returned when the request fails.
success
TraceIdstring

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

0a98a02315955564772843261e****
Dataobject

The returned data.

ArmsAdvancedEnabledstring

Indicates whether Application Real-Time Monitoring Service (ARMS) advanced monitoring is enabled. Valid values:

  • true
  • false
false
LastChangeOrderIdstring

The ID of the latest change order that is executed. If no change orders have been executed or if change orders have expired, an empty parameter is returned.

1ccc2339-fc19-49aa-bda0-1e7b8497****
ArmsApmInfostring

The metadata of the application in ARMS.

{"appId":"0099b7be-5f5b-4512-a7fc-56049ef1****","licenseKey":"d5cgdt5pu0@7303f55292a****"}
CreateTimestring

The time when the application was created.

1563373372746
CurrentStatusstring

The current state of the application. Valid values:

  • RUNNING
  • STOPPED
  • UNKNOWN
RUNNING
AppIdstring

The ID of the application.

0099b7be-5f5b-4512-a7fc-56049ef1****
LastChangeOrderRunningboolean

Indicates whether the latest change order is being executed. Valid values:

  • true
  • false
false
RunningInstancesinteger

The number of running instances of the application.

1
LastChangeOrderStatusstring

The state of the latest change order. Valid values:

  • READY: The change order is ready.
  • RUNNING: The change order is being executed.
  • SUCCESS: The change order was executed successfully.
  • FAIL: The change order failed to be executed.
  • ABORT: The change order is stopped.
  • WAIT_BATCH_CONFIRM: The change order is pending execution. You must manually confirm the release batch.
  • AUTO_BATCH_WAIT: The change order is pending execution. SAE will automatically confirm the release batch.
  • SYSTEM_FAIL: A system exception occurred.
  • WAIT_APPROVAL: The change order is pending approval.
  • APPROVED: The change order is approved and is pending execution.
SUCCESS
SubStatusstring

Indicates whether an error occurred while the change order was being executed. Valid values:

  • NORMAL
  • RUNNING_BUT_HAS_ERROR If an error occurs during a batch release, you must manually perform a rollback. In this case, the change order is still running because the task is not completed, but the state of the change order is RUNNING_BUT_HAS_ERROR.
NORMAL
EnableAgentboolean

Indicates whether SAE agent is enabled.

  • true
  • false
false
FileSizeLimitlong

The file size limit. Unit: KB. Valid values: 0 to 10240.

10240
ErrorCodestring

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.
Codestring

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.
200
Successboolean

Indicates whether information of the application is successfully obtained. Valid values:

  • true
  • false
true

Examples

Sample success responses

JSONformat

{
  "RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
  "Message": "success",
  "TraceId": "0a98a02315955564772843261e****",
  "Data": {
    "ArmsAdvancedEnabled": "false",
    "LastChangeOrderId": "1ccc2339-fc19-49aa-bda0-1e7b8497****",
    "ArmsApmInfo": "{\"appId\":\"0099b7be-5f5b-4512-a7fc-56049ef1****\",\"licenseKey\":\"d5cgdt5pu0@7303f55292a****\"}",
    "CreateTime": "1563373372746",
    "CurrentStatus": "RUNNING",
    "AppId": "0099b7be-5f5b-4512-a7fc-56049ef1****",
    "LastChangeOrderRunning": false,
    "RunningInstances": 1,
    "LastChangeOrderStatus": "SUCCESS",
    "SubStatus": "NORMAL",
    "EnableAgent": false,
    "FileSizeLimit": 10240
  },
  "ErrorCode": "",
  "Code": "200",
  "Success": true
}

Error codes

HTTP status codeError codeError message
400InvalidApplication.NotFoundThe current application does not exist.
400InvalidParameter.NotEmptyYou must specify the parameter %s.
404InvalidAppId.NotFoundThe specified AppId does not exist.

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

Change history

Change timeSummary of changesOperation
No change history