目前该API接口已标记为弃用,推荐使用替代API:mse(2019-05-31) - CreateApplication。
创建应用。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
AppName | string | 是 | 应用名。 | bsd-xxyp-open-goods-server |
Region | string | 是 | 集群所在地域,包括但不限于如下地域:
| cn-shenzhen |
Source | string | 是 | 来源。 | edasmsc |
Language | string | 是 | 应用的编程语言。 | JAVA |
ExtraInfo | string | 是 | 其他信息。 | {} |
SentinelEnable | string | 否 | 是否开启 Sentinel。 | true |
SwitchEnable | string | 否 | 是否开始 Switch | true |
MseVersion | string | 否 | 待开通的 MSE 集群版本。
| mse_pro |
AcceptLanguage | string | 否 | 返回信息的语言类型。
| zh |
返回参数
示例
正常返回示例
JSON
格式
{
"Message": "请求处理成功",
"RequestId": "904F6C04-1284-****-8ED2-FFC57E507A72",
"Data": {
"Status": 1,
"ExtraInfo": "{}",
"AppName": "spring-cloud-a",
"UpdateTime": 1632979237663,
"LicenseKey": "xxxxxxxx@xxxxxxxxxx",
"CreateTime": 1631001140913,
"AppId": "xxxxxxxx@xxxxxxxxxx",
"UserId": "1234567890",
"Source": "edasmsc",
"Language": "JAVA",
"RegionId": "cn-hangzhou",
"Version": "1.0.0"
},
"Success": "true"
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | IllegalRequest | Invalid request:%s | 非法请求: %s |
400 | InvalidParameter | Parameter error:%s | 请求参数错误:%s |
403 | NoPermission | You are not authorized to perform this operation:%s | 没有权限使用此接口:%s |
404 | NotFound | Not found:%s | 资源不存在:%s |
500 | InternalError | Console error. Try again later:%s | 控制台错误.稍后重试:%s |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 | ||
---|---|---|---|---|
2023-07-06 | OpenAPI 返回结构发生变更 | 看变更集 | ||
| ||||
2023-05-06 | API 内部配置变更,不影响调用 | 看变更集 | ||
| ||||
2022-06-01 | 新增 OpenAPI | 看变更集 |