更新Airflow实例的自定义配置
接口说明
配置 DMS Airflow 的 airflow.cfg 文件
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| AirflowId |
string |
是 |
Airflow 实例的唯一 ID |
af-b3a7f110a6vmvn7xxxxxx |
| CustomAirflowCfg |
array |
是 |
自定义 Airflow 配置列表 |
|
|
string |
否 |
配置明细。 |
celery.worker_concurrency=10 |
|
| WorkspaceId |
string |
是 |
DMS 工作空间 ID |
8630242382**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID |
67E910F2-4B62-5B0C-ACA3-7547695C**** |
| AccessDeniedDetail |
string |
拒绝访问的详情 |
NOT_FOUND |
| Root |
object |
Airflow 实例信息 |
|
| AirflowName |
string |
Airflow 名称 |
testairflow |
| AppSpec |
string |
Airflow 规格 |
SMALL |
| AppType |
string |
类型 |
AIRFLOW |
| CustomAirflowCfg |
array |
自定义配置 |
|
|
string |
配置明细。 |
smtp.username=test |
|
| DagsDir |
string |
Airflow 扫描的 dag 目录 |
default/dags |
| DeployErrorMsg |
string |
发布错误信息 |
vpc not found |
| Description |
string |
Airflow 的描述 |
test airflow |
| GmtCreated |
string |
创建时间 |
2025-08-12T05:46:01.000+0000 |
| OssBucketName |
string |
OSS bucket 名字 |
oss-test |
| OssPath |
string |
OSS 路径 |
/airflow |
| PluginsDir |
string |
Airflow 扫描的插件目录 |
default/plugins |
| RequirementFile |
string |
依赖包的配置文件 |
default/requirements.txt |
| SecurityGroupId |
string |
安全组 ID |
sg-2ze1nak7h0alg1xxx |
| StartupFile |
string |
Airflow 启动前加载的脚本 |
default/startup.sh |
| Status |
string |
Airflow 实例状态 |
DEPLOYING |
| AirflowId |
string |
Airflow 的 ID |
af-7a6ygsh80dx1jn**** |
| VSwitchId |
string |
交换机 ID |
vsw-bp1931trfxkvf74v**** |
| VpcId |
string |
VPC ID |
vpc-uf63r6coyiw9o5gf**** |
| WorkerServerlessReplicas |
integer |
Worker 节点数量 |
0 |
| WorkspaceId |
string |
DMS 工作空间 ID |
86302423828**** |
| ZoneId |
string |
可用区 ID |
cn-hangzhou-h |
| Message |
string |
错误信息。 |
Instance not found. |
| HttpStatusCode |
integer |
HTTP 状态码。 |
200 |
| ErrorCode |
string |
错误码。 |
UnknownError |
| Success |
boolean |
请求是否成功,取值
|
true |
示例
正常返回示例
JSON格式
{
"RequestId": "67E910F2-4B62-5B0C-ACA3-7547695C****",
"AccessDeniedDetail": "NOT_FOUND",
"Root": {
"AirflowName": "testairflow",
"AppSpec": "SMALL",
"AppType": "AIRFLOW",
"CustomAirflowCfg": [
"smtp.username=test"
],
"DagsDir": "default/dags",
"DeployErrorMsg": "vpc not found",
"Description": "test airflow",
"GmtCreated": "2025-08-12T05:46:01.000+0000",
"OssBucketName": "oss-test",
"OssPath": "/airflow",
"PluginsDir": "default/plugins",
"RequirementFile": "default/requirements.txt",
"SecurityGroupId": "sg-2ze1nak7h0alg1xxx",
"StartupFile": "default/startup.sh",
"Status": "DEPLOYING",
"AirflowId": "af-7a6ygsh80dx1jn****",
"VSwitchId": "vsw-bp1931trfxkvf74v****",
"VpcId": "vpc-uf63r6coyiw9o5gf****",
"WorkerServerlessReplicas": 0,
"WorkspaceId": "86302423828****",
"ZoneId": "cn-hangzhou-h"
},
"Message": "Instance not found.",
"HttpStatusCode": 200,
"ErrorCode": "UnknownError",
"Success": true
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。