Sha256: 8b1b203abe727c8640af7e2e6683d317f40bb2f2551a35c471ce722d94facd97
Contents?: true
Size: 1.37 KB
Versions: 10
Compression:
Stored size: 1.37 KB
Contents
#!/usr/bin/env ruby #-- # ニフティクラウドSDK for Ruby # # Ruby Gem Name:: nifty-cloud-sdk # Author:: NIFTY Corporation # Copyright:: Copyright 2011 NIFTY Corporation All Rights Reserved. # License:: Distributes under the same terms as Ruby # Home:: http://cloud.nifty.com/api/ #++ require 'rubygems' require File.dirname(__FILE__) + "/../../lib/NIFTY" require 'pp' ACCESS_KEY = ENV["NIFTY_CLOUD_ACCESS_KEY"] || "<Your Access Key ID>" SECRET_KEY = ENV["NIFTY_CLOUD_SECRET_KEY"] || "<Your Secret Access Key>" ncs4r = NIFTY::Cloud::Base.new(:access_key => ACCESS_KEY, :secret_key => SECRET_KEY) options = { #:fqdn_id => "fqdnId", #:attribute => "attribute" } pp response = ncs4r.describe_ssl_certificate_attribute(options) p response.fqdnId p response.fqdn if response["count"] p response["count"].value end if response.certState.value p response.certState.value end if response.period p response.period.startDate p response.period.endDate end if response.keyLength p response.keyLength end if response.uploadState p response.uploadState end if response.description p response.description end if cert_info = response.certInfo p cert_info.organizationName p cert_info.organizationUnitName p cert_info.countryName p cert_info.stateName p cert_info.locationName p cert_info.emailAddress end
Version data entries
10 entries across 10 versions & 1 rubygems