Querying Application Operation History
Function
This API is used to query the operation history according to the application ID.
Calling Method
For details, see Calling APIs.
URI
POST /v1/applications/{app_id}/operations/log
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
app_id |
Yes |
String |
Definition: Application ID. Obtain the application list by calling the API forobtaining the application list. In the response body, result[0].id is the desired application list. Constraints: N/A Range: 32 characters, including letters and digits. Default Value: N/A |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Definition: User token. Obtain a token (the value of the X-Subject-Token response header) by calling the IAM API used forObtaining a User Token. Constraints: N/A. Value range: String. Max. 20,000 characters. Default value: N/A. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
operation_type |
No |
Array of strings |
Definition: Operation type. Constraints: N/A Range: Default Value: N/A |
data_type |
No |
Array of strings |
Definition: Data type. Constraints: N/A Range: Default Value: N/A |
operator_id |
No |
Array of strings |
Definition: Operator ID. Obtain the user token by calling the API forobtaining the user token. In the response body, token.user.id is the desired user token. Constraints: N/A Range: 32 characters, including letters and digits. Default Value: N/A |
start_time |
No |
String |
Definition: Start time, in timestamp format, in milliseconds. For example, the timestamp of April 17, 2024 17:14:48 is 1713345288000. Constraints: N/A Range: N/A Default Value: N/A |
end_time |
No |
String |
Definition: End time, in timestamp format, in milliseconds. For example, the timestamp of April 18, 2024 17:14:48 is 1713431688000. Constraints: N/A Range: N/A Default Value: N/A |
sort_type |
No |
String |
Definition: Sorting type. Constraints: N/A Range: Default Value: N/A |
sort_by |
No |
String |
Definition: Sorting field query. Constraints: N/A Range: operation_time: Operation time. Default Value: N/A |
page_size |
No |
Integer |
Definition: Page number. Constraints: N/A Range: 1-100 Default Value: N/A |
page_index |
No |
Integer |
Definition: Number of pages. Constraints: N/A Range: 0-99,999 Default Value: N/A |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
result |
Array of ListAppOperationsLogResult objects |
Definition: Application modification records. Range: N/A |
total_num |
Integer |
Definition: Total number of application modification records. Range: Digits only. |
Parameter |
Type |
Description |
---|---|---|
operator |
String |
Definition: Operator name. Range: N/A |
operator_id |
String |
Definition: Operator ID. Range: N/A |
operator_nick_name |
String |
Definition: Operator's alias. Range: N/A |
operator_tenant_name |
String |
Definition: Name of the tenant to which the operator belongs. Range: N/A |
operator_tenant_id |
String |
Definition: ID of the tenant to which the operator belongs. Range: N/A |
operation_type |
String |
Definition: Operation type. Range: |
data_type |
String |
Definition: Data type. Range: |
operation_time |
String |
Definition: Operation time, in timestamp format, in milliseconds. For example, the timestamp of April 18, 2024 14:14:48 is 1713420888000. Range: N/A |
Example Requests
Query the operation history according to the application ID.
https://{endpoint}/v1/applications/00105ecca9d142148f9807cf0cdebfef/operations/log { "operation_type" : [ "enable", "disable", "modify", "create" ], "data_type" : [ "deployment_actions", "message", "permission", "config", "application" ], "operator_id" : [ ], "start_time" : "1713345288000", "end_time" : "1713431688000", "sort_type" : "asc", "sort_by" : "operation_time", "page_size" : 10, "page_index" : 1 }
Example Responses
Status code: 200
OK indicates that the application operation history is successfully queried.
{ "result" : [ { "operator" : "devcloud_devcloud_01", "operator_id" : "6baa7454109d47c192f22078fe6cda21", "operator_nick_name" : "nickNameTest", "operator_tenant_name" : "devcloud_devcloud_01", "operator_tenant_id" : "26a680dd72e7482eb60d2ef5513586b1", "operation_type" : "create", "data_type" : "application", "operation_time" : "1713420888000" } ], "total_num" : 1 }
Status Codes
Status Code |
Description |
---|---|
200 |
OK indicates that the application operation history is successfully queried. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot