{"id":4887,"date":"2014-06-06T11:30:37","date_gmt":"2014-06-06T02:30:37","guid":{"rendered":"http:\/\/www.creationline.com\/?p=4887"},"modified":"2023-08-29T12:52:31","modified_gmt":"2023-08-29T03:52:31","slug":"softlayer-api-ruby-client-%e3%81%a7-portable-storage-san-%e3%82%92%e8%bf%bd%e5%8a%a0%e3%81%99%e3%82%8b-softlayer","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4887","title":{"rendered":"softlayer-api-ruby-client \u3067 Portable Storage (SAN) \u3092\u8ffd\u52a0\u3059\u308b #softlayer"},"content":{"rendered":"<h2>Portable Storage (SAN) \u3068\u306f<\/h2>\n<p>SoftLayer \u306e<a href=\"http:\/\/www.softlayer.com\/cloud-storage\">\u30b9\u30c8\u30ec\u30fc\u30b8<\/a>\u306b\u306f\u3055\u307e\u3056\u307e\u306a\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u672c\u8a18\u4e8b\u3067\u306f <a href=\"http:\/\/knowledgelayer.softlayer.com\/topic\/portable-storage\">Portable Storage<\/a> \u3092\u53d6\u308a\u6271\u3044\u307e\u3059\u3002<br \/>\n<a href=\"\/lab\/4254\">\u4ee5\u524d\u306e\u8a18\u4e8b<\/a> \u3067\u8efd\u304f\u89e6\u308c\u307e\u3057\u305f\u304c\u3001Portable Storage \u306f\u8907\u6570\u306e\u30b5\u30fc\u30d0\u3067\u4f7f\u3044\u56de\u3057\u53ef\u80fd\u306a\u30b9\u30c8\u30ec\u30fc\u30b8\u3067\u3059\u3002\u73fe\u72b6\u3067\u306f Portable Storage \u3068\u3057\u3066 SAN \u304c\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h2>softlayer-api-ruby-client \u3067 Portable Storage (SAN) \u3092\u6ce8\u6587\u3059\u308b\u306b\u306f<\/h2>\n<p>\u3082\u3061\u308d\u3093 Portable Storage (SAN) \u3082 softlayer-api-ruby-client \u3092\u7528\u3044\u3066\u6ce8\u6587\u304c\u53ef\u80fd\u3067\u3059\u3002\u6ce8\u6587\u306b\u306f <a href=\"\/lab\/4577\">\u5148\u306e\u8a18\u4e8b<\/a> \u306e\u3088\u3046\u306b <a href=\"http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Product_Order\/placeOrder\">SoftLayer_Product_Order::placeOrder<\/a> \u3092\u7528\u3044\u307e\u3059\u3002<br \/>\n\u3055\u3066\u3001Virtual Server \u306e\u6ce8\u6587\u306b\u306f\u30de\u30b8\u30c3\u30af\u30ca\u30f3\u30d0\u30fc\u3068\u3057\u3066 <strong>46<\/strong> \u304c\u5fc5\u8981\u3067\u3057\u305f\u3002Portable Storage \u3092\u8868\u3059\u30de\u30b8\u30c3\u30af\u30ca\u30f3\u30d0\u30fc\u306f\u4f55\u3067\u3057\u3087\u3046\u304b\u3002\u307e\u305a\u306f\u305d\u308c\u3092\u8abf\u3079\u306a\u304f\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n<h3>\u6ce8\u6587\u306e\u305f\u3081\u306e Package ID \u3092\u8abf\u3079\u308b<\/h3>\n<p>Virtual Server \u3084 Portable Storage \u306f <strong>Package<\/strong> \u3068\u3044\u3046\u5206\u985e\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u3057\u3066\u3053\u306e\u30de\u30b8\u30c3\u30af\u30ca\u30f3\u30d0\u30fc\u306f <strong>Package ID<\/strong> \u3068\u547c\u79f0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\nPackage ID \u3092\u53d6\u5f97\u3059\u308b\u306b\u306f <a href=\"http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Product_Package\">SoftLayer_Product_Package<\/a> \u30b5\u30fc\u30d3\u30b9\u306e <a href=\"http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Product_Package\/getAllObjects\">SoftLayer_Product_Package::getAllObjects<\/a> \u3092\u7528\u3044\u307e\u3059\u3002<br \/>\n\u6b21\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u898b\u3066\u304f\u3060\u3055\u3044\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_Product_Package<br \/>\n#<br \/>\nproduct_package_service = SoftLayer::Service.new( 'SoftLayer_Product_Package',<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# result<br \/>\n#<br \/>\npp product_package_service.getAllObjects<\/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\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n{\"description\"=&gt;<br \/>\n\"<\/code><\/p>\n<p><code lang=\"ruby\"><code lang=\"ruby\"><\/code><\/code><\/p>\n<div class=\"\\&quot;PageTopicSubHead\\&quot;\">Cloud Compute Instances<\/div>\n<p><code lang=\"ruby\"><br \/>\n<\/code><\/p>\n<p><code lang=\"ruby\">\",<br \/>\n\"firstOrderStepId\"=&gt;1,<br \/>\n\"id\"=&gt;46,<br \/>\n\"isActive\"=&gt;1,<br \/>\n\"name\"=&gt;\"Cloud Server\",<br \/>\n\"unitSize\"=&gt;1},<br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n{\"firstOrderStepId\"=&gt;1,<br \/>\n\"id\"=&gt;198,<br \/>\n\"isActive\"=&gt;1,<br \/>\n\"name\"=&gt;\"Portable Storage\",<br \/>\n\"unitSize\"=&gt;1},<br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n<\/code><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001Portable Storage \u306e Package ID \u306f <strong>198<\/strong> \u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002\u307e\u305f\u3001Virtual Server (\u65e7\u540d:Cloud Compute Instances) \u306e Package ID \u304c <strong>46<\/strong> \u3067\u3042\u308b\u3053\u3068\u3082\u3053\u308c\u304b\u3089\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<h3>\u6ce8\u6587\u306e\u305f\u3081\u306e Price ID \u3092\u8abf\u3079\u308b<\/h3>\n<p>Portable Storage \u306e Package ID \u304c\u308f\u304b\u3063\u305f\u3089\u3001\u6b21\u306f\u5b9f\u969b\u306b\u6ce8\u6587\u3059\u308b\u305f\u3081\u306e Price ID \u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002Portable Storage \u306e\u5834\u5408\u3001\u3069\u308c\u3060\u3051\u306e\u5bb9\u91cf\u3092\u6301\u3063\u305f SAN \u3092\u6ce8\u6587\u3059\u308b\u304b\u3001\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u5148\u306e\u8a18\u4e8b\u3068\u540c\u3058\u3088\u3046\u306b\u3001<a href=\"http:\/\/sldn.softlayer.com\/blog\/sthompson\/virtual-guest-ordering\">Virtual Guest Ordering<\/a> \u306b\u3042\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092 Portable Storage \u306b\u5408\u308f\u305b\u3066\u5909\u66f4\u3057\u3066\u53d6\u5f97\u3057\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>softlayer_product_package = SoftLayer::Service.new(\"SoftLayer_Product_Package\",<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>portable_storage_package = softlayer_product_package.object_with_id( 198 )<\/p>\n<p><code lang=\"ruby\"><code lang=\"ruby\"><\/code><\/code><\/p>\n<p>portable_storage_configuration = portable_storage_package.object_mask(\"isRequired\",\"itemCategory\").getConfiguration()<\/p>\n<p><code lang=\"ruby\"><code lang=\"ruby\"><\/code><\/code><\/p>\n<p>#<br \/>\n# http:\/\/sldn.softlayer.com\/reference\/datatypes\/SoftLayer_Product_Package_Order_Configuration<br \/>\n#<br \/>\nitem_prices = portable_storage_package.object_mask(\"id\", \"item.description\", \"categories.id\").getItemPrices()<\/p>\n<p><code lang=\"ruby\"><code lang=\"ruby\"><\/code><\/code><\/p>\n<p>portable_storage_configuration.each do |configuration_entry|<br \/>\nif configuration_entry['isRequired'] == 1<br \/>\nprint 'Required '<br \/>\nelse<br \/>\nprint 'Optional '<br \/>\nend<\/p>\n<p><code lang=\"ruby\"><code lang=\"ruby\"><\/code><\/code><\/p>\n<p>puts \"Category \\\"#{configuration_entry['itemCategory']['name']}\\\" -- #{configuration_entry['itemCategory']['id']}:\"<br \/>\ncategory_prices = item_prices.map do |item|<br \/>\nitem[\"categories\"].map do |category|<br \/>\nitem if category[\"id\"] == configuration_entry[\"itemCategory\"][\"id\"]<br \/>\nend if item.include?(\"categories\")<br \/>\nend.flatten.compact<br \/>\ncategory_prices.each do |category_price|<br \/>\nputs \"\\t #{category_price['id']} -- #{category_price['item']['description']}\"<br \/>\nend<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\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\nRequired Category \"Second Disk\" -- 82:<br \/>\n2264 -- 200 GB (SAN)<br \/>\n2259 -- 50 GB (SAN)<br \/>\n2272 -- 250 GB (SAN)<br \/>\n2279 -- 1,000 GB (SAN)<br \/>\n2266 -- 350 GB (SAN)<br \/>\n2278 -- 750 GB (SAN)<br \/>\n2257 -- 30 GB (SAN)<br \/>\n2265 -- 300 GB (SAN)<br \/>\n2281 -- 2,000 GB (SAN)<br \/>\n2258 -- 40 GB (SAN)<br \/>\n2260 -- 75 GB (SAN)<br \/>\n2270 -- 500 GB (SAN)<br \/>\n21861 -- 25 GB (SAN)<br \/>\n2256 -- 20 GB (SAN)<br \/>\n2261 -- 125 GB (SAN)<br \/>\n2280 -- 1,500 GB (SAN)<br \/>\n2262 -- 150 GB (SAN)<br \/>\n2255 -- 10 GB (SAN)<br \/>\n2263 -- 175 GB (SAN)<br \/>\n2267 -- 400 GB (SAN)<br \/>\n2277 -- 100 GB (SAN)<br \/>\n<\/code><\/p>\n<p>\u3053\u308c\u3067 Portable Storage (SAN) \u3092\u6ce8\u6587\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u30de\u30b8\u30c3\u30af\u30ca\u30f3\u30d0\u30fc\u306f\u63c3\u3044\u307e\u3057\u305f\u3002<\/p>\n<h2>softlayer-api-ruby-client \u3067 Portable Storage (SAN) \u306e\u6ce8\u6587\u5185\u5bb9\u3092\u691c\u8a3c\u3059\u308b<\/h2>\n<p>Portable Storage \u306e\u6ce8\u6587\u5185\u5bb9\u306f <a href=\"# https:\/\/sldn.softlayer.com\/reference\/datatypes\/SoftLayer_Container_Product_Order_Virtual_Disk_Image\">SoftLayer_Container_Product_Order_Virtual_Disk_Image<\/a> \u30c7\u30fc\u30bf\u30bf\u30a4\u30d7\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u6b21\u306e\u3088\u3046\u306a\u5f62\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002<strong>diskDescription<\/strong> \u306b\u306f\u4f55\u304b\u9069\u5f53\u306a\u8aac\u660e\u6587\u3092\u5165\u529b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\nproduct_order = {<br \/>\n'complexType' =&gt; 'SoftLayer_Container_Product_Order_Virtual_Disk_Image',<br \/>\n'quantity' =&gt; 1,<br \/>\n'location' =&gt; 168642, # NOTE: 168642 is 'sjc01' location ID<br \/>\n'packageId' =&gt; 198,   # NOTE: 198 is 'Portable Storage' package ID<br \/>\n'useHourlyPricing' =&gt; false,<br \/>\n'diskDescription' =&gt; 'Portable Storage 10GB SAN', # Required<br \/>\n'prices' =&gt; [<br \/>\n{ 'id' =&gt; 2255 }, # 10 GB (SAN)<br \/>\n]<br \/>\n}<br \/>\n<\/code><\/p>\n<p>\u5148\u306e\u8a18\u4e8b\u3068\u540c\u69d8\u306b\u3001<a href=\"http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Product_Order\/verifyOrder\">SoftLayer_Product_Order::verifyOrder<\/a> \u3067\u6ce8\u6587\u5185\u5bb9\u3092\u691c\u8a3c\u3057\u307e\u3057\u3087\u3046\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# https:\/\/sldn.softlayer.com\/reference\/datatypes\/SoftLayer_Container_Product_Order_Virtual_Disk_Image<br \/>\n#<br \/>\nproduct_order = {<br \/>\n'complexType' =&gt; 'SoftLayer_Container_Product_Order_Virtual_Disk_Image',<br \/>\n'quantity' =&gt; 1,<br \/>\n'location' =&gt; 168642, # NOTE: 168642 is 'sjc01' location ID<br \/>\n'packageId' =&gt; 198, # NOTE: 198 is 'Portable Storage' package ID<br \/>\n'useHourlyPricing' =&gt; false,<br \/>\n'diskDescription' =&gt; 'Portable Storage 10GB SAN', # Required<br \/>\n'prices' =&gt; [<br \/>\n{ 'id' =&gt; 2255 }, # 10 GB (SAN)<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 \/>\npp result<br \/>\nputs \"The order was verified successfully\"<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>exit<\/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\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<br \/>\n\u6ce8\u6587\u5185\u5bb9\u304c\u554f\u984c\u306a\u3044\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\n{\"bigDataOrderFlag\"=&gt;false,<br \/>\n\"billingOrderItemId\"=&gt;nil,<br \/>\n\"containerSplHash\"=&gt;\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",<br \/>\n\"currencyShortName\"=&gt;\"USD\",<br \/>\n\"extendedHardwareTesting\"=&gt;nil,<br \/>\n\"imageTemplateId\"=&gt;nil,<br \/>\n\"isManagedOrder\"=&gt;0,<br \/>\n\"location\"=&gt;\"168642\",<br \/>\n\"locationObject\"=&gt;<br \/>\n{\"id\"=&gt;168642,<br \/>\n\"longName\"=&gt;\"San Jose 1\",<br \/>\n\"name\"=&gt;\"sjc01\",<br \/>\n\"activePresaleEvents\"=&gt;[]},<br \/>\n\"packageId\"=&gt;198,<br \/>\n\"postTaxRecurring\"=&gt;\"4.57\",<br \/>\n\"postTaxRecurringHourly\"=&gt;\"0\",<br \/>\n\"postTaxRecurringMonthly\"=&gt;\"4.57\",<br \/>\n\"postTaxSetup\"=&gt;\"0\",<br \/>\n\"preTaxRecurring\"=&gt;\"4.57\",<br \/>\n\"preTaxRecurringHourly\"=&gt;\"0\",<br \/>\n\"preTaxRecurringMonthly\"=&gt;\"4.57\",<br \/>\n\"preTaxSetup\"=&gt;\"0\",<br \/>\n\"presetId\"=&gt;nil,<br \/>\n\"prices\"=&gt;<br \/>\n[{\"currentPriceFlag\"=&gt;nil,<br \/>\n\"hourlyRecurringFee\"=&gt;\".007\",<br \/>\n\"id\"=&gt;2255,<br \/>\n\"itemId\"=&gt;1213,<br \/>\n\"laborFee\"=&gt;\"0\",<br \/>\n\"onSaleFlag\"=&gt;nil,<br \/>\n\"oneTimeFee\"=&gt;\"0\",<br \/>\n\"oneTimeFeeTax\"=&gt;\"0\",<br \/>\n\"proratedRecurringFee\"=&gt;\"3.8083333333333\",<br \/>\n\"proratedRecurringFeeTax\"=&gt;\"0\",<br \/>\n\"quantity\"=&gt;nil,<br \/>\n\"recurringFee\"=&gt;\"4.57\",<br \/>\n\"recurringFeeTax\"=&gt;\"0\",<br \/>\n\"setupFee\"=&gt;\"0\",<br \/>\n\"sort\"=&gt;0,<br \/>\n\"categories\"=&gt;<br \/>\n[{\"categoryCode\"=&gt;\"guest_disk1\",<br \/>\n\"id\"=&gt;82,<br \/>\n\"name\"=&gt;\"Second Disk\",<br \/>\n\"quantityLimit\"=&gt;0},<br \/>\n{\"categoryCode\"=&gt;\"guest_disk2\",<br \/>\n\"id\"=&gt;92,<br \/>\n\"name\"=&gt;\"Third Disk\",<br \/>\n\"quantityLimit\"=&gt;0},<br \/>\n{\"categoryCode\"=&gt;\"guest_disk3\",<br \/>\n\"id\"=&gt;93,<br \/>\n\"name\"=&gt;\"Fourth Disk\",<br \/>\n\"quantityLimit\"=&gt;0},<br \/>\n{\"categoryCode\"=&gt;\"guest_disk4\",<br \/>\n\"id\"=&gt;116,<br \/>\n\"name\"=&gt;\"Fifth Disk\",<br \/>\n\"quantityLimit\"=&gt;0}],<br \/>\n\"item\"=&gt;<br \/>\n{\"capacity\"=&gt;\"10\",<br \/>\n\"description\"=&gt;\"10 GB (SAN)\",<br \/>\n\"id\"=&gt;1213,<br \/>\n\"softwareDescriptionId\"=&gt;nil,<br \/>\n\"units\"=&gt;\"GB\",<br \/>\n\"upgradeItemId\"=&gt;nil,<br \/>\n\"bundle\"=&gt;[]}}],<br \/>\n\"primaryDiskPartitionId\"=&gt;nil,<br \/>\n\"privateCloudOrderFlag\"=&gt;false,<br \/>\n\"proratedInitialCharge\"=&gt;\"3.81\",<br \/>\n\"proratedOrderTotal\"=&gt;\"3.81\",<br \/>\n\"quantity\"=&gt;1,<br \/>\n\"resourceGroupId\"=&gt;nil,<br \/>\n\"resourceGroupTemplateId\"=&gt;nil,<br \/>\n\"sendQuoteEmailFlag\"=&gt;nil,<br \/>\n\"serverCoreCount\"=&gt;nil,<br \/>\n\"sourceVirtualGuestId\"=&gt;nil,<br \/>\n\"sshKeys\"=&gt;[],<br \/>\n\"stepId\"=&gt;nil,<br \/>\n\"storageGroups\"=&gt;[],<br \/>\n\"totalRecurringTax\"=&gt;\"0\",<br \/>\n\"totalSetupTax\"=&gt;\"0\",<br \/>\n\"useHourlyPricing\"=&gt;false,<br \/>\n\"diskDescription\"=&gt;\"Portable Storage 10GB SAN\"}<br \/>\nThe order was verified successfully<br \/>\n<\/code><\/p>\n<h2>softlayer-api-ruby-client \u3067 Portable Storage (SAN) \u3092\u6ce8\u6587\u3059\u308b<\/h2>\n<p>\u3067\u306f\u3001\u691c\u8a3c\u3057\u305f\u6ce8\u6587\u5185\u5bb9\u3092\u5b9f\u969b\u306b\u6ce8\u6587\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u6b21\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\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# https:\/\/sldn.softlayer.com\/reference\/datatypes\/SoftLayer_Container_Product_Order_Virtual_Disk_Image<br \/>\n#<br \/>\nproduct_order = {<br \/>\n'complexType' =&gt; 'SoftLayer_Container_Product_Order_Virtual_Disk_Image',<br \/>\n'quantity' =&gt; 1,<br \/>\n'location' =&gt; 168642, # NOTE: 168642 is 'sjc01' location ID<br \/>\n'packageId' =&gt; 198, # NOTE: 198 is 'Portable Storage' package ID<br \/>\n'useHourlyPricing' =&gt; false,<br \/>\n'diskDescription' =&gt; 'Portable Storage 10GB SAN', # Required<br \/>\n'prices' =&gt; [<br \/>\n{ 'id' =&gt; 2255 }, # 10 GB (SAN)<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 \/>\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\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\nThe order was verified successfully<br \/>\nThe order was placed successfully<br \/>\n{\"orderDate\"=&gt;\"2014-06-03T16:11:41+09:00\",<br \/>\n\"orderDetails\"=&gt;<br \/>\n{\"bigDataOrderFlag\"=&gt;false,<br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n\"billingOrderItemId\"=&gt;nil,<br \/>\n\"containerSplHash\"=&gt;\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",<br \/>\n\"currencyShortName\"=&gt;\"USD\",<br \/>\n\"extendedHardwareTesting\"=&gt;nil,<br \/>\n\"imageTemplateId\"=&gt;nil,<br \/>\n\"isManagedOrder\"=&gt;0,<br \/>\n\"itemCategoryQuestionAnswers\"=&gt;[],<br \/>\n\"location\"=&gt;\"168642\",<br \/>\n\"locationObject\"=&gt;<br \/>\n{\"id\"=&gt;168642,<br \/>\n\"longName\"=&gt;\"San Jose 1\",<br \/>\n\"name\"=&gt;\"sjc01\",<br \/>\n\"activePresaleEvents\"=&gt;[]},<br \/>\n\"packageId\"=&gt;198,<br \/>\n\"paymentType\"=&gt;\"CARD_ON_FILE\",<br \/>\n\"postTaxRecurring\"=&gt;\"4.57\",<br \/>\n\"postTaxRecurringHourly\"=&gt;\"0\",<br \/>\n\"postTaxRecurringMonthly\"=&gt;\"4.57\",<br \/>\n\"postTaxSetup\"=&gt;\"0\",<br \/>\n\"preTaxRecurring\"=&gt;\"4.57\",<br \/>\n\"preTaxRecurringHourly\"=&gt;\"0\",<br \/>\n\"preTaxRecurringMonthly\"=&gt;\"4.57\",<br \/>\n\"preTaxSetup\"=&gt;\"0\",<br \/>\n\"presetId\"=&gt;nil,<br \/>\n\"prices\"=&gt;<br \/>\n[{\"currentPriceFlag\"=&gt;nil,<br \/>\n\"hourlyRecurringFee\"=&gt;\".007\",<br \/>\n\"id\"=&gt;2255,<br \/>\n\"itemId\"=&gt;1213,<br \/>\n\"laborFee\"=&gt;\"0\",<br \/>\n\"onSaleFlag\"=&gt;nil,<br \/>\n\"oneTimeFee\"=&gt;\"0\",<br \/>\n\"oneTimeFeeTax\"=&gt;\"0\",<br \/>\n\"proratedRecurringFee\"=&gt;\"3.656\",<br \/>\n\"proratedRecurringFeeTax\"=&gt;\"0\",<br \/>\n\"quantity\"=&gt;nil,<br \/>\n\"recurringFee\"=&gt;\"4.57\",<br \/>\n\"recurringFeeTax\"=&gt;\"0\",<br \/>\n\"setupFee\"=&gt;\"0\",<br \/>\n\"sort\"=&gt;0,<br \/>\n\"categories\"=&gt;<br \/>\n[{\"categoryCode\"=&gt;\"guest_disk1\",<br \/>\n\"id\"=&gt;82,<br \/>\n\"name\"=&gt;\"Second Disk\",<br \/>\n\"quantityLimit\"=&gt;0},<br \/>\n{\"categoryCode\"=&gt;\"guest_disk2\",<br \/>\n\"id\"=&gt;92,<br \/>\n\"name\"=&gt;\"Third Disk\",<br \/>\n\"quantityLimit\"=&gt;0},<br \/>\n{\"categoryCode\"=&gt;\"guest_disk3\",<br \/>\n\"id\"=&gt;93,<br \/>\n\"name\"=&gt;\"Fourth Disk\",<br \/>\n\"quantityLimit\"=&gt;0},<br \/>\n{\"categoryCode\"=&gt;\"guest_disk4\",<br \/>\n\"id\"=&gt;116,<br \/>\n\"name\"=&gt;\"Fifth Disk\",<br \/>\n\"quantityLimit\"=&gt;0}],<br \/>\n\"item\"=&gt;<br \/>\n{\"capacity\"=&gt;\"10\",<br \/>\n\"description\"=&gt;\"10 GB (SAN)\",<br \/>\n\"id\"=&gt;1213,<br \/>\n\"softwareDescriptionId\"=&gt;nil,<br \/>\n\"units\"=&gt;\"GB\",<br \/>\n\"upgradeItemId\"=&gt;nil,<br \/>\n\"bundle\"=&gt;[]}}],<br \/>\n\"primaryDiskPartitionId\"=&gt;nil,<br \/>\n\"privateCloudOrderFlag\"=&gt;false,<br \/>\n\"properties\"=&gt;[],<br \/>\n\"proratedInitialCharge\"=&gt;\"3.66\",<br \/>\n\"proratedOrderTotal\"=&gt;\"3.66\",<br \/>\n\"quantity\"=&gt;1,<br \/>\n\"resourceGroupId\"=&gt;nil,<br \/>\n\"resourceGroupTemplateId\"=&gt;nil,<br \/>\n\"sendQuoteEmailFlag\"=&gt;nil,<br \/>\n\"serverCoreCount\"=&gt;nil,<br \/>\n\"sourceVirtualGuestId\"=&gt;nil,<br \/>\n\"sshKeys\"=&gt;[],<br \/>\n\"stepId\"=&gt;nil,<br \/>\n\"storageGroups\"=&gt;[],<br \/>\n\"totalRecurringTax\"=&gt;\"0\",<br \/>\n\"totalSetupTax\"=&gt;\"0\",<br \/>\n\"useHourlyPricing\"=&gt;false,<br \/>\n\"diskDescription\"=&gt;\"Portable Storage 10GB SAN\"},<br \/>\n\"orderId\"=&gt;XXXXX46,<br \/>\n\"placedOrder\"=&gt;<br \/>\n{\"accountId\"=&gt;XXXX78,<br \/>\n\"createDate\"=&gt;\"2014-06-03T16:11:40+09:00\",<br \/>\n\"id\"=&gt;XXXXX46,<br \/>\n\"impersonatingUserRecordId\"=&gt;nil,<br \/>\n\"modifyDate\"=&gt;nil,<br \/>\n\"orderQuoteId\"=&gt;nil,<br \/>\n\"orderTypeId\"=&gt;4,<br \/>\n\"presaleEventId\"=&gt;nil,<br \/>\n\"privateCloudOrderFlag\"=&gt;false,<br \/>\n\"status\"=&gt;\"PENDING_AUTO_APPROVAL\",<br \/>\n\"userRecordId\"=&gt;XXXX42,<br \/>\n\"account\"=&gt;<br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n\"items\"=&gt;<br \/>\n[{\"categoryCode\"=&gt;\"guest_disk1\",<br \/>\n\"description\"=&gt;\"10 GB (SAN)\",<br \/>\n\"id\"=&gt;XXXXXX38,<br \/>\n\"itemId\"=&gt;1213,<br \/>\n\"itemPriceId\"=&gt;\"2255\",<br \/>\n\"laborFee\"=&gt;\"0\",<br \/>\n\"laborFeeTaxRate\"=&gt;\"0\",<br \/>\n\"oneTimeFee\"=&gt;\"0\",<br \/>\n\"oneTimeFeeTaxRate\"=&gt;\"0\",<br \/>\n\"parentId\"=&gt;nil,<br \/>\n\"promoCodeId\"=&gt;nil,<br \/>\n\"quantity\"=&gt;nil,<br \/>\n\"recurringFee\"=&gt;\"4.57\",<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;\"guest_disk1\",<br \/>\n\"id\"=&gt;82,<br \/>\n\"name\"=&gt;\"Second Disk\",<br \/>\n\"quantityLimit\"=&gt;0},<br \/>\n\"children\"=&gt;[],<br \/>\n\"location\"=&gt;{\"id\"=&gt;168642, \"longName\"=&gt;\"San Jose 1\", \"name\"=&gt;\"sjc01\"},<br \/>\n\"order\"=&gt;nil,<br \/>\n\"storageGroups\"=&gt;[]}],<br \/>\n\"orderTopLevelItems\"=&gt;<br \/>\n[{\"categoryCode\"=&gt;\"guest_disk1\",<br \/>\n\"description\"=&gt;\"10 GB (SAN)\",<br \/>\n\"id\"=&gt;XXXXXX38,<br \/>\n\"itemId\"=&gt;1213,<br \/>\n\"itemPriceId\"=&gt;\"2255\",<br \/>\n\"laborFee\"=&gt;\"0\",<br \/>\n\"laborFeeTaxRate\"=&gt;\"0\",<br \/>\n\"oneTimeFee\"=&gt;\"0\",<br \/>\n\"oneTimeFeeTaxRate\"=&gt;\"0\",<br \/>\n\"parentId\"=&gt;nil,<br \/>\n\"promoCodeId\"=&gt;nil,<br \/>\n\"quantity\"=&gt;nil,<br \/>\n\"recurringFee\"=&gt;\"4.57\",<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;\"guest_disk1\",<br \/>\n\"id\"=&gt;82,<br \/>\n\"name\"=&gt;\"Second Disk\",<br \/>\n\"quantityLimit\"=&gt;0},<br \/>\n\"children\"=&gt;[],<br \/>\n\"location\"=&gt;{\"id\"=&gt;168642, \"longName\"=&gt;\"San Jose 1\", \"name\"=&gt;\"sjc01\"},<br \/>\n\"order\"=&gt;nil,<br \/>\n\"storageGroups\"=&gt;[]}],<br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n<\/code><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b Portable Storage 10GB SAN \u304c\u6ce8\u6587\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<h2>softlayer-api-ruby-client \u3067 Portable Storage (SAN) \u3092\u78ba\u8a8d\u3059\u308b<\/h2>\n<p>\u30dd\u30fc\u30bf\u30eb\u306e <a href=\"https:\/\/control.softlayer.com\/storage\/portable\">Portable Storage<\/a> \u304b\u3089\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u304c\u3001softlayer-api-ruby-client \u304b\u3089\u3082\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n<a href=\"http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Account\">SoftLayer_Account<\/a> \u30b5\u30fc\u30d3\u30b9\u306e <a href=\"http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Account\/getPortableStorageVolumes\">SoftLayer_Account::getPortableStorageVolumes<\/a> \u3067 Portable Storage \u306e\u4e00\u89a7\u304c\u78ba\u8a8d\u3067\u304d\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\/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# result<br \/>\n#<br \/>\npp account_service.getPortableStorageVolumes<\/p>\n<p><code lang=\"ruby\"><br \/>\n<\/code><\/p>\n<p><code lang=\"ruby\">__END__<br \/>\n<\/code><\/p>\n<p>\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u5148\u306b\u6ce8\u6587\u3057\u305f Portable Storage \u306e\u5185\u5bb9\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\n[{\"capacity\"=&gt;10,<br \/>\n\"createDate\"=&gt;\"2014-06-03T16:11:48+09:00\",<br \/>\n\"description\"=&gt;\"Portable Storage 10GB SAN\",<br \/>\n\"id\"=&gt;XXXXX50,<br \/>\n\"modifyDate\"=&gt;\"2014-06-03T16:11:52+09:00\",<br \/>\n\"name\"=&gt;\"Portable Storage 10GB SAN\",<br \/>\n\"parentId\"=&gt;nil,<br \/>\n\"storageRepositoryId\"=&gt;XXXXXX60,<br \/>\n\"typeId\"=&gt;241,<br \/>\n\"units\"=&gt;\"GB\",<br \/>\n\"uuid\"=&gt;\"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\"}]<br \/>\n<\/code><\/p>\n<h2>softlayer-api-ruby-client \u3067 Portable Storage (SAN) \u3092 Virtual Server \u306b\u30a2\u30bf\u30c3\u30c1\u3059\u308b<\/h2>\n<p>\u3067\u306f\u3001\u3053\u306e Portable Storage \u3092 Virtual Server \u306b\u30a2\u30bf\u30c3\u30c1\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<a href=\"http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Virtual_Guest\/attachDiskImage\">SoftLayer_Virtual_Guest::attachDiskImage<\/a> \u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\u6b21\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e VIRTUAL_GUEST_ID \u306f\u30a2\u30bf\u30c3\u30c1\u5148\u306e Virtual Server \u306e ID\u3001PORTABLE_STORAGE_ID \u306f\u4eca\u78ba\u8a8d\u3057\u305f Portable Storage \u306e <strong>id<\/strong> \u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u306a\u304a\u3001\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u969b\u306f Virtual Server \u3092\u505c\u6b62\u3057\u3066\u304b\u3089\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u3055\u3082\u306a\u3044\u3068\u3001\u5b9f\u884c\u3057\u305f\u76f4\u5f8c\u306b Virtual Server \u306f\u81ea\u52d5\u7684\u306b\u518d\u8d77\u52d5\u3057\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# fill your SoftLayer Virtual Guest ID and Portable Storage ID<br \/>\n#<br \/>\nVIRTUAL_GUEST_ID=0<br \/>\nPORTABLE_STORAGE_ID=0<\/p>\n<p><code lang=\"ruby\"><code lang=\"ruby\"><\/code><\/code><\/p>\n<p>#<br \/>\n# http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Virtual_Guest<br \/>\n#<br \/>\nvirtual_guest_service = SoftLayer::Service.new( 'SoftLayer_Virtual_Guest',<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# result<br \/>\n#<br \/>\npp virtual_guest_service.object_with_id( VIRTUAL_GUEST_ID ).attachDiskImage( PORTABLE_STORAGE_ID )<\/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\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\n{\"createDate\"=&gt;\"2014-06-03T17:19:02+09:00\",<br \/>\n\"elapsedSeconds\"=&gt;0,<br \/>\n\"guestId\"=&gt;XXXXX64,<br \/>\n\"hardwareId\"=&gt;nil,<br \/>\n\"id\"=&gt;XXXXX40,<br \/>\n\"modifyDate\"=&gt;\"2014-06-03T17:19:02+09:00\",<br \/>\n\"statusChangeDate\"=&gt;\"2014-06-03T17:19:02+09:00\",<br \/>\n\"transactionGroup\"=&gt;<br \/>\n{\"averageTimeToComplete\"=&gt;\"1.38\", \"name\"=&gt;\"Cloud Disk Image Attach\"},<br \/>\n\"transactionStatus\"=&gt;<br \/>\n{\"friendlyName\"=&gt;\"Cloud Disk Image Attach\",<br \/>\n\"name\"=&gt;\"CLOUD_DISK_IMAGE_ATTACH\"}}<br \/>\n<\/code><\/p>\n<p>\u300c<a href=\"\/lab\/4542\">softlayer-api-ruby-client \u3067 Virtual Server \u3092\u4f5c\u6210\u30fb\u95b2\u89a7\u30fb\u7834\u68c4\u3059\u308b<\/a>\u300d\u3067\u7528\u3044\u305f Virtual Server \u306e\u95b2\u89a7\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n\"blockDevices\"=&gt;<br \/>\n[{\"bootableFlag\"=&gt;1,<br \/>\n\"createDate\"=&gt;\"2014-05-16T14:43:42+09:00\",<br \/>\n\"device\"=&gt;\"0\",<br \/>\n\"diskImageId\"=&gt;XXXXX26,<br \/>\n\"guestId\"=&gt;XXXXX64,<br \/>\n\"hotPlugFlag\"=&gt;0,<br \/>\n\"id\"=&gt;XXXXX54,<br \/>\n\"modifyDate\"=&gt;nil,<br \/>\n\"mountMode\"=&gt;\"RW\",<br \/>\n\"mountType\"=&gt;\"Disk\",<br \/>\n\"statusId\"=&gt;1,<br \/>\n\"uuid\"=&gt;\"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\"},<br \/>\n{\"bootableFlag\"=&gt;0,<br \/>\n\"createDate\"=&gt;\"2014-05-16T14:42:58+09:00\",<br \/>\n\"device\"=&gt;\"1\",<br \/>\n\"diskImageId\"=&gt;XXXXX28,<br \/>\n\"guestId\"=&gt;XXXXX64,<br \/>\n\"hotPlugFlag\"=&gt;0,<br \/>\n\"id\"=&gt;XXXXX52,<br \/>\n\"modifyDate\"=&gt;nil,<br \/>\n\"mountMode\"=&gt;\"RW\",<br \/>\n\"mountType\"=&gt;\"Disk\",<br \/>\n\"statusId\"=&gt;1,<br \/>\n\"uuid\"=&gt;\"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\"},<br \/>\n{\"bootableFlag\"=&gt;0,<br \/>\n\"createDate\"=&gt;\"2014-06-03T17:19:37+09:00\",<br \/>\n\"device\"=&gt;\"2\",<br \/>\n\"diskImageId\"=&gt;XXXXX50,<br \/>\n\"guestId\"=&gt;XXXXX64,<br \/>\n\"hotPlugFlag\"=&gt;0,<br \/>\n\"id\"=&gt;XXXXX42,<br \/>\n\"modifyDate\"=&gt;nil,<br \/>\n\"mountMode\"=&gt;\"RW\",<br \/>\n\"mountType\"=&gt;\"Disk\",<br \/>\n\"statusId\"=&gt;1,<br \/>\n\"uuid\"=&gt;\"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\"}],<br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n<\/code><\/p>\n<p>Portable Storage ID \u3092\u6301\u3063\u305f\u30d6\u30ed\u30c3\u30af\u30c7\u30d0\u30a4\u30b9\u304c1\u3064\u5897\u3048\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<br \/>\n\u6b21\u306b\u3001Virtual Server \u3092\u8d77\u52d5\u3057\u3066 \/var\/log\/dmesg.0 \u3068 \/var\/log\/dmesg \u306e\u5dee\u5206\u3092\u53d6\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code lang=\"diff\"><br \/>\n@@ -171,14 +172,14 @@<br \/>\ntun: (C) 1999-2004 Max Krasnyansky &lt;maxk@qualcomm.com&gt;<br \/>\nPPP generic driver version 2.4.2<br \/>\nInitialising Xen virtual ethernet driver.<br \/>\n-  blkfront: xvda: barrier: enabled<br \/>\n+  blkfront: xvdc: barrier: enabled<br \/>\n+  xvdc: unknown partition table<br \/>\nehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver<br \/>\nohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver<br \/>\nuhci_hcd: USB Universal Host Controller Interface driver<br \/>\nusbcore: registered new interface driver libusual<br \/>\ni8042: PNP: No PS\/2 controller found. Probing ports directly.<br \/>\ni8042: No controller found<br \/>\n-  xvda: xvda1 xvda2<br \/>\nmousedev: PS\/2 mouse device common for all mice<br \/>\nrtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0<br \/>\nrtc_cmos: probe of rtc_cmos failed with error -38<br \/>\n&lt;\/maxk@qualcomm.com&gt;<\/code><\/p>\n<p>xvdc \u304c\u5897\u3048\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002fdisk \u3067\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nroot@test-20140516144201:~# fdisk -l \/dev\/xvdc<\/code><\/p>\n<p><code lang=\"bash\"><code lang=\"bash\"><\/code><\/code><\/p>\n<p>Disk \/dev\/xvdc: 10.7 GB, 10737418240 bytes<br \/>\n255 heads, 63 sectors\/track, 1305 cylinders, total 20971520 sectors<br \/>\nUnits = sectors of 1 * 512 = 512 bytes<br \/>\nSector size (logical\/physical): 512 bytes \/ 512 bytes<br \/>\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes<br \/>\nDisk identifier: 0x00000000<\/p>\n<p><code lang=\"bash\"><br \/>\n<\/code><\/p>\n<p><code lang=\"bash\">Disk \/dev\/xvdc doesn't contain a valid partition table<br \/>\nroot@test-20140516144201:~#<br \/>\n<\/code><\/p>\n<p>\u30a2\u30bf\u30c3\u30c1\u3057\u305f Portable Storage \u306e 10GB SAN \u306e\u3088\u3046\u3067\u3059\u3002<br \/>\n\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\u3068\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u69cb\u7bc9\u3092\u884c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nroot@test-20140516144201:~# fdisk \/dev\/xvdc<\/code><\/p>\n<p><code lang=\"bash\"><code lang=\"bash\"><\/code><\/code><\/p>\n<p>Command (m for help): n<br \/>\nPartition type:<br \/>\np primary (0 primary, 0 extended, 4 free)<br \/>\ne extended<br \/>\nSelect (default p): p<br \/>\nPartition number (1-4, default 1):<br \/>\nUsing default value 1<br \/>\nFirst sector (2048-20971519, default 2048):<br \/>\nUsing default value 2048<br \/>\nLast sector, +sectors or +size{K,M,G} (2048-20971519, default 20971519):<br \/>\nUsing default value 20971519<\/p>\n<p><code lang=\"bash\"><code lang=\"bash\"><\/code><\/code><\/p>\n<p>Command (m for help): p<\/p>\n<p><code lang=\"bash\"><code lang=\"bash\"><\/code><\/code><\/p>\n<p>Disk \/dev\/xvdc: 10.7 GB, 10737418240 bytes<br \/>\n255 heads, 63 sectors\/track, 1305 cylinders, total 20971520 sectors<br \/>\nUnits = sectors of 1 * 512 = 512 bytes<br \/>\nSector size (logical\/physical): 512 bytes \/ 512 bytes<br \/>\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes<br \/>\nDisk identifier: 0x8a3165e5<\/p>\n<p><code lang=\"bash\"><code lang=\"bash\"><\/code><\/code><\/p>\n<p>Device Boot Start End Blocks Id System<br \/>\n\/dev\/xvdc1 2048 20971519 10484736 83 Linux<\/p>\n<p><code lang=\"bash\"><code lang=\"bash\"><\/code><\/code><\/p>\n<p>Command (m for help): w<br \/>\nThe partition table has been altered!<\/p>\n<p><code lang=\"bash\"><br \/>\n<\/code><\/p>\n<p><code lang=\"bash\">Calling ioctl() to re-read partition table.<br \/>\nSyncing disks.<br \/>\nroot@test-20140516144201:~#<br \/>\n<\/code><\/p>\n<p><code lang=\"bash\"><br \/>\nroot@test-20140516144201:~# mkfs.ext4 \/dev\/xvdc1<br \/>\nmke2fs 1.42 (29-Nov-2011)<br \/>\nFilesystem label=<br \/>\nOS type: Linux<br \/>\nBlock size=4096 (log=2)<br \/>\nFragment size=4096 (log=2)<br \/>\nStride=0 blocks, Stripe width=0 blocks<br \/>\n655360 inodes, 2621184 blocks<br \/>\n131059 blocks (5.00%) reserved for the super user<br \/>\nFirst data block=0<br \/>\nMaximum filesystem blocks=2684354560<br \/>\n80 block groups<br \/>\n32768 blocks per group, 32768 fragments per group<br \/>\n8192 inodes per group<br \/>\nSuperblock backups stored on blocks:<br \/>\n32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632<\/code><\/p>\n<p><code lang=\"bash\"><code lang=\"bash\"><\/code><\/code><\/p>\n<p>Allocating group tables: done<br \/>\nWriting inode tables: done<br \/>\nCreating journal (32768 blocks): done<br \/>\nWriting superblocks and filesystem accounting information: done<\/p>\n<p><code lang=\"bash\"><br \/>\n<\/code><\/p>\n<p><code lang=\"bash\">root@test-20140516144201:~#<br \/>\n<\/code><\/p>\n<p>\u30de\u30a6\u30f3\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nroot@test-20140516144201:~# mount \/dev\/xvdc1 \/mnt<br \/>\nroot@test-20140516144201:~# ls -l \/mnt\/<br \/>\ntotal 16<br \/>\ndrwx------ 2 root root 16384 Jun  3 03:44 lost+found<br \/>\nroot@test-20140516144201:~# df -h \/mnt<br \/>\nFilesystem      Size  Used Avail Use% Mounted on<br \/>\n\/dev\/xvdc1      9.9G  151M  9.2G   2% \/mnt<br \/>\nroot@test-20140516144201:~#<br \/>\n<\/code><\/p>\n<p>\u3053\u308c\u3067 Virtual Server \u304b\u3089 Portable Storage \u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002<br \/>\n\u306a\u304a\u3001\u6c38\u7d9a\u30de\u30a6\u30f3\u30c8\u3059\u308b\u969b\u306f \/etc\/fstab \u306e\u7de8\u96c6\u306a\u3069\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>softlayer-api-ruby-client \u3067 Portable Storage (SAN) \u3092 Virtual Server \u304b\u3089\u30c7\u30bf\u30c3\u30c1\u3059\u308b<\/h2>\n<p>Portable Storage \u3092\u5225\u306e Virtual Server \u3067\u4f7f\u3044\u56de\u3059\u306b\u306f\u3001\u30c7\u30bf\u30c3\u30c1\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001Virtual Server \u3092\u30ad\u30e3\u30f3\u30bb\u30eb\u3059\u308b\u969b\u306b\u30a2\u30bf\u30c3\u30c1\u3057\u305f\u307e\u307e\u3060\u3068 Portable Storage \u3082\u4e00\u7dd2\u306b\u6d88\u3048\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u30c7\u30bf\u30c3\u30c1\u3092\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u30c7\u30bf\u30c3\u30c1\u306f <a href=\"http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Virtual_Guest\/detachDiskImage\">SoftLayer_Virtual_Guest::detachDiskImage<\/a> \u3067\u884c\u3044\u307e\u3059\u3002<br \/>\n\u6b21\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e VIRTUAL_GUEST_ID \u306f\u30a2\u30bf\u30c3\u30c1\u5148\u306e Virtual Server \u306e ID\u3001PORTABLE_STORAGE_ID \u306f\u4eca\u78ba\u8a8d\u3057\u305f Portable Storage \u306e <strong>id<\/strong> \u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u306a\u304a\u3001\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u969b\u306f Virtual Server \u3092\u505c\u6b62\u3057\u3066\u304b\u3089\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u3055\u3082\u306a\u3044\u3068\u3001\u5b9f\u884c\u3057\u305f\u76f4\u5f8c\u306b Virtual Server \u306f\u81ea\u52d5\u7684\u306b\u518d\u8d77\u52d5\u3057\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# fill your SoftLayer Virtual Guest ID and Portable Storage ID<br \/>\n#<br \/>\nVIRTUAL_GUEST_ID=0<br \/>\nPORTABLE_STORAGE_ID=0<\/p>\n<p><code lang=\"ruby\"><code lang=\"ruby\"><\/code><\/code><\/p>\n<p>#<br \/>\n# http:\/\/sldn.softlayer.com\/reference\/services\/SoftLayer_Virtual_Guest<br \/>\n#<br \/>\nvirtual_guest_service = SoftLayer::Service.new( 'SoftLayer_Virtual_Guest',<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# result<br \/>\n#<br \/>\npp virtual_guest_service.object_with_id( VIRTUAL_GUEST_ID ).detachDiskImage( PORTABLE_STORAGE_ID )<\/p>\n<p><code lang=\"ruby\"><br \/>\n<\/code><\/p>\n<p><code lang=\"ruby\">__END__<br \/>\n<\/code><\/p>\n<p><code lang=\"ruby\"><br \/>\n{\"createDate\"=&gt;\"2014-06-03T17:53:20+09:00\",<br \/>\n\"elapsedSeconds\"=&gt;0,<br \/>\n\"guestId\"=&gt;XXXXX64,<br \/>\n\"hardwareId\"=&gt;nil,<br \/>\n\"id\"=&gt;XXXXX80,<br \/>\n\"modifyDate\"=&gt;\"2014-06-03T17:53:20+09:00\",<br \/>\n\"statusChangeDate\"=&gt;\"2014-06-03T17:53:20+09:00\",<br \/>\n\"transactionGroup\"=&gt;<br \/>\n{\"averageTimeToComplete\"=&gt;\".85\", \"name\"=&gt;\"Cloud Disk Image Detach\"},<br \/>\n\"transactionStatus\"=&gt;<br \/>\n{\"friendlyName\"=&gt;\"Cloud Disk Image Detach\",<br \/>\n\"name\"=&gt;\"CLOUD_DISK_IMAGE_DETACH\"}}<br \/>\n<\/code><\/p>\n<p>\u300c<a href=\"\/lab\/4542\">softlayer-api-ruby-client \u3067 Virtual Server \u3092\u4f5c\u6210\u30fb\u95b2\u89a7\u30fb\u7834\u68c4\u3059\u308b<\/a>\u300d\u3067\u7528\u3044\u305f Virtual Server \u306e\u95b2\u89a7\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code lang=\"ruby\"><br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n\"blockDevices\"=&gt;<br \/>\n[{\"bootableFlag\"=&gt;1,<br \/>\n\"createDate\"=&gt;\"2014-05-16T14:43:42+09:00\",<br \/>\n\"device\"=&gt;\"0\",<br \/>\n\"diskImageId\"=&gt;XXXXX26,<br \/>\n\"guestId\"=&gt;XXXXX64,<br \/>\n\"hotPlugFlag\"=&gt;0,<br \/>\n\"id\"=&gt;XXXXX54,<br \/>\n\"modifyDate\"=&gt;nil,<br \/>\n\"mountMode\"=&gt;\"RW\",<br \/>\n\"mountType\"=&gt;\"Disk\",<br \/>\n\"statusId\"=&gt;1,<br \/>\n\"uuid\"=&gt;\"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\"},<br \/>\n{\"bootableFlag\"=&gt;0,<br \/>\n\"createDate\"=&gt;\"2014-05-16T14:42:58+09:00\",<br \/>\n\"device\"=&gt;\"1\",<br \/>\n\"diskImageId\"=&gt;XXXXX28,<br \/>\n\"guestId\"=&gt;XXXXX64,<br \/>\n\"hotPlugFlag\"=&gt;0,<br \/>\n\"id\"=&gt;XXXXX52,<br \/>\n\"modifyDate\"=&gt;nil,<br \/>\n\"mountMode\"=&gt;\"RW\",<br \/>\n\"mountType\"=&gt;\"Disk\",<br \/>\n\"statusId\"=&gt;1,<br \/>\n\"uuid\"=&gt;\"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\"}],<br \/>\n:<br \/>\n(\u4e2d\u7565)<br \/>\n:<br \/>\n<\/code><\/p>\n<p>Portable Storage ID \u3092\u6301\u3063\u305f\u30d6\u30ed\u30c3\u30af\u30c7\u30d0\u30a4\u30b9\u304c\u6d88\u3048\u3066\u3044\u307e\u3059\u3002<br \/>\n\u6b21\u306b\u3001Virtual Server \u3092\u8d77\u52d5\u3057\u3066 fdisk \u3067\u78ba\u8a8d\u3057\u305f\u3068\u3053\u308d\u3001\u3082\u3046 \/dev\/xvdc \u306f\u5b58\u5728\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p><code lang=\"bash\"><br \/>\nroot@test-20140516144201:~# fdisk -l \/dev\/xvdc<br \/>\nroot@test-20140516144201:~#<br \/>\n<\/code><\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Portable Storage \u306f\u3001Virtual Server \u306b\u5f8c\u304b\u3089\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u4ed8\u3051\u8db3\u3057\u305f\u308a\u3001Virtual Server \u9593\u3067\u4f7f\u3044\u56de\u3057\u306e\u3067\u304d\u308b\u30b9\u30c8\u30ec\u30fc\u30b8\u3068\u3057\u3066\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u6d3b\u7528\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Portable Storage (SAN) \u3068\u306f SoftLayer \u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u306f\u3055\u307e\u3056\u307e\u306a\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u672c\u8a18\u4e8b\u3067\u306f Portable Storage \u3092\u53d6\u308a\u6271\u3044\u307e\u3059\u3002 \u4ee5\u524d\u306e\u8a18\u4e8b \u3067\u8efd\u304f\u89e6\u308c\u307e\u3057\u305f\u304c\u3001Port [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":0,"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-4887","post","type-post","status-publish","format-standard","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 Portable Storage (SAN) \u3092\u8ffd\u52a0\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 |Portable Storage (SAN) \u3068\u306f SoftLayer \u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u306f\u3055\u307e\u3056\u307e\u306a\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u672c\u8a18\u4e8b\u3067\u306f Portable\" \/>\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\/4887\" \/>\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 Portable Storage (SAN) \u3092\u8ffd\u52a0\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 |Portable Storage (SAN) \u3068\u306f SoftLayer \u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u306f\u3055\u307e\u3056\u307e\u306a\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u672c\u8a18\u4e8b\u3067\u306f Portable\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4887\" \/>\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-06T02:30:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-29T03:52:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/01\/screenshot.png\" \/>\n\t<meta property=\"og:image:width\" content=\"470\" \/>\n\t<meta property=\"og:image:height\" content=\"394\" \/>\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=\"13\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\\\/4887#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4887\"},\"author\":{\"name\":\"Daisuke Higuchi\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"headline\":\"softlayer-api-ruby-client \u3067 Portable Storage (SAN) \u3092\u8ffd\u52a0\u3059\u308b #softlayer\",\"datePublished\":\"2014-06-06T02:30:37+00:00\",\"dateModified\":\"2023-08-29T03:52:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4887\"},\"wordCount\":1234,\"articleSection\":[\"d-higuchi\",\"Ruby\",\"softlayer\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4887\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4887\",\"name\":\"softlayer-api-ruby-client \u3067 Portable Storage (SAN) \u3092\u8ffd\u52a0\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\"},\"datePublished\":\"2014-06-06T02:30:37+00:00\",\"dateModified\":\"2023-08-29T03:52:31+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"description\":\"d-higuchi, Ruby, softlayer |Portable Storage (SAN) \u3068\u306f SoftLayer \u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u306f\u3055\u307e\u3056\u307e\u306a\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u672c\u8a18\u4e8b\u3067\u306f Portable\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4887#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4887\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/ruby\\\/4887#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 Portable Storage (SAN) \u3092\u8ffd\u52a0\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 Portable Storage (SAN) \u3092\u8ffd\u52a0\u3059\u308b #softlayer - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"d-higuchi, Ruby, softlayer |Portable Storage (SAN) \u3068\u306f SoftLayer \u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u306f\u3055\u307e\u3056\u307e\u306a\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u672c\u8a18\u4e8b\u3067\u306f Portable","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\/4887","og_locale":"ja_JP","og_type":"article","og_title":"softlayer-api-ruby-client \u3067 Portable Storage (SAN) \u3092\u8ffd\u52a0\u3059\u308b #softlayer - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"d-higuchi, Ruby, softlayer |Portable Storage (SAN) \u3068\u306f SoftLayer \u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u306f\u3055\u307e\u3056\u307e\u306a\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u672c\u8a18\u4e8b\u3067\u306f Portable","og_url":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4887","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-06T02:30:37+00:00","article_modified_time":"2023-08-29T03:52:31+00:00","og_image":[{"width":470,"height":394,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/01\/screenshot.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":"13\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4887#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4887"},"author":{"name":"Daisuke Higuchi","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"headline":"softlayer-api-ruby-client \u3067 Portable Storage (SAN) \u3092\u8ffd\u52a0\u3059\u308b #softlayer","datePublished":"2014-06-06T02:30:37+00:00","dateModified":"2023-08-29T03:52:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4887"},"wordCount":1234,"articleSection":["d-higuchi","Ruby","softlayer"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4887","url":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4887","name":"softlayer-api-ruby-client \u3067 Portable Storage (SAN) \u3092\u8ffd\u52a0\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"},"datePublished":"2014-06-06T02:30:37+00:00","dateModified":"2023-08-29T03:52:31+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"description":"d-higuchi, Ruby, softlayer |Portable Storage (SAN) \u3068\u306f SoftLayer \u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u306f\u3055\u307e\u3056\u307e\u306a\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u672c\u8a18\u4e8b\u3067\u306f Portable","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4887#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4887"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/ruby\/4887#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 Portable Storage (SAN) \u3092\u8ffd\u52a0\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\/4887","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=4887"}],"version-history":[{"count":1,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/4887\/revisions"}],"predecessor-version":[{"id":65746,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/4887\/revisions\/65746"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=4887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=4887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=4887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}