文档

DescribeEnvCustomJob - 查询环境CustomJob详情

更新时间:

查询环境CustomJob详情。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
RegionIdstring

地域 ID。

cn-hangzhou
EnvironmentIdstring

环境实例 ID。

env-xxxxxx
CustomJobNamestring

自定义 job 名称。

customJob1
EncryptYamlboolean

是否返回加密后的 YAML 串。

true

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

Id of the request

6A9AEA84-7186-4D8D-B498-4585C6A2****
Codeinteger

状态码。说明 200 表示成功。

200
Dataobject

返回结构体。

EnvironmentIdstring

环境实例 ID。

env-xxxxx
RegionIdstring

地域 ID。

cn-hangzhou
CustomJobNamestring

自定义 job 名称。

customJob1
ConfigYamlstring

请求参数 encryptYamltrue,则返回 base64 编码后的 YAML 串。否则返回明文 YAML 串。

参见补充说明。
Statusstring

状态:

  • run
  • stop
run
Messagestring

返回结果的提示信息。

success

ConfigYaml 示例:

scrape_configs:
- job_name: job-demo1
  honor_timestamps: false
  honor_labels: false
  scrape_interval: 30s
  scheme: http
  metrics_path: /metric
  static_configs:
  - targets:
    - 127.0.0.1:9090
- job_name: job-demo2
  honor_timestamps: false
  honor_labels: false
  scrape_interval: 30s
  scheme: http
  metrics_path: /metric
  static_configs:
  - targets:
    - 127.0.0.1:9090
  http_sd_configs:
  - url: 127.0.0.1:9090
    refresh_interval: 30s

示例

正常返回示例

JSON格式

{
  "RequestId": "6A9AEA84-7186-4D8D-B498-4585C6A2****",
  "Code": 200,
  "Data": {
    "EnvironmentId": "env-xxxxx",
    "RegionId": "cn-hangzhou",
    "CustomJobName": "customJob1",
    "ConfigYaml": "参见补充说明。",
    "Status": "run"
  },
  "Message": "success"
}

错误码

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (1)
文档反馈