CreateApplication - 创建应用

创建应用。

调试

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

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

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 个字符,不能以aliyunacs:开头,不能包含http://或者https://

tagKey

Value

string

标签值。最多支持 128 个字符,不能以aliyunacs:开头,不能包含http://https://

tagKey

AcceptLanguage

string

返回信息的语言类型:

  • zh:中文

  • en:英文

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:表示阿里云容器服务 K8s。

  • Normal:表示其他接入方式。

ACK

Language

string

应用的编程语言。

JAVA

RegionId

string

地域。

cn-hangzhou

Namespace

string

MSE 命名空间名字。

prod

Version

string

版本号。

1.0.0

Code

integer

响应码。

200

Success

string

请求结果,取值如下:

  • true:请求成功。

  • false:请求失败。

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

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情