更新时间:2022-08-08 GMT+08:00
        
          
          
        
      
      
      
      
      
      
      
      
  
      
      
      
        
查询指定的SNAT规则详情
功能介绍
查询指定的SNAT规则详情。
URI
GET /v2/{project_id}/snat_rules/{snat_rule_id}
| 参数 | 是否必选 | 参数类型 | 描述 | 
|---|---|---|---|
| project_id | 是 | String | 项目ID。 | 
| snat_rule_id | 是 | String | SNAT规则的id。 | 
请求消息
无
响应消息
响应参数如表2所示。
| 参数 | 参数类型 | 描述 | 
|---|---|---|
| id | String | SNAT规则的id。 | 
| tenant_id | String | 项目ID。 | 
| nat_gateway_id | String | NAT网关的id。 | 
| network_id | String | 规则使用的网络id。 | 
| cidr | String | cidr,vpc子网网段的子集或专线侧网段。 | 
| source_type | Integer | 0:VPC侧,可以指定network_id或者cidr 1:专线侧,只能指定cidr 不输入默认为0(VPC) | 
| floating_ip_id | String(4096) | 
 | 
| description | String(255) | SNAT规则的描述。 | 
| status | String | 
 | 
| admin_state_up | Boolean | 
 | 
| created_at | String | SNAT规则的创建时间戳,遵循UTC时间,保留小数点后6位,格式是yyyy-mm-dd hh:mm:ss | 
| floating_ip_address | String(1024) | 
 | 
| freezed_ip_address | String(1024) | 
 | 
示例
- 请求样例
    GET https://{Endpoint}/v2/d199ba7e0ba64899b2e81518104b1526/snat_rules/5b95c675-69c2-4656-ba06-58ff72e1d338
- 响应样例
   { "snat_rule": { "floating_ip_id": "bdc10a4c-d81a-41ec-adf7-de857f7c812a", "status": "ACTIVE", "nat_gateway_id": "a78fb3eb-1654-4710-8742-3fc49d5f04f8", "admin_state_up": true, "network_id": "eaad9cd6-2372-4be1-9535-9bd37210ae7b", "source_type":0, "tenant_id": "d199ba7e0ba64899b2e81518104b1526", "created_at": "2017-11-18 07:54:21.665430", "id": "5b95c675-69c2-4656-ba06-58ff72e1d338", "floating_ip_address": "5.21.11.226", "freezed_ip_address": "", "description": "my snat rule 01" } }
状态码
请参考状态码。
   父主题: SNAT规则
  
  
    