CreateDNSServiceRule_云连接器_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:CreateDNSServiceRule
Create
CloudConnector
acs:iotcc:{#regionId}:{#accountId}:cloudconnector/{#CloudConnectorId}

请求参数

字段名称字段详情
IoTCloudConnectorIdstring

云连接器实例 ID。

示例值:iotcc-1y6h8z7imd2yu4****参考取值来源:
    ListIoTCloudConnectors
    CreateIoTCloudConnector
    AddIoTCloudConnectorToGroup
    SubmitDiagnoseTaskForSingleCard
    GetDiagnoseResultForSingleCard
ServiceTypestring

DNS 授权规则的目标类型。取值:展开详情

示例值:Normal参考取值来源:
    ListDNSServiceRules
    CreateGroupDNSServiceRule
Destinationstring

重定向后的 DNS 服务地址。展开详情

示例值:192.168.0.2
Sourcestring

源 DNS IP 地址。取值:展开详情

示例值:100.100.2.138
DNSServiceRuleNamestring

DNS 授权规则名称。展开详情

示例值:test参考取值来源:
    ListDNSServiceRules
DNSServiceRuleDescriptionstring

DNS 授权规则描述。展开详情

示例值:description
ClientTokenstring

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

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

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

示例值:false
RegionIdstring

DNS 授权规则所在的地域 ID。展开详情

示例值:cn-hangzhou

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:BC6D1C1D-6DBD-568C-B867-BC9CA699ED01
DNSServiceRuleIdstring

DNS 授权规则 ID。

示例值:ar-r56ijpurlu50gi****

返回示例

错误码

全局错误码
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.CC5GInstanceNotSupport
The operation is not allowed because of CC5G instance not support.诊断

变更历史

变更时间变更内容概要操作
2022-08-26
变更错误码400
2022-02-17
删除请求参数AuthorizationRuleDescription
新增请求参数DNSServiceRuleDescription
2022-02-17
删除请求参数AuthorizationRuleName
新增请求参数DNSServiceRuleName
2022-02-15
新增OpenAPI,创建DNS授权规则

相关示例