GetDesigateInfo

更新时间:
复制 MD 格式

Retrieves the designation information for a job.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

ClusterId

string

Yes

The cluster ID.

xxljob-b6ec1xxxx

AppName

string

Yes

The application name.

test-app

JobId

integer

Yes

The job ID.

74

Response elements

Element

Type

Description

Example

object

The response object.

RequestId

string

A unique identifier for the request, generated by Alibaba Cloud for troubleshooting.

1DF6732E-15D8-5E1F-95E3-C10077F556B5

Code

integer

The response code.

200

Message

string

The error message.

Parameter check error

Success

boolean

Indicates whether the request was successful.

  • true: The request succeeded.

  • false: The request failed.

true

Data

object

The response data.

DesignateType

integer

The designation type. Valid values:

  • 1: Designates a specific worker.

  • 2: Designates a group of machines using a label.

2

Transferable

boolean

Indicates whether failover is enabled.

true

Examples

Success response

JSON format

{
  "RequestId": "1DF6732E-15D8-5E1F-95E3-C10077F556B5",
  "Code": 200,
  "Message": "Parameter check error\n",
  "Success": true,
  "Data": {
    "DesignateType": 2,
    "Transferable": true
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter Parameter error: %s. Parameter error: %s
401 IllegalRequest IllegalRequest: %s. Illegal request:%s
500 InternalError InternalError: %s. System Internal Error: %s
403 NoPermission No permission to perform this operation: %s. No permission to perform this operation: %s
404 NotFound Not found: %s. The resource does not exist: %s

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.