CreateSparkTemplate - 创建Spark应用模板
创建Spark应用模板。
接口说明
地域的公网接入地址:
adb.<region-id>.aliyuncs.com。示例:adb.cn-hangzhou.aliyuncs.com。地域的 VPC 接入地址:
adb-vpc.<region-id>.aliyuncs.com。示例:adb-vpc.cn-hangzhou.aliyuncs.com。
如果华北 1(青岛)、华南 1(深圳)、华南 3(广州)、中国香港发起请求时,遇到 409 错误,请联系技术支持。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
adb:CreateSparkTemplate |
create |
*DBClusterLakeVersion
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| DBClusterId |
string |
是 |
企业版、基础版或湖仓版集群 ID。 |
amv-bp11q28kvl688**** |
| ParentId |
integer |
是 |
应用模板所属的目录 ID。 说明
调用 GetSparkTemplateFolderTree 接口查询目录 ID。 |
10 |
| Name |
string |
是 |
应用模板名称。长度不超过 64 个字符。 |
batchfile |
| Type |
string |
是 |
应用模板类型,取值说明:
|
file |
| AppType |
string |
否 |
应用类型,取值说明:
说明
当应用模板类型为 folder 时,无需配置此参数。 |
SQL |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
1AD222E9-E606-4A42-BF6D-8A4442913CEF |
| Data |
object |
应用模板创建结果。 |
|
| Succeeded |
boolean |
是否创建成功,取值说明:
|
True |
示例
正常返回示例
JSON格式
{
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
"Data": {
"Succeeded": true
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Spark.InvalidParameter | Invalid parameter value: %s | 输入参数不正确:%s。 |
| 400 | Spark.InvalidState | The object of the operation is in an invalid state: %s | 操作对象处于非合法状态。 |
| 400 | Spark.TemplateFile.BadFileType | The requested template %s is not a file. | 请求的模板文件ID不是文件类型的。 |
| 500 | Spark.ServerError | The Spark control component system encountered an error, please create a ticket to solve the problem or concat the supported engineer on duty. Error message: %s | Spark管控组件系统遇到错误,请提交工单,或联系值班工程师。 |
| 404 | Spark.TemplateFile.FileNotFound | The template file %s is not found. | 未能找到输入的模板文件。 |
| 404 | Spark.TemplateFile.TemplateNotFound | The template %s is not found. | 模板文件未找到。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。