1 件取得
IPフィルタグループを1 件取得します 。
Request Interface
HTTP Request
GET /ip-filter/group/{ipFilterGroupName}
Parameter
Path Parameter |
Value |
Required |
Description |
Default Value |
---|---|---|---|---|
ipFilterGroupName |
string |
true |
IP filter group name |
- |
Response Interface
リクエストが正常に処理された場合、以下の JSON フォーマットでレスポンスを返却します。
{ "ipFilterGroupName": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "description": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "allowlist": [ "xxx.xxx.xxx.xxx", "xxx.xxx.xxx.xxx" ] }
Property Name |
Value |
Description |
---|---|---|
ipFilterGroupName |
string |
IP filter group name |
description |
string |
Description of IP filter group |
allowlist |
array |
Allowlist of IP addresses |
Examples
public static void main(String[] args) { String host = "https://www.webconnect.hulft.com"; String apiKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; String ipFilterGroupName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; try { URL url = new URL(host + "/api/v2/ip-filter/group/" + ipFilterGroupName); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("Authorization", "Bearer " + apiKey); try (BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()))) { String line; while((line = reader.readLine()) != null) { System.out.println(line); } } } catch (IOException ex) { // error } }
// load jquery var host = 'https://www.webconnect.hulft.com'; var apiKey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; var ipFilterGroupName = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; $.ajax({ type: 'GET', url: host + '/api/v2/ip-filter/group/' + ipFilterGroupName, headers: { Authorization: 'Bearer ' + apiKey } }).done(function(data, status, xhr) { console.log(data); }).fail(function(data, status, xhr) { console.log(data); });