All Products
Search
Document Center

CloudOps Orchestration Service:ListResourceExecutionStatus

Last Updated:Oct 14, 2024

Queries the information about a scheduled execution that involves O\&M operations on Elastic Compute Service (ECS) instances.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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
oos:ListResourceExecutionStatusget
  • execution
    acs:oos:{#regionId}:{#accountId}:execution/{#executionId}
  • oos:tag
none

Request syntax

POST /ListResourceExecutionStatus HTTP/1.1 GET /ListResourceExecutionStatus HTTP/1.1

POST /ListResourceExecutionStatus HTTP/1.1 GET /ListResourceExecutionStatus HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region.

cn-hangzhou
ExecutionIdstringYes

The ID of the execution.

exec-xxxxxxxxxxxx
MaxResultsintegerNo

The number of entries to return on each page. Valid values: 10 to 100. Default value: 50.

50
NextTokenstringNo

The pagination token that is used in the next request to retrieve a new page of results.

MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ

Response parameters

ParameterTypeDescriptionExample
object
NextTokenstring

The pagination token that is used in the next request to retrieve a new page of results.

MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ
RequestIdstring

The ID of the request.

ED571CBD-9F96-419D-B919-CF340BBCA157
MaxResultsinteger

The number of entries returned on each page.

50
ResourceExecutionStatusarray<object>

The execution information of the resource.

Statusobject
Outputsstring

The output of the template.

{ "commandOutput": "hello\n" }
Statusstring

The status of the execution.

Success
ExecutionTimestring

The time when the execution started running.

2020-11-13T08:48:34Z
ResourceIdstring

The ID of the resource.

i-bp1e1bxxxxxxxxxxxxxx
ExecutionIdstring

The ID of the execution.

exec-6be6d6ff805349d9ac13

Examples

Sample success responses

JSONformat

{
  "NextToken": "MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ",
  "RequestId": "ED571CBD-9F96-419D-B919-CF340BBCA157",
  "MaxResults": 50,
  "ResourceExecutionStatus": [
    {
      "Outputs": "{ \t\t\t\t\"commandOutput\": \"hello\\n\" \t\t\t}",
      "Status": "Success",
      "ExecutionTime": "2020-11-13T08:48:34Z",
      "ResourceId": "i-bp1e1bxxxxxxxxxxxxxx",
      "ExecutionId": "exec-6be6d6ff805349d9ac13"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterThe parameter is invalid.The specified parameter is invalid.
404EntityNotExists.ExecutionThe specified execution does not exist.The specified execution does not exist.

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

Change history

Change timeSummary of changesOperation
2024-07-02The Error code has changedView Change Details