Todos os produtos
Search
Central de documentação

Cloud Monitor:DescribeSiteMonitorAttribute

Última atualização: Jun 28, 2026

Consulta os detalhes de uma tarefa de monitoramento de site chamando a operação DescribeSiteMonitorAttribute.

Descrição da operação

Este tópico fornece um exemplo de como consultar os detalhes da tarefa de monitoramento de site cc641dff-c19d-45f3-ad0a-818a0c4f****. A resposta mostra que o nome da tarefa é test123, o endereço monitorado é https://aliyun.com e a operadora é Alibaba.

Experimente agora

Experimente esta API no OpenAPI Explorer, sem necessidade de assinatura manual. Chamadas bem-sucedidas geram automaticamente código SDK correspondente aos seus parâmetros. Faça o download com segurança de credenciais integrada para uso local.

Testar

Autorização RAM

A tabela abaixo descreve a autorização necessária para chamar esta API. Você pode defini-la em uma política do Resource Access Management (RAM). As colunas da tabela estão detalhadas abaixo:

  • Ação: As ações que podem ser usadas no elemento Action das instruções de política de permissão do RAM para conceder permissões para executar a operação.

  • API: A API que você pode chamar para executar a ação.

  • Nível de acesso: O nível de acesso predefinido concedido para cada API. Valores válidos: create, list, get, update e delete.

  • Tipo de recurso: O tipo de recurso que suporta autorização para executar a ação. Indica se a ação suporta permissão em nível de recurso. O recurso especificado deve ser compatível com a ação. Caso contrário, a política será ineficaz.

    • Para APIs com permissões em nível de recurso, os tipos de recursos obrigatórios são marcados com um asterisco (*). Especifique o Nome de Recurso Alibaba Cloud (ARN) correspondente no elemento Resource da política.

    • Para APIs sem permissões em nível de recurso, é exibido como Todos os Recursos. Use um asterisco (*) no elemento Resource da política.

  • Chave de condição: As chaves de condição definidas pelo serviço. A chave permite controle granular, aplicando-se somente a ações ou a ações associadas a recursos específicos. Além das chaves de condição específicas do serviço, o Alibaba Cloud fornece um conjunto de chaves de condição comuns aplicáveis a todos os serviços compatíveis com RAM.

  • Ação dependente: As ações dependentes necessárias para executar a ação. Para concluir a ação, o usuário RAM ou a função RAM deve ter permissões para executar todas as ações dependentes.

Ação

Nível de acesso

Tipo de recurso

Chave de condição

Ação dependente

cms:DescribeSiteMonitorAttribute

get

*All Resource

*

Nenhuma Nenhuma

Parâmetros da solicitação

Parâmetro

Tipo

Obrigatório

Descrição

Exemplo

TaskId

string

Sim

O ID da tarefa de monitoramento.

cc641dff-c19d-45f3-ad0a-818a0c4f****

IncludeAlert

boolean

Não

Especifica se os detalhes da tarefa retornados incluem regras de alerta.

  • true: As regras de alerta são retornadas.

  • false (padrão): As regras de alerta não são retornadas.

false

For more information about common request parameters, see Common parameters.

Elementos de resposta

Elemento

Tipo

Descrição

Exemplo

object

Os parâmetros de resposta.

Code

string

O código de status.

Nota

O valor 200 indica sucesso.

200

Message

string

A mensagem retornada.

successful

MetricRules

object

MetricRule

array<object>

As regras de alerta da tarefa de monitoramento.

object

As regras de alerta da tarefa de monitoramento.

ActionEnable

string

The status of the alert rule. Valid values:

  • true: Enabled.

  • false: Disabled.

true

AlarmActions

string

The alert contact group to which alert notifications are sent.

CloudMonitor

ComparisonOperator

string

The comparison operator used in the alert rule. Valid values:

  • >=

  • >

  • <=

  • <

  • =

  • !=

  • GreaterThanYesterday: greater than the value at the same time yesterday.

  • LessThanYesterday: less than the value at the same time yesterday.

  • GreaterThanLastWeek: greater than the value at the same time last week.

  • LessThanLastWeek: less than the value at the same time last week.

  • GreaterThanLastPeriod: greater than the value in the last period.

  • LessThanLastPeriod: less than the value in the last period.

GreaterThanYesterday

Dimensions

string

The dimensions associated with the alert rule.

[{"taskId": "cc641dff-c19d-45f3-ad0a-818a0c4f****" }]

EvaluationCount

string

The number of alert retries.

3

Expression

string

The expression of the alert rule.

$Availability=30

Level

string

The severity level of the alert rule. Valid values:

  • 1: Critical.

  • 2: Warning.

  • 3: Information.

2

MetricName

string

The metric name.

Availability

Namespace

string

The namespace of the Alibaba Cloud service.

acs_networkmonitor

OkActions

string

The alert contact group that receives alert notifications.

[ "CloudMonitor"]

Period

string

The time interval, which is typically the reporting period of the metric. Unit: seconds.

Nota

If you set a statistical period, data is queried based on the specified period.

15s

RuleId

string

The ID of the alert rule.

bf071ae_7b7aec3817b0fdf****

RuleName

string

The name of the alert rule.

rule1

StateValue

string

The alert status. Valid values:

  • OK: Normal.

  • ALARM: Alerting.

OK

Statistics

string

The statistical method used for alerting. Valid values:

  • Availability: the percentage of available detection points.

  • AvailableNumber: the number of available detection points.

  • ErrorCodeMaximum: any status code (independent alert).

  • ErrorCodeMinimum: all status codes (combined alert).

  • Average: response time.

Availability

Threshold

string

The alert threshold.

30

RequestId

string

O ID da solicitação.

D17DF650-7EBD-54D0-903A-1D4E624D7402

SiteMonitors

object

Os detalhes da tarefa de monitoramento.

Address

string

O endereço monitorado da tarefa de monitoramento.

https://aliyun.com

AgentGroup

string

O tipo de ponto de detecção. Valor padrão: PC. Valores válidos:

  • PC: rede cabeada.

  • MOBILE: rede móvel.

PC

CustomSchedule

object

O agendamento de monitoramento personalizado. Você pode selecionar um intervalo de tempo de segunda a domingo para monitoramento.

days

object

days

array

The monitoring day.

integer

The monitoring day.

1

end_hour

integer

The custom monitoring end time.

Unit: hours.

18

start_hour

integer

The custom monitoring start time.

Unit: hours.

8

time_zone

string

The time zone for custom monitoring.

local

Interval

string

O intervalo de monitoramento. Unidade: minutos. Valores válidos: 1, 5, 15, 30 e 60.

1

IspCities

object

IspCity

array<object>

The carrier and city of the detection point.

object

The carrier and city of the detection point.

City

string

The city ID.

738

CityName

string

The city name.

北京市

Isp

string

The carrier ID.

465

IspName

string

The carrier name.

阿里巴巴

Type

string

The network type of the detection point. Valid values: IDC: IDC data center. LASTMILE: residential broadband. MOBILE: mobile cellular network.

IDC

OptionJson

object

As opções estendidas. Cada tipo de monitoramento possui opções estendidas diferentes. Para mais informações, consulte CreateSiteMonitor.

assertions

object

assertions

array<object>

The assertion configuration group.

object

The assertion configuration group.

operator

string

The assertion comparison operator. Valid values:

  • contains: Contains.

  • doesNotContain: Does not contain.

  • matches: Matches a regular expression.

  • doesNotMatch: Does not match a regular expression.

  • is: Equals a numeric value or matches a string.

  • isNot: Does not equal.

  • lessThan: Less than.

  • moreThan: Greater than.

lessThan

property

string

The parsing path for the assertion content.

  • If the assertion type is body_json, the path is a json path.

  • If the assertion type is body_xml, the path is an xml path.

json path

target

string

The target value or string for assertion comparison.

0

type

string

The assertion type. Valid values:

  • response_time: Checks whether the response time meets expectations.

  • status_code: Checks whether the HTTP response status code meets expectations.

  • header: Checks whether a field in the response header meets expectations.

  • body_text: Checks whether the response body content meets expectations through text matching.

  • body_json: Checks whether the response body content meets expectations through JSON parsing (JSON Path).

  • body_xml: Checks whether the response body content meets expectations through XML parsing (XPath).

response_time

attempts

integer

The number of retries after a DNS failure.

3

auth_info

object

The authentication information.

type

string

The authentication type. HTTP Basic Authentication is supported. Valid values: basic.

basic

username

string

The username used for HTTP Basic Authentication.

test_username

password

string

The password used for HTTP Basic Authentication.

test_password

grant_type

string

The grant type used in OAuth 2.0 authentication. Valid values: client_credentials and password.

password

client_id

string

The client ID used for client authentication in OAuth 2.0.

client_id

client_secret

string

The client secret used for client authentication in OAuth 2.0.

client_secret

scopes

object

scopes

array

The permission scopes requested in OAuth 2.0.

string

A single permission scope requested in OAuth 2.0.

test_operation

token_url

string

The authorization server URL in OAuth 2.0.

https://www.example.com

auth_style

string

The OAuth 2.0 authentication style. Valid values: ROA and RPC.

ROA

access_key_id

string

Supported only in multi-step monitoring. The AccessKey ID used for Alibaba Cloud authentication. We recommend that you use encrypted storage.

testAk

access_key_secret

string

Supported only in multi-step monitoring. The AccessKey secret used for Alibaba Cloud authentication. We recommend that you use encrypted storage.

testSk

region_id

string

Supported only in multi-step monitoring. The region ID of the request when using Alibaba Cloud authentication.

cn-hangzhou

api_action

string

Supported only in multi-step monitoring. The API action of the request when using Alibaba Cloud operations.

example_api

api_version

string

Supported only in multi-step monitoring. The API version of the request when using Alibaba Cloud operations.

2019-01-01

with_addon_resources

boolean

Supported only in multi-step monitoring. Specifies whether additional resources exist when using Alibaba Cloud authentication for this step.

false

service_name

string

The service name of the request when using AWS authentication.

example_service_name

session_token

string

The session token used for AWS authentication.

example_token

blocked_url_list

object

blocked_url_list

array

The list of blocked resource URLs. Path wildcards are supported.

string

The list of blocked resource URLs. Path wildcards are supported.

www.taobao.com/**

browser_headers

object

browser_headers

array<object>

The custom headers. The structure is {"key": "somekey", "value":"somevalue"}.

object

The custom headers. The structure is {"key": "somekey", "value":"somevalue"}.

{"key":"value"}

browser_hosts

object

browser_hosts

array

The custom hosts. The structure is {"url":"someurl", "ip":"someip"}.

string

The custom hosts. The structure is {"url":"someurl", "ip":"someip"}.

{"url":"www.taobao.com","ip":"127.0.0.1"}

browser_info

object

browser_info

array<object>

The browser information.

object

The browser information.

browser

string

The type of the browser.

Chrome

device

string

The screen type.

laptop

browser_insecure

boolean

Specifies whether to ignore certificate errors. Valid values:

  • false: Does not ignore certificate errors.

  • true: Ignores certificate errors.

false

browser_task_version

string

The browser monitoring version. Valid values:

  • 1: Single-page monitoring.

  • 2: Multi-page monitoring.

1

cookie

string

The cookie for the HTTP request.

lang=en

diagnosis_mtr

boolean

Specifies whether to enable automatic MTR network diagnostics after a task failure. Valid values:

  • false: Disabled.

  • true: Enabled.

false

diagnosis_ping

boolean

Specifies whether to enable automatic PING network latency detection after a task failure. Valid values:

  • false: Disabled.

  • true: Enabled.

false

dns_hijack_whitelist

string

The DNS hijacking configuration list.

www.taobao.com:www.taobao.com.danuoyi.tbcache.com

dns_match_rule

string

The DNS matching rule. Valid values:

  • IN_DNS: The expected aliases or IP addresses are all included in the DNS response.

  • DNS_IN: All DNS responses are included in the expected aliases or IP addresses.

  • EQUAL: The DNS response exactly matches the expected aliases or IP addresses.

  • ANY: The DNS response and the expected aliases or IP addresses have an intersection.

IN_DNS

dns_server

string

The IP address of the DNS server.

Nota

This parameter applies only to the DNS monitoring type.

192.168.XX.XX

dns_type

string

The DNS resolution type. This parameter applies only to the DNS monitoring type. Valid values:

  • A: Specifies the IP address corresponding to a hostname or domain name.

  • CNAME: Maps multiple domain names to another domain name.

  • NS: Specifies the DNS server that resolves a domain name.

  • MX: Points a domain name to a mail server address.

  • TXT: A description of the hostname or domain name. The text length is limited to 512 bytes and is typically used for SPF (Sender Policy Framework) records for anti-spam purposes.

A

empty_message

boolean

Specifies whether the WebSocket task is allowed to return no message or an empty message. Valid values:

  • false (default): Not allowed.

  • true: Allowed.

false

expect_exist_string

object

expect_exist_string

array

The list of strings expected to exist on the page.

string

The list of strings expected to exist on the page.

expected string

expect_non_exist_string

object

expect_non_exist_string

array

The list of strings expected not to exist on the page.

string

The list of strings expected not to exist on the page.

unexpected string

expect_value

string

The alias or address to be resolved.

Nota

This parameter applies only to the DNS monitoring type.

dns_server

failure_rate

number

The packet loss rate.

Nota

This parameter applies only to the PING monitoring type.

0.4

header

string

The HTTP request header.

testKey:testValue

http_method

string

The HTTP request method. Valid values:

  • get

  • post

  • head.

get

ip_network

string

The network type of the task. Valid values: v4, v6, and auto. Default value: v4.

v4

isBase64Encode

string

Specifies whether to decode and store the password using Base64. Valid values:

  • true: The password is decoded and stored using Base64.

  • false: The password is not decoded and stored using Base64.

false

match_rule

integer

Specifies whether alert rules are included. Valid values:

  • 0: Yes.

  • 1: No.

1

min_tls_version

string

The minimum TLS version. TLS 1.2 and later are supported by default. TLS 1.0 and 1.1 are disabled. To support these versions, modify the configuration.

tlsv1.2

password

string

The password for SMTP, POP3, or FTP monitoring types.

123****

ping_num

integer

The number of PING packets for the PING monitoring type.

29

ping_port

integer

The PING port. This parameter applies to TCP PING.

80

ping_type

string

The PING protocol type. Valid values:

  • icmp

  • tcp

  • udp.

icmp

port

integer

The port for TCP, UDP, SMTP, or POP3 monitoring types.

110

protocol

string

The monitoring protocol.

TCP

quic_enabled

boolean

Specifies whether the browser monitoring task uses the QUIC protocol. Valid values:

  • true: Uses the QUIC protocol.

  • false: Does not use the QUIC protocol. Default value: false.

true

quic_target

object

quic_target

array

The list of sites that are forced to use the QUIC protocol.

string

A site that is forced to use the QUIC protocol. The format is url:port. The port is optional and defaults to 443.

www.taobao.com

request_content

string

The request content for the HTTP monitoring type.

aa=bb

request_format

string

The format of the HTTP request content. Valid values:

  • hex: hexadecimal.

  • txt: text.

txt

response_content

string

The expected response content to match.

txt

response_format

string

The format of the HTTP response content. Valid values:

  • hex: hexadecimal.

  • txt: text.

txt

retry_delay

integer

The number of retries after a monitoring failure.

0

screen_shot

boolean

Specifies whether to enable page screenshots.

false

strict_mode

boolean

time_out

integer

The timeout period. Unit: milliseconds.

3

traffic_hijack_element_blacklist

object

traffic_hijack_element_blacklist

array

When a redirect occurs, if the URL of a resource loaded by the browser matches an expression in this list, traffic hijacking is considered to have occurred.

string

When a redirect occurs, if the URL of a resource loaded by the browser matches an expression in this list, traffic hijacking is considered to have occurred.

www.taobao.com

traffic_hijack_element_count

integer

When a redirect occurs, if the number of resources loaded by the browser exceeds this value, traffic hijacking is considered to have occurred. When this value is 0, no verification is performed. Default value: 0.

0

traffic_hijack_element_whitelist

object

traffic_hijack_element_whitelist

array

When a redirect occurs, if the URL of a resource loaded by the browser does not match any expression in this list, traffic hijacking is considered to have occurred.

string

When a redirect occurs, if the URL of a resource loaded by the browser does not match any expression in this list, traffic hijacking is considered to have occurred.

www.taobao.com

username

string

The username for FTP, SMTP, or POP3.

testUser

waitTime_after_completion

integer

The additional wait time after the page is opened in a browser monitoring task.

3

scroll_end

boolean

For browser monitoring tasks, specifies whether to scroll to the bottom of the page after it is opened.

false

host_binding

string

The custom host for HTTP tasks. The format is ip1,ip2:address. Multiple mappings can be configured. The left side of the colon contains A records or CNAMEs that the domain name can be resolved to, separated by commas. The right side of the colon is the domain name.

127.0.0.1:www.aliyun.com

host_binding_type

integer

Specifies how the custom host takes effect. Valid values: 0 (random) and 1 (round-robin).

Valores válidos:

  • 0 :

    0

  • 1 :

    1

0

hops

integer

The number of hops for traceroute diagnostics when a PING task fails.

20

icmp_timeout_millis

integer

The timeout period for a single PING request using the ICMP protocol. Unit: milliseconds.

3000

config_variables

object

config_variables

array<object>

The environment variable configuration. This parameter takes effect for multi-step monitoring.

object

Environment variables can be referenced in parameters of different test steps by using the placeholder {{$.variable_name}}. They can also be updated by parsing the response of a test step and referenced in subsequent steps. For sensitive information such as API keys, enable encrypted storage.

name

string

The name of the environment variable.

variable_name

value

string

The value of the variable.

variable_value

secure

boolean

Specifies whether to use encrypted storage.

true

steps

object

steps

array<object>

The step configurations for multi-step monitoring. This parameter takes effect for multi-step monitoring.

array<object>

The configuration of a single step in multi-step monitoring.

name deprecated

string

The step name (deprecated).

step1

step_type

string

The monitoring type of this step. Valid values:

  • http

  • ping

  • tcp

  • udp

  • dns

  • smtp

  • pop3

  • ftp

  • wait

The wait type represents a wait step.

http

url

string

The URL for a single step in multi-step monitoring.

https://aliyun.com

allow_failure

boolean

Specifies whether to continue to the next step if the current step fails. Default value: false.

true

is_critical

boolean

Specifies whether to mark the entire monitoring task as failed if the current step fails. Default value: false.

true

wait_time_in_secs

integer

The wait time. Unit: seconds.

5

extracted_variables

object

extracted_variables

array<object>

The variable extraction configuration.

array<object>

The configuration for extracting a single variable.

name

string

The variable name.

test_variable

parser

object

The variable extraction method settings.

parser_type

string

The extraction mode. Valid values: 0 (JSON), 1 (XML), and 2 (regular expression).

0

value

string

The variable extraction expression. When the extraction method is JSON or XML, the expression supports XML format. When the extraction method is regular expression, the string matching this value is extracted.

x.testkey.arrayvalue[0].innerkey

field

string

This parameter takes effect when the variable location is HTTP header. Extracts the key specified by this parameter from the header.

request_id

extracted_type

string

The location from which the variable is extracted. Valid values: 0 (HTTP body) and 1 (HTTP header).

1

option

string

The extended options for this step. Each monitoring type has different extended options. For more information, see CreateSiteMonitor.

{"enable_operator_dns": true}

step_name

string

The step name.

step1

trace_region

string

The deployment region of the target application when integrating with Managed Service for OpenTelemetry.

cn-hangzhou

trace_type

string

Settings for the Tracing Analysis protocol used when integrating with Managed Service for OpenTelemetry. Valid values:

  • OpenTelemetry

  • Zipkin

  • Jaeger.

OpenTelemetry

enable_packet_capture

boolean

Specifies whether to enable packet capture for this task.

true

use_private_crt

boolean

Specifies whether to use a private certificate.

private_crt_file_name

string

The certificate file name of the private certificate.

cert.pem

use_ssl

boolean

Specifies whether to use an SSL connection when performing a TCP task.

tlsv1.0

max_tls_version

string

The maximum TLS version.

tlsv1.3

server_name

string

The Server Name Indication (SNI).

www.aliyun.com

supported_cipher_suits

string

The supported cipher suites.

TLS_AES_256_GCM_SHA384

TaskId

string

O ID da tarefa de monitoramento.

cc641dff-c19d-45f3-ad0a-818a0c4f****

TaskName

string

O nome da tarefa de monitoramento.

test123

TaskState

string

O status da tarefa de monitoramento. Valores válidos:

  • 1: Ativada.

  • 2: Desativada.

1

TaskType

string

O tipo da tarefa de monitoramento. Os tipos de tarefa de monitoramento de site incluem HTTP(S), PING, TCP, UDP, DNS, SMTP, POP3 e FTP.

HTTP

VpcConfig

object

A configuração de VPC para a tarefa de monitoramento de rede interna.

Region

string

The region where the target site of the internal network monitoring task is located.

cn-beijing

SecurityGroupId

string

The ID of the security group associated with the internal network monitoring task.

sg-xxxxxx

VpcId

string

The ID of the VPC associated with the internal network monitoring task.

vpc-xxxxxx

VswitchId

string

The ID of the vSwitch associated with the internal network monitoring task.

vsw-xxxxxx

Success

boolean

Indica se a operação foi bem-sucedida. Valores válidos:

  • true: Bem-sucedida.

  • false: Falhou.

true

Exemplos

Resposta de sucesso

JSON formato

{
  "Code": "200",
  "Message": "successful",
  "MetricRules": {
    "MetricRule": [
      {
        "ActionEnable": "true",
        "AlarmActions": "CloudMonitor",
        "ComparisonOperator": "GreaterThanYesterday",
        "Dimensions": "[{\"taskId\": \"cc641dff-c19d-45f3-ad0a-818a0c4f****\" }]",
        "EvaluationCount": "3",
        "Expression": "$Availability=30",
        "Level": "2",
        "MetricName": "Availability",
        "Namespace": "acs_networkmonitor",
        "OkActions": "[ \"CloudMonitor\"]",
        "Period": "15s",
        "RuleId": "bf071ae_7b7aec3817b0fdf****",
        "RuleName": "rule1",
        "StateValue": "OK",
        "Statistics": "Availability",
        "Threshold": "30"
      }
    ]
  },
  "RequestId": "D17DF650-7EBD-54D0-903A-1D4E624D7402",
  "SiteMonitors": {
    "Address": "https://aliyun.com",
    "AgentGroup": "PC",
    "CustomSchedule": {
      "days": {
        "days": [
          1
        ]
      },
      "end_hour": 18,
      "start_hour": 8,
      "time_zone": "local"
    },
    "Interval": "1",
    "IspCities": {
      "IspCity": [
        {
          "City": "738",
          "CityName": "北京市",
          "Isp": "465",
          "IspName": "阿里巴巴",
          "Type": "IDC"
        }
      ]
    },
    "OptionJson": {
      "assertions": {
        "assertions": [
          {
            "operator": "lessThan",
            "property": "json path",
            "target": "0",
            "type": "response_time"
          }
        ]
      },
      "attempts": 3,
      "auth_info": {
        "type": "basic",
        "username": "test_username",
        "password": "test_password",
        "use_cookie_session_key": false,
        "grant_type": "password",
        "client_id": "client_id",
        "client_secret": "client_secret",
        "scopes": {
          "scopes": [
            "test_operation"
          ]
        },
        "token_url": "https://www.example.com",
        "auth_style": "ROA",
        "access_key_id": "testAk",
        "access_key_secret": "testSk",
        "region_id": "cn-hangzhou",
        "api_action": "example_api",
        "api_version": "2019-01-01",
        "with_addon_resources": false,
        "service_name": "example_service_name",
        "session_token": "example_token"
      },
      "blocked_url_list": {
        "blocked_url_list": [
          "www.taobao.com/**"
        ]
      },
      "browser_headers": {
        "browser_headers": [
          {
            "key": "value"
          }
        ]
      },
      "browser_hosts": {
        "browser_hosts": [
          "{\"url\":\"www.taobao.com\",\"ip\":\"127.0.0.1\"}"
        ]
      },
      "browser_info": {
        "browser_info": [
          {
            "browser": "Chrome",
            "device": "laptop"
          }
        ]
      },
      "browser_insecure": false,
      "browser_task_version": "1",
      "cookie": "lang=en",
      "diagnosis_mtr": false,
      "diagnosis_ping": false,
      "dns_hijack_whitelist": "www.taobao.com:www.taobao.com.danuoyi.tbcache.com",
      "dns_match_rule": "IN_DNS",
      "dns_server": "192.168.XX.XX",
      "dns_type": "A",
      "empty_message": false,
      "expect_exist_string": {
        "expect_exist_string": [
          "expected string"
        ]
      },
      "expect_non_exist_string": {
        "expect_non_exist_string": [
          "unexpected string"
        ]
      },
      "expect_value": "dns_server",
      "failure_rate": 0.4,
      "header": "testKey:testValue",
      "http_method": "get",
      "ip_network": "v4",
      "isBase64Encode": "false",
      "match_rule": 1,
      "min_tls_version": "tlsv1.2",
      "password": "123****",
      "ping_num": 29,
      "ping_port": 80,
      "ping_type": "icmp",
      "port": 110,
      "protocol": "TCP",
      "quic_enabled": true,
      "quic_target": {
        "quic_target": [
          "www.taobao.com"
        ]
      },
      "request_content": "aa=bb",
      "request_format": "txt",
      "response_content": "txt",
      "response_format": "txt",
      "retry_delay": 0,
      "screen_shot": false,
      "strict_mode": false,
      "time_out": 3,
      "traffic_hijack_element_blacklist": {
        "traffic_hijack_element_blacklist": [
          "www.taobao.com"
        ]
      },
      "traffic_hijack_element_count": 0,
      "traffic_hijack_element_whitelist": {
        "traffic_hijack_element_whitelist": [
          "www.taobao.com"
        ]
      },
      "username": "testUser",
      "waitTime_after_completion": 3,
      "scroll_end": false,
      "host_binding": "127.0.0.1:www.aliyun.com",
      "host_binding_type": 0,
      "hops": 20,
      "icmp_timeout_millis": 3000,
      "config_variables": {
        "config_variables": [
          {
            "name": "variable_name",
            "value": "variable_value",
            "secure": true
          }
        ]
      },
      "steps": {
        "steps": [
          {
            "name": "step1",
            "step_type": "http",
            "url": "https://aliyun.com",
            "allow_failure": true,
            "is_critical": true,
            "wait_time_in_secs": 5,
            "extracted_variables": {
              "extracted_variables": [
                {
                  "name": "test_variable",
                  "parser": {
                    "parser_type": "0",
                    "value": "x.testkey.arrayvalue[0].innerkey"
                  },
                  "field": "request_id",
                  "extracted_type": "1"
                }
              ]
            },
            "option": "{\"enable_operator_dns\": true}",
            "step_name": "step1",
            "use_generated_cookie": true,
            "auto_extract_cookie": true
          }
        ]
      },
      "trace_region": "cn-hangzhou",
      "trace_type": "OpenTelemetry",
      "safe_link": 0,
      "enable_packet_capture": true,
      "use_private_crt": false,
      "private_crt_file_name": "cert.pem",
      "use_ssl": true,
      "max_tls_version": "tlsv1.3",
      "server_name": "www.aliyun.com",
      "supported_cipher_suits": "TLS_AES_256_GCM_SHA384"
    },
    "TaskId": "cc641dff-c19d-45f3-ad0a-818a0c4f****",
    "TaskName": "test123",
    "TaskState": "1",
    "TaskType": "HTTP",
    "VpcConfig": {
      "Region": "cn-beijing",
      "SecurityGroupId": "sg-xxxxxx",
      "VpcId": "vpc-xxxxxx",
      "VswitchId": "vsw-xxxxxx"
    }
  },
  "Success": true
}

Códigos de erro

Código de status HTTP

Código de erro

Mensagem de erro

Descrição

400 ParameterInvalid The parameter is missing or invalid. %s
401 AccessDeniedException You donot have sufficient access to perform this action.
500 InternalError The request processing has failed due to some unknown error.
402 LimitExceeded The quota for this customer had been reached.
403 Forbidden You are not authorized to operate the specified resource. No permission, please use RAM to authorize
404 Forbidden Task Id does not exist
406 ExceedingQuota Exceeding quota limits. The number of tasks exceeds the limit
429 Throttli∂ngException The request was denied due to request throttling.

Consulte Códigos de Erro para uma lista completa.

Notas de versão

Consulte Notas de Versão para uma lista completa.