Queries the custom jobs of an environment.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID. | cn-hangzhou |
EnvironmentId | string | Yes | The ID of the environment instance. | env-xxxxx |
EncryptYaml | boolean | No | Specifies whether to return the encrypted YAML string. | true |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "2A0CEDF1-06FE-44AC-8E21-21A5BE65****",
"Code": 200,
"Data": [
{
"EnvironmentId": "env-xxxx",
"RegionId": "cn-hangzhou",
"CustomJobName": "job1",
"ConfigYaml": "Refer to supplementary instructions.",
"Status": "run",
"CreationTimestamp": "2022-01-01T10:11:34Z",
"AddonName": "mysql",
"AddonReleaseName": "mysql1",
"AddonVersion": "1.1.0",
"ScrapeConfigs": [
{
"JobName": "custom-sd-demo",
"ScrapeInterval": "30s",
"MetricsPath": "/metrics",
"ScrapeDiscoverys": [
"static_configs"
]
}
]
}
],
"Message": "success"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history