Tüm Ürünler
Search
Belge Merkezi

:ExecJob

Son Güncelleme:Oct 01, 2026

Bir işi çalıştırmak için ExecJob çağrısı yapar.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

sae:ExecJob

*All Resource

*

None None

Request syntax

GET /pop/v1/sam/job/execJob HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

AppId

string

Yes

İş şablonu kimliği.

ee1a7a07-abcb-4652-a1d3-2d57f415****

EventId

string

No

İdempotans sağlayan özelleştirilebilir bir olay kimliği. Sistem, aynı olay kimliğine sahip istekler için yalnızca bir iş oluşturur.

custom

Command

string

No

Konteynerde bulunan çalıştırılabilir bir dosya olması gereken başlatma komutu. Örnek:

command:
      - echo
      - abc
      - >
      - file0

Bu örneğe göre, Command değeri echo ve CommandArgs değeri ["abc", ">", "file0"] şeklindedir.

echo

CommandArgs

string

No

Command parametresinin bağımsız değişkenleri. Değer, bir JSON dizisini temsil eden bir dize olmalıdır. Biçim:

["a","b"]

Command parametresi için verilen önceki örnekte, CommandArgs ["abc", ">", "file0"] olarak belirtilmiştir. ["abc", ">", "file0"] JSON dizisi bir dizeye dönüştürülmelidir. Bu parametre isteğe bağlıdır.

["a","b"]

Envs

string

No

Konteyner ortam değişkenleri. Özel ortam değişkenleri belirtebilir veya mevcut bir ConfigMap'e başvurabilirsiniz. ConfigMap oluşturma hakkında daha fazla bilgi için CreateConfigMap konusuna bakın.

  • Özel yapılandırma

    • name: Ortam değişkeninin adı.

    • value: Ortam değişkeninin değeri.

  • ConfigMap başvurusu

    • name: Ortam değişkeninin adı. Tek bir anahtara veya tüm anahtarlara başvurabilirsiniz. Tüm anahtarlara başvurmak için sae-sys-configmap-all-<ConfigMap adı> biçimini kullanın. Örnek: sae-sys-configmap-all-test1.

    • valueFrom: Ortam değişkeninin kaynağı. Değeri configMapRef olarak ayarlayın.

    • configMapId: ConfigMap kimliği.

    • key: Başvurmak istediğiniz anahtar. Tüm anahtar-değer çiftlerine başvurmak istiyorsanız bu parametreyi belirtmeyin.

[{"name":"envtmp","value":"0"}]

JarStartOptions

string

No

JAR paketinden dağıtılan bir işi başlatma seçenekleri. Varsayılan başlatma komutu şöyledir: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArg

-Xms4G -Xmx4G

JarStartArgs

string

No

JAR paketinden dağıtılan bir işi başlatma bağımsız değişkenleri. Varsayılan başlatma komutu şöyledir: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs

custom-args

WarStartOptions

string

No

WAR paketinden dağıtılan bir iş için başlatma komutu. Yapılandırma, görüntü tabanlı dağıtım ile aynıdır. Daha fazla bilgi için Başlatma komutunu yapılandırma konusuna bakın.

CATALINA_OPTS=\"$CATALINA_OPTS $Options\" catalina.sh run

Time

string

No

İşi tetikleme zamanı, yyyy-MM-dd'T'HH:mm:ss'Z' biçiminde belirtilir.

2023-09-14T14:25:02Z

Replicas

string

No

Eşzamanlı örnek sayısı.

3

Response elements

Element

Type

Description

Example

object

Döndürülen veriler.

RequestId

string

İstek kimliği.

67DD9A98-9CCC-5BE8-8C9E-B45E72F4****

Message

string

Döndürülen mesaj.

  • İstek başarılıysa success döndürülür.

  • İstek başarısız olursa bir hata kodu döndürülür.

success

TraceId

string

Çağrı hakkında ayrıntılı bilgi almak için izleme kimliği.

0b87b7e716575071334387401e****

Data

object

Döndürülen veriler.

Data

string

İş kimliği.

manual-3db7a8fa-5d40-4edc-92e4-49d50eab****

Msg

string

Döndürülen mesaj.

  • İstek başarılıysa success döndürülür.

  • İstek başarısız olursa bir hata kodu döndürülür.

success

Success

string

İşin başarıyla yürütülüp yürütülmediğini belirtir.

  • true: Yürütme başarılı oldu.

  • false: Yürütme başarısız oldu.

true

Code

string

HTTP durum kodu veya POP hata kodu.

  • 2xx: Başarılı.

  • 3xx: Yönlendirme.

  • 4xx: İstek hatası.

  • 5xx: Sunucu hatası.

200

ErrorCode

string

Hata kodu.

  • Başarılı istekler için bu parametre atlanır.

  • Başarısız istekler için bu parametre eklenir. Daha fazla bilgi için bu konunun Hata kodları bölümüne bakın.

Code

string

HTTP durum kodu veya POP hata kodu.

  • 2xx: Başarılı.

  • 3xx: Yönlendirme.

  • 4xx: İstek hatası.

  • 5xx: Sunucu hatası.

200

Success

boolean

İsteğin başarılı olup olmadığını gösterir.

  • true: İstek başarılı oldu.

  • false: İstek başarısız oldu.

true

Examples

Success response

JSON format

{
  "RequestId": "67DD9A98-9CCC-5BE8-8C9E-B45E72F4****",
  "Message": "success",
  "TraceId": "0b87b7e716575071334387401e****",
  "Data": {
    "Data": "manual-3db7a8fa-5d40-4edc-92e4-49d50eab****",
    "Msg": "success",
    "Success": "true",
    "Code": "200"
  },
  "ErrorCode": "",
  "Code": "200",
  "Success": true
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidApplication.NotFound The current application does not exist.
400 JobForbidPolicy You cannot execute new jobs because ongoing jobs exist.
400 JobSuspend The job is suspended.
400 user.indebt The user has an outstanding payment.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.