CreateAuthorizationRule_云连接器_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.

流控信息

请求速率为300/1(s)。更多流控信息,请前往配额中心查看

授权信息

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

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
iotcc:CreateAuthorizationRule
Create
CloudConnector
acs:iotcc:{#regionId}:{#accountId}:cloudconnector/{#IoTCloudConnectorId}

请求参数

字段名称字段详情
IoTCloudConnectorIdstring

云连接器实例 ID。

示例值:iotcc-bp1odcab8tmno0hdq****参考取值来源:
    ListIoTCloudConnectors
    CreateIoTCloudConnector
    AddIoTCloudConnectorToGroup
    SubmitDiagnoseTaskForSingleCard
    GetDiagnoseResultForSingleCard
DestinationTypestring

访问目标类型。取值:展开详情

示例值:Cidr
DestinationPortstring

目标端口范围。取值范围:展开详情

示例值:80/80
Protocolstring

协议类型。取值:展开详情

示例值:tcp
Destinationstring

访问目标。

示例值:47.0.XX.XX
Policystring

访问策略。取值:展开详情

示例值:Permit
SourceCidrsarray<string>

源 CIDR 地址块。最多支持 20 个源 CIDR 地址块。

子级条数 <= 20子级条数 >= 1
AuthorizationRuleNamestring

授权规则名称。展开详情

示例值:rule01参考取值来源:
    ListAuthorizationRules
AuthorizationRuleDescriptionstring

授权规则描述。展开详情

示例值:rule01
ClientTokenstring

客户端 Token,用于保证请求的幂等性。展开详情

示例值:123e4567-e89b-12d3-a456-426655440000
DryRunboolean

是否只预检此次请求,取值:展开详情

示例值:false
RegionIdstring

云连接器实例所在的地域 ID。展开详情

示例值:cn-hangzhou

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:CEF72CEB-54B6-4AE8-B225-F876FF7BA984
AuthorizationRuleIdstring

授权规则 ID。

示例值:ar-1234abcb8tmno0hdq****

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
Forbidden.RAM
Ram user does not have permission to perform this operation.诊断
400
OperationDenied.DomainFeatureDisabled
The operation is not allowed because of domain feature disabled.诊断
400
IllegalParam.Destination
The param of Destination is illegal.诊断
400
ResourceAlreadyExist.AuthorizationRule
The specified resource of AuthorizationRule already exists.诊断
400
Conflict.Param
The param is conflict.诊断
400
Conflict.Cidr
The cidr is conflict.诊断
400
ResourceNotFound.IoTCloudConnector
The param of IoTCloudConnectorId is illegal.诊断
400
QuotaExceeded.sourceCidrLimit
The quota of SourceCidrsPerAuthorizationRule is exceeded诊断
400
IllegalParam
The param is illegal.诊断
400
QuotaExceeded.authorizationRuleInstanceLimit
The quota of AuthorizationRulePerIotCC is exceeded.诊断
400
IllegalParamFormat
The param is illegal.诊断
400
ResourceInConfiguring.IoTCloudConnector
The specified resource of IoTCloudConnector is configuring, please try again later.诊断
400
OperationDenied.DomainInHumanNetwork
The operation is not allowed because of domain or CIDR in human network.诊断
400
OperationDenied.CIDRMaskTooLarge
The operation is not allowed because of CIDR too large.诊断
400
OperationDenied.CC5GInstanceNotSupport
The operation is not allowed because of CC5G instance not support.诊断
400
IllegalParam.AuthorizationRule.DestinationType
The param of DestinationType is illegal.诊断

变更历史

变更时间变更内容概要操作
2023-03-23
变更错误码400
2022-08-26
变更错误码400
2022-06-23
变更错误码400
2022-06-07
变更错误码400
2021-11-18
变更错误码400

相关示例