All Products
Search
Document Center

Application Real-Time Monitoring Service:ListTimingSyntheticTasks

Last Updated:Nov 05, 2024

Queries scheduled synthetic monitoring tasks.

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
arms:ListTimingSyntheticTaskslist
  • SyntheticTask
    acs:arms:{#regionId}:{#accountId}:synthetictask/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The region ID.

cn-hangzhou
SearchobjectNo

The search keyword.

TaskTypesarrayNo

The task types.

integerNo

The task type. 1: ICMP. 2: TCP. 3: DNS. 4: HTTP. 5: website speed. 6: file download.

1
TaskIdsarrayNo

The task IDs.

stringNo

The task ID.

181248
NamestringNo

The task name.

AlibabaCloud DNS Task
StatusstringNo

The task status. CREATING: The task is being created. RUNNING: The task is running. PARTIAL_RUNNING: The task is partially running. STOP: The task is stopped. LIMIT_STOP: The task is stopped due to quota limit. EXCEPTION: The task is abnormal. DELETE: The task is deleted. DELETE_EXCEPTION: An exception occurs while deleting the task.

CREATING
OrderFieldstringNo

The condition by which tasks are sorted. You can sort tasks by gmtCreate, gmtModified, status, or monitorCount.

status
OrderintegerNo

The order by which tasks are sorted. 1: ascending order. -1: descending order.

1
PageintegerNo

The page number. This parameter is required.

1
PageSizeintegerNo

The number of entries per page. This parameter is required.

10
ResourceGroupIdstringNo

The ID of the resource group.

rg-acfmxyexli2****
Tagsarray<object>No

The tags.

objectNo
KeystringNo

The tag key.

mark
ValuestringNo

The tag value.

value1111

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

730E90FE-996A-5638-99F3-4F0F9038CC6C
Codelong

The status code. The status code 200 indicates that the request was successful.

200
Messagestring

The returned message.

success
Dataobject

The returned struct.

Itemsarray<object>

The queried tasks.

Itemobject

The information about the task.

TaskIdstring

The ID of the synthetic monitoring task.

5308a2691f59422c8c3b7aeccec9cd3b
RegionIdstring

The region ID.

cn-hangzhou
Namestring

The task name.

AlibabaCloud DNS Task
TaskTypeinteger

The type of the task. Valid values:

1: ICMP. 2: TCP. 3: DNS. 4: HTTP. 5: website speed. 6: file download.

1
Urlstring

The URL for synthetic monitoring.

https://www.example.com
MonitorCategoryinteger

The detection point type. 1: PC. 2: mobile device.

1
Frequencystring

The detection frequency. Valid values: 1m, 5m, 10m, 15m, 20m, 30m, 1h, 2h, 3h, 4h, 6h, 8h, 12h, and 24h.

1m
MonitorNumstring

The number of detection points.

10
Statusstring

The task status. CREATING: The task is being created. RUNNING: The task is running. PARTIAL_RUNNING: The task is partially running. STOP: The task is stopped. LIMIT_STOP: The task is stopped due to quota limit. EXCEPTION: The task is abnormal. DELETE: The task is deleted. DELETE_EXCEPTION: An exception occurs while deleting the task.

RUNNING
GmtCreatestring

The time when the task was created.

1671454758000
GmtModifiedstring

The time when the task was modified.

1673085633000
ResourceGroupIdstring

The ID of the resource group.

rg-aekzgwtq5vxxxxx
CommonSettingobject

The general settings.

CustomHostobject

The custom host settings.

Hostsarray<object>

The custom host settings.

hostobject

The custom host settings.

Domainstring

The destination domain name.

www.aliyun.com
IpTypeinteger

The IP version. Valid values:

  • 0: A version is automatically selected.
  • 1: IPv4.
  • 2: IPv6.
0
Ipsarray

The IP address.

ipstring

The IP address.

39.104.85.210
SelectTypeinteger

The selection mode. Valid values:

  • 0: random
  • 1: polling
0
IpTypeinteger

The IP version. Valid values:

  • 0: A version is automatically selected.
  • 1: IPv4.
  • 2: IPv6.
0
MonitorSamplesinteger

Indicates whether monitoring samples are evenly distributed. Valid values:

  • 0: No
  • 1: Yes
0
IsOpenTraceboolean

Indicates whether tracing is enabled.

false
TraceClientTypeinteger

The type of the client for tracing. Valid values:

  • 0: ARMS agent
  • 1: OpenTelemetry
  • 2: Jaeger
1
XtraceRegionstring

The region to which trace data is reported.

cn-hangzhou
CustomVPCSettingobject

The information about the virtual private cloud (VPC). If the destination URL is an Alibaba Cloud internal endpoint, you need to configure a VPC.

RegionIdstring

The region ID.

cn-zhangjiakou
VpcIdstring

The VPC ID.

vpc-2zehbd4dfzahxxxxxxx
VSwitchIdstring

The vSwitch ID.

vsw-bp1bcmj81kxxxxxxx
SecureGroupIdstring

The ID of the security group to which the client belongs. The security group specifies the inbound and outbound rules of the client for the VPC. You need to allow the security group to which the client belongs to access the security group to which the VPC belongs. Otherwise, the client cannot access resources in the VPC.

sg-xxxxxxxxxxxxxx
CustomPrometheusSettingobject

A reserved field.

PrometheusLabelsobject

A reserved field.

string

A reserved field.

Reserved field
PrometheusClusterIdstring

A reserved field.

Reserved field
PrometheusClusterRegionstring

A reserved field.

Reserved field
Tagsarray<object>

The tags.

tagobject
Keystring

The tag key.

key
Valuestring

The tag value.

value
Totalinteger

The total number of tasks.

100
Pageinteger

The page number.

1
PageSizeinteger

The number of entries per page.

10

Examples

Sample success responses

JSONformat

{
  "RequestId": "730E90FE-996A-5638-99F3-4F0F9038CC6C",
  "Code": 200,
  "Message": "success",
  "Data": {
    "Items": [
      {
        "TaskId": "5308a2691f59422c8c3b7aeccec9cd3b",
        "RegionId": "cn-hangzhou",
        "Name": "AlibabaCloud DNS Task",
        "TaskType": 1,
        "Url": "https://www.example.com",
        "MonitorCategory": 1,
        "Frequency": "1m",
        "MonitorNum": "10",
        "Status": "RUNNING",
        "GmtCreate": "1671454758000",
        "GmtModified": "1673085633000",
        "ResourceGroupId": "rg-aekzgwtq5vxxxxx",
        "CommonSetting": {
          "CustomHost": {
            "Hosts": [
              {
                "Domain": "www.aliyun.com",
                "IpType": 0,
                "Ips": [
                  "39.104.85.210"
                ]
              }
            ],
            "SelectType": 0
          },
          "IpType": 0,
          "MonitorSamples": 0,
          "IsOpenTrace": false,
          "TraceClientType": 1,
          "XtraceRegion": "cn-hangzhou",
          "CustomVPCSetting": {
            "RegionId": "cn-zhangjiakou",
            "VpcId": "vpc-2zehbd4dfzahxxxxxxx",
            "VSwitchId": "vsw-bp1bcmj81kxxxxxxx",
            "SecureGroupId": "sg-xxxxxxxxxxxxxx"
          },
          "CustomPrometheusSetting": {
            "PrometheusLabels": {
              "key": "Reserved field\n"
            },
            "PrometheusClusterId": "Reserved field\n",
            "PrometheusClusterRegion": "Reserved field\n"
          }
        },
        "Tags": [
          {
            "Key": "key",
            "Value": "value"
          }
        ]
      }
    ],
    "Total": 100,
    "Page": 1,
    "PageSize": 10
  }
}

Error codes

HTTP status codeError codeError message
400ParameterMissing%s
400ParameterIllegal%s
400TaskQuotaLimit%s
400ParameterRegionIllegal%s
400DuplicateTagKeyParam tagKey is duplicate.
400TagNumOUTthe number of tag is out .
400NoPermissionUSERuser no permission
403RAMNotAuthorize%s
403STSNotAuthorize%s
403IllegalUserAccess%s
403APINotAuthorize%s
403CommercialStatusException%s
403SyntheticTrailExpired%s
403SyntheticInDebt%s
403SyntheticDailyTimesExhausted%s
403SyntheticDailyLimit%s

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

Change history

Change timeSummary of changesOperation
2024-04-12The Error code has changed. The response structure of the API has changedView Change Details