{"id":4626,"date":"2014-06-02T11:35:08","date_gmt":"2014-06-02T02:35:08","guid":{"rendered":"http:\/\/www.creationline.com\/?p=4626"},"modified":"2023-08-29T12:50:55","modified_gmt":"2023-08-29T03:50:55","slug":"softlayer-api-ruby-client-%e3%81%a7-virtual-server-%e3%81%a8-hardware-firewall-%e3%82%92%e5%90%8c%e6%99%82%e3%81%ab%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b-softlayer","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4626","title":{"rendered":"softlayer-api-ruby-client \u3067 Virtual Server \u3068 Hardware Firewall \u3092\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b #softlayer"},"content":{"rendered":"<h2>Virtual Server \u3068 Hardware Firewall \u3092 API \u7d4c\u7531\u3067\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<\/h2>\n<p><a href=\"\/lab\/4577\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u3067\u306f\u3001<a href=\"http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Product_Order\/verifyOrder\">SoftLayer_Product_Order::verifyOrder<\/a> \u304a\u3088\u3073 <a href=\"http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Product_Order\/placeOrder\">SoftLayer_Product_Order::placeOrder<\/a> \u3092\u7528\u3044\u3066\u3001<a href=\"http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Virtual_Guest\/createObject\">SoftLayer_Virtual_Guest::createObject<\/a> \u3067\u4f5c\u6210\u3067\u304d\u308b\u3082\u306e\u3068\u540c\u3058 Virtual Server \u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306f <a href=\"http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Product_Order\/placeOrder\">SoftLayer_Product_Order::placeOrder<\/a> \u3092\u7528\u3044\u3066\u3001Hardware Firewall \u3064\u304d\u306e Virtual Server \u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<h2>SoftLayer \u306b\u304a\u3051\u308b\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb<\/h2>\n<p>SoftLayer \u3067\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306f\u3044\u304f\u3064\u304b\u306e\u7a2e\u985e\u306b\u5206\u985e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u307e\u305a\u5927\u304d\u304f\u5206\u3051\u3066\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3068\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306f OS \u306b\u7d44\u307f\u8fbc\u307e\u308c\u305f\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3067\u3001SoftLayer \u3067\u306f Linux \u7528\u306e <strong>APF Software Firewall for Linux<\/strong> (<a href=\"http:\/\/knowledgelayer.softlayer.com\/procedure\/install-and-configure-advanced-policy-firewall-apf\">Install and Configure Advanced Policy Firewall (APF)<\/a>) \u3068 Windows \u7528\u306e <strong>Microsoft Windows Firewall<\/strong> \u304c\u3042\u308a\u307e\u3059\u3002APF Software Firewall for Linux \u306f\u300c<a href=\"\/lab\/4328\">SoftLayer\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u57fa\u790e<\/a>\u3067\u3082\u591a\u5c11\u89e6\u308c\u3066\u3044\u308b\u306e\u3067\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u914d\u7f6e\u3059\u308b\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3067\u3001SoftLayer \u3067\u306f VLAN \u81ea\u4f53\u306b\u9069\u7528\u3059\u308b <strong>Hardware Firewall (Dedicated)<\/strong> (VLAN routed firewalls) \u3068\u500b\u3005\u306e\u30b5\u30fc\u30d0\u306b\u9069\u7528\u3059\u308b <strong>Hardware Firewall<\/strong> (Single device firewalls \u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001\u500b\u3005\u306e\u30b5\u30fc\u30d0\u306b\u9069\u7528\u3059\u308b Hardware Firewall \u3064\u304d\u306e Virtual Server \u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<h2>SoftLayer_Product_Order::placeOrder \u3092\u7528\u3044\u3066 Virtual Server \u3068 Hardware Firewall \u3092\u540c\u6642\u306b\u6ce8\u6587\u3059\u308b<\/h2>\n<p><a href=\"\/lab\/4577\">\u524d\u56de\u306e\u8a18\u4e8b<\/a> \u306e\u3088\u3046\u306b\u3001<a href=\"http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Product_Order\/placeOrder\">SoftLayer_Product_Order::placeOrder<\/a> \u3092\u7528\u3044\u3066\u6ce8\u6587\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30db\u30b9\u30c8\u540d: test-\u5e74\u6708\u65e5\u6642\u5206\u79d2<\/li>\n<li>\u30c9\u30e1\u30a4\u30f3\u540d: example.jp<\/li>\n<li>CPU\u30b3\u30a2\u6570: 1<\/li>\n<li>\u30e1\u30e2\u30ea: 1024MB<\/li>\n<li>\u8ab2\u91d1: <strong>\u6708<\/strong><\/li>\n<li>\u30c7\u30a3\u30b9\u30af: \u30ed\u30fc\u30ab\u30eb\u30c7\u30a3\u30b9\u30af<\/li>\n<li>\u30d6\u30ed\u30c3\u30af\u30c7\u30d0\u30a4\u30b9: 0\u756a 25GB<\/li>\n<li>\u30c7\u30fc\u30bf\u30bb\u30f3\u30bf\u30fc: \u30b5\u30f3\u30ce\u30bc<\/li>\n<li>OS: Ubuntu 12.04 (amd64)<\/li>\n<li>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af: 10Mbps<\/li>\n<li><strong>\u5916\u90e8\u3078\u306e\u8ee2\u9001\u91cf: 5000GB<\/strong><\/li>\n<li><strong>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb: \u30b5\u30fc\u30d0\u500b\u5225\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb<\/strong><\/li>\n<\/ul>\n<p><a href=\"\/lab\/4577\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u306e\u6ce8\u6587\u3068\u7570\u306a\u308b\u7b87\u6240\u306f<strong>\u5f37\u8abf<\/strong>\u3067\u8868\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305a\u3001\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306f\u6642\u9593\u8ab2\u91d1\u304c\u306a\u3044\u305f\u3081\u3001\u6708\u8ab2\u91d1\u3068\u306a\u308a\u307e\u3059\u3002\u306a\u304a\u3001\u6e80\u4e86\u524d\u306b\u30ad\u30e3\u30f3\u30bb\u30eb\u3057\u3066\u3082\u65e5\u5272\u308a\u8a08\u7b97\u3055\u308c\u306a\u3044\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u307e\u305f\u3001\u5916\u90e8\u3078\u306e\u8ee2\u9001\u91cf\u304c\u6708\u306b 5000GB \u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\n#!\/usr\/bin\/ruby<\/code><\/p>\n<p><code lang=\"ruby\"><code lang=\"ruby\"><\/code><\/code><\/p>\n<p>require 'softlayer_api'<br \/>\nrequire 'pp'<\/p>\n<p><code lang=\"ruby\"><code lang=\"ruby\"><\/code><\/code><\/p>\n<p>#<br \/>\n# fill your SoftLayer API username and API key<br \/>\n#<br \/>\napi_username = ENV['SOFTLAYER_API_USERNAME'] || 'YOUR_SOFTLAYER_API_USERNAME'<br \/>\napi_key = ENV['SOFTLAYER_API_KEY'] || 'YOUR_SOFTLAYER_API_KEY'<\/p>\n<p><code lang=\"ruby\"><code lang=\"ruby\"><\/code><\/code><\/p>\n<p>#<br \/>\n# http:\/\/sldn.softlayer.com\/reference\/datatypes\/SoftLayer_Container_Product_Order_Virtual_Guest<br \/>\n#<br \/>\nproduct_order = {<br \/>\n'complexType' =&gt; 'SoftLayer_Container_Product_Order_Virtual_Guest',<br \/>\n'quantity' =&gt; 1,<br \/>\n#<br \/>\n# http:\/\/sldn.softlayer.com\/reference\/datatypes\/SoftLayer_Virtual_Guest<br \/>\n#<br \/>\n'virtualGuests' =&gt; [<br \/>\n{<br \/>\n'hostname' =&gt; 'test-%s' % Time.now.strftime( '%F%T' ).gsub(\/\\D\/, '' ),<br \/>\n'domain' =&gt; 'example.jp'<br \/>\n}<br \/>\n],<br \/>\n'location' =&gt; 168642, # NOTE: 168642 is 'sjc01' location ID<br \/>\n'packageId' =&gt; 46, # NOTE: 46 is 'Virtual Guests' package ID<br \/>\n'useHourlyPricing' =&gt; false,<br \/>\n'prices' =&gt; [<br \/>\n#<br \/>\n# Required Categories<br \/>\n#<br \/>\n{ 'id' =&gt; 1640 }, # 1640 -- 1 x 2.0 GHz Core<br \/>\n{ 'id' =&gt; 1644 }, # 1644 -- 1 GB<br \/>\n{ 'id' =&gt; 905 }, # 905 -- Reboot \/ Remote Console<br \/>\n{ 'id' =&gt; 272 }, # 272 -- 10 Mbps Public &amp; Private Network Uplinks<br \/>\n{ 'id' =&gt; 248 }, # 248 -- 5000 GB Bandwidth<br \/>\n{ 'id' =&gt; 21 }, # 21 -- 1 IP Address<br \/>\n{ 'id' =&gt; 13899 }, # 13899 -- 25 GB (LOCAL)<br \/>\n{ 'id' =&gt; 17446 }, # 17446 -- Ubuntu Linux 12.04 LTS Precise Pangolin - Minimal Install (64 bit)<br \/>\n{ 'id' =&gt; 55 }, # 55 -- Host Ping<br \/>\n{ 'id' =&gt; 57 }, # 57 -- Email and Ticket<br \/>\n{ 'id' =&gt; 58 }, # 58 -- Automated Notification<br \/>\n{ 'id' =&gt; 420 }, # 420 -- Unlimited SSL VPN Users &amp; 1 PPTP VPN User per account<br \/>\n{ 'id' =&gt; 418 }, # 418 -- Nessus Vulnerability Assessment &amp; Reporting<br \/>\n#<br \/>\n{ 'id' =&gt; 410 }, # 410 -- 10Mbps Hardware Firewall<br \/>\n]<br \/>\n}<\/p>\n<p><code lang=\"ruby\"><code lang=\"ruby\"><\/code><\/code><\/p>\n<p>#<br \/>\n# http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Product_Order<br \/>\n#<br \/>\nproduct_order_service = SoftLayer::Service.new( 'SoftLayer_Product_Order',<br \/>\n:username =&gt; api_username,<br \/>\n:api_key =&gt; api_key,<br \/>\n)<\/p>\n<p><code lang=\"ruby\"><code lang=\"ruby\"><\/code><\/code><\/p>\n<p>#<br \/>\n# http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Product_Order\/verifyOrder<br \/>\n#<br \/>\nbegin<br \/>\nresult = product_order_service.verifyOrder( product_order )<br \/>\nputs \"The order was verified successfully\"<br \/>\npp result<br \/>\nrescue =&gt; error_reason<br \/>\nputs \"The order could not be verified by the server: #{error_reason}\"<br \/>\nexit<br \/>\nend<\/p>\n<p><code lang=\"ruby\"><code lang=\"ruby\"><\/code><\/code><\/p>\n<p>#<br \/>\n# http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Product_Order\/placeOrder<br \/>\n#<br \/>\nbegin<br \/>\nresult = product_order_service.placeOrder( product_order )<br \/>\nputs \"The order was placed successfully\"<br \/>\npp result<br \/>\nrescue =&gt; error_reason<br \/>\nputs \"The order could not be placed by the server: #{error_reason}\"<br \/>\nexit<br \/>\nend<\/p>\n<p><code lang=\"ruby\"><br \/>\n<\/code><\/p>\n<p><code lang=\"ruby\">__END__<br \/>\n<\/code><\/p>\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068\u6b21\u306e\u3088\u3046\u306a\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\nThe order was verified successfully<br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n{\"currentPriceFlag\"=&gt;nil,<br \/>\n\"id\"=&gt;410,<br \/>\n\"itemId\"=&gt;299,<br \/>\n\"laborFee\"=&gt;\"0\",<br \/>\n\"onSaleFlag\"=&gt;nil,<br \/>\n\"oneTimeFee\"=&gt;\"0\",<br \/>\n\"oneTimeFeeTax\"=&gt;\"0\",<br \/>\n\"proratedRecurringFee\"=&gt;\"17.387096774194\",<br \/>\n\"proratedRecurringFeeTax\"=&gt;\"0\",<br \/>\n\"quantity\"=&gt;nil,<br \/>\n\"recurringFee\"=&gt;\"49\",<br \/>\n\"recurringFeeTax\"=&gt;\"0\",<br \/>\n\"setupFee\"=&gt;\"0\",<br \/>\n\"sort\"=&gt;0,<br \/>\n\"categories\"=&gt;<br \/>\n[{\"categoryCode\"=&gt;\"firewall\",<br \/>\n\"id\"=&gt;30,<br \/>\n\"name\"=&gt;\"Hardware &amp; Software Firewalls\",<br \/>\n\"quantityLimit\"=&gt;0}],<br \/>\n\"item\"=&gt;<br \/>\n{\"capacity\"=&gt;\"10\",<br \/>\n\"description\"=&gt;\"10Mbps Hardware Firewall\",<br \/>\n\"id\"=&gt;299,<br \/>\n\"softwareDescriptionId\"=&gt;nil,<br \/>\n\"units\"=&gt;\"Mbps\",<br \/>\n\"upgradeItemId\"=&gt;nil,<br \/>\n\"bundle\"=&gt;[]}}],<br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\nThe order was placed successfully<br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n{\"currentPriceFlag\"=&gt;nil,<br \/>\n\"id\"=&gt;410,<br \/>\n\"itemId\"=&gt;299,<br \/>\n\"laborFee\"=&gt;\"0\",<br \/>\n\"onSaleFlag\"=&gt;nil,<br \/>\n\"oneTimeFee\"=&gt;\"0\",<br \/>\n\"oneTimeFeeTax\"=&gt;\"0\",<br \/>\n\"proratedRecurringFee\"=&gt;\"17.387096774194\",<br \/>\n\"proratedRecurringFeeTax\"=&gt;\"0\",<br \/>\n\"quantity\"=&gt;nil,<br \/>\n\"recurringFee\"=&gt;\"49\",<br \/>\n\"recurringFeeTax\"=&gt;\"0\",<br \/>\n\"setupFee\"=&gt;\"0\",<br \/>\n\"sort\"=&gt;0,<br \/>\n\"categories\"=&gt;<br \/>\n[{\"categoryCode\"=&gt;\"firewall\",<br \/>\n\"id\"=&gt;30,<br \/>\n\"name\"=&gt;\"Hardware &amp; Software Firewalls\",<br \/>\n\"quantityLimit\"=&gt;0}],<br \/>\n\"item\"=&gt;<br \/>\n{\"capacity\"=&gt;\"10\",<br \/>\n\"description\"=&gt;\"10Mbps Hardware Firewall\",<br \/>\n\"id\"=&gt;299,<br \/>\n\"softwareDescriptionId\"=&gt;nil,<br \/>\n\"units\"=&gt;\"Mbps\",<br \/>\n\"upgradeItemId\"=&gt;nil,<br \/>\n\"bundle\"=&gt;[]}}],<br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n{\"categoryCode\"=&gt;\"firewall\",<br \/>\n\"description\"=&gt;\"10Mbps Hardware Firewall\",<br \/>\n\"id\"=&gt;33974552,<br \/>\n\"itemId\"=&gt;299,<br \/>\n\"itemPriceId\"=&gt;\"410\",<br \/>\n\"laborFee\"=&gt;\"0\",<br \/>\n\"laborFeeTaxRate\"=&gt;\"0\",<br \/>\n\"oneTimeFee\"=&gt;\"0\",<br \/>\n\"oneTimeFeeTaxRate\"=&gt;\"0\",<br \/>\n\"parentId\"=&gt;33974526,<br \/>\n\"promoCodeId\"=&gt;nil,<br \/>\n\"quantity\"=&gt;nil,<br \/>\n\"recurringFee\"=&gt;\"49\",<br \/>\n\"setupFee\"=&gt;\"0\",<br \/>\n\"setupFeeDeferralMonths\"=&gt;12,<br \/>\n\"setupFeeTaxRate\"=&gt;\"0\",<br \/>\n\"bundledItems\"=&gt;[],<br \/>\n\"category\"=&gt;<br \/>\n{\"categoryCode\"=&gt;\"firewall\",<br \/>\n\"id\"=&gt;30,<br \/>\n\"name\"=&gt;\"Hardware &amp; Software Firewalls\",<br \/>\n\"quantityLimit\"=&gt;0},<br \/>\n\"children\"=&gt;[],<br \/>\n\"order\"=&gt;nil,<br \/>\n\"storageGroups\"=&gt;[]},<br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n{\"categoryCode\"=&gt;\"firewall\",<br \/>\n\"description\"=&gt;\"10Mbps Hardware Firewall\",<br \/>\n\"id\"=&gt;33974552,<br \/>\n\"itemId\"=&gt;299,<br \/>\n\"itemPriceId\"=&gt;\"410\",<br \/>\n\"laborFee\"=&gt;\"0\",<br \/>\n\"laborFeeTaxRate\"=&gt;\"0\",<br \/>\n\"oneTimeFee\"=&gt;\"0\",<br \/>\n\"oneTimeFeeTaxRate\"=&gt;\"0\",<br \/>\n\"parentId\"=&gt;33974526,<br \/>\n\"promoCodeId\"=&gt;nil,<br \/>\n\"quantity\"=&gt;nil,<br \/>\n\"recurringFee\"=&gt;\"49\",<br \/>\n\"setupFee\"=&gt;\"0\",<br \/>\n\"setupFeeDeferralMonths\"=&gt;12,<br \/>\n\"setupFeeTaxRate\"=&gt;\"0\",<br \/>\n\"bundledItems\"=&gt;[],<br \/>\n\"category\"=&gt;<br \/>\n{\"categoryCode\"=&gt;\"firewall\",<br \/>\n\"id\"=&gt;30,<br \/>\n\"name\"=&gt;\"Hardware &amp; Software Firewalls\",<br \/>\n\"quantityLimit\"=&gt;0},<br \/>\n\"children\"=&gt;[],<br \/>\n\"order\"=&gt;nil,<br \/>\n\"storageGroups\"=&gt;[]},<br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n{\"categoryCode\"=&gt;\"firewall\",<br \/>\n\"description\"=&gt;\"10Mbps Hardware Firewall\",<br \/>\n\"id\"=&gt;33974552,<br \/>\n\"itemId\"=&gt;299,<br \/>\n\"itemPriceId\"=&gt;\"410\",<br \/>\n\"laborFee\"=&gt;\"0\",<br \/>\n\"laborFeeTaxRate\"=&gt;\"0\",<br \/>\n\"oneTimeFee\"=&gt;\"0\",<br \/>\n\"oneTimeFeeTaxRate\"=&gt;\"0\",<br \/>\n\"parentId\"=&gt;33974526,<br \/>\n\"promoCodeId\"=&gt;nil,<br \/>\n\"quantity\"=&gt;nil,<br \/>\n\"recurringFee\"=&gt;\"49\",<br \/>\n\"setupFee\"=&gt;\"0\",<br \/>\n\"setupFeeDeferralMonths\"=&gt;12,<br \/>\n\"setupFeeTaxRate\"=&gt;\"0\",<br \/>\n\"bundledItems\"=&gt;[],<br \/>\n\"category\"=&gt;<br \/>\n{\"categoryCode\"=&gt;\"firewall\",<br \/>\n\"id\"=&gt;30,<br \/>\n\"name\"=&gt;\"Hardware &amp; Software Firewalls\",<br \/>\n\"quantityLimit\"=&gt;0},<br \/>\n\"children\"=&gt;[],<br \/>\n\"order\"=&gt;nil,<br \/>\n\"storageGroups\"=&gt;[]},<br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n<\/code><\/p>\n<p>Virtual Server \u3068 Hardware Firewall \u304c\u540c\u6642\u306b\u4f5c\u6210\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u306a\u304a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306b\u30eb\u30fc\u30eb\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u304a\u3089\u305a\u3001\u3059\u3079\u3066\u306e\u901a\u4fe1\u304c\u7d20\u901a\u3057\u306e\u72b6\u614b\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u64cd\u4f5c\u306b\u3064\u3044\u3066\u306f\u6b21\u306e\u8a18\u4e8b\u306b\u8b72\u308a\u307e\u3059\u3002<\/p>\n<h2>Virtual Server \u306b\u7d50\u3073\u4ed8\u3051\u3089\u308c\u305f Hardware Firewall \u3092\u78ba\u8a8d\u3059\u308b<\/h2>\n<p>\u3067\u306f\u3001\u4f5c\u6210\u3057\u305f Virtual Server \u3068 Hardware Firewall \u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u306fsl\u30b3\u30de\u30f3\u30c9\u3067\u4f5c\u6210\u3057\u305f Virtual Server \u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p><code><br \/>\n% sl vs list<br \/>\n:.........:............:................................:.......:........:.................:..............:....................:<br \/>\n:    id   : datacenter :              host              : cores : memory :    primary_ip   :  backend_ip  : active_transaction :<br \/>\n:.........:............:................................:.......:........:.................:..............:....................:<br \/>\n: XXXXX64 :   sjc01    : test-20140516144201.example.jp :   1   :   1G   : 108.168.XX8.XX7 : 10.88.X5.XX1 :         -          :<br \/>\n:.........:............:................................:.......:........:.................:..............:....................:<br \/>\n<\/code><\/p>\n<p><code><br \/>\n% sl vs detail XXXXX64<br \/>\n:....................:.....................................................:<br \/>\n:               Name : Value                                               :<br \/>\n:....................:.....................................................:<br \/>\n:                 id : XXXXX64                                             :<br \/>\n:           hostname : test-20140516144201.example.jp                      :<br \/>\n:             status : Active                                              :<br \/>\n: active_transaction : -                                                   :<br \/>\n:              state : Running                                             :<br \/>\n:         datacenter : sjc01                                               :<br \/>\n:                 os : Ubuntu                                              :<br \/>\n:         os_version : 12.04-64 Minimal for VSI                            :<br \/>\n:              cores : 1                                                   :<br \/>\n:             memory : 1G                                                  :<br \/>\n:          public_ip : 108.168.XX8.XX7                                     :<br \/>\n:         private_ip : 10.88.X5.XX1                                        :<br \/>\n:       private_only : False                                               :<br \/>\n:        private_cpu : False                                               :<br \/>\n:            created : 2014-05-16T14:42:06+09:00                           :<br \/>\n:           modified : 2014-05-16T14:58:55+09:00                           :<br \/>\n:              vlans : :.........:........:........:                       :<br \/>\n:                    : :   type  : number :   id   :                       :<br \/>\n:                    : :.........:........:........:                       :<br \/>\n:                    : :  PUBLIC :  XX04  : XXXX26 :                       :<br \/>\n:                    : : PRIVATE :  XX52  : XXXX28 :                       :<br \/>\n:                    : :.........:........:........:                       :<br \/>\n:....................:.....................................................:<br \/>\n<\/code><\/p>\n<p>\u6b21\u306bsl\u30b3\u30de\u30f3\u30c9\u3067\u4f5c\u6210\u3057\u305f Virtual Server \u306b\u7d10\u4ed8\u3044\u3066\u3044\u308b Hardware Firewall \u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e<strong>server\/vlan id<\/strong>\u306fVirtual Server\u306e<strong>id<\/strong>\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p><code><br \/>\n% sl firewall list<br \/>\n:.............:................:..........:................:<br \/>\n: firewall id :      type      : features : server\/vlan id :<br \/>\n:.............:................:..........:................:<br \/>\n:  cci:XXX94  : CCI - standard :    -     :    XXXXX64     :<br \/>\n:.............:................:..........:................:<br \/>\n<\/code><\/p>\n<p>Hardware Firewall\u306e\u30eb\u30fc\u30eb\u306f\u307e\u3060\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p><code><br \/>\n% sl firewall detail cci:XXX94<br \/>\n:...:........:..........:........:..........:......:...........:<br \/>\n: # : action : protocol : src_ip : src_mask : dest : dest_mask :<br \/>\n:...:........:..........:........:..........:......:...........:<br \/>\n:...:........:..........:........:..........:......:...........:<br \/>\n<\/code><\/p>\n<p>softlayer-api-ruby-client \u304b\u3089\u3082 Virtual Server \u306b\u7d10\u4ed8\u3044\u305f Hardware Firewall \u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u6b21\u306f <a href=\"http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Account\">SoftLayer_Account<\/a> \u30b5\u30fc\u30d3\u30b9\u304b\u3089 <a href=\"https:\/\/github.com\/softlayer\/softlayer-python\/blob\/v3.1.0\/SoftLayer\/managers\/firewall.py#L171\">sl firewall detail \u30b3\u30de\u30f3\u30c9\u540c\u69d8\u306e\u30de\u30b9\u30af<\/a> \u3092\u8a2d\u5b9a\u3057\u3066\u30c7\u30fc\u30bf\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u3067\u3001Hardware Firewall \u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\n#!\/usr\/bin\/ruby<\/code><\/p>\n<p><code lang=\"ruby\"><code lang=\"ruby\"><\/code><\/code><\/p>\n<p>require 'softlayer_api'<br \/>\nrequire 'pp'<\/p>\n<p><code lang=\"ruby\"><code lang=\"ruby\"><\/code><\/code><\/p>\n<p>#<br \/>\n# fill your SoftLayer API username and API key<br \/>\n#<br \/>\napi_username = ENV['SOFTLAYER_API_USERNAME'] || 'YOUR_SOFTLAYER_API_USERNAME'<br \/>\napi_key = ENV['SOFTLAYER_API_KEY'] || 'YOUR_SOFTLAYER_API_KEY'<\/p>\n<p><code lang=\"ruby\"><code lang=\"ruby\"><\/code><\/code><\/p>\n<p>#<br \/>\n# http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Account<br \/>\n#<br \/>\naccount_service = SoftLayer::Service.new( 'SoftLayer_Account',<br \/>\n:username =&gt; api_username,<br \/>\n:api_key =&gt; api_key,<br \/>\n)<\/p>\n<p><code lang=\"ruby\"><code lang=\"ruby\"><\/code><\/code><\/p>\n<p>#<br \/>\n# https:\/\/github.com\/softlayer\/softlayer-python\/blob\/v3.1.0\/SoftLayer\/managers\/firewall.py#L171<br \/>\n#<br \/>\nmask=[<br \/>\n'networkVlans[' +<br \/>\n'firewallNetworkComponents, ' +<br \/>\n'networkVlanFirewall, ' +<br \/>\n'dedicatedFirewallFlag, ' +<br \/>\n'firewallGuestNetworkComponents, ' +<br \/>\n'firewallInterfaces, ' +<br \/>\n'firewallRules, ' +<br \/>\n'highAvailabilityFirewallFlag]'<br \/>\n# 'primarySubnet': None,<br \/>\n]<br \/>\nresponse = account_service.<br \/>\nobject_mask( 'mask[' + mask.join( ',' ) + ']' ).<br \/>\ngetObject()<\/p>\n<p><code lang=\"ruby\"><code lang=\"ruby\"><\/code><\/code><\/p>\n<p>pp response<\/p>\n<p><code lang=\"ruby\"><br \/>\n<\/code><\/p>\n<p><code lang=\"ruby\">#<br \/>\n# result<br \/>\n#<br \/>\n__END__<br \/>\n<\/code><\/p>\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068\u6b21\u306e\u3088\u3046\u306a\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\n{<br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n\"networkVlans\"=&gt;<br \/>\n[{\"accountId\"=&gt;XXXX78,<br \/>\n\"id\"=&gt;XXXX26,<br \/>\n\"modifyDate\"=&gt;\"2014-05-07T10:50:07+09:00\",<br \/>\n\"networkVrfId\"=&gt;nil,<br \/>\n\"primarySubnetId\"=&gt;XXXX98,<br \/>\n\"vlanNumber\"=&gt;XX04,<br \/>\n\"dedicatedFirewallFlag\"=&gt;0,<br \/>\n\"firewallGuestNetworkComponents\"=&gt;<br \/>\n[{\"guestNetworkComponentId\"=&gt;XXXXX66,<br \/>\n\"id\"=&gt;XXX94,<br \/>\n\"networkComponentId\"=&gt;nil,<br \/>\n\"status\"=&gt;\"bypass\",<br \/>\n\"guestNetworkComponent\"=&gt;<br \/>\n{\"createDate\"=&gt;\"2014-05-16T14:42:34+09:00\",<br \/>\n\"guestId\"=&gt;XXXXX64,<br \/>\n\"id\"=&gt;2242466,<br \/>\n\"macAddress\"=&gt;\"XX:XX:XX:XX:XX:94\",<br \/>\n\"maxSpeed\"=&gt;10,<br \/>\n\"modifyDate\"=&gt;\"2014-05-16T14:42:59+09:00\",<br \/>\n\"name\"=&gt;\"eth\",<br \/>\n\"networkId\"=&gt;XXXXX18,<br \/>\n\"port\"=&gt;1,<br \/>\n\"speed\"=&gt;10,<br \/>\n\"status\"=&gt;\"ACTIVE\",<br \/>\n\"uuid\"=&gt;\"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\",<br \/>\n\"guest\"=&gt;<br \/>\n{\"accountId\"=&gt;XXXX78,<br \/>\n\"createDate\"=&gt;\"2014-05-16T14:42:06+09:00\",<br \/>\n\"dedicatedAccountHostOnlyFlag\"=&gt;false,<br \/>\n\"domain\"=&gt;\"example.jp\",<br \/>\n\"fullyQualifiedDomainName\"=&gt;\"test-20140516144201.example.jp\",<br \/>\n\"hostname\"=&gt;\"test-20140516144201\",<br \/>\n\"id\"=&gt;XXXXX64,<br \/>\n\"lastPowerStateId\"=&gt;nil,<br \/>\n\"lastVerifiedDate\"=&gt;nil,<br \/>\n\"maxCpu\"=&gt;1,<br \/>\n\"maxCpuUnits\"=&gt;\"CORE\",<br \/>\n\"maxMemory\"=&gt;1024,<br \/>\n\"metricPollDate\"=&gt;nil,<br \/>\n\"modifyDate\"=&gt;\"2014-05-16T17:32:22+09:00\",<br \/>\n\"startCpus\"=&gt;1,<br \/>\n\"statusId\"=&gt;1001,<br \/>\n\"uuid\"=&gt;\"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\"}}}],<br \/>\n\"firewallInterfaces\"=&gt;<br \/>\n[{\"id\"=&gt;XX54, \"name\"=&gt;\"inside\"}, {\"id\"=&gt;XX55, \"name\"=&gt;\"outside\"}],<br \/>\n\"firewallNetworkComponents\"=&gt;[],<br \/>\n\"firewallRules\"=&gt;[],<br \/>\n\"highAvailabilityFirewallFlag\"=&gt;false},<br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n<\/code><\/p>\n<p>\u3053\u3053\u3067\u4e00\u65e6 API \u3067\u306f\u306a\u304f Web \u30dd\u30fc\u30bf\u30eb\u753b\u9762\u304b\u3089\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u30eb\u30fc\u30eb\u306e\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n[Devices]\u30e1\u30cb\u30e5\u30fc\u304b\u3089[Device List]\u3092\u9078\u3073\u3001\u4f5c\u6210\u3057\u305f Virtual Server \u3092\u9078\u629e\u3057\u3001[Firewall]\u30bf\u30d6\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<p><!-- softlayer-api-ruby-vs-hwfw-1-firewall.png \/\/--><br \/>\n<a href=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/05\/softlayer-api-ruby-vs-hwfw-1-firewall.png\"><img decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/05\/softlayer-api-ruby-vs-hwfw-1-firewall.png\" alt=\"softlayer-api-ruby-vs-hwfw-1-firewall\" \/><\/a><\/p>\n<p>Action: Permit\u3001Port Range: 22-22\u3001Protocol: TCP \u3068\u5165\u529b\u3057\u3001[Process Rules]\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u3066\u30eb\u30fc\u30eb\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001sl\u30b3\u30de\u30f3\u30c9\u3067\u30eb\u30fc\u30eb\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code><br \/>\n:...:........:..........:.........:..........:.....................:.................:<br \/>\n: # : action : protocol :  src_ip : src_mask :         dest        :    dest_mask    :<br \/>\n:...:........:..........:.........:..........:.....................:.................:<br \/>\n: 1 : permit :   tcp    : 0.0.0.0 : 0.0.0.0  : any on server:22-22 : 255.255.255.255 :<br \/>\n:...:........:..........:.........:..........:.....................:.................:<br \/>\n<\/code><\/p>\n<p>\u5148\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3082\u540c\u69d8\u306b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n\"firewallInterfaces\"=&gt;<br \/>\n[{\"id\"=&gt;4654, \"name\"=&gt;\"inside\"}, {\"id\"=&gt;4655, \"name\"=&gt;\"outside\"}],<br \/>\n\"firewallNetworkComponents\"=&gt;[],<br \/>\n\"firewallRules\"=&gt;<br \/>\n[{\"action\"=&gt;\"permit\",<br \/>\n\"destinationIpAddress\"=&gt;\"any on server\",<br \/>\n\"destinationIpCidr\"=&gt;32,<br \/>\n\"destinationIpSubnetMask\"=&gt;\"255.255.255.255\",<br \/>\n\"destinationPortRangeEnd\"=&gt;22,<br \/>\n\"destinationPortRangeStart\"=&gt;22,<br \/>\n\"id\"=&gt;XXXXX26,<br \/>\n\"orderValue\"=&gt;1,<br \/>\n\"protocol\"=&gt;\"tcp\",<br \/>\n\"sourceIpAddress\"=&gt;\"0.0.0.0\",<br \/>\n\"sourceIpCidr\"=&gt;0,<br \/>\n\"sourceIpSubnetMask\"=&gt;\"0.0.0.0\",<br \/>\n\"status\"=&gt;\"allow_edit\",<br \/>\n\"version\"=&gt;4}],<br \/>\n\"highAvailabilityFirewallFlag\"=&gt;false},<br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n<\/code><\/p>\n<p><strong>firewallRules<\/strong>\u304c\u66f4\u65b0\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u672c\u8a18\u4e8b\u3067\u306f <a href=\"http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Product_Order\/placeOrder\">SoftLayer_Product_Order::placeOrder<\/a> \u3092\u7528\u3044\u3066\u3001Hardware Firewall \u3064\u304d\u306e Virtual Server \u3092\u4f5c\u6210\u3057\u3001<a href=\"http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Account\">SoftLayer_Account<\/a> \u30b5\u30fc\u30d3\u30b9\u304b\u3089\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u30eb\u30fc\u30eb\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<br \/>\n\u6b21\u56de\u306f API \u304b\u3089\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u30eb\u30fc\u30eb\u3092\u64cd\u4f5c\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Virtual Server \u3068 Hardware Firewall \u3092 API \u7d4c\u7531\u3067\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 \u524d\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001SoftLayer_Product_Order::verifyOrder \u304a\u3088\u3073 SoftLay [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":4693,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[31,819,38],"tags":[],"class_list":["post-4626","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-higuchi","category-ruby","category-softlayer"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>softlayer-api-ruby-client \u3067 Virtual Server \u3068 Hardware Firewall \u3092\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b #softlayer - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"d-higuchi, Ruby, softlayer |Virtual Server \u3068 Hardware Firewall \u3092 API \u7d4c\u7531\u3067\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4626\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"softlayer-api-ruby-client \u3067 Virtual Server \u3068 Hardware Firewall \u3092\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b #softlayer - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"d-higuchi, Ruby, softlayer |Virtual Server \u3068 Hardware Firewall \u3092 API \u7d4c\u7531\u3067\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4626\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2014-06-02T02:35:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-29T03:50:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/05\/softlayer-api-ruby-vs-hwfw-1-firewall.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1194\" \/>\n\t<meta property=\"og:image:height\" content=\"491\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Daisuke Higuchi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daisuke Higuchi\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"6\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4626#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4626\"},\"author\":{\"name\":\"Daisuke Higuchi\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"headline\":\"softlayer-api-ruby-client \u3067 Virtual Server \u3068 Hardware Firewall \u3092\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b #softlayer\",\"datePublished\":\"2014-06-02T02:35:08+00:00\",\"dateModified\":\"2023-08-29T03:50:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4626\"},\"wordCount\":577,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4626#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2014\\\/05\\\/softlayer-api-ruby-vs-hwfw-1-firewall.png\",\"articleSection\":[\"d-higuchi\",\"Ruby\",\"softlayer\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4626\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4626\",\"name\":\"softlayer-api-ruby-client \u3067 Virtual Server \u3068 Hardware Firewall \u3092\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b #softlayer - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4626#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4626#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2014\\\/05\\\/softlayer-api-ruby-vs-hwfw-1-firewall.png\",\"datePublished\":\"2014-06-02T02:35:08+00:00\",\"dateModified\":\"2023-08-29T03:50:55+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"description\":\"d-higuchi, Ruby, softlayer |Virtual Server \u3068 Hardware Firewall \u3092 API \u7d4c\u7531\u3067\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4626#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4626\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4626#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2014\\\/05\\\/softlayer-api-ruby-vs-hwfw-1-firewall.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2014\\\/05\\\/softlayer-api-ruby-vs-hwfw-1-firewall.png\",\"width\":1194,\"height\":491},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4626#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u305d\u306e\u4ed6\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ruby\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"softlayer-api-ruby-client \u3067 Virtual Server \u3068 Hardware Firewall \u3092\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b #softlayer\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\",\"name\":\"Daisuke Higuchi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/d-higuchi-wp-icon-230x230.png\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/d-higuchi-wp-icon-230x230.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/d-higuchi-wp-icon-230x230.png\",\"caption\":\"Daisuke Higuchi\"},\"description\":\"Chef\u30fbDocker\u30fbMirantis\u88fd\u54c1\u306a\u3069\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"softlayer-api-ruby-client \u3067 Virtual Server \u3068 Hardware Firewall \u3092\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b #softlayer - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"d-higuchi, Ruby, softlayer |Virtual Server \u3068 Hardware Firewall \u3092 API \u7d4c\u7531\u3067\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4626","og_locale":"ja_JP","og_type":"article","og_title":"softlayer-api-ruby-client \u3067 Virtual Server \u3068 Hardware Firewall \u3092\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b #softlayer - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"d-higuchi, Ruby, softlayer |Virtual Server \u3068 Hardware Firewall \u3092 API \u7d4c\u7531\u3067\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","og_url":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4626","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2014-06-02T02:35:08+00:00","article_modified_time":"2023-08-29T03:50:55+00:00","og_image":[{"width":1194,"height":491,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/05\/softlayer-api-ruby-vs-hwfw-1-firewall.png","type":"image\/png"}],"author":"Daisuke Higuchi","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"Daisuke Higuchi","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"6\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4626#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4626"},"author":{"name":"Daisuke Higuchi","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"headline":"softlayer-api-ruby-client \u3067 Virtual Server \u3068 Hardware Firewall \u3092\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b #softlayer","datePublished":"2014-06-02T02:35:08+00:00","dateModified":"2023-08-29T03:50:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4626"},"wordCount":577,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4626#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/05\/softlayer-api-ruby-vs-hwfw-1-firewall.png","articleSection":["d-higuchi","Ruby","softlayer"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4626","url":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4626","name":"softlayer-api-ruby-client \u3067 Virtual Server \u3068 Hardware Firewall \u3092\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b #softlayer - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4626#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4626#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/05\/softlayer-api-ruby-vs-hwfw-1-firewall.png","datePublished":"2014-06-02T02:35:08+00:00","dateModified":"2023-08-29T03:50:55+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"description":"d-higuchi, Ruby, softlayer |Virtual Server \u3068 Hardware Firewall \u3092 API \u7d4c\u7531\u3067\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4626#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4626"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4626#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/05\/softlayer-api-ruby-vs-hwfw-1-firewall.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2014\/05\/softlayer-api-ruby-vs-hwfw-1-firewall.png","width":1194,"height":491},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4626#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u305d\u306e\u4ed6","item":"https:\/\/www.creationline.com\/tech-blog\/others"},{"@type":"ListItem","position":3,"name":"Ruby","item":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby"},{"@type":"ListItem","position":4,"name":"softlayer-api-ruby-client \u3067 Virtual Server \u3068 Hardware Firewall \u3092\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b #softlayer"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206","name":"Daisuke Higuchi","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","caption":"Daisuke Higuchi"},"description":"Chef\u30fbDocker\u30fbMirantis\u88fd\u54c1\u306a\u3069\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002","url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/4626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=4626"}],"version-history":[{"count":1,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/4626\/revisions"}],"predecessor-version":[{"id":65744,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/4626\/revisions\/65744"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/4693"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=4626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=4626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=4626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}