通过该接口,您可以查看周期任务的详细信息。
节流限制:您每秒最多可以提交5个API请求。
参数名称 | 数据类型 | 是否必选 | 参数说明 |
---|---|---|---|
Action | String | 是 | 接口名称。当前 API 的名称为 GetTask 。 |
Version | String | 是 | 接口版本。当前 API 的版本为 2023-08-31 。 |
参数名称 | 数据类型 | 是否必选 | 参数说明 | 示例 |
---|---|---|---|---|
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 } } }