All Products
Search
Document Center

Managed Service for Prometheus:DescribeEnvCustomJob

Last Updated:May 09, 2024

Queries the details of a custom job for an environment.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID.

cn-hangzhou
EnvironmentIdstringYes

The ID of the environment instance.

env-xxxxxx
CustomJobNamestringYes

The name of the custom job.

customJob1
EncryptYamlbooleanNo

Specifies whether to return the encrypted YAML string.

true

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

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

The HTTP status code. The status code 200 indicates that the request was successful.

200
Dataobject

The returned struct.

EnvironmentIdstring

The ID of the environment instance.

env-xxxxx
RegionIdstring

The region ID.

cn-hangzhou
CustomJobNamestring

The name of the custom job.

customJob1
ConfigYamlstring

If the request parameter EncryptYaml is set to true, a Base64-encoded YAML string is returned. Otherwise, a plaintext YAML string is returned.

Refer to supplementary instructions.
Statusstring

The status of the custom job. Valid values: run and stop.

run
Messagestring

The returned message.

success

Examples

Sample success responses

JSONformat

{
  "RequestId": "6A9AEA84-7186-4D8D-B498-4585C6A2****",
  "Code": 200,
  "Data": {
    "EnvironmentId": "env-xxxxx",
    "RegionId": "cn-hangzhou",
    "CustomJobName": "customJob1",
    "ConfigYaml": "Refer to supplementary instructions.",
    "Status": "run"
  },
  "Message": "success"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history