Call the ListIpMappingRules API to retrieve IP redirection information for authorization rules.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
iotcc:ListIpMappingRules |
list |
*CloudConnector
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| IoTCloudConnectorId |
string |
Yes |
ID of the cloud connector instance. |
iotcc-bp1odcab8tmno0hdq**** |
| IpMappingRuleIds |
array |
No |
IDs of authorization rules that require IP redirection. |
|
|
string |
No |
IDs of authorization rules that require IP redirection. You can specify up to 20 IDs. |
im-irrp3bzuu5nrbx**** |
|
| MappingIps |
array |
No |
IP addresses that require redirection. |
|
|
string |
No |
IP addresses that require redirection. You can specify up to 20 addresses. |
47.0.XX.XX |
|
| IpMappingRuleStatuses |
array |
No |
Status of IP redirection for authorization rules. You can specify up to 20 statuses. Valid values:
|
|
|
string |
No |
Status of IP redirection for authorization rules. You can specify up to 20 statuses. Valid values:
|
Created |
|
| IpMappingRuleNames |
array |
No |
Names of authorization rules that require IP redirection. |
|
|
string |
No |
Names of authorization rules that require IP redirection. You can specify up to 20 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 Chinese character. |
name |
|
| DestinationIps |
array |
No |
Target IP addresses for redirection. |
|
|
string |
No |
Target IP addresses for redirection. You can specify up to 20 addresses. |
192.168.10.8 |
|
| NextToken |
string |
No |
Token for the next query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
No |
The number of entries to display per page when you query in batches. Valid values are 1 to 100. The default value is 20. |
20 |
| RegionId |
string |
Yes |
ID of the region where the instance resides. You can call the ListRegions API to query region IDs. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Request ID. |
||
| RequestId |
string |
Request ID. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
| TotalCount |
integer |
Total number of entries in the list. |
10 |
| NextToken |
string |
Token for the next query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
Maximum number of entries to return per page. |
20 |
| IpMappingRules |
array<object> |
List of IP redirection rules for authorization. |
|
|
object |
List of IP redirection rules for authorization. |
||
| IoTCloudConnectorId |
string |
ID of the cloud connector instance. |
iotcc-bp1odcab8tmno0hdq**** |
| IpMappingRuleId |
string |
ID of the authorization rule that requires IP redirection. |
im-irrp3bzuu5nrbx**** |
| IpMappingRuleStatus |
string |
Status of IP redirection for the authorization rule. Valid values:
|
Created |
| MappingIp |
string |
IP address that requires redirection. |
47.0.XX.XX |
| DestinationIp |
string |
Target IP address for redirection. |
192.168.10.8 |
| IpMappingRuleName |
string |
Name of the authorization rule that requires IP redirection. |
name |
| IpMappingRuleDescription |
string |
Description of the authorization rule that requires IP redirection. |
description |
Examples
Success response
JSON format
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984",
"TotalCount": 10,
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"MaxResults": 20,
"IpMappingRules": [
{
"IoTCloudConnectorId": "iotcc-bp1odcab8tmno0hdq****",
"IpMappingRuleId": "im-irrp3bzuu5nrbx****",
"IpMappingRuleStatus": "Created",
"MappingIp": "47.0.XX.XX",
"DestinationIp": "192.168.10.8",
"IpMappingRuleName": "name",
"IpMappingRuleDescription": "description"
}
]
}
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.IoTCloudConnector | The param of IoTCloudConnectorId is illegal. | The error message returned because the value of the IoTCloudConnectorId parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.