You need to enable JavaScript to run this app.
导航
获取周期拨测任务详情
最近更新时间:2024.12.25 19:44:39首次发布时间:2024.12.25 19:44:39

通过该接口,您可以查看周期任务的详细信息。

使用限制

节流限制:您每秒最多可以提交5个API请求。

请求说明

  • 请求方式:POST
  • 请求地址:https://cloud-detect.volcengineapi.com?Action=GetTask&Version=2023-08-31

请求参数

Query

参数名称
数据类型
是否必选
参数说明
Action
String
接口名称。当前 API 的名称为 GetTask
Version
String
接口版本。当前 API 的版本为 2023-08-31

Body

参数名称
数据类型
是否必选
参数说明
示例
ID
Long
任务ID。
23295301

返回参数

参数名称
数据类型
参数说明
示例
Task
Object
任务信息。

请求示例

POST https://cloud-detect.volcengineapi.com?Action=GetTask&Version=2023-08-31
{
    "ID": 23295301
}

返回示例

{
  "ResponseMetadata": {
    "RequestId": "20241223145324E990D80784D76643EB8E",
    "Action": "GetTask",
    "Version": "2023-08-31",
    "Service": "cloud_detect",
    "Region": "cn-north-1"
  },
  "Result": {
    "Task": {
      "AccountID": 2xxxxxxxx8,
      "Address": "x.x.x.x",
      "AlarmConfig": null,
      "CreateTime": 1734660749,
      "DNSConfig": null,
      "DNSHijackConfig": {
        "DNSHijackAllowList": [],
        "DNSHijackBlockList": []
      },
      "DiagnoseConfig": {
        "DNSConfig": null,
        "MethodList": null,
        "MtrConfig": {
          "DNSReverseResolution": null,
          "DisableMtr": true,
          "Interval": null,
          "MaxHops": null,
          "MaxUnknownHost": null,
          "PackageNum": null,
          "PackageSize": null,
          "PackageType": null,
          "Timeout": null
        },
        "PcapStatus": 0,
        "PingConfig": {
          "ConnectTimeout": null,
          "DisablePing": true,
          "EnableDividePackage": null,
          "ExecuteInterval": null,
          "PackagesNum": null,
          "PackagesSize": null,
          "ProtocolType": null,
          "Timeout": null
        }
      },
      "DownloadConfig": null,
      "EnableShuffle": true,
      "FinishTime": 0,
      "HTTPConfig": null,
      "HTTPMethod": null,
      "ID": 23295301,
      "IntervalName": null,
      "IntervalSeconds": 60,
      "IsPeriodic": true,
      "Labels": [],
      "LineCount": null,
      "LineGroups": [],
      "LineIDList": null,
      "LineList": null,
      "Name": "api-ping",
      "Owner": "root",
      "PageConfig": null,
      "PeriodConfig": null,
      "PingConfig": {
        "ConnectTimeout": null,
        "DisablePing": false,
        "EnableDividePackage": true,
        "ExecuteInterval": 0.2,
        "PackagesNum": 4,
        "PackagesSize": 32,
        "ProtocolType": 1,
        "Timeout": 20
      },
      "PrivateRunnerSelection": null,
      "ProjectName": "default",
      "ResultAssert": {
        "Conditions": [],
        "Relation": "and"
      },
      "RunnerIDList": null,
      "SelectionConfig": {
        "GroupConfig": null,
        "LineConfig": {
          "GroupList": [],
          "Groups": [],
          "LineList": [
            {
              "ID": 274,
              "Name": "中国-广东-东莞-联通(IDC)",
              "NodeCount": 2
            }
          ]
        },
        "LineGroupConfig": null,
        "Mode": 1
      },
      "Status": 2,
      "SubTaskType": 3,
      "TCPConfig": null,
      "TargetServerType": 3,
      "TaskGroupID": 0,
      "TaskGroupName": "",
      "TaskType": 11,
      "UDPConfig": null,
      "UpdateTime": 1734660749,
      "UploadConfig": null,
      "UserID": 0
    }
  }
}