Deploy Pyflink Job
Deploy a PyFlink agent.
Either upload a Python file as multipart OR provide inline python_code as a form field. Form fields: name, parallelism (default 1), job_args (JSON string), python_code (alternative to file).
POST
/agents/pyflinkAuthorization
AuthorizationBearer token · headerrequiredRequest body
multipart/form-datapython_filestring | nullShow propertiesHide properties
Any of:
string
stringnull
nullResponses
200
Successful Response
_idstringrequirednamestringrequiredjob_typeapp__models__api__agents_api_models__flink_jobs__FlinkJobTypeEnumrequiredAllowed:
pyflinkjaragent_configknowledge_basestatusFlinkJobStatusEnumrequiredAllowed:
CREATEDDEPLOYINGRUNNINGCANCELLINGCANCELLEDFAILEDFINISHEDdesired_statusFlinkJobStatusEnum | nullShow propertiesHide properties
Any of:
FlinkJobStatusEnum
stringnull
nullflink_job_namestringrequiredflink_job_idstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullparallelismintegerdefault: 1
error_messagestring | nullShow propertiesHide properties
Any of:
string
stringnull
nullagent_configobject | nullShow propertiesHide properties
Any of:
object
objectnull
nullcreated_bystring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcreated_timestampstring<date-time> | nullShow propertiesHide properties
Any of:
string<date-time>
string<date-time>null
nullupdated_timestampstring<date-time> | nullShow propertiesHide properties
Any of:
string<date-time>
string<date-time>null
null422
Validation Error
detailValidationError[]Show propertiesHide properties
Array of
ValidationErrorlocstring | integer[]requiredShow propertiesHide properties
Array of
string | integerAny of:
string
stringinteger
integermsgstringrequiredtypestringrequiredinputanyctxobject