Queries DNS authorization rules for an instance group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
iotcc:ListGroupDNSServiceRules |
get |
*CloudConnector
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| IoTCloudConnectorGroupId |
string |
Yes |
The ID of the Cloud Connector instance group. |
iotccg-g00epppbi9di9y**** |
| DNSServiceRuleIds |
array |
No |
The ID of the DNS authorization rule. |
|
|
string |
No |
The IDs of DNS authorization rules. You can specify up to 20 rule IDs. |
gar-ffnn1ewe2nmf3y**** |
|
| ServiceType |
string |
No |
The target type of the DNS authorization rule. Valid values:
|
Normal |
| Destination |
array |
No |
The destination IP addresses of the DNS authorization rule. |
|
|
string |
No |
The destination IP addresses of the DNS authorization rule. You can specify up to 20 destination IP addresses. Note
This parameter is required when ServiceType is set to DNSRedirect. |
192.168.0.2 |
|
| Source |
array |
No |
The source IP addresses of the DNS authorization rule. |
|
|
string |
No |
The source IP addresses of the DNS authorization rule. You can specify up to 20 source IP addresses. Valid values include but are not limited to the following: 100.100.2.136, 100.100.2.137, 100.100.2.138, 114.114.114.114, 8.8.8.8, 8.8.4.4, 223.5.5.5, 223.6.6.6, 221.5.88.88, 116.116.116.116, 221.228.15.26, 61.139.2.69, 218.6.200.139, 119.29.29.29, 218.2.2.2, 208.67.220.220, 208.67.222.222, 218.4.4.4. To use other DNS authorization rule IP addresses beyond the default ones listed above, submit a ticket and include the requested IP addresses in your ticket. |
100.100.2.136 |
|
| DNSServiceRuleStatus |
array |
No |
The status of the DNS authorization rule. |
|
|
string |
No |
The status of the DNS authorization rule. You can specify up to 20 statuses. Valid values:
|
Created |
|
| DNSServiceRuleName |
array |
No |
The names of DNS authorization rules. You can specify up to 20 rule names. |
|
|
string |
No |
The names of DNS authorization rules. You can specify up to 20 rule names. The name must be 2 to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter or a Chinese character. |
test |
|
| NextToken |
string |
No |
The token used to retrieve the next page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
No |
The number of entries to return on each page. Valid values: 1–50. Default value: 10. |
10 |
| RegionId |
string |
Yes |
The region ID of the Cloud Connector instance group. You can call the ListRegions operation to obtain the region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The request ID. |
||
| RequestId |
string |
The request ID. |
77111A6A-56BA-59B2-8CAA-7CBF21648FB8 |
| TotalCount |
integer |
The total number of entries. |
10 |
| NextToken |
string |
The token used to retrieve the next page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
The number of entries returned per page. |
10 |
| DNSServiceRules |
array<object> |
The list of DNS authorization rules. |
|
|
object |
The list of DNS authorization rules. |
||
| IoTCloudConnectorGroupId |
string |
The ID of the Cloud Connector instance group. |
iotccg-g00epppbi9di9y**** |
| DNSServiceRuleStatus |
string |
The status of the DNS authorization rule. Valid values:
|
Created |
| Source |
string |
The source IP address of the DNS authorization rule. Valid values include but are not limited to the following: 100.100.2.136, 100.100.2.137, 100.100.2.138, 114.114.114.114, 8.8.8.8, 8.8.4.4, 223.5.5.5, 223.6.6.6, 221.5.88.88, 116.116.116.116, 221.228.15.26, 61.139.2.69, 218.6.200.139, 119.29.29.29, 218.2.2.2, 208.67.220.220, 208.67.222.222, 218.4.4.4. To use other DNS authorization rule IP addresses beyond the default ones listed above, submit a ticket and include the requested IP addresses in your ticket. |
100.100.2.136 |
| ServiceType |
string |
The target type of the DNS authorization rule. Valid values:
|
Normal |
| Destination |
string |
The destination IP address of the DNS authorization rule. Note
This parameter is required when ServiceType is set to DNSRedirect. |
192.168.0.2 |
| DNSServiceRuleName |
string |
The name of the DNS authorization rule. The name must be 2 to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter or a Chinese character. |
test |
| DNSServiceRuleDescription |
string |
The description of the DNS authorization rule. The description must be 2 to 256 characters in length. It must start with a letter or a Chinese character and cannot begin with |
description |
| DNSServiceRuleId |
string |
The ID of the DNS authorization rule. |
gar-ffnn1ewe2nmf3y**** |
Examples
Success response
JSON format
{
"RequestId": "77111A6A-56BA-59B2-8CAA-7CBF21648FB8",
"TotalCount": 10,
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"MaxResults": 10,
"DNSServiceRules": [
{
"IoTCloudConnectorGroupId": "iotccg-g00epppbi9di9y****",
"DNSServiceRuleStatus": "Created",
"Source": "100.100.2.136",
"ServiceType": "Normal",
"Destination": "192.168.0.2",
"DNSServiceRuleName": "test",
"DNSServiceRuleDescription": "description",
"DNSServiceRuleId": "gar-ffnn1ewe2nmf3y****"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Forbidden.RAM | Ram user does not have permission to perform this operation. | The error message returned because the RAM user does not have the permissions to perform the operation. |
| 400 | ResourceNotFound.IoTCloudConnectorGroup | The param of IoTCloudConnectorGroupId is illegal. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.