This API is used to query scheduled tasks.
GET https://{Endpoint}/v3/{project_id}/schedule-tasks?offset={offset}&limit={limit}&instance_name={instance_name}&instance_id={instance_id}&status={status}&start_time={start_time}&end_time={end_time}
Name |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID of a tenant in a region. For details about how to obtain the project ID, see Obtaining a Project ID. |
offset |
No |
Integer |
Specifies the index position. If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value must be a positive number. |
limit |
No |
Integer |
Specifies the number of records to be queried. The default value is 10. The value cannot be a negative number. The minimum value is 1 and the maximum value is 50. |
instance_id |
No |
String |
Instance ID, which can be used for filtering. |
instance_name |
No |
String |
Instance name, which can be used for filtering. |
status |
No |
String |
Task status, which can be used for filtering.
|
start_time |
No |
String |
Task start time. Start time in the UNIX timestamp format. The unit is millisecond and the time zone is UTC. |
end_time |
No |
String |
Task end time. End time in the UNIX timestamp format. The unit is millisecond and the time zone is UTC. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
Specifies the user token. The user token is a response to the API used to obtain a user token. |
GET https://rds.eu-de.otc.t-systems.com/v3/54623db08b174c858ba779d2aa7923a3/schedule-tasks?offset=1&limit=3&instance_id=43e4feaab48f11e89039fa163ebaa7e4in04&instance_name=sqlserver_instance&start_time=1747919701390&end_time=1748524501390
Name |
Type |
Description |
|---|---|---|
schedule_tasks |
Array of objects |
Scheduled task list. For details, see Table 4. |
total_count |
Integer |
Total number of tasks. |
Parameter |
Type |
Description |
|---|---|---|
id |
String |
Task ID. |
name |
String |
Task name. |
instance_id |
String |
Instance ID. |
instance_name |
String |
Instance name. |
instance_status |
String |
Instance status.
|
project_id |
String |
Project ID. |
create_time |
String |
Task creation time in the "yyyy-mm-ddThh:mm:ssZ" format. T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. |
start_time |
String |
Planned task start time in the "yyyy-mm-ddThh:mm:ssZ" format. T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. |
end_time |
String |
Planned task end time in the "yyyy-mm-ddThh:mm:ssZ" format. T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. |
order |
String |
Task priority. An integer ranging from 1 to 100. A smaller value indicates a higher priority. |
status |
String |
Task status.
|
datastore_type |
String |
Database type. |
volume_type |
String |
Storage type. |
target_config |
object |
Target configuration. For details, see Table 5. |
Parameter |
Type |
Description |
|---|---|---|
flavor |
String |
Instance class. If name is set to RESIZE_FLAVOR, this parameter indicates the target instance class. |
cpu |
String |
Instance vCPUs. If name is set to RESIZE_FLAVOR, this parameter indicates the target vCPUs. |
mem |
String |
Instance memory. If name is set to RESIZE_FLAVOR, this parameter indicates the target memory. |
{
"schedule_tasks" : [
{
"id" : "5ed6a9e95f2747f7bac1b5899ddd1316",
"instance_id" : "3d2929b2c7ea4fe9bd27f21061d037ccin01",
"instance_name" : "rds-zfs-test-56-44",
"instance_status" : "ACTIVE",
"project_id" : "54623db08b174c858ba779d2aa7923a3",
"name" : "RESIZE_FLAVOR",
"create_time" : "2020-07-15T07:46:10+0000",
"start_time" : "2020-07-15T08:46:10+0000",
"end_time" : "2020-07-15T09:46:10+0000",
"order" : "1",
"status" : "Canceled",
"datastore_type" : "mysql",
"target_config" : {
"flavor" : "rds.mysql.n1.xlarge.2",
"mem" : "8",
"cpu" : "4"
},
"volume_type" : "CLOUDSSD"
} ],
"total_count" : 1
}
For details, see Abnormal Request Results.
For details, see Status Codes.
For details, see Error Codes.