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 | anyShow propertiesHide properties
Any of:
string
stringany
anyResponses
200
Successful Response
_idstringrequirednamestringrequiredjob_typeapp__models__api__agents_api_models__flink_jobs__FlinkJobTypeEnumrequiredAllowed:
pyflinkjaragent_configknowledge_basestatusFlinkJobStatusEnumrequiredAllowed:
CREATEDDEPLOYINGRUNNINGCANCELLINGCANCELLEDFAILEDFINISHEDdesired_statusFlinkJobStatusEnum | anyShow propertiesHide properties
Any of:
FlinkJobStatusEnum
stringany
anyflink_job_namestringrequiredflink_job_idstring | anyShow propertiesHide properties
Any of:
string
stringany
anyparallelismintegerdefault: 1
error_messagestring | anyShow propertiesHide properties
Any of:
string
stringany
anyagent_configobject | anyShow propertiesHide properties
Any of:
object
objectany
anycreated_bystring | anyShow propertiesHide properties
Any of:
string
stringany
anycreated_timestampstring<date-time> | anyShow propertiesHide properties
Any of:
string<date-time>
string<date-time>any
anyupdated_timestampstring<date-time> | anyShow propertiesHide properties
Any of:
string<date-time>
string<date-time>any
any422
Validation Error
detailValidationError[]Show propertiesHide properties
Array of
ValidationErrorlocstring | integer[]requiredShow propertiesHide properties
Array of
string | integerAny of:
string
stringinteger
integermsgstringrequiredtypestringrequiredinputanyctxobject