创建应用。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
mse:CreateApplication |
create |
*全部资源
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
Region |
string |
是 |
应用所属的区域。 |
cn-hangzhou |
Namespace |
string |
是 |
MSE 命名空间名字。 |
prod |
AppName |
string |
是 |
应用名。 |
spring-cloud-a |
Source |
string |
否 |
应用的部署方式,ACK 表示阿里云容器服务 K8s。 |
ACK |
Language |
string |
否 |
应用的编程语言。 |
JAVA |
SentinelEnable |
string |
否 |
是否开启 Sentinel。 |
true |
SwitchEnable |
string |
否 |
是否开始 Switch。 |
true |
Tags |
array |
否 |
阿里云标签。 |
|
object |
否 |
阿里云标签。 |
||
Key |
string |
否 |
用户输入的自定义标签键。最多支持 128 个字符,不能以 |
tagKey |
Value |
string |
否 |
标签值。最多支持 128 个字符,不能以 |
tagKey |
AcceptLanguage |
string |
否 |
返回信息的语言类型:
|
zh |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
数据结构。 |
||
Message |
string |
返回信息。 |
success |
RequestId |
string |
请求 ID。 |
68D91223-CCE9-5F9C-B538-20F617DA48B1 |
Data |
object |
节点数据。 |
data |
Status |
integer |
应用状态,1 表示正常。 |
1 |
ExtraInfo |
string |
额外信息。 |
{\"rpcTypes\":[\"dubbo\",\"springCloud\"]} |
AppName |
string |
应用名称。 |
spring-cloud-a |
UpdateTime |
integer |
更新时间。 |
1632979237663 |
LicenseKey |
string |
用户的对应的 LicenseKey。 |
xxxxxxxx@xxxxxxxxxx |
CreateTime |
integer |
创建时间。 |
1631001140913 |
AppId |
string |
应用 ID。 |
xxxxxxxx@xxxxxxxxxx |
UserId |
string |
阿里云用户 ID。 |
1888888888 |
Source |
string |
应用的部署方式。
|
ACK |
Language |
string |
应用的编程语言。 |
JAVA |
RegionId |
string |
地域。 |
cn-hangzhou |
Namespace |
string |
MSE 命名空间名字。 |
prod |
Version |
string |
版本号。 |
1.0.0 |
Code |
integer |
响应码。 |
200 |
Success |
string |
请求结果,取值如下:
|
true |
HttpStatusCode |
integer |
HTTP 状态码。 |
200 |
示例
正常返回示例
JSON
格式
{
"Message": "success",
"RequestId": "68D91223-CCE9-5F9C-B538-20F617DA48B1",
"Data": {
"Status": 1,
"ExtraInfo": "{\\\"rpcTypes\\\":[\\\"dubbo\\\",\\\"springCloud\\\"]}",
"AppName": "spring-cloud-a",
"UpdateTime": 1632979237663,
"LicenseKey": "xxxxxxxx@xxxxxxxxxx",
"CreateTime": 1631001140913,
"AppId": "xxxxxxxx@xxxxxxxxxx",
"UserId": "1888888888",
"Source": "ACK",
"Language": "JAVA",
"RegionId": "cn-hangzhou",
"Namespace": "prod",
"Version": "1.0.0"
},
"Code": 200,
"Success": "true",
"HttpStatusCode": 200
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | IllegalRequest | Invalid request:%s | 非法请求: %s |
400 | InvalidParameter | Parameter error:%s | 请求参数错误:%s |
500 | InternalError | Console error. Try again later:%s | 控制台错误.稍后重试:%s |
403 | NoPermission | You are not authorized to perform this operation:%s | 没有权限使用此接口:%s |
404 | NotFound | Not found:%s | 资源不存在:%s |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。