Retrieves data archiving ticket details, including creation time, task scheduling, archiving logs, and archived database information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:GetDataArchiveOrderDetail |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| OrderId |
integer |
Yes |
The ID of the data archiving ticket. |
868**** |
| Tid |
integer |
No |
The tenant ID. Note
To view the tenant ID, hover over the profile picture in the upper-right corner of the DMS console. Manage DMS tenants. |
5*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TraceId |
string |
The trace ID for the request. |
0a06e1e316757357507896067d3780 |
| Success |
boolean |
Whether the request was successful. Valid values:
|
true |
| ErrorMessage |
string |
The error message returned if the request failed. |
User [199295823****] not exist |
| ErrorCode |
string |
The error code returned if the request failed. |
NoPermission |
| RequestId |
string |
The request ID, used for log queries and troubleshooting. |
4161CE36-28DF-5191-8A6F-A17076A0B124 |
| DataArchiveOrderDetail |
object |
The details of the data archiving ticket. |
|
| Comment |
string |
The description of the data archiving ticket. |
Archiving of test results |
| Committer |
string |
The user who submitted the ticket. |
dmstest |
| CommitterId |
integer |
The user ID of the ticket submitter. This is a DMS user ID, not an Alibaba Cloud account ID. |
26*** |
| GmtCreate |
string |
The time when the ticket was created. |
2023-05-15 16:00:48 |
| GmtModified |
string |
The time when the ticket was last modified. |
2023-05-23 16:00:48 |
| Id |
integer |
The ID of the data archiving ticket. |
868**** |
| PluginExtraData |
object |
Additional information about the ticket. |
|
| DagInfo |
object |
The workflow information. |
|
| CreatorId |
string |
The ID of the user who created the task flow. |
59**** |
| CronBeginDate |
string |
The scheduling start time. The task flow is not scheduled before this time. |
1970-01-01 |
| CronEndDate |
string |
The scheduling end time. The task flow is not scheduled after this time. |
9999-01-01 |
| CronTrigger |
boolean |
Whether the archiving task is scheduled. Valid values:
|
false |
| DWDevelop |
boolean |
Whether the task is used for data warehouse development. Note
This field is reserved and not in use. |
false |
| DagName |
string |
The name of the workflow. |
data-archive-9099197 |
| DagOwnerId |
string |
The ID of the owner of the workflow. |
13**** |
| DeployId |
integer |
The ID of the deployment record. |
93*** |
| Description |
string |
The description of the workflow. |
order id:9099197 |
| EditDagId |
integer |
The ID of the editable workflow version. |
24*** |
| GmtCreate |
string |
The time when the workflow was created. |
2023-05-15 16:00:48 |
| GmtModified |
string |
The time when the workflow was last modified. |
2023-06-15 16:00:48 |
| Id |
integer |
The ID of the task flow. |
24*** |
| IsPublic |
integer |
Whether the workflow is public. Valid values:
|
0 |
| Legacy |
boolean |
Whether the task is a historical task. Valid values:
|
false |
| System |
boolean |
Whether the task was created by the system. Valid values:
|
false |
| TenantId |
string |
The tenant ID. |
5*** |
| TriggerOnce |
boolean |
Whether the workflow runs only once. Valid values:
|
false |
| DbBaseInfo |
object |
The database information for the data archiving ticket. |
|
| Alias |
string |
The alias of the database instance. |
tf-testAccDMSEnterpriseLogicDatabase853**** |
| AlterTimeout |
integer |
The query timeout period for the database. |
600 |
| AssetControl |
boolean |
Whether access control is enabled for data assets. Valid values:
|
true |
| CatalogName |
string |
The name of the instance in the instance list. |
test |
| ClusterNode |
string |
Whether the instance is added to the DMS whitelist. |
whitelist_done |
| DbId |
integer |
The database ID. You can call the SearchDatabase operation to query the database ID. Note
You can call the ListDatabases operation to query a physical database ID, or the ListLogicDatabases operation to query a logical database ID. |
348**** |
| DbType |
string |
The database engine type. For valid values, see DbType parameter. |
MySQL |
| DbaId |
integer |
The DBA ID of the instance. |
16**** |
| DbaName |
string |
The DBA nickname of the instance. |
DBA |
| Description |
string |
The complete endpoint of the database. |
test@rm-2ze756u8837****.mysql.rds.aliyuncs.com:3306 [test] |
| Encoding |
string |
The encoding format of the database. |
utf8 |
| EnvType |
string |
The environment type of the database. Valid values:
|
product |
| Follow |
boolean |
Whether the instance is flagged for attention. Valid values:
|
false |
| Host |
string |
The database connection endpoint. |
rm-2ze756u8837****.mysql.rds.aliyuncs.com |
| Idc |
string |
The region in which the database instance resides. |
cn-beijing |
| IdcTitle |
string |
The name of the region in which the database instance resides. |
cn-beijing |
| InstanceId |
integer |
The ID of the instance to which the database belongs. |
175**** |
| InstanceSource |
string |
The source of the database instance. Valid values:
|
RDS |
| LastSyncTime |
string |
The time when the database information was last obtained. |
2023-05-14 18:34:45 |
| Level |
string |
The instance level. |
Medium |
| Logic |
boolean |
Whether the database is a logical database. Valid values:
|
false |
| OwnerIds |
array |
The owner IDs of the database, stored as an array. You can call the GetUser or ListUsers operation to query owner IDs. Note
The value of OwnerIds is the same as the value of UserId. |
|
|
integer |
The ID of the owner of the instance. |
77**** |
|
| OwnerNames |
array |
The usernames of the database owners. |
|
|
string |
The username of the database owner. |
user1 |
|
| Port |
integer |
The port that is used to connect to the database. |
3306 |
| SchemaName |
string |
The name of the database. |
test |
| SearchName |
string |
The name that is used to search for the database. |
test@rm-2ze756u8837****.mysql.rds.aliyuncs.com:3306 [test] |
| StandardGroup |
object |
The details of the control mode of the instance. |
|
| DbType |
string |
The instance engine type. For valid values, see DbType parameter. |
MySQL |
| Description |
string |
The description of the security rule set. |
adb_mysql default |
| FreeOrStable |
boolean |
Whether the instance is managed in Flexible Management or Stable Change mode. Valid values:
|
false |
| GmtCreate |
string |
The time when the security rule was created. |
2020-05-24 14:12:32 |
| GmtModified |
string |
The time when the security rule was last modified. |
2020-05-25 14:12:32 |
| GroupMode |
string |
The control mode type of the instance. Valid values:
|
COMMON |
| GroupName |
string |
The name of the security rule that corresponds to the control mode. |
adb_mysql default |
| Id |
integer |
The ID of the security rule. |
24*** |
| LastMenderId |
integer |
The user ID of the user who last modified the security rule. |
12**** |
| State |
string |
The status of the database. Valid values:
|
NORMAL |
| TableCount |
integer |
The number of tables. |
201 |
| TnsName |
string |
The name of TNS. |
TNS_4010 |
| UnitType |
string |
The unit type. |
-1 |
| InstanceTotal |
integer |
The total number of archiving tasks. |
2 |
| Instances |
array<object> |
The list of archiving tasks. |
|
|
object |
|||
| BusinessTime |
string |
The business time of the task flow, in yyyy-MM-DD HH:mm:ss format. |
2023-05-14 16:00:57 |
| DagId |
integer |
The task flow ID. You can call the ListTaskFlow or ListLhTaskFlowAndScenario operation to query this value. |
37*** |
| EndTime |
string |
The time when the task flow ended, in yyyy-MM-DD HH:mm:ss format. |
2022-06-04 15:14:00 |
| GmtCreate |
string |
The time when the task flow was created. |
2023-05-14 16:00:57 |
| GmtModified |
string |
The time when the task flow was last modified. |
2023-05-14 16:00:57 |
| HistoryDagId |
integer |
The ID of the historical task flow. |
32*** |
| Id |
integer |
The instance ID of the running task flow. |
24*** |
| LastRunningContext |
string |
The execution context of the previous run. |
{ "nodes": [ 48** ], "edges": {} } |
| Msg |
string |
The execution context of the current run. |
Archiving task log:2023-05-15 16:37:48[GMT+08:00] INFO - Resource Control is active!\n2023-05-15 16:37:48[GMT+08:00] INFO - Starting job j_4834 at Mon May 15 16:37:48 CST 2023 |
| Status |
integer |
The task status. Valid values:
|
4 |
| TenantId |
string |
The tenant ID. |
5*** |
| TriggerType |
integer |
The trigger mode of the task flow. Valid values:
|
1 |
| Version |
string |
The version number. |
1 |
| NextFireTimeResult |
object |
The next scheduled trigger time. |
|
| CronFireType |
string |
The scheduled trigger type. |
NOT_SET |
| PageIndex |
integer |
The page number. |
10 |
| PageSize |
integer |
The number of entries per page. |
20 |
| TempTableNameMap |
object |
The temporary table name generated by the archiving task, keyed by archiving task ID. |
{ "803***": [ "tmp_dms_21321_20230704144336_temp_test_check" ] } |
| PluginParam |
object |
The ticket creation parameter, in JSON format. PluginType parameter. |
|
| ArchiveMethod |
string |
The type of the archiving destination. |
inner_oss |
| DbSchema |
string |
The schema of the database and table to be archived. |
test |
| Logic |
boolean |
Whether the database is a logical database.
|
true |
| OrderAfter |
array |
The post-archiving action. |
|
|
string |
The post-archiving action. The action uses the DELETE statement to clean up the table. |
delete |
|
| RunMethod |
string |
The execution method: run immediately or at a scheduled time. |
now |
| SourceDatabaseId |
integer |
The ID of the source database. |
12*** |
| TableIncludes |
array<object> |
The archived tables and their filter conditions. |
|
|
object |
|||
| TableName |
string |
The table name. |
tm_insured_cb |
| TableWhere |
string |
The filter condition. |
id<1000 OR gmt_create<'2023-05-14 16:00:57' |
| TableMapping |
array |
The schema mapping. |
|
|
string |
The mapping of source and destination table names and column names. |
{ "schema": "oracle_info", "tarTb": "eoa_context_test", "tbPartKey": [], "oriTb": "eoa_context", "columns": [ { "tName": "dbid_test", "oName": "dbid" } ], "dbPartKey": [], "customPk": [ "id" ] } |
|
| TargetInstanceId |
string |
The ID of the destination instance. |
12*** |
| Variables |
array |
The time variable for scheduled archiving. |
|
|
string |
The time variable that calculates an offset based on the previous day. |
{ "name": "test", "pattern": "yyyy-MM-dd|-10d" } |
|
| PluginType |
string |
The plug-in type for the ticket. The plug-in type for data archiving is DATA_ARCHIVE. PluginType parameter. |
DATA_ARCHIVE |
| RelatedUserList |
array |
The user IDs related to the ticket. |
|
|
integer |
The user IDs related to the ticket. |
65**** |
|
| RelatedUserNickList |
array |
The nicknames of the users that are related to the ticket. |
|
|
string |
The nickname of the user that is related to the ticket. |
publicyuhzou |
|
| StatusCode |
string |
The ticket status code. Valid values:
|
processing |
| StatusDesc |
string |
The status description of the ticket. |
Executing ticket task. |
| WorkflowInstanceId |
integer |
The approval process ID. You can call the GetOrderBaseInfo operation to query this value. |
29**** |
| WorkflowStatusDesc |
string |
The description of the approval process. |
Approved |
Examples
Success response
JSON format
{
"TraceId": "0a06e1e316757357507896067d3780",
"Success": true,
"ErrorMessage": "User [199295823****] not exist",
"ErrorCode": "NoPermission",
"RequestId": "4161CE36-28DF-5191-8A6F-A17076A0B124",
"DataArchiveOrderDetail": {
"Comment": "Archiving of test results",
"Committer": "dmstest",
"CommitterId": 0,
"GmtCreate": "2023-05-15 16:00:48",
"GmtModified": "2023-05-23 16:00:48",
"Id": 0,
"PluginExtraData": {
"DagInfo": {
"CreatorId": "59****",
"CronBeginDate": "1970-01-01",
"CronEndDate": "9999-01-01",
"CronTrigger": false,
"DWDevelop": false,
"DagName": "data-archive-9099197",
"DagOwnerId": "13****",
"DeployId": 0,
"Description": "order id:9099197",
"EditDagId": 0,
"GmtCreate": "2023-05-15 16:00:48",
"GmtModified": "2023-06-15 16:00:48",
"Id": 0,
"IsPublic": 0,
"Legacy": false,
"System": false,
"TenantId": "5***",
"TriggerOnce": false
},
"DbBaseInfo": {
"Alias": "tf-testAccDMSEnterpriseLogicDatabase853****",
"AlterTimeout": 600,
"AssetControl": true,
"CatalogName": "test",
"ClusterNode": "whitelist_done",
"DbId": 0,
"DbType": "MySQL",
"DbaId": 0,
"DbaName": "DBA",
"Description": "test@rm-2ze756u8837****.mysql.rds.aliyuncs.com:3306 [test]",
"Encoding": "utf8",
"EnvType": "product",
"Follow": false,
"Host": "rm-2ze756u8837****.mysql.rds.aliyuncs.com",
"Idc": "cn-beijing",
"IdcTitle": "cn-beijing",
"InstanceId": 0,
"InstanceSource": "RDS",
"LastSyncTime": "2023-05-14 18:34:45",
"Level": "Medium",
"Logic": false,
"OwnerIds": [
0
],
"OwnerNames": [
"user1"
],
"Port": 3306,
"SchemaName": "test",
"SearchName": "test@rm-2ze756u8837****.mysql.rds.aliyuncs.com:3306 [test]",
"StandardGroup": {
"DbType": "MySQL",
"Description": "adb_mysql default",
"FreeOrStable": false,
"GmtCreate": "2020-05-24 14:12:32",
"GmtModified": "2020-05-25 14:12:32",
"GroupMode": "COMMON",
"GroupName": "adb_mysql default",
"Id": 0,
"LastMenderId": 0
},
"State": "NORMAL",
"TableCount": 201,
"TnsName": "TNS_4010",
"UnitType": "-1"
},
"InstanceTotal": 2,
"Instances": [
{
"BusinessTime": "2023-05-14 16:00:57",
"DagId": 0,
"EndTime": "2022-06-04 15:14:00",
"GmtCreate": "2023-05-14 16:00:57",
"GmtModified": "2023-05-14 16:00:57",
"HistoryDagId": 0,
"Id": 0,
"LastRunningContext": "{\n \"nodes\": [\n 48**\n ],\n \"edges\": {}\n}",
"Msg": "Archiving task log:2023-05-15 16:37:48[GMT+08:00] INFO - Resource Control is active!\\n2023-05-15 16:37:48[GMT+08:00] INFO - Starting job j_4834 at Mon May 15 16:37:48 CST 2023",
"Status": 4,
"TenantId": "5***",
"TriggerType": 1,
"Version": "1"
}
],
"NextFireTimeResult": {
"CronFireType": "NOT_SET"
},
"PageIndex": 10,
"PageSize": 20,
"TempTableNameMap": {
"803***": [
"tmp_dms_21321_20230704144336_temp_test_check"
]
}
},
"PluginParam": {
"ArchiveMethod": "inner_oss",
"DbSchema": "test",
"Logic": true,
"OrderAfter": [
"delete"
],
"RunMethod": "now",
"SourceDatabaseId": 0,
"TableIncludes": [
{
"TableName": "tm_insured_cb",
"TableWhere": "id<1000 OR gmt_create<'2023-05-14 16:00:57'"
}
],
"TableMapping": [
"{\n \"schema\": \"oracle_info\",\n \"tarTb\": \"eoa_context_test\",\n \"tbPartKey\": [],\n \"oriTb\": \"eoa_context\",\n \"columns\": [\n {\n \"tName\": \"dbid_test\",\n \"oName\": \"dbid\"\n }\n ],\n \"dbPartKey\": [],\n \"customPk\": [\n \"id\"\n ]\n }"
],
"TargetInstanceId": "12***",
"Variables": [
"{\n \"name\": \"test\",\n \"pattern\": \"yyyy-MM-dd|-10d\"\n }"
]
},
"PluginType": "DATA_ARCHIVE",
"RelatedUserList": [
0
],
"RelatedUserNickList": [
"publicyuhzou"
],
"StatusCode": "processing",
"StatusDesc": "Executing ticket task.",
"WorkflowInstanceId": 0,
"WorkflowStatusDesc": "Approved"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.