CreateConnection_事件总线_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

用于创建连接配置信息。

流控信息

当前云产品API请求速率暂未透出。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
eventbridge:CreateConnection
Create
Connection
acs:eventbridge:{#regionId}:{#accountId}:connection/*

请求参数

字段名称字段详情
ConnectionNamestring

连接配置名称。最大长度 127 个字符。最小长度 2 个字符。

示例值:connection-name参考取值来源:
    ListConnections
字符长度 <= 127字符长度 >= 2
Descriptionstring

连接配置描述信息。最大长度 255 个字符。

示例值:demo字符长度 <= 255
NetworkParametersobject

网络配置的数据结构。

AuthParametersobject

鉴权数据结构。

返回参数

字段名称字段详情
RequestIdstring

阿里云为该请求生成的唯一标识符。

示例值:7DA60DED-CD36-5837-B848-C01A23D2****
Messagestring

附加信息。取值说明如下:请求正常,返回 success。 请求异常,返回具体异常错误码。

示例值:success
Codestring

接口状态或 POP 错误码。取值说明如下:Success:成功。

示例值:Success
Dataobject

返回结果。

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
409
RequestParameterException
Request parameter exception诊断
409
ConnectionAlreadyExist
The Connection already existed!诊断
409
ConnectionCountExceedLimit
The current count of connection, which will exceed the limit quota.诊断
409
BasicRequiredParameterIsEmpty
Basic required parameters are empty, the required parameters are username and password!诊断
409
BasicUserNameLengthExceed
Basic username length cannot exceed 127!诊断
409
BasicPassWordLengthExceed
Basic password length cannot exceed 127!诊断
409
ApiKeyRequiredParameterIsEmpty
Api Key required parameters are empty, the required parameters are apiKeyName and apiKeyValue!诊断
409
ApiKeyNameLengthExceed
Api key name length cannot exceed 127!诊断
409
ApiKeyValueLengthExceed
Api key value length cannot exceed 127!诊断
409
OAuthRequiredParameterIsEmpty
OAuth required parameters are empty, the required parameters are authorizationEndpoint and httpMethod!诊断
409
AuthorizationEndpointLengthExceed
Authorization endpoint length cannot exceed 127!诊断
409
ClientIDLengthExceed
ClientID length cannot exceed 127!诊断
409
ClientSecretLengthExceed
ClientSecret length cannot exceed 127!诊断
409
OauthHttpParametersEmpty
OauthHttpParameters is Empty.诊断
409
SecretManagerAPICreateSecretNameFailed
Create secret manager api secret name failed诊断
500
InternalError
InternalError诊断

变更历史

变更时间变更内容概要操作
2023-09-13
变更错误码409
新增错误码500
2023-04-12
变更请求参数ConnectionName
2023-04-06
变更请求参数ConnectionName
变更请求参数Description
变更请求参数NetworkParameters
变更请求参数AuthParameters
删除返回参数

相关示例